diff --git a/src/Routes/Router.tsx b/src/Routes/Router.tsx index 10894f4..616938e 100644 --- a/src/Routes/Router.tsx +++ b/src/Routes/Router.tsx @@ -10,8 +10,7 @@ import Home from "../pages/Home/Home.tsx"; import Activity from "../pages/Activity.tsx"; import Community from "../pages/Community/Community.tsx"; import PrivacyPolicy from "../pages/Privacy/PrivacyPolicy.tsx"; // ✅ Updated import path to match your new folder structure -import Profile from "../pages/Profile/Profile.tsx"; -import ProtectedRoute from "../components/ProtectedRoute"; +import NotFound from "../pages/NotFound/NotFound.tsx"; const Router = () => { return ( @@ -31,6 +30,9 @@ const Router = () => { {/* Privacy Policy page route */} } /> + + {/* 404 Not Found Catch-All Route */} + } /> ); }; diff --git a/src/pages/NotFound/NotFound.tsx b/src/pages/NotFound/NotFound.tsx new file mode 100644 index 0000000..8ce1025 --- /dev/null +++ b/src/pages/NotFound/NotFound.tsx @@ -0,0 +1,58 @@ +import { Link } from "react-router-dom"; +import { Home, Ghost } from "lucide-react"; +import { motion } from "framer-motion"; + +const NotFound = () => { + return ( +
+ + {/* Animated Ghost Illustration */} +
+ + + + + {/* Floating Shadow */} + +
+ +

+ 404 +

+

+ Spooky... This page is a ghost town. +

+ +

+ The link you followed has vanished into the digital void, or maybe it never existed at all! +

+ + + + Teleport Back Home + +
+ + {/* Background decorative blobs */} +
+
+ ); +}; + +export default NotFound;