From 8abb3899a66e688221945dfc97bd49d47563b9de Mon Sep 17 00:00:00 2001 From: Gabriel Kaszewski Date: Tue, 31 Mar 2026 02:31:30 +0200 Subject: [PATCH] feat: add Vista-style 404 page --- app/not-found.tsx | 49 +++++++++++++++++++++++++++++++++++ components/go-back-button.tsx | 15 +++++++++++ 2 files changed, 64 insertions(+) create mode 100644 app/not-found.tsx create mode 100644 components/go-back-button.tsx diff --git a/app/not-found.tsx b/app/not-found.tsx new file mode 100644 index 0000000..9ee4dbc --- /dev/null +++ b/app/not-found.tsx @@ -0,0 +1,49 @@ +import Link from "next/link"; +import Window from "@/components/window"; +import GoBackButton from "@/components/go-back-button"; + +export default function NotFound() { + return ( +
+ +
+
+ + + +
+
+

+ 404 — Not Found +

+

+ The page you're looking for doesn't exist. Check the address or + head back home. +

+
+
+ +
+ + + Home + +
+
+
+ ); +} diff --git a/components/go-back-button.tsx b/components/go-back-button.tsx new file mode 100644 index 0000000..224d7b1 --- /dev/null +++ b/components/go-back-button.tsx @@ -0,0 +1,15 @@ +"use client"; + +import { useRouter } from "next/navigation"; + +export default function GoBackButton() { + const router = useRouter(); + return ( + + ); +}