Submitted almost 2 years ago
Responsive product preview card component with HTML + CSS
@carolsemeao
Design comparison
SolutionDesign
Solution retrospective
What are you most proud of, and what would you do differently next time?
I redone this challenge after a year of being a WordPress developer intern. I am impressed on how many things I changed compared to the first attempt. For the next time, I'd probably choose better CSS class names
What challenges did you encounter, and how did you overcome them?The only challenge was to create mixins in SCSS for the media queries
What specific areas of your project would you like help with?None :)
Community feedback
- @keltiekPosted 8 months ago
The desktop version looks great!
I think you could have use <picture> instead of using CSS hidden to manage mobile and desktop images.
I did the following:
<picture> <source srcset="./images/image-product-desktop.jpg" media="(min-width: 768px)" /> <img src="./images/image-product-mobile.jpg" alt="perfume" /> </picture>
Marked as helpful1@carolsemeaoPosted 8 months agoThank you very much! I just applied these changes. Totally forgot that <picture> exists @keltiek
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