From 2131d5fec97f6163678fdec40dd2d6e9f7a5e58c Mon Sep 17 00:00:00 2001 From: "Alex Pooley (@zuedev)" Date: Thu, 30 Oct 2025 23:40:37 +0000 Subject: restructure repo into a monorepo --- projects/96/src/app/not-found.js | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 projects/96/src/app/not-found.js (limited to 'projects/96/src/app/not-found.js') diff --git a/projects/96/src/app/not-found.js b/projects/96/src/app/not-found.js new file mode 100644 index 0000000..7298535 --- /dev/null +++ b/projects/96/src/app/not-found.js @@ -0,0 +1,31 @@ +"use client"; + +import { useEffect, useState } from "react"; +import { useRouter } from "next/navigation"; + +export default () => { + const router = useRouter(); + + const [seconds, setSeconds] = useState(5); + + useEffect(() => { + const interval = setInterval(() => { + setSeconds((prev) => prev - 1); + }, 1000); + + if (seconds === 0) { + router.push("/"); + } + + return () => clearInterval(interval); + }, [seconds]); + + return ( +
+

404 - Page Not Found

+

+ Redirecting to Home in {seconds} seconds... +

+
+ ); +}; -- cgit v1.2.3