Design comparison
Solution retrospective
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.
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