A responsive web application featuring a complete authentication system with login, signup, and dashboard pages. Built with vanilla HTML, CSS, and JavaScript using hardcoded credentials for demonstration purposes.
Open login.html in your browser to try the application immediately!
- 🔐 Secure Authentication - Login system with hardcoded credentials
- 📝 User Registration - Signup functionality with validation
- 📊 Interactive Dashboard - User profile and statistics display
- 🎨 Modern UI/UX - Responsive design with smooth animations
- 💾 Session Management - Automatic login/logout with localStorage
- ⚡ Client-Side Only - No server setup required
- 📱 Mobile Responsive - Works on all device sizes
login.html- Login page with username/password formsignup.html- Registration page for new usersdashboard.html- Protected dashboard page with user informationstyles.css- Modern CSS styling for all pagesscript.js- JavaScript for authentication and page functionality
- Username and password authentication
- Hardcoded user credentials for testing
- Form validation
- Error messages for invalid credentials
- Automatic redirect to dashboard on successful login
- Link to signup page
- User registration form with validation
- Email validation
- Password confirmation
- Duplicate username/email checking
- Success messages
- Link to login page
- Protected page (requires login)
- Welcome message with username
- User profile information display
- Login statistics
- Quick action buttons
- Logout functionality
- Session management
You can use any of these credentials to login:
- Username:
admin| Password:admin123 - Username:
user| Password:user123 - Username:
demo| Password:demo123
- Open
login.htmlin your web browser - Use one of the hardcoded credentials above to login
- Or click "Sign up here" to create a new account
- After successful login, you'll be redirected to the dashboard
- Use the logout button to return to the login page
- Form validation on both client-side
- Session management using localStorage
- Automatic session timeout (1 hour)
- Password confirmation on signup
- Duplicate user checking
- Works in all modern browsers
- Responsive design for mobile devices
- Uses localStorage for session management
- Any modern web browser (Chrome, Firefox, Safari, Edge)
- No additional software or server setup required!
- Clone the repository:
git clone https://github.com/yourusername/simple-login-dashboard.git
- Navigate to the project directory:
cd simple-login-dashboard - Open
login.htmlin your web browser
- Start with the login page (
login.html) - Use hardcoded credentials or create a new account
- Explore the dashboard features
- Test the logout functionality
Contributions, issues, and feature requests are welcome! Feel free to check the issues page.
- Fork the project
- Create your feature branch (
git checkout -b feature/AmazingFeature) - Commit your changes (
git commit -m 'Add some AmazingFeature') - Push to the branch (
git push origin feature/AmazingFeature) - Open a Pull Request
This project is open source and available under the MIT License.
Your Name - [email protected]
Project Link: https://github.com/yourusername/simple-login-dashboard
- This is a client-side only application for demonstration purposes
- User data is stored in browser's localStorage
- Hardcoded credentials are defined in
script.js - Session expires after 1 hour of inactivity
Give a ⭐️ if this project helped you!