diff --git a/frontend/src/App.jsx b/frontend/src/App.jsx index 5f653ab..779c987 100644 --- a/frontend/src/App.jsx +++ b/frontend/src/App.jsx @@ -23,6 +23,7 @@ import HelpAndSupport from './Pages/HelpandSupport'; import Emergency from './Pages/Emergency'; import AboutUs from './Pages/AboutUs'; import Error from './Pages/Error'; +import User from './Pages/User'; function App() { @@ -51,6 +52,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/Herosection.jsx b/frontend/src/Pages/Herosection.jsx index 07acf86..00a5a08 100644 --- a/frontend/src/Pages/Herosection.jsx +++ b/frontend/src/Pages/Herosection.jsx @@ -27,6 +27,9 @@ const Herosection = () => { const StationCLick = () => { navigate('/Stations'); // Navigates to the login page }; + const UserCLick = () => { + navigate('/user'); // Navigates to the login page + } const NavigationCLick = () => { navigate('/Navigation'); // Navigates to the login page }; @@ -67,8 +70,7 @@ const Herosection = () => {

- - +
diff --git a/frontend/src/Pages/User.jsx b/frontend/src/Pages/User.jsx new file mode 100644 index 0000000..b0910bc --- /dev/null +++ b/frontend/src/Pages/User.jsx @@ -0,0 +1,61 @@ +import React, { useState , useEffect } from 'react'; +import logo from '../assets/stationsaarthi.svg'; // Import your logo +import { useNavigate } from 'react-router-dom'; +import backicon from '../assets/svg/backicon.svg'; // Assuming you have a back icon + + +const User = () => { + useEffect(() => { + document.title = 'Station Saarthi | UserPage'; + }, []); + + const navigate = useNavigate(); + + const RegisterClick = () => { + navigate('/Register'); // Navigates to the User page + }; + const LoginClick = () => { + navigate('/Login'); // Navigates to the User page + }; + + const HomeClick = () => { + navigate('/'); // Navigates to the home page + }; + + + + return ( +
+ {/* Logo and Title */} + +
+

Welcome To

+
+
+ Station Saarthi Logo +

Station Saarthi

+

Your Trusted Platform Guide

+
+ +
+

+ Already have an account?{' '} +

+
+ + +

+ Don't have an account?{' '} +

+ +
+ + + +
+ ); +}; + +export default User; \ No newline at end of file