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

Product preview card

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

In this challenge, I tried to focus on a mobile-first workflow as it's something I haven't done before! I found it to be a lot faster to set up the initial styling, as I was able to get the basics out of the way first.

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

I did struggle a little bit with utilisng CSS Grid, as it has been a while and I have only very limited experience with it, so this was good to get some more practice in. Using Grid and Flexbox together was also something new for me, as I haven't worked with many multiple element designs. It was difficult knowing there was an easier way when I was staring down the road of individually setting each element's grid-area manually.

Another issue I had was with the SVG, I'm not sure whether it was my lack of understanding with using SVG's or if it was the link provided, but I was unable to change the size of it. In the end, I found another free shopping cart SVG to use, as the scale of it on the desktop wasn't working.

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

Any suggestions or resources for using SVG's within CSS would be helpful.

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