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

Product Preview Card Component

melanielogan74•140
@melanielogan74
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?

My goal for this challenge was to use flex and grid for the responsive design, making sure to not rely on fixed widths or heights. Also, I used the picture tag to size the image for mobile and desktop without having to use media queries.

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

I attempted to use portrait and landscape modes to accommodate users turning their devices in different directions, but I could not get it to work well for tablets, so I commented it out.

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

I'd like to make the designs more responsive by using more automatic sizing for things like images and containers. I couldn't quite get it with the picture for this challenge. Also, I'd like to use the portrait and landscape media queries, but need help figuring out how to size for various devices.

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 melanielogan74'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