feat: add custom 404 Not Found page

This commit is contained in:
Dorian Niemiec 2024-11-07 18:14:58 +01:00
parent c82ebcb23d
commit 36d97aecd1

27
app/not-found.jsx Normal file
View file

@ -0,0 +1,27 @@
import Footer from "@/components/Footer";
import Header from "@/components/Header";
import Link from "next/link";
function NotFound() {
return (
<>
<div className="flex flex-col min-h-screen">
<Header />
<section className="flex flex-col max-w-screen-xl mx-auto items-center justify-center px-3 flex-1 flex-grow">
<h1 className="text-3xl md:text-5xl text-center">
<span className="text-red-500">404</span> Page not Found
</h1>
<p className="text-lg mt-3 text-muted-foreground">
Please return back to{" "}
<Link href="/" className="underline font-bold">
Home
</Link>
</p>
</section>
<Footer />
</div>
</>
);
}
export default NotFound;