Submitted 10 months agoA solution to the Product preview card component challenge
Sass, mobile-first Product Preview Card
P
@ldg

Solution retrospective
What are you most proud of, and what would you do differently next time?
This was mainly a Sass practice project for me, I'm happy that I'm feeling more comfortable troubleshooting and generally working with Sass.
What challenges did you encounter, and how did you overcome them?I got stuck on getting the img srcset to work. I found that while the I seeing the image size change, I wasn't getting the desktop image; just a larger view of the mobile image. I did some reading on MDN on responsive images and realized I needed to use the <picture> element to get the images to switch.
Code
Loading...
Please log in to post a comment
Log in with GitHubCommunity feedback
No feedback yet. Be the first to give feedback on Scott'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