Submitted 7 months agoA solution to the Product preview card component challenge
Responsive product page using media queries and JavaScript
sass/scss
@Charles7458

Solution retrospective
What are you most proud of, and what would you do differently next time?
I'm proud of the JavaScript I wrote for this webpage.
if(window.innerWidth<=430) {
document.getElementById("img").src="mobile.jpg";
}
What challenges did you encounter, and how did you overcome them?
I didn't know how to change the image according to screen width. I used JavaScript to do it.
What specific areas of your project would you like help with?Any suggestions are welcome. :)
Code
Loading...
Please log in to post a comment
Log in with GitHubCommunity feedback
No feedback yet. Be the first to give feedback on Charles7458'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