Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found

Submitted

Newsletter sign up and success message using Vanilla Javascript

P
Rupali 780

@rupali317

Desktop design screenshot for the Newsletter sign-up form with success message coding challenge

This is a solution for...

  • HTML
  • CSS
  • JS
2junior
View challenge

Design comparison


SolutionDesign

Solution retrospective


What are you most proud of, and what would you do differently next time?

I was able to solve the challenge based on the requirements.

However, next time I would like to use less of Javascript and rely on the CSS for better performance, simplicity, maintainability and CSS's declarative nature. (for instance check the email pattern using the pattern attribute of the input and rely on the in-built validation)

What challenges did you encounter, and how did you overcome them?

The only challenge that I encountered was to decide if I should use Javascript or CSS to check the validity of the email. Ultimately, I decided to stick to the challenge's requirement. However, in real life, I would explain to the product owner, the technical advantages of relying on CSS, which could deviate a little from the original requirement.

What specific areas of your project would you like help with?

What do you think about the accessibility aspect of my code? Please suggest improvements

Community feedback

@najahaja

Posted

Your newsletter subscription form is well-designed and user-friendly. The layout is clean, and the responsiveness works well across different devices. The inclusion of clear error messages and a success page enhances the user experience. Great job on the overall implementation!

1

P
Rupali 780

@rupali317

Posted

@najahaja Thank you!

0

Please log in to post a comment

Log in with GitHub
Discord logo

Join our Discord community

Join thousands of Frontend Mentor community members taking the challenges, sharing resources, helping each other, and chatting about all things front-end!

Join our Discord