Skip to content

Commit ff3bd77

Browse files
committed
feat: added custom 404 page
1 parent 2e87041 commit ff3bd77

File tree

1 file changed

+27
-0
lines changed

1 file changed

+27
-0
lines changed

src/app/not-found.tsx

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
import BackButton from "@/components/ui/BackButton";
2+
import { cn } from "@/lib/utils";
3+
4+
export default function NotFound() {
5+
return (
6+
<main className="flex flex-col items-center container mt-[28vh] z-1">
7+
<h1 className={
8+
cn(
9+
"font-typewriter text-6xl md:text-7xl lg:text-8xl font-bold",
10+
"text-transparent bg-clip-text bg-gradient-to-r dark:from-gray-500 dark:to-gray-300 from-gray-500 to-gray-700"
11+
)
12+
}>
13+
404
14+
</h1>
15+
<div className="mt-4 text-center">
16+
The page you're looking for, is either not there or has been moved.
17+
</div>
18+
<ul className="mt-4 flex gap-4 sm:gap-8">
19+
<li>{<BackButton>go back</BackButton>}</li>
20+
<li>|</li>
21+
<li><a href="/" className="text-slate-600 dark:text-slate-300 hover:text-black dark:hover:text-white hover:underline hover:underline-offset-4">home</a></li>
22+
</ul>
23+
</main>
24+
)
25+
}
26+
27+

0 commit comments

Comments
 (0)