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

Product preview card component

Eric Cruz•110
@ECHL003
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 most proud of getting challenge complete! It got to the point where I was worried I'd have to scrap the whole thing and start again from scratch but I managed to trial and error my way to a decent looking site.

I was going to change up my naming scheme but ended using the same one I'd been using these previous challenges. My current naming scheme works for smaller projects but this one showed that it could become convoluted rather quickly. I'll try to adapt a better naming scheme next time.

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

The media query was really difficult to get correctly. Having to stack the image on top the card was surprisingly difficult, but after messing around with a few values I managed to get the media query to work.

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 Eric Cruz'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