Skip to content

Commit

Permalink
feat: add ErrorComponent for user-friendly navigation on 404 pages
Browse files Browse the repository at this point in the history
  • Loading branch information
Paranoia8972 committed Dec 17, 2024
1 parent 003f695 commit 22c9037
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions src/app/redirect-not-found/page.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
import Link from "next/link";

export default function ErrorComponent() {
return (
<div>
<p>
It seems you've hit a dead end. {""}
<Link
href={"/"}
className="underline decoration-gray-600 decoration-2 transition hover:decoration-current"
>
Let's get you back on track!
</Link>
</p>
</div>
);
}

0 comments on commit 22c9037

Please sign in to comment.