-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
49 additions
and
0 deletions.
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
import ErrorPage from "../error"; | ||
|
||
export default ErrorPage; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
"use client"; | ||
|
||
import A from "@/components/A"; | ||
import { TriggerSearch } from "@/components/TriggerSearch"; | ||
import { Button } from "@/components/ui/button"; | ||
import { GITHUB_REPOSITORY } from "@/lib/constants"; | ||
import Image from "next/image"; | ||
import Link from "next/link"; | ||
import homerError from "../../public/error.gif"; | ||
|
||
export default function ErrorPage() { | ||
return ( | ||
<div className="sm:h-full w-full flex flex-col lg:flex-row gap-8 md:gap-12 items-center sm:justify-center md:mt-[-105px] container"> | ||
<Image | ||
src={homerError} | ||
alt="Homer Simpson error" | ||
className="rounded-md shadow" | ||
/> | ||
<main className="flex flex-col gap-4"> | ||
<h1 className="font-semibold text-6xl text-black dark:text-white"> | ||
Erreur! | ||
</h1> | ||
<div className="text-muted-foreground"> | ||
<p>Une erreur s'est produite.</p> | ||
<p>Ce n'est pas de votre faute, c'est de la mienne.</p> | ||
<p className="mt-2"> | ||
Si vous voulez m'aider à la corriger, le repository est disponible | ||
sur <A href={GITHUB_REPOSITORY}>GitHub</A>. | ||
</p> | ||
<p className="mt-2"> | ||
Et si vous voulez simplement retourner à l'accueil, utilisez les | ||
boutons ci-dessous. | ||
</p> | ||
</div> | ||
<div className="space-x-2"> | ||
<Button asChild variant="secondary" className="w-max"> | ||
<Link href="/">Returner à l'accueil</Link> | ||
</Button> | ||
<span className="text-sm">ou</span> | ||
<TriggerSearch variant="secondary">Chercher une page</TriggerSearch> | ||
</div> | ||
</main> | ||
</div> | ||
); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters