Download src/app/not-found.tsx from NAP1320/RotNot: direct link, hf CLI and curl.
- Browser
- Download file 1.74 kB
-
https://huggingface.co/spaces/NAP1320/RotNot/resolve/main/src/app/not-found.tsx
- Command line
-
hf download hf://spaces/NAP1320/RotNot/src/app/not-found.tsx
-
curl -L -o not-found.tsx https://huggingface.co/spaces/NAP1320/RotNot/resolve/main/src/app/not-found.tsx
1.74 kB
| import Link from "next/link"; | |
| import { Brain, Home } from "lucide-react"; | |
| export default function NotFound() { | |
| return ( | |
| <div className="flex items-center justify-center min-h-[70vh]"> | |
| <div className="flex flex-col items-center gap-6 text-center max-w-md px-4"> | |
| {/* Animated brain icon */} | |
| <div | |
| className="glass-md rounded-2xl p-6" | |
| style={{ | |
| background: | |
| "linear-gradient(135deg, rgba(99,102,241,0.15), rgba(139,92,246,0.10))", | |
| }} | |
| > | |
| <Brain size={48} style={{ color: "var(--primary)", opacity: 0.8 }} /> | |
| </div> | |
| {/* 404 header */} | |
| <div> | |
| <h1 | |
| className="text-5xl font-bold tracking-tighter mb-2" | |
| style={{ fontFamily: "var(--font-mono)", color: "var(--primary)" }} | |
| > | |
| 404 | |
| </h1> | |
| <h2 | |
| className="text-lg font-semibold" | |
| style={{ color: "var(--text-primary)" }} | |
| > | |
| Page not found | |
| </h2> | |
| </div> | |
| {/* Message */} | |
| <p className="text-sm leading-relaxed" style={{ color: "var(--text-secondary)" }}> | |
| This route doesn't exist — but your brain still does. | |
| <br /> | |
| Head back and keep training. | |
| </p> | |
| {/* Nav home */} | |
| <Link | |
| href="/" | |
| className="inline-flex items-center gap-2 px-5 py-2.5 rounded-lg text-sm font-medium transition-all duration-150 hover:brightness-110" | |
| style={{ | |
| background: "var(--primary)", | |
| color: "var(--primary-foreground)", | |
| }} | |
| > | |
| <Home size={16} /> | |
| Back to Dashboard | |
| </Link> | |
| </div> | |
| </div> | |
| ); | |
| } | |