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

productPreview_firstFigmaChallenge

P
Anjelica•190
@Anjie-MF
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 I built the layout from scratch without relying on AI. In addition, I figured out how to properly structure the responsive image component and the "Add to Cart" button (including hover states and icons). Looking back, I'd like to approach spacing (padding/margin) more systematically next time — maybe by setting up a layout grid earlier or adding temporary outlines/borders during development to catch inconsistencies faster.

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

Spacing was a big challenge, especially balancing margin, padding, and ensuring the image filled its container properly across screen sizes. At first, I thought I fixed the problem by adjusting the card width, but further testing revealed deeper issues. To solve it, I went back to basics: inspecting elements in dev tools, experimenting with flexbox vs. grid, reviewing my two-year-old code, and getting feedback from AI to spot mistakes I missed. It reinforced how important careful testing and debugging are, not just "visual fixes.

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

I'd love feedback on my layout structure, particularly if there are cleaner ways to handle spacing and alignment earlier in the project without needing multiple rounds of tweaking. I'd also appreciate advice on best practices for structuring media queries and scaling a layout for larger screen sizes in a more maintainable way.

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