Skip to content
  • Unlock Pro
  • Log in with GitHub
Solution
Submitted 8 months ago

Product preview

P
Danilo•360
@danilo2420
A solution to the Product preview card component challenge
View live sitePreview (opens in new tab)View codeCode (opens in new tab)

Solution retrospective


What are you most proud of, and what would you do differently next time?

Well, I finally dived into the world of making things responsive.

What challenges did you encounter, and how did you overcome them?

I don't think I provided a good solution for changing the image based on screen width. I tried 'srcset', but it didn't seem to behave the way it was supposed to (that, or I didn't understand it). And using 'picture' messed up the layout. So, in the end, I came across a method that seemed to work, but it's probably not the best one.

What specific areas of your project would you like help with?

I'd like to learn how to add responsiveness to the images. I couldn't really figure out how to make the browser change the image when I wanted it to.

Code
Loading...

Please log in to post a comment

Log in with GitHub

Community feedback

No feedback yet. Be the first to give feedback on Danilo'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

Stay up to datewith new challenges, featured solutions, selected articles, and our latest news

Frontend Mentor

  • Unlock Pro
  • Contact us
  • FAQs
  • Become a partner
  • Use cases

Explore

  • Learning paths
  • Challenges
  • Solutions
  • Articles

Community

  • Discord
  • Guidelines

For companies

  • Hire developers
  • Train developers
© Frontend Mentor 2019 - 2025
  • Terms
  • Cookie Policy
  • Privacy Policy
  • License