A sleek and responsive platform for secure user authentication and intuitive design, built with HTML, CSS, and JavaScript.
- Responsive Design π±π»: Automatically adjusts to any screen size for a seamless experience.
- Form Validation β : Ensures users input both email and password before login.
- Password Toggle ποΈ: Allows users to show or hide their password with a single click.
- Local Storage Authentication πΎ: Retrieves and verifies credentials from local storage for secure login.
- Google Sign-In Button π: Placeholder for future integration with Google login.
- HTML5: For structuring the webpage.
- CSS3: For stylish designs, including shadows, buttons, and layouts.
- JavaScript (ES6): For handling form logic and local storage interactions.
- Font Awesome: For password visibility icons.
- Google Fonts: For a modern, clean look.
- A modern web browser like Google Chrome or Firefox.
- Basic knowledge of HTML, CSS, and JavaScript.
-
Clone or Download the project files:
git clone <repository-url>
-
Open the Project:
Navigate to the folder and openindex.htmlin your browser.
/project-root
β
βββ index.html # Main HTML file
βββ style.css # CSS file for styling
βββ script.js # JavaScript file for form validation and logic
-
Login Form:
- Users must enter an email and password.
- Validates input and matches credentials with local storage.
- Successful login redirects users to
course.html.
-
Password Toggle ποΈ:
- Click the eye icon to toggle password visibility.
-
Login Validation β :
- Displays error messages for incorrect email or password.
-
Adding Users:
- Use browser developer tools to store user credentials in local storage:
localStorage.setItem("allAdmin", JSON.stringify([{ email: "admin@example.com", password: "admin123", name: "Admin", id: 1 }])); localStorage.setItem("allUser", JSON.stringify([{ email: "user@example.com", password: "user123", name: "User", id: 2 }]));
- Use browser developer tools to store user credentials in local storage:
-
Sign-In:
- Enter a registered email and password to log in.
-
Password Visibility:
- Use the toggle button to view or hide your password.
- Google Sign-In Integration π: Enable users to log in with their Google accounts.
- Backend Integration πΎ: For enhanced security and functionality.
- Sign-Up Functionality π: A dedicated page for new user registration.
- Font Awesome for the password toggle icons.
- Google Fonts for the modern font design.