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

product-preview-card-component

CHOUIA Mohammed•170
@chouiamohammed
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?

Next time, I would focus more on refining my CSS for better readability and maintainability. I also want to experiment with more modern layout techniques like CSS Grid or Flexbox to enhance responsiveness

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

One of the challenges I encountered was changing images from mobile to desktop views. I struggled with implementing responsive images that adapt to different screen sizes properly.
To overcome this, I researched different techniques and learned about the <picture> element and the srcset attribute. These allow images to change dynamically based on screen width. I also experimented with CSS media queries to adjust background images for different devices.

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

I would like help with improving my responsive design techniques. While I was able to switch images between mobile and desktop, I feel there might be more efficient ways to handle it.
I'm also looking for feedback on my class naming and HTML structure. I want to ensure that my code follows best practices for readability and maintainability.
If anyone has suggestions on how to better organize my CSS or optimize my layout, I’d love to hear them!

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 CHOUIA Mohammed'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