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

Product Preview Card

P
jasoneczek•320
@jasoneczek
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 gained some experience using a couple new elements for me: and . When I come across new ways to solve problems I pause for a while. I like to read about them or watch something, and I feel like I am making progress and getting deep into learning. I found an opportunity once again to practice using clamp. The padding in the content area of the card slightly increases on the desktop version, and clamp worked perfectly for this.

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

I was having some trouble with the Fraunces font-face declaration. I could only get it to work by importing in my html head.

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

A few doubts I had are whether the default image should be the mobile or desktop version. I went with mobile, which works, but I don't know if that is the best practice. Button type: "submit" or "button"? I chose button because I don't think adding to cart submits data to the server. I've been trying to use BEM more often. Any feedback on how I named my classes would be of great help. Any other suggestions or improvements are also very welcome.

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