A modern authentication UI built with React, Formik, Yup, TailwindCSS and React Router.
This project simulates a SaaS-style auth flow with register, login and a simple dashboard.
- React (functional components)
- Formik
- Yup
- TailwindCSS
- React Router
- Register form with validation
- Login form with validation
- Username and email validation
- Password confirmation
- Dashboard page showing user info
- Logout functionality
- LocalStorage-based authentication simulation
- Modern SaaS-style UI
- Register – Create a local account with validation on all fields.
- Login – Sign in using the account you created.
- Dashboard – Shows a fake “logged in” state with username and email.
npm install
npm run devThen open the URL printed in the terminal (typically http://localhost:5173).
- Start the dev server with
npm run dev. - Open the app in your browser.
- Go to the Register page and create a new account.
- Go to the Login page and sign in with the same email and password.
- After login you will be redirected to the Dashboard.
- Click Log out on the dashboard to clear the fake session and return to login.
- All authentication is simulated using
localStorage. - The dashboard exists only to demonstrate the UI and navigation flow.
- Do not use this project for production authentication without adding a real backend.