feat: add basic 404 error page
This commit is contained in:
committed by
Mathias Schopmans
parent
2682ea4e46
commit
0eb6997efa
22
src/pages/404.tsx
Normal file
22
src/pages/404.tsx
Normal 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>
|
||||||
|
</>
|
||||||
|
);
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user