Skip to content

Commit 1067859

Browse files
Add 404 page Not Found
1 parent 8e97464 commit 1067859

File tree

2 files changed

+32
-0
lines changed

2 files changed

+32
-0
lines changed

β€Žsrc/app/[...not_found]/page.tsx

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
import { notFound } from "next/navigation";
2+
3+
export default function NotFoundCatchAll() {
4+
notFound();
5+
return null;
6+
}

β€Žsrc/app/not-found.tsx

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
import { Metadata } from 'next';
2+
import Link from 'next/link';
3+
export const metadata: Metadata = {
4+
title: '404 PAGE NOT FOUND',
5+
};
6+
export default function NotFound() {
7+
return (
8+
<div>
9+
<div>
10+
<div className="px-9 xl:px-28 mx-auto py-40">
11+
<h1 className="text-5xl font-bold text-slate-900 ">
12+
404 PAGE NOT FOUND
13+
</h1>
14+
<div className="flex justify-start mt-9">
15+
<Link
16+
className="bg-black/20 hover:bg-black/60 hover:backdrop-blur-lg ml-0 px-9 rounded-md text-slate-800 font-bold py-2 backdrop-blur-sm transition-colors duration-300 ease-in-out "
17+
href="/"
18+
>
19+
Go Back Home
20+
</Link>
21+
</div>
22+
</div>
23+
</div>
24+
</div>
25+
);
26+
}

0 commit comments

Comments
Β (0)