Skip to content

Commit 37ad87f

Browse files
committed
Better not-found
1 parent 73cc88b commit 37ad87f

File tree

1 file changed

+14
-3
lines changed

1 file changed

+14
-3
lines changed

apps/web/app/not-found.tsx

Lines changed: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,18 @@
1+
"use client"
2+
import { usePathname } from "next/navigation"
3+
14
export default function NotFound() {
5+
const pathname = usePathname()
6+
const v0url = "v0.codehike.org" + pathname
27
return (
3-
<h2 className="w-full h-[80vh] flex justify-center items-center text-6xl">
4-
404
5-
</h2>
8+
<main className="w-full h-[80vh] flex flex-col gap-2 justify-center items-center">
9+
<h2 className="text-6xl mb-8">Page not found.</h2>
10+
<p>
11+
For older versions try:{" "}
12+
<a href={"https://" + v0url} className="text-primary underline">
13+
{v0url}
14+
</a>
15+
</p>
16+
</main>
617
)
718
}

0 commit comments

Comments
 (0)