Newsletter sign-up form with success message (Vanilla-js)
Design comparison
Solution retrospective
I used javascript to change the illustration 'src' based on screen size.
window.innerWidth
gives the width of the window
i had trouble with css selector specificity, where an id overwrites a class. so i just change the id selectors i used to classes
What specific areas of your project would you like help with?none, but any feedback is always welcome. 😊
Community feedback
- @Grego14Posted 7 months ago
Hello! congratulations on completing the challenge!
My only recommendation is that you take a look at this element, since with it you will not need to use JavaScript to change the src of the image. <picture>.
I hope this helps!
Marked as helpful1@StanmancerPosted 7 months ago@Grego14
Thanks for the feedback. This will help me a lot in the future.
0 - @sivaprasath2004Posted 7 months ago
Hello, I would like to extend my congratulations on completing this challenge.
- I'm glad to appreciate your code neat and readable. Maintaining clean and understandable code is essential for its long-term usability and efficiency.
- In your solution, there may be an issue with images sticking at the top layer on the mobile site. I have faced this problem before, and I have a solution.
@media (max-width:500px) { #main{ height: 100vh; overflow-y: scroll; } }
- HTML you are using form
<input />
tag that was not proper checkExample: 123@gma
this is can be allow 'Thank you form'.Please use Javascript to check make sure that will be proper work . - Alert Message
valid email address
that is not alerting your sollution.
#form #alert-input { background-color: #fee2e2; border: 2px solid #ff6257; }
- Author name and challenge completed content you will be used
<div class="attribution" >
this is will be not proper in mobile sitebottom:5px;
use<footer><div class="attribution"></div></footer>
use this footer tag that will be fixed in end of the page content .
Marked as helpful0
Please log in to post a comment
Log in with GitHubJoin 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