Skip to content

A modern, fully responsive signup form built with HTML, CSS, and JavaScript, featuring real-time form validation, password generation, and a beautiful, user-friendly interface.

License

Notifications You must be signed in to change notification settings

Abdur-Rahman-Apu/Signup-form

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

32 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

🌟 Signup Form with Validation 🌟

HTML Badge CSS Badge JavaScript Badge License: MIT

πŸ”’ A modern, fully responsive signup form built with HTML, CSS, and JavaScript, featuring real-time form validation, password generation, and a beautiful, user-friendly interface.


Project Demo

Demo of the Signup Form in Action: This GIF showcases the form filling process, including validation and error handling.

πŸ”— Try the Live Demo


🎨 Screenshots

Signup Form

Success Page


πŸš€ Features

  • βœ… Form Validation:

    • πŸ”€ Name: Only allows uppercase, lowercase letters, and spaces.
    • πŸ“§ Email: Supports standard formats like name@domain.com or name@domain.bd.
    • πŸ“± Phone: Supports Bangladeshi mobile number formats: +8801793614417, 8801939409322, 01981504997.
    • πŸ”‘ Password: Ensures password strength with rules:
      • At least one uppercase letter.
      • At least one lowercase letter.
      • At least one number.
      • At least one special character.
      • Minimum length: 8 characters.
    • 🌐 LinkedIn Profile: Validates LinkedIn profile URLs like https://www.linkedin.com/in/your-profile/.
  • πŸ” Password Generator: Automatically generates a secure, 12-character password using ASCII values.

  • πŸ’ͺ Password Strength Indicator: Displays strength (weak, medium, strong) based on compliance with password rules.

  • 🎨 Modern UI/UX: A beautiful and responsive design focused on user experience.

  • ⚑ Real-time Error Handling:

    • Shows error messages for invalid inputs.
    • Automatically hides errors when the user starts typing.
  • πŸŽ‰ Success Page: After successful validation, a success page is displayed, with an option to return to the signup page.

  • πŸ“± Fully Responsive: Works seamlessly on mobile, tablet, and desktop devices.


πŸ“‹ Validation Rules

Input Field Validation Rule Regular Expression
Name Only uppercase, lowercase letters, and spaces. /^[a-zA-Z ]+$/
Email Lowercase letters, hyphen, numbers, @, and dots. /^[a-z\d-]+@[a-z\.]+\.[a-z]+$/
Phone (Bangladesh) Format: +88 or 88, followed by 01, next digit 3-9, 8 more digits. /^\+?(88)?(01)[3-9]\d{8}$/
Password At least one uppercase, lowercase, digit, and special character. /^(?=.*[a-z])(?=.*[A-Z])(?=.*[\d])(?=.*[\!"#$%&'\(\)\*\+,-\/:;\<\>\?@{}|~[]^.\_]).{8,}$/`
LinkedIn Profile URL Only valid LinkedIn profile URLs. /^https:\/\/www\.linkedin\.com\/in\/[a-z\-]+\/$/

πŸ”‘ Password Generation

πŸ”’ The Password Generator feature creates strong, secure passwords tailored to your needs! Here’s what it offers:

πŸ“ Password Characteristics:

  • πŸ”’ Length: 12 characters for enhanced security.
  • 🎭 Complexity: Includes at least one:
    • Uppercase letter (A-Z) πŸ…°οΈ
    • Lowercase letter (a-z) πŸ…±οΈ
    • Digit (0-9) 0️⃣
    • Special character (e.g., !@#$%^&*) ✨

⚠️ Compliance:

  • Ensures adherence to all password rules for maximum security.

πŸ’» Example: By clicking the "Generate Password" button, the password field is automatically filled with a randomly generated, secure password.


πŸ“Š Password Strength Indicator

πŸ” The Password Strength Indicator evaluates the password based on the following criteria:

  • Strong πŸ’ͺ: Meets all validation rules.
  • Medium 🟑: Missing at least 1 rule.
  • Weak πŸ”΄: Missing all rules.

πŸ’‘ How to Use

  1. Clone the repository:

    git clone https://github.com/Abdur-Rahman-Apu/Signup-form.git
  2. Open the index.html file in your browser πŸ–₯️

  3. Fill in the form: πŸ“

    • The form validates inputs in real-time.⏱️
    • Error messages are shown for invalid inputs.❌
  4. Generate a secure password using the "Generate Password" button. πŸ”

  5. Submit the form and, if all inputs are valid, you'll be redirected to the success page. βœ…


πŸ› οΈ Challenges Solved

Overcoming challenges is part of the journey! Here are some key obstacles I tackled during this project:

  • πŸ”‘ Password Generation: Developed a robust password generator that utilizes ASCII characters to create strong passwords.

  • πŸ’ͺ Password Strength Evaluation: Implemented a real-time strength checker that evaluates password strength as users type, ensuring compliance with security rules.

  • βš™οΈ Event Handling: Mastered event handling by manually triggering input events using dispatchEvent, allowing for seamless handling of dynamic changes in the form.


πŸ“± Responsive Design

Our sign up form is fully responsive, ensuring a seamless experience across all devices! 🌟

  • Adaptive Layout: The form adjusts beautifully to different screen sizes, making it user-friendly on:
    • Desktops πŸ’»
    • Tablets πŸ“±
    • Mobile Devices πŸ“²

Experience optimal usability whether you're at home, in the office, or on the go! πŸš€


πŸ› οΈ Technologies Used

HTML5 CSS3 JavaScript


πŸ™ Acknowledgements

🌟 Inspiration

πŸ“š Resources

  • Documentation: MDN Web Docs for providing excellent documentation.
  • Design Inspiration: Dribbble for creative design ideas.
  • Fonts: Google Fonts for a wide selection of fonts.
  • Icons: FontAwesome for beautiful icons.
  • Troubleshooting & Guidance: Stack Overflow for valuable community support.

πŸ“œ License

This project is licensed under the MIT License.
See the LICENSE file for details on usage and distribution.


πŸ‘¨β€πŸ’» Author

πŸ‘€ Abdur Rahman Apu


πŸ“« Contact

For any inquiries, suggestions, or feedback, please reach out via email:
abdurrahmany418@gmail.com

You can also connect with me on LinkedIn


πŸ“… Future Improvements

  • Implement a back-end server for storing user data.
  • Enhance accessibility features for better user experience.

πŸ‘€ Show your support

If you like this project, please ⭐ the repository!

Thank you for visiting! πŸš€

About

A modern, fully responsive signup form built with HTML, CSS, and JavaScript, featuring real-time form validation, password generation, and a beautiful, user-friendly interface.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published