Skip to content
  • Unlock Pro
  • Log in with GitHub
Solution
Submitted almost 2 years ago

Responsive Product Preview Card Component

Abouelhouda Iliass•480
@ilyesab
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 the fact that I used calc functions and a combination of vw / rem units to make the typography / spacing responsive without media queries.

I'd like to make use of the clamp function next time as it seems to be a powerful function to achieve responsive typography.

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

The main challenge was ensuring the design looks good on all devices without cluttering the CSS with a huge number of media queries.

I tried to make the CSS responsive by default without using media queries. though, I still used media queries to adjust the width of the container and to split the design into two columns on large screen sizes.

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

I think I still struggle on how to achieve a design that looks optimal across the wide range of devices in the market today.

I tried to make typography and padding responsive in this particular challenge using the calc function and vw / rem units. but I'm unsure if I used them correctly.

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 Abouelhouda Iliass'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