diff --git a/RestroHub-FrontEnd/src/pages/public/NotFound.jsx b/RestroHub-FrontEnd/src/pages/public/NotFound.jsx new file mode 100644 index 00000000..197e76a4 --- /dev/null +++ b/RestroHub-FrontEnd/src/pages/public/NotFound.jsx @@ -0,0 +1,28 @@ +// src/pages/public/NotFound.jsx +import { Link } from "react-router-dom"; + +const NotFound = () => { + return ( +
+
+

+ 404 +

+

+ Page Not Found +

+

+ Sorry, the page you are looking for does not exist or has been moved. +

+ + Back to Home + +
+
+ ); +}; + +export default NotFound; \ No newline at end of file diff --git a/RestroHub-FrontEnd/src/routes/index.jsx b/RestroHub-FrontEnd/src/routes/index.jsx index 84b98327..ab1299a4 100644 --- a/RestroHub-FrontEnd/src/routes/index.jsx +++ b/RestroHub-FrontEnd/src/routes/index.jsx @@ -13,6 +13,7 @@ import Login from '../pages/public/Login'; import Register from '../pages/public/Register'; import ForgotPassword from '../pages/public/ForgotPassword'; import PrivacyPolicy from '../pages/public/PrivacyPolicy'; +import NotFound from '../pages/public/NotFound'; // Customer Pages import RestaurantMenu from '../pages/customer/RestaurantMenu'; @@ -69,7 +70,7 @@ const AppRoutes = () => { {/* ========== 404 FALLBACK ========== */} - } /> + } /> ); };