diff --git a/frontend/src/Pages/Register.jsx b/frontend/src/Pages/Register.jsx index 30b9018..3aa76af 100644 --- a/frontend/src/Pages/Register.jsx +++ b/frontend/src/Pages/Register.jsx @@ -1,182 +1,156 @@ -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"; -import { AiFillEye, AiFillEyeInvisible } from "react-icons/ai"; // Import the eye icons +import React, { useState, useEffect } from 'react'; +import logo from '../assets/stationsaarthi.svg'; +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 navigate = useNavigate(); + const LoginClick = () => navigate('/Login'); + const HomeClick = () => navigate('/'); - const [name, setName] = useState(""); - const [phoneNumber, setPhoneNumber] = useState(""); - const [email, setEmail] = useState(""); - const [password, setPassword] = useState(""); - const [showPassword, setShowPassword] = useState(false); // State for password visibility + const [name, setName] = useState(''); + const [phoneNumber, setPhoneNumber] = useState(''); + const [email, setEmail] = useState(''); + const [password, setPassword] = useState(''); + const [confirmationMessage, setConfirmationMessage] = useState(''); + const [passwordStrength, setPasswordStrength] = useState(''); // State for password strength feedback - const handleRegister = (e) => { - e.preventDefault(); - // Handle registration logic here - }; + const handleRegister = (e) => { + e.preventDefault(); + setConfirmationMessage("Your account is created successfully. Please login to access the website."); + setName(''); + setPhoneNumber(''); + setEmail(''); + setPassword(''); + }; - return ( - <> -
- Your Trusted Platform Guide -
-+ Already have an account?{' '} + +
+