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

Newsletter sign-up form with success message

roopxx•120
@roopxx
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 most proud of the email validation functionality I implemented. It was a challenge to ensure that the form would correctly identify and reject improperly formatted email addresses, but I was able to achieve this using Web API Validation in JavaScript. Next time, I would like to explore more advanced form validation techniques, perhaps incorporating a library or RegEx to handle this more efficiently.

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

One of the main challenges I faced was making the form responsive for different screen sizes. I initially struggled with getting the layout to look right on mobile devices. However, by using a mobile-first design approach and carefully implementing media queries, I was able to create a layout that looks good on both mobile and desktop screens.

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

I would appreciate feedback on my use of CSS Flexbox for the layout. I'm still learning and would like to know if there are more efficient or cleaner ways to achieve the same result. Additionally, I would like to know if there are better ways to handle form validation in JavaScript.

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 roopxx'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