diff --git a/client/src/app/App.js b/client/src/app/App.js index 1bf1c6e1..4f6a8b2d 100644 --- a/client/src/app/App.js +++ b/client/src/app/App.js @@ -35,6 +35,8 @@ import PrivacyPolicy from '../components/Legal/PrivacyPolicy/PrivacyPolicy'; // ✅ Import RecentlyViewedSection import RecentlyViewedSection from '../components/RecentlyViewedSection'; +import NotFound from '../components/NotFound.js'; + function App() { const [loading, setLoading] = useState(true); @@ -101,6 +103,7 @@ function App() { } /> } /> } /> + } /> {/* ✅ Render RecentlyViewedSection only once here */} diff --git a/client/src/components/NotFound.js b/client/src/components/NotFound.js new file mode 100644 index 00000000..21bce654 --- /dev/null +++ b/client/src/components/NotFound.js @@ -0,0 +1,135 @@ +import React from "react"; +import { Box, Typography, Button } from "@mui/material"; +import { motion } from "framer-motion"; +import { useNavigate } from "react-router-dom"; + +export default function NotFound() { + const navigate = useNavigate(); + + return ( + + {/* Floating 404 */} + + + 404 + + + + + + + Oops! Page not found + + + The page you’re looking for doesn’t exist or has been moved. Let’s get + you back on track. + + + + {/* Button */} + + + + + + + + + + + ); +}