Updated the text of the about exams/exercises
This commit is contained in:
@@ -10,14 +10,16 @@ import useStats from "@/hooks/useStats";
|
|||||||
import Button from "@/components/Low/Button";
|
import Button from "@/components/Low/Button";
|
||||||
import {calculateAverageLevel} from "@/utils/score";
|
import {calculateAverageLevel} from "@/utils/score";
|
||||||
import {sortByModuleName} from "@/utils/moduleUtils";
|
import {sortByModuleName} from "@/utils/moduleUtils";
|
||||||
|
import {capitalize} from "lodash";
|
||||||
|
|
||||||
interface Props {
|
interface Props {
|
||||||
user: User;
|
user: User;
|
||||||
|
page: "exercises" | "exams";
|
||||||
onStart: (modules: Module[], avoidRepeated: boolean) => void;
|
onStart: (modules: Module[], avoidRepeated: boolean) => void;
|
||||||
disableSelection?: boolean;
|
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<Module[]>([]);
|
const [selectedModules, setSelectedModules] = useState<Module[]>([]);
|
||||||
const [avoidRepeatedExams, setAvoidRepeatedExams] = useState(true);
|
const [avoidRepeatedExams, setAvoidRepeatedExams] = useState(true);
|
||||||
const {stats} = useStats(user?.id);
|
const {stats} = useStats(user?.id);
|
||||||
@@ -92,12 +94,29 @@ export default function Selection({user, onStart, disableSelection = false}: Pro
|
|||||||
</div>
|
</div>
|
||||||
</section>
|
</section>
|
||||||
<section className="flex flex-col gap-3">
|
<section className="flex flex-col gap-3">
|
||||||
<span className="font-bold text-lg">About Exams</span>
|
<span className="font-bold text-lg">About {capitalize(page)}</span>
|
||||||
<span className="text-mti-gray-taupe">
|
<span className="text-mti-gray-taupe">
|
||||||
This comprehensive test will assess your proficiency in reading, listening, writing, and speaking English. Be prepared to dive
|
{page === "exercises" && (
|
||||||
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
|
In the realm of language acquisition, practice makes perfect, and our exercises are the key to unlocking your full
|
||||||
demonstrate your mastery of the English language to the world?
|
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.
|
||||||
|
</>
|
||||||
|
)}
|
||||||
</span>
|
</span>
|
||||||
</section>
|
</section>
|
||||||
<section className="w-full flex justify-between gap-8 mt-8">
|
<section className="w-full flex justify-between gap-8 mt-8">
|
||||||
|
|||||||
@@ -221,6 +221,7 @@ export default function Page() {
|
|||||||
if (selectedModules.length === 0) {
|
if (selectedModules.length === 0) {
|
||||||
return (
|
return (
|
||||||
<Selection
|
<Selection
|
||||||
|
page="exams"
|
||||||
user={user!}
|
user={user!}
|
||||||
disableSelection
|
disableSelection
|
||||||
onStart={(modules, avoid) => {
|
onStart={(modules, avoid) => {
|
||||||
|
|||||||
@@ -225,6 +225,7 @@ export default function Page() {
|
|||||||
if (selectedModules.length === 0) {
|
if (selectedModules.length === 0) {
|
||||||
return (
|
return (
|
||||||
<Selection
|
<Selection
|
||||||
|
page="exercises"
|
||||||
user={user!}
|
user={user!}
|
||||||
onStart={(modules, avoid) => {
|
onStart={(modules, avoid) => {
|
||||||
setSelectedModules(modules);
|
setSelectedModules(modules);
|
||||||
|
|||||||
Reference in New Issue
Block a user