feat: add basic 404 error page

This commit is contained in:
Mathias Schopmans
2024-02-29 13:43:42 +01:00
committed by Mathias Schopmans
parent 2682ea4e46
commit 0eb6997efa

22
src/pages/404.tsx Normal file
View File

@@ -0,0 +1,22 @@
import Head from "next/head";
import Link from "next/link";
import Search from "@/components/Icons/Search";
import { formatTitle } from "@/lib/format";
export default function Custom404() {
return (
<>
<Head>
<title>{formatTitle("404 - Page Not Found")}</title>
</Head>
<div style={{ textAlign: "center", margin: "0 auto" }}>
<Search width={150} style={{ display: "inline-block" }} />
<h1>404 - Page Not Found</h1>
<p>
<Link href="/">Return to homepage</Link>
</p>
</div>
</>
);
}