Not Found
Request failed with status code 502
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found

Submitted

Responsive product preview card component with HTML + CSS

P

@carolsemeao

Desktop design screenshot for the Product preview card component coding challenge

This is a solution for...

  • HTML
  • CSS
1newbie
View challenge

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

keltiek 210

@keltiek

Posted

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 helpful

1

P

@carolsemeao

Posted

Thank 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 GitHub
Discord logo

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