Added the results screen
Signed-off-by: Ioan Cristian CHELARU <iccjoc@proton.me>
This commit is contained in:
parent
43db39291e
commit
47e47d0cb4
1 changed files with 63 additions and 0 deletions
63
app/results/page.tsx
Normal file
63
app/results/page.tsx
Normal file
|
@ -0,0 +1,63 @@
|
|||
import { CheckIcon, XMarkIcon, QuestionMarkCircleIcon, FingerPrintIcon, LockClosedIcon } from '@heroicons/react/24/outline'
|
||||
|
||||
const features = [
|
||||
{
|
||||
name: 'Correct Questions',
|
||||
description:
|
||||
'You got [insert number here] questions right! Good Job!',
|
||||
icon: CheckIcon,
|
||||
},
|
||||
{
|
||||
name: 'Incorrect Questions',
|
||||
description:
|
||||
'You got [insert number here] questions wrong! You can do better!',
|
||||
icon: XMarkIcon,
|
||||
},
|
||||
{
|
||||
name: 'Total Questions',
|
||||
description:
|
||||
'There were [insert number here] questions in total.',
|
||||
icon: QuestionMarkCircleIcon,
|
||||
}
|
||||
]
|
||||
|
||||
export default function Example() {
|
||||
return (
|
||||
<div className="bg-black py-24 sm:py-32">
|
||||
<div className="mx-auto max-w-7xl px-6 lg:px-8">
|
||||
<div className="mx-auto max-w-2xl lg:text-center">
|
||||
<h2 className="text-base font-semibold leading-7 text-indigo-300">You did it!</h2>
|
||||
<p className="mt-2 text-3xl font-bold tracking-tight text-gray-100 sm:text-4xl">
|
||||
Here are the results:
|
||||
</p>
|
||||
<p className="mt-6 text-lg leading-8 text-gray-600">
|
||||
On this page you can see what you did at the quiz. We'll give your wrong questions again, another time!
|
||||
</p>
|
||||
</div>
|
||||
<div className="mx-auto mt-16 max-w-2xl sm:mt-20 lg:mt-24 lg:max-w-4xl">
|
||||
<dl className="grid max-w-xl grid-cols-1 gap-x-8 gap-y-10 lg:max-w-none lg:grid-cols-2 lg:gap-y-16">
|
||||
{features.map((feature) => (
|
||||
<div key={feature.name} className="relative pl-16">
|
||||
<dt className="text-base font-semibold leading-7 text-gray-100">
|
||||
<div className="absolute left-0 top-0 flex h-10 w-10 items-center justify-center rounded-lg bg-indigo-600">
|
||||
<feature.icon className="h-6 w-6 text-white" aria-hidden="true" />
|
||||
</div>
|
||||
{feature.name}
|
||||
</dt>
|
||||
<dd className="mt-2 text-base leading-7 text-gray-300">{feature.description}</dd>
|
||||
</div>
|
||||
))}
|
||||
</dl>
|
||||
<br></br>
|
||||
<a
|
||||
href="sessionconfig"
|
||||
className="rounded-md bg-indigo-600 px-3.5 py-2.5 text-sm font-semibold text-gray-100 shadow-sm hover:bg-indigo-900 focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-white"
|
||||
style={{ marginTop: '100px' }}
|
||||
>
|
||||
Go Back
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
)
|
||||
}
|
Loading…
Reference in a new issue