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

Newsletter Form

sass/scss
Srishti Chaudhary•310
@itsmesrishti
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?

I'm proud that I added the additional functionality of showing the state of valid email as well.

In future, I would like to create a more comprehensive regex. I just did the basic format right now because I wanted to do it on my own but the comprehensive regex for email will I guess be the same universally?! so for this project I let it go.

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

I encountered some challenges while attaching submit event listener to button only to find out that it can only be attached to element.

Then I struggled with limiting the number post period to 4. Google helped.

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

I guess with structuring of the js code. Like should I be retrieving all the elements required right at the start like I did right now or I can do it as required. What would be better performance-wise or structure-wise?

Any other advice on the project is also welcomed :)

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 Srishti Chaudhary'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