import { Title, Meta } from "@solidjs/meta"; import { HttpStatusCode } from "@solidjs/start"; import { useNavigate, useLocation } from "@solidjs/router"; import { createSignal, Show } from "solid-js"; import { TerminalErrorPage } from "~/components/TerminalErrorPage"; import { useDarkMode } from "~/context/darkMode"; // Component that crashes when rendered function CrashComponent() { throw new Error("Terminal crash test - triggering error boundary"); } export default function NotFound() { const navigate = useNavigate(); const location = useLocation(); const { isDark } = useDarkMode(); const [glitchText, setGlitchText] = createSignal("404"); const [shouldCrash, setShouldCrash] = createSignal(false); const errorContent = (
error: HTTP {glitchText()} - Not Found
✗
Failed to resolve route
The requested path does not exist in the routing table
→ Location:{" "} {location.pathname}
ℹ Type help to see available commands, or try one of the suggestions below
); const quickActions = (
Quick commands:
); return ( <> {/*@ts-ignore (intentional crash)*/} 404 Not Found | Michael Freno ?~`0123456789"} glitchSpeed={300} glitchThreshold={0.85} glitchIntensity={0.7} navigate={navigate} location={location} errorContent={errorContent} quickActions={quickActions} footer={ <> 404{" "} | Page Not Found } onGlitchTextChange={setGlitchText} commandContext={{ triggerCrash: () => setShouldCrash(true), isDark: isDark() }} /> ); }