Updated the text related to the finish screen depending on the level
This commit is contained in:
@@ -1,8 +0,0 @@
|
|||||||
import {Module} from "@/interfaces";
|
|
||||||
|
|
||||||
export const BAND_SCORES: {[key in Module]: number[]} = {
|
|
||||||
reading: [0, 2.5, 3, 3.5, 4, 4.5, 5, 5.5, 6, 6.5, 7, 7.5, 8, 8.5, 9],
|
|
||||||
listening: [0, 2.5, 3, 3.5, 4, 4.5, 5, 5.5, 6, 6.5, 7, 7.5, 8, 8.5, 9],
|
|
||||||
writing: [0, 1, 2, 3, 4, 5, 6, 7, 8, 9],
|
|
||||||
speaking: [0, 1, 2, 3, 4, 5, 6, 7, 8, 9],
|
|
||||||
};
|
|
||||||
84
src/constants/ielts.tsx
Normal file
84
src/constants/ielts.tsx
Normal file
@@ -0,0 +1,84 @@
|
|||||||
|
import {Module} from "@/interfaces";
|
||||||
|
|
||||||
|
export const BAND_SCORES: {[key in Module]: number[]} = {
|
||||||
|
reading: [0, 2.5, 3, 3.5, 4, 4.5, 5, 5.5, 6, 6.5, 7, 7.5, 8, 8.5, 9],
|
||||||
|
listening: [0, 2.5, 3, 3.5, 4, 4.5, 5, 5.5, 6, 6.5, 7, 7.5, 8, 8.5, 9],
|
||||||
|
writing: [0, 1, 2, 3, 4, 5, 6, 7, 8, 9],
|
||||||
|
speaking: [0, 1, 2, 3, 4, 5, 6, 7, 8, 9],
|
||||||
|
};
|
||||||
|
|
||||||
|
export const LEVEL_TEXT = {
|
||||||
|
excellent:
|
||||||
|
"Congratulations on your exam performance! You achieved an impressive {{level}}, demonstrating excellent mastery of the assessed knowledge.\n\nIf you disagree with the result, you can request a review by a qualified teacher. We are committed to the accuracy and transparency of the results.\n\nPlease contact us for further information. Congratulations again on your outstanding achievement! We are here to support you on your academic journey.",
|
||||||
|
high: "Congratulations on your exam performance! You achieved a commendable {{level}}, demonstrating a good understanding of the assessed knowledge.\n\nIf you have any concerns about the result, you can request a review by a qualified teacher. We are committed to the accuracy and transparency of the results.\n\nPlease contact us for further information. Congratulations again on your achievement! We are here to support you on your academic journey.",
|
||||||
|
medium: "Congratulations on your exam performance! You achieved a {{level}}, demonstrating a satisfactory understanding of the assessed knowledge.\n\nIf you have any concerns about the result, you can request a review by a qualified teacher. We are committed to the accuracy and transparency of the results.\n\nPlease contact us for further information. Congratulations again on your achievement! We are here to support you on your academic journey.",
|
||||||
|
low: "Thank you for taking the exam. You achieved a {{level}}, but unfortunately, it did not meet the required standards.\n\nIf you have any concerns about the result, you can request a review by a qualified teacher. We are committed to the accuracy and transparency of the results.\n\nPlease contact us for further information. We encourage you to continue your studies and wish you the best of luck in your future endeavors.",
|
||||||
|
};
|
||||||
|
|
||||||
|
export const levelText = (level: number) => {
|
||||||
|
if (level === 9) {
|
||||||
|
return (
|
||||||
|
<>
|
||||||
|
Congratulations on your exam performance! You achieved an impressive <span className="font-bold">level {level}</span>, demonstrating
|
||||||
|
excellent mastery of the assessed knowledge.
|
||||||
|
<br />
|
||||||
|
<br />
|
||||||
|
If you disagree with the result, you can request a review by a qualified teacher. We are committed to the accuracy and transparency of
|
||||||
|
the results.
|
||||||
|
<br />
|
||||||
|
<br />
|
||||||
|
Please contact us for further information. Congratulations again on your outstanding achievement! We are here to support you on your
|
||||||
|
academic journey.
|
||||||
|
</>
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
|
if (level >= 6) {
|
||||||
|
return (
|
||||||
|
<>
|
||||||
|
Congratulations on your exam performance! You achieved a commendable <span className="font-bold">level {level}</span>, demonstrating a
|
||||||
|
good understanding of the assessed knowledge.
|
||||||
|
<br />
|
||||||
|
<br />
|
||||||
|
If you have any concerns about the result, you can request a review by a qualified teacher. We are committed to the accuracy and
|
||||||
|
transparency of the results.
|
||||||
|
<br />
|
||||||
|
<br />
|
||||||
|
Please contact us for further information. Congratulations again on your achievement! We are here to support you on your academic
|
||||||
|
journey.
|
||||||
|
</>
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
|
if (level >= 3) {
|
||||||
|
return (
|
||||||
|
<>
|
||||||
|
Congratulations on your exam performance! You achieved a <span className="font-bold">level of {level}</span>, demonstrating a
|
||||||
|
satisfactory understanding of the assessed knowledge.
|
||||||
|
<br />
|
||||||
|
<br />
|
||||||
|
If you have any concerns about the result, you can request a review by a qualified teacher. We are committed to the accuracy and
|
||||||
|
transparency of the results.
|
||||||
|
<br />
|
||||||
|
<br />
|
||||||
|
Please contact us for further information. Congratulations again on your achievement! We are here to support you on your academic
|
||||||
|
journey.
|
||||||
|
</>
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
|
return (
|
||||||
|
<>
|
||||||
|
Thank you for taking the exam. You achieved a <span className="font-bold">level {level}</span>, but unfortunately, it did not meet the
|
||||||
|
required standards.
|
||||||
|
<br />
|
||||||
|
<br />
|
||||||
|
If you have any concerns about the result, you can request a review by a qualified teacher. We are committed to the accuracy and
|
||||||
|
transparency of the results.
|
||||||
|
<br />
|
||||||
|
<br />
|
||||||
|
Please contact us for further information. We encourage you to continue your studies and wish you the best of luck in your future
|
||||||
|
endeavors.
|
||||||
|
</>
|
||||||
|
);
|
||||||
|
};
|
||||||
@@ -1,5 +1,6 @@
|
|||||||
import Button from "@/components/Low/Button";
|
import Button from "@/components/Low/Button";
|
||||||
import ModuleTitle from "@/components/Medium/ModuleTitle";
|
import ModuleTitle from "@/components/Medium/ModuleTitle";
|
||||||
|
import {levelText, LEVEL_TEXT} from "@/constants/ielts";
|
||||||
import {Module} from "@/interfaces";
|
import {Module} from "@/interfaces";
|
||||||
import {User} from "@/interfaces/user";
|
import {User} from "@/interfaces/user";
|
||||||
import useExamStore from "@/stores/examStore";
|
import useExamStore from "@/stores/examStore";
|
||||||
@@ -7,7 +8,7 @@ import {calculateBandScore} from "@/utils/score";
|
|||||||
import clsx from "clsx";
|
import clsx from "clsx";
|
||||||
import Link from "next/link";
|
import Link from "next/link";
|
||||||
import {useRouter} from "next/router";
|
import {useRouter} from "next/router";
|
||||||
import {useEffect, useState} from "react";
|
import {Fragment, useEffect, useState} from "react";
|
||||||
import {BsArrowCounterclockwise, BsBook, BsEyeFill, BsHeadphones, BsMegaphone, BsPen, BsShareFill} from "react-icons/bs";
|
import {BsArrowCounterclockwise, BsBook, BsEyeFill, BsHeadphones, BsMegaphone, BsPen, BsShareFill} from "react-icons/bs";
|
||||||
|
|
||||||
interface Score {
|
interface Score {
|
||||||
@@ -109,18 +110,7 @@ export default function Finish({user, scores, modules, onViewResults}: Props) {
|
|||||||
</div>
|
</div>
|
||||||
<div className="w-full flex gap-9 mt-32 items-center justify-between">
|
<div className="w-full flex gap-9 mt-32 items-center justify-between">
|
||||||
<span className="max-w-3xl">
|
<span className="max-w-3xl">
|
||||||
Congratulations on your exam performance! You achieved an impressive{" "}
|
{levelText(calculateBandScore(selectedScore.correct, selectedScore.total, selectedModule, user.focus))}
|
||||||
<span className="font-bold">
|
|
||||||
level {calculateBandScore(selectedScore.correct, selectedScore.total, selectedModule, user.focus)}
|
|
||||||
</span>
|
|
||||||
, demonstrating excellent mastery of the assessed knowledge.
|
|
||||||
<br />
|
|
||||||
<br />
|
|
||||||
If you disagree with the result, you can request a review by a qualified teacher. We are committed to the accuracy and
|
|
||||||
transparency of the results. Please contact us for further information.
|
|
||||||
<br />
|
|
||||||
<br />
|
|
||||||
Congratulations again on your outstanding achievement! We are here to support you on your academic journey.
|
|
||||||
</span>
|
</span>
|
||||||
<div className="flex gap-9 px-16">
|
<div className="flex gap-9 px-16">
|
||||||
<div
|
<div
|
||||||
|
|||||||
Reference in New Issue
Block a user