Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found

Submitted

Product Preview Card

P
jasoneczek 320

@jasoneczek

Desktop design screenshot for the Product preview card component coding challenge

This is a solution for...

  • HTML
  • CSS
1newbie
View challenge

Design comparison


SolutionDesign

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.

Community feedback

@mvassari73

Posted

good

0

Please log in to post a comment

Log in with GitHub
Discord logo

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