mirror of
https://github.com/Fayorg/calendrier-avant.git
synced 2026-05-28 01:28:37 +02:00
added michal's styles to the results page
This commit is contained in:
@@ -5,6 +5,9 @@ import { useRouter } from 'next/navigation';
|
||||
import { useState, useEffect } from 'react';
|
||||
import useSWR from 'swr';
|
||||
import { fetcher } from '@/lib/fetcher';
|
||||
import Image from "next/image";
|
||||
import Logo from "/images/logo.svg";
|
||||
import LogOut from "@images/logout.svg";
|
||||
|
||||
export default function Play() {
|
||||
const router = useRouter();
|
||||
@@ -21,19 +24,19 @@ export default function Play() {
|
||||
}, [router]);
|
||||
|
||||
return (
|
||||
<div>
|
||||
<h1>Calendrier-avant</h1>
|
||||
<div className={"w-full h-[100vh] text-[#F0F0F0] bg-black p-12 flex flex-col items-center justify-center gap-y-28"}>
|
||||
<Image src={Logo} alt={"Logo"} width={100} height={200} className={"mx-auto w-full md:w-[400px]"}/>
|
||||
<TestCard data={data} error={error} isLoading={isLoading} />
|
||||
{data && console.log(data)}
|
||||
{data && data.status == 200 && password && <GradingForm password={password} data={data} />}
|
||||
<div>
|
||||
<button
|
||||
onClick={(e) => {
|
||||
onClick={() => {
|
||||
localStorage.clear();
|
||||
router.push('/');
|
||||
}}
|
||||
>
|
||||
Se déconnecter
|
||||
<Image src={LogOut} alt={"Logo"} width={100} height={200} className={"mx-auto w-full md:w-[400px]"}/>
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user