From 1895ffb5c309935f3863de0e1c3d457b38b98cfd Mon Sep 17 00:00:00 2001 From: Tiago Ribeiro Date: Sun, 15 Oct 2023 22:57:23 +0100 Subject: [PATCH] Updated the text of the about exams/exercises --- src/exams/Selection.tsx | 31 +++++++++++++++++++++++++------ src/pages/exam.tsx | 1 + src/pages/exercises.tsx | 1 + 3 files changed, 27 insertions(+), 6 deletions(-) diff --git a/src/exams/Selection.tsx b/src/exams/Selection.tsx index c7a3f44f..f9238093 100644 --- a/src/exams/Selection.tsx +++ b/src/exams/Selection.tsx @@ -10,14 +10,16 @@ import useStats from "@/hooks/useStats"; import Button from "@/components/Low/Button"; import {calculateAverageLevel} from "@/utils/score"; import {sortByModuleName} from "@/utils/moduleUtils"; +import {capitalize} from "lodash"; interface Props { user: User; + page: "exercises" | "exams"; onStart: (modules: Module[], avoidRepeated: boolean) => void; disableSelection?: boolean; } -export default function Selection({user, onStart, disableSelection = false}: Props) { +export default function Selection({user, page, onStart, disableSelection = false}: Props) { const [selectedModules, setSelectedModules] = useState([]); const [avoidRepeatedExams, setAvoidRepeatedExams] = useState(true); const {stats} = useStats(user?.id); @@ -92,12 +94,29 @@ export default function Selection({user, onStart, disableSelection = false}: Pro
- About Exams + About {capitalize(page)} - This comprehensive test will assess your proficiency in reading, listening, writing, and speaking English. Be prepared to dive - into a variety of interesting and challenging topics while showcasing your ability to communicate effectively in English. - Master the vocabulary, grammar, and interpretation skills required to succeed in this high-level exam. Are you ready to - demonstrate your mastery of the English language to the world? + {page === "exercises" && ( + <> + In the realm of language acquisition, practice makes perfect, and our exercises are the key to unlocking your full + potential. Dive into a world of interactive and engaging exercises that cater to diverse learning styles. From grammar + drills that build a strong foundation to vocabulary challenges that broaden your lexicon, our exercises are carefully + designed to make learning English both enjoyable and effective. Whether you're looking to reinforce specific + skills or embark on a holistic language journey, our exercises are your companions in the pursuit of excellence. + Embrace the joy of learning as you navigate through a variety of activities that cater to every facet of language + acquisition. Your linguistic adventure starts here! + + )} + {page === "exams" && ( + <> + Welcome to the heart of success on your English language journey! Our exams are crafted with precision to assess and + enhance your language skills. Each test is a passport to your linguistic prowess, designed to challenge and elevate + your abilities. Whether you're a beginner or a seasoned learner, our exams cater to all levels, providing a + comprehensive evaluation of your reading, writing, speaking, and listening skills. Prepare to embark on a journey of + self-discovery and language mastery as you navigate through our thoughtfully curated exams. Your success is not just a + destination; it's a testament to your dedication and our commitment to empowering you with the English language. + + )}
diff --git a/src/pages/exam.tsx b/src/pages/exam.tsx index 1023196f..3a860a16 100644 --- a/src/pages/exam.tsx +++ b/src/pages/exam.tsx @@ -221,6 +221,7 @@ export default function Page() { if (selectedModules.length === 0) { return ( { diff --git a/src/pages/exercises.tsx b/src/pages/exercises.tsx index a4f66e32..e71ea07c 100644 --- a/src/pages/exercises.tsx +++ b/src/pages/exercises.tsx @@ -225,6 +225,7 @@ export default function Page() { if (selectedModules.length === 0) { return ( { setSelectedModules(modules);