From 0c0ee849a630f125a8f08c10ee71dfdbc6b7c7ce Mon Sep 17 00:00:00 2001
From: schererleander <leander@schererleander.de>
Date: Fri, 27 Jun 2025 00:42:58 +0200
Subject: chore

---
 src/pages/404.tsx | 21 +++++++++++++++++++++
 1 file changed, 21 insertions(+)
 create mode 100644 src/pages/404.tsx

(limited to 'src/pages/404.tsx')

diff --git a/src/pages/404.tsx b/src/pages/404.tsx
new file mode 100644
index 0000000..d9eed89
--- /dev/null
+++ b/src/pages/404.tsx
@@ -0,0 +1,21 @@
+import { useNavigate } from "react-router-dom";
+import { useEffect } from "react";
+
+export default function NotFound() {
+  const navigate = useNavigate();
+
+  useEffect(() => {
+    const timer = setTimeout(() => {
+      navigate('/', { replace: true });
+    }, 4000);
+
+    return () => clearTimeout(timer);
+  }, [navigate]);
+
+  return (
+    <>
+      <h1>404 - Not found</h1>
+      <img src="/images/404.webp" className="rounded-lg" />
+    </>
+  );
+}
-- 
cgit v1.3.1

