fix(ui): improve ui/ux and visibility

This commit is contained in:
shafin-r
2025-10-06 18:39:58 +06:00
parent 351c8eab48
commit 981fe6973f
7 changed files with 63 additions and 43 deletions

View File

@ -15,6 +15,7 @@ import BackgroundWrapper from "@/components/BackgroundWrapper";
import { API_URL, getToken } from "@/lib/auth";
import { Metadata } from "@/types/exam";
import { useExamStore } from "@/stores/examStore";
import { FaStar } from "react-icons/fa";
function PretestPageContent() {
const router = useRouter();
@ -125,7 +126,7 @@ function PretestPageContent() {
<div className="min-h-screen flex flex-col justify-between">
<div className="flex-1 overflow-y-auto mb-20">
{metadata ? (
<div className="mx-10 mt-10 gap-6 pb-6 space-y-6">
<div className="mx-10 mt-10 gap-6 pb-6 space-y-5">
<button onClick={() => router.replace(`/categories/${type}s`)}>
<ArrowLeft size={30} color="black" />
</button>
@ -134,52 +135,55 @@ function PretestPageContent() {
{metadata.name}
</h1>
<p className="text-xl font-medium text-[#113768]">
Rating: 8 / 10
<p className="text-xl font-medium text-[#113768] flex items-center gap-1">
<FaStar size={15} />
<FaStar size={15} />
<FaStar size={15} />
<FaStar size={15} />
</p>
<div className="border-[1.5px] border-[#226DCE]/30 rounded-[25px] gap-8 py-7 px-5 space-y-8">
<div className="border-[1.5px] border-[#226DCE]/30 rounded-[25px] py-5 px-5 space-y-6">
<div className="flex gap-5 items-center">
<HelpCircle size={40} color="#113768" />
<div className="space-y-2">
<p className="font-bold text-4xl text-[#113768]">
<HelpCircle size={52} color="#113768" />
<div className="">
<p className="font-bold text-3xl text-[#113768]">
{metadata.num_questions}
</p>
<p className="font-normal text-lg">
<p className="font-normal text-md">
Multiple Choice Questions
</p>
</div>
</div>
<div className="flex gap-5 items-center">
<Clock size={40} color="#113768" />
<div className="space-y-2">
<p className="font-bold text-4xl text-[#113768]">
<Clock size={52} color="#113768" />
<div className="">
<p className="font-bold text-3xl text-[#113768]">
{String(metadata.time_limit_minutes)} mins
</p>
<p className="font-normal text-lg">Time Taken</p>
<p className="font-normal text-md">Time Taken</p>
</div>
</div>
<div className="flex gap-5 items-center">
<XCircle size={40} color="#113768" />
<div className="space-y-2">
<p className="font-bold text-4xl text-[#113768]">
<XCircle size={52} color="#113768" />
<div className="">
<p className="font-bold text-3xl text-[#113768]">
{metadata.deduction} marks
</p>
<p className="font-normal text-lg">
<p className="font-normal text-md">
From each wrong answer
</p>
</div>
</div>
</div>
<div className="border-[1.5px] border-[#226DCE]/30 rounded-[25px] gap-4 py-7 px-5 space-y-4">
<div className="border-[1.5px] border-[#226DCE]/30 rounded-[25px] px-6 py-5 space-y-3">
<h2 className="text-xl font-bold">Ready yourself!</h2>
<div className="flex pr-4">
<span className="mx-4"></span>
<p className="font-normal text-lg">
<p className="font-medium text-md">
You must complete this test in one session - make sure your
internet connection is reliable.
</p>
@ -187,14 +191,14 @@ function PretestPageContent() {
<div className="flex pr-4">
<span className="mx-4"></span>
<p className="font-normal text-lg">
There is negative marking for the wrong answer.
<p className="font-medium text-md">
There is no negative marking for the wrong answer.
</p>
</div>
<div className="flex pr-4">
<span className="mx-4"></span>
<p className="font-normal text-lg">
<p className="font-medium text-md">
The more you answer correctly, the better chance you have of
winning a badge.
</p>
@ -202,7 +206,7 @@ function PretestPageContent() {
<div className="flex pr-4">
<span className="mx-4"></span>
<p className="font-normal text-lg">
<p className="font-medium text-md">
You can retake this test however many times you want. But,
you will earn points only once.
</p>