diff --git a/frontend/src/Pages/LoginPage.jsx b/frontend/src/Pages/LoginPage.jsx index 9e579c3..eead9e9 100644 --- a/frontend/src/Pages/LoginPage.jsx +++ b/frontend/src/Pages/LoginPage.jsx @@ -1,7 +1,7 @@ import React, { useState } 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 Login = () => { const [username, setUsername] = useState(''); const [password, setPassword] = useState(''); @@ -9,6 +9,9 @@ const Login = () => { const RegisterClick = () => { navigate('/Register'); // Navigates to the login page } + const HomeClick = () => { + navigate('/'); // Navigates to the home page + } const handleLogin = (e) => { e.preventDefault(); // Handle login logic here @@ -18,6 +21,7 @@ const Login = () => { return (
{/* Logo and Title */} +
Station Saarthi Logo

Station Saarthi

diff --git a/frontend/src/Pages/Register.jsx b/frontend/src/Pages/Register.jsx index e4e0a8a..d1f19c6 100644 --- a/frontend/src/Pages/Register.jsx +++ b/frontend/src/Pages/Register.jsx @@ -1,13 +1,16 @@ import React, { useState } from 'react'; import logo from '../assets/stationsaarthi.svg'; // Ensure the path is correct import { useNavigate } from 'react-router-dom'; - +import backicon from '../assets/svg/backicon.svg'; const Register = () => { const navigate = useNavigate(); const LoginClick = () => { navigate('/Login'); // Navigates to the login page }; + const HomeClick = () => { + navigate('/'); // Navigates to the home page + }; const [name, setName] = useState(''); const [phoneNumber, setPhoneNumber] = useState(''); @@ -20,8 +23,11 @@ const Register = () => { }; return ( + <> +
{/* Logo and Title */} +
Station Saarthi Logo

Station Saarthi

@@ -120,6 +126,7 @@ const Register = () => { className="text-blue-500 underline cursor-pointer"> Login

+ ); }; diff --git a/frontend/src/assets/svg/backicon.svg b/frontend/src/assets/svg/backicon.svg new file mode 100644 index 0000000..6b7667e --- /dev/null +++ b/frontend/src/assets/svg/backicon.svg @@ -0,0 +1,3 @@ + + + \ No newline at end of file