Design comparison
SolutionDesign
Solution retrospective
What are you most proud of, and what would you do differently next time?
The website is fully functional, with the entered email in the form being accessible on the server's side via the POST method in the form.
Community feedback
- @mroungouPosted 7 months ago
Hello @smithy773,
Congrats on completing the challenge!
I noticed you are using JavaScript to control the images of the respective device widths. You can use media queries to avoid
Here's what you could do:
<div class="header-image"> <img src="./assets/images/illustration-sign-up-mobile.svg" class="mobile" alt=""> <img src="./assets/images/illustration-sign-up-desktop.svg" class="desktop" alt=""> </div>
And add a media query and some other CSS:
.mobile { display: block; }
@media screen and (min-width: 1440px) { .mobile { display: none; } .desktop { display: block; } }
Let me know if you have any questions and keep up the good work :)
0
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