Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Buy Now Pop-Up #29

Open
Alexandrbig1 opened this issue Sep 25, 2024 · 1 comment
Open

Buy Now Pop-Up #29

Alexandrbig1 opened this issue Sep 25, 2024 · 1 comment
Assignees
Labels
hacktoberfest This label marks contributions eligible for Hacktoberfest rewards during the open-source celebration

Comments

@Alexandrbig1
Copy link
Collaborator

Alexandrbig1 commented Sep 25, 2024

  1. Modal Title
  • The modal window should have a title that displays “BUY NOW” prominently at the top.
  1. Form Elements
  • Include a form within the modal that contains the following <input> elements:

    • First Name: A text input for the user's first name.
    • Last Name: A text input for the user's last name.
    • Email: An email input for the user's email address, ensuring proper email formatting.
    • Phone Number: A text input for the user's phone number, using a pattern to validate phone number formats.
    • Card Number: A text input for the user's credit/debit card number, with validation for card number formats.
    • Message: A text area for users to leave additional comments or requests.
  • Implement minimum validation for each input field using the pattern attribute to ensure users provide valid data:

    • For the first name and last name, the pattern could require at least two characters.
    • For the email, use a standard email format pattern.
    • For the phone number, implement a pattern that allows only valid phone number formats (e.g., 10 digits).
    • For the card number, ensure it follows the correct format for credit/debit card numbers (e.g., 16 digits).
    • The message text area does not require a specific validation pattern but can have a character limit if desired.
  1. Submit Button
  • Include a “Submit” button of type submit that processes the form data.
  • When the button is clicked, the modal should close, indicating to the user that the form has been submitted.
@Alexandrbig1 Alexandrbig1 added the hacktoberfest This label marks contributions eligible for Hacktoberfest rewards during the open-source celebration label Sep 28, 2024
@Alexandrbig1
Copy link
Collaborator Author

@VictorManzanilla in html file, here, no need to add Doctype declaration etc...it's file already is loaded to the main index.html file. Just add everything inside on div container that was created for this file.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
hacktoberfest This label marks contributions eligible for Hacktoberfest rewards during the open-source celebration
Projects
Development

No branches or pull requests

2 participants