Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 24 additions & 0 deletions frontend/src/app/not-found.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
import Link from "next/link";
import { Button } from "@/components/ui/button";
import { GoBackButton } from "@/components/GoBackButton";

export default function NotFound() {
return (
<div className="flex min-h-screen flex-col items-center justify-center gap-6 px-4 text-center">
<h1 className="text-6xl font-bold tracking-tight">404</h1>
<h2 className="text-2xl font-semibold">Page Not Found</h2>
<p className="max-w-md text-muted-foreground">
The page you&apos;re looking for doesn&apos;t exist or may have been moved.
</p>

<div className="flex flex-wrap items-center justify-center gap-3">
<Link href="/">
<Button>Return to Home</Button>
</Link>
<Link href="/dashboard">
</Link>
<GoBackButton />
</div>
</div>
);
}
11 changes: 11 additions & 0 deletions frontend/src/components/GoBackButton.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
"use client";

import { Button } from "@/components/ui/button";

export function GoBackButton() {
return (
<Button variant="outline" onClick={() => window.history.back()}>
Go Back
</Button>
);
}
Loading