diff --git a/frontend/src/App.jsx b/frontend/src/App.jsx index 4c3b851..e43116e 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,7 @@ 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..fa26c6b --- /dev/null +++ b/frontend/src/Pages/Error.jsx @@ -0,0 +1,37 @@ + +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