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

Product Preview Card

sttilstra•130
@sttilstra
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?

First attempt at implementing a mobile design vs larger display in a solution. I used media queries and found you thankfully don't have to re-do everything, but make some tweaks here and there. Lots of back and forth in the css file to remember what you named things. Maybe setting those up beforehand or while you are doing one design could be helpful.

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

I couldn't figure out the add to cart button with the icon for the longest time. I was able to find that you could nest the cart icon in the button so it could look correct and function as it should. That was tough and took research.

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

Asking for help on the mobile design part - specifically I could not figure out how to get the normal greyed out price in line with the sale price. Minor detail, but would like to know what to change in order to get those two items level.

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