From 54c190a1f1e5af6728040e82ddad56aa6b8530cc Mon Sep 17 00:00:00 2001 From: Sam Becker Date: Mon, 29 Apr 2024 20:59:02 -0500 Subject: [PATCH] Create custom 404 --- src/app/not-found.tsx | 45 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 45 insertions(+) create mode 100644 src/app/not-found.tsx diff --git a/src/app/not-found.tsx b/src/app/not-found.tsx new file mode 100644 index 00000000..7d188b74 --- /dev/null +++ b/src/app/not-found.tsx @@ -0,0 +1,45 @@ +'use client'; + +import SiteGrid from '@/components/SiteGrid'; +import { PATH_ROOT } from '@/site/paths'; +import { clsx } from 'clsx/lite'; +import Link from 'next/link'; +import { usePathname } from 'next/navigation'; + +export default function NotFound() { + const pathname = usePathname(); + + return ( + +

+ 404 +

+
+
+ + {pathname} + + {' '} + could not be found +
+ + Return Home + +
+ + } /> + ); +}