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 form with success message HTML CSS JavaScript

@auri222

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 used the key-up event to check the user input when they typed in the wrong email format immediately
  • I will use React JS for this challenge next time.

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

In this challenge, I used JavaScript to change the image source according to the screen size, and then I met the "Cannot set property src of null" problem. After that, I googled (ofc) and found the solution from Stack Overflow that said I should put all the variables into the DOMContentLoaded event and that fixed the problem. Read more from here.

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

Feel free to notify me about any problems I have in the code. Thanks.

Community feedback

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