import { Title } from "@solidjs/meta"; import { HttpStatusCode } from "@solidjs/start"; import { useNavigate } from "@solidjs/router"; import { createEffect, createSignal, For } from "solid-js"; export default function NotFound() { const navigate = useNavigate(); const [glitchText, setGlitchText] = createSignal("404"); createEffect(() => { const glitchChars = "!@#$%^&*()_+-=[]{}|;':\",./<>?~`"; const originalText = "404"; const glitchInterval = setInterval(() => { if (Math.random() > 0.85) { let glitched = ""; for (let i = 0; i < originalText.length; i++) { if (Math.random() > 0.7) { glitched += glitchChars[Math.floor(Math.random() * glitchChars.length)]; } else { glitched += originalText[i]; } } setGlitchText(glitched); setTimeout(() => setGlitchText(originalText), 100); } }, 300); return () => clearInterval(glitchInterval); }); const createParticles = () => { return Array.from({ length: 50 }, (_, i) => ({ id: i, left: `${Math.random() * 100}%`, top: `${Math.random() * 100}%`, animationDelay: `${Math.random() * 3}s`, animationDuration: `${2 + Math.random() * 3}s` })); }; return ( <>
...or the page you're looking for has drifted into the void.
But don't worry, we can navigate you back to safety.
Error Code: 404 • Page Not Found