diff --git a/public/error.gif b/public/error.gif new file mode 100644 index 0000000..d698029 Binary files /dev/null and b/public/error.gif differ diff --git a/src/app/error.tsx b/src/app/error.tsx new file mode 100644 index 0000000..b3d0903 --- /dev/null +++ b/src/app/error.tsx @@ -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 ( +
+ Homer Simpson error +
+

+ Erreur! +

+
+

Une erreur s'est produite.

+

Ce n'est pas de votre faute, c'est de la mienne.

+

+ Si vous voulez m'aider à la corriger, le repository est disponible + sur GitHub. +

+

+ Et si vous voulez simplement retourner à l'accueil, utilisez les + boutons ci-dessous. +

+
+
+ + ou + Chercher une page +
+
+
+ ); +} diff --git a/src/lib/constants.ts b/src/lib/constants.ts index 8efd992..749826d 100644 --- a/src/lib/constants.ts +++ b/src/lib/constants.ts @@ -5,6 +5,7 @@ const PROTOCOL = env.NEXT_PUBLIC_VERCEL_URL.includes("localhost") : "https"; export const BASE_URL = `${PROTOCOL}://${env.NEXT_PUBLIC_VERCEL_URL}`; export const GITHUB_PROFILE = "https://github.com/vahor"; +export const GITHUB_REPOSITORY = `${GITHUB_PROFILE}/vahor.fr`; export const TWITTER_PROFILE = "https://twitter.com/vahor_"; export const LINKEDIN_PROFILE = "https://www.linkedin.com/in/nathan--david/"; export const EMAIL = "me@vahor.fr";