import { useLocation, Link } from "react-router-dom"; import { useEffect } from "react"; import { motion } from "framer-motion"; import { Terminal, AlertTriangle } from "lucide-react"; import { useSettings } from "@/contexts/SettingsContext"; const NotFound = () => { const location = useLocation(); const { playSound } = useSettings(); useEffect(() => { console.error("404 Error: User attempted to access non-existent route:", location.pathname); playSound('error'); }, [location.pathname, playSound]); return (
$ cd {location.pathname}
ERROR: Directory not found
The requested path does not exist on this server.
{` _____
/ \\
| X X |
| ^ |
| === |
\\_____/
LOST IN THE VOID`}
{/* Navigation */}
{'>'} Return to known territory:
playSound('click')} className="inline-block font-minecraft text-sm text-primary hover:text-glow border border-primary/50 hover:border-primary px-4 py-2 transition-all duration-200 hover:bg-primary/10" > cd /home