Skip to content
  • Unlock Pro
  • Log in with GitHub
Solution
Submitted over 1 year ago

Responsive Newsletter Signup Page with Email Validation[HTML, CSS, JS]

vite
Tharun Raj•1,330
@Code-Beaker
A solution to the Newsletter sign-up form with success message challenge
View live sitePreview (opens in new tab)View codeCode (opens in new tab)

Solution retrospective


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

This is a re-upload of the solution I submitted a few days ago.

I have fixed the validation issue using the Validator npm package and now everything works as expected. This time, I used Vite to create the application and install all the necessary packages. It felt like a much better workflow compared to just writing HTML, CSS and JS inside an empty folder. This project is built using:

  • HTML5
  • CSS
  • JS
  • Vite
  • Validator
What challenges did you encounter, and how did you overcome them?

Because of the library validation was not very hard to implement. But, the logic of toggling the container and the modal was a little confusing. I found it a little hard to decide between the usage of classList.add and classList.remove on clicking the button.

In the end, I figured it out.

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

Any suggestions are welcome!

Code
Loading...

Please log in to post a comment

Log in with GitHub

Community feedback

No feedback yet. Be the first to give feedback on Tharun Raj's solution.

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

Stay up to datewith new challenges, featured solutions, selected articles, and our latest news

Frontend Mentor

  • Unlock Pro
  • Contact us
  • FAQs
  • Become a partner
  • Use cases

Explore

  • Learning paths
  • Challenges
  • Solutions
  • Articles

Community

  • Discord
  • Guidelines

For companies

  • Hire developers
  • Train developers
© Frontend Mentor 2019 - 2025
  • Terms
  • Cookie Policy
  • Privacy Policy
  • License