-
-
Notifications
You must be signed in to change notification settings - Fork 200
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
[Feat] #976
Comments
Hello Abdus-8747! Thanks for opening an issue in Ezyshop! 🚀
|
Hey @Abdus-8747, you want it so that when a user enters an email, only valid emails will be fetched, right? And for invalid emails, a popup alert message should appear? If I'm correct, please let me know, or describe in detail what exactly you mean. Also, tell me one thing, Abdus: how are you fetching so many valid emails? Is there any API or library that can fetch unlimited emails for free? We aren't using any paid service. |
Hey @mdazfar2 first of all thank you for your response, Yes, you're correct! And I am exited to work with you as it's first time for me as a beginner. |
@Abdus-8747, I’m not only talking about fetching "@"—I mean whether there is any free service available for fetching emails. If not, then using a non-existent email like (e.g., [email protected]) is not ideal, so let's leave that aside. Can you implement the newsletter functionality so that when a user enters their name and email and clicks the Checkout the below demo video for better understand 👇 2024-10-26.21-46-20.mp4 |
@mdazfar2 Bro actually i am just a begginer and dont have much knowledge of Mongo Db and Data bases......so i might not be right fit for this task |
No problem @Abdus-8747. |
Description
Issue Title: Add Email Validation to Newsletter Subscription Form with Stylish Alert
Description: Currently, the email input in the newsletter subscription section allows any text input.
We need to enhance the user experience by:
Ensuring the input field accepts only valid email addresses.
Displaying a cool and visually appealing alert message when the "Subscribe" button is clicked:
If the email format is valid, show a success message.
If the email format is invalid, prompt the user to enter a valid email address.
Acceptance Criteria:
The email field should validate the format of the input using a regular expression.
When the "Subscribe" button is clicked:
If the email is valid, display a stylish success alert (e.g., with custom colors, icons, and animations).
If the email is invalid, display a stylish error alert (e.g., with appropriate colors and icons to indicate an error).
Suggested Implementation:
Add an id attribute to the email input field and the subscribe button.
Use JavaScript to validate the email input.
Use CSS to design visually appealing alerts.
Screenshots
Checklist
The text was updated successfully, but these errors were encountered: