Skip to content
  • Unlock Pro
  • Log in with GitHub
Solution
Submitted about 1 year ago

Product Preview Card

Mouad ASSEL•100
@Mouadasel
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?

I'm proud of creating a responsive, accessible layout for the Product Preview Card component, which maintains its design integrity across screen sizes. Using semantic HTML, CSS Grid, and Flexbox improved both the structure and readability of my code, and adding smooth hover/focus effects enhanced user interaction without overwhelming the design.

Next time, I’d incorporate SCSS to make styling more manageable and experiment with custom animations for smoother transitions. I’d also focus on image optimization to improve performance, especially for mobile users. These changes would enhance both the user experience and maintainability of the code in more complex projects.

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

One major challenge I encountered was ensuring that the card layout adapted smoothly across different screen sizes, especially managing image resizing and text alignment in the mobile view. To overcome this, I used a mobile-first workflow and experimented with CSS Grid and Flexbox until I found a balance that kept the layout clean and responsive. Another challenge was refining the hover and focus states to look cohesive with the design. I addressed this by testing different color contrasts and subtle animations, ultimately achieving an interaction style that feels natural and accessible for users.

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

In this project, I'd appreciate help with fine-tuning the responsive design, particularly ensuring the layout remains balanced on smaller screens without sacrificing readability. I'd also like feedback on optimizing my CSS structure—specifically, how to make my styles more maintainable and reusable for future projects. Lastly, any tips for enhancing hover and focus states to improve user interaction would be great!

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 Mouad ASSEL'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