diff --git a/frontend/src/App.jsx b/frontend/src/App.jsx index fe613ad..5f653ab 100644 --- a/frontend/src/App.jsx +++ b/frontend/src/App.jsx @@ -22,7 +22,7 @@ import Payment from './Pages/Payment'; import HelpAndSupport from './Pages/HelpandSupport'; import Emergency from './Pages/Emergency'; import AboutUs from './Pages/AboutUs'; - +import Error from './Pages/Error'; function App() { @@ -49,7 +49,8 @@ function App() { } /> } /> } /> - + } /> + } /> {/* This route is just for testing protected routes it can be removed later when there is a route other than login or signup */} diff --git a/frontend/src/Pages/Error.jsx b/frontend/src/Pages/Error.jsx new file mode 100644 index 0000000..68d59d5 --- /dev/null +++ b/frontend/src/Pages/Error.jsx @@ -0,0 +1,36 @@ +import React from 'react'; +import { useNavigate } from 'react-router-dom'; +import image from '../assets/StatioSarthi-error-404.png' +const Error = () => { + const navigate = useNavigate(); + const LoginClick = () => { + navigate('/'); // Navigates to the Home page + }; + const RegisterClick = () => { + navigate('/helpandsupport'); // Navigates to the Help & Support page + }; + return ( +
+
+
+

404

+
+
+
+ +
+

+ Looks Like you're + on wrong Track

+

The line you're looking for is not available!

+
+ + +
+
+
+
+ ); +}; + +export default Error; \ No newline at end of file diff --git a/frontend/src/assets/StatioSarthi-error-404.png b/frontend/src/assets/StatioSarthi-error-404.png new file mode 100644 index 0000000..41725de Binary files /dev/null and b/frontend/src/assets/StatioSarthi-error-404.png differ