A simple React authentication portal with Login, Register, and Forgot Password pages, built using pure React (.js) and CSS .
This project is perfect for learning React component structure, state management, and basic form validation.
gdg-auth/ ββ public/ β ββ index.html ββ src/ β ββ App.js β ββ App.css β ββ components/ β β ββ Login.js β β ββ Register.js β β ββ ForgotPassword.js β ββ index.js ββ package.json
yaml Copy code
- Login page with validation for empty fields and valid email.
- Register page with validation for:
- Empty fields
- Email format
- Password length (minimum 6 characters)
- Password confirmation
- Forgot Password page with mock email reset flow.
- Single-page navigation between Login, Register, and Forgot Password using React state.
- Styled with plain CSS and GDG-inspired colors.
- Gradient background inspired by GDG colors.
- Modern card layout for forms.
- Interactive buttons and hover effects.
- Error and info messages styled for clarity.
- Clone the repository:
git clone https://github.com/Deepitha123/GDG.git cd gdg-auth Install dependencies:
npm install Run the project:
npm start Open http://localhost:3000 to view in the browser.
π οΈ Technologies Used React.js (Functional components + hooks)
CSS
JavaScript (ES6+)
π Future Improvements Add password strength meter on registration.
Integrate real authentication with backend (Firebase, Node.js, etc.).
Add form animations and responsive design.
Implement Remember Me and Show/Hide password functionality.
Add unit testing with Jest and React Testing Library.