Skip to content

Commit 00283a5

Browse files
authored
Moved and enhanced not found page (#169)
1 parent f28a0b8 commit 00283a5

File tree

2 files changed

+45
-28
lines changed

2 files changed

+45
-28
lines changed

src/app/(docs)/not-found.tsx

-28
This file was deleted.

src/app/not-found.tsx

+45
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
import { buttonVariants } from "fumadocs-ui/components/api";
2+
import Image from "next/image";
3+
import Link from "next/link";
4+
import type { Metadata } from "next";
5+
6+
export const metadata: Metadata = {
7+
title: "404 | Page Not Found",
8+
};
9+
10+
export default function NotFound() {
11+
return (
12+
<div className="flex items-center w-full h-screen">
13+
<Image
14+
src="/icon.svg"
15+
alt="404"
16+
width={40}
17+
height={40}
18+
className="mx-auto hidden md:block absolute top-4 left-4"
19+
/>
20+
<div className="w-full space-y-6 text-center">
21+
<div className="space-y-2">
22+
<h1 className="text-[#F76F53] text-8xl font-bold tracking-tighter transition-transform">
23+
404
24+
</h1>
25+
<h2 className="text-4xl font-light tracking-tighter transition-transform">
26+
Page not found
27+
</h2>
28+
</div>
29+
<hr />
30+
<p className="text-[#CBC9BF]">
31+
Oops! You&apos;ve wandered off the Zen path. Let&apos;s guide you back
32+
to tranquility.
33+
</p>
34+
<Link
35+
className={buttonVariants({
36+
color: "outline",
37+
})}
38+
href="/"
39+
>
40+
Return to Docs
41+
</Link>
42+
</div>
43+
</div>
44+
);
45+
}

0 commit comments

Comments
 (0)