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

Responsive Product Preview Card Component

@Devs-advocate

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?

It was a good challenge, since I hadn't done one for a few weeks. It tends to point out all the things I don't know well. I'll research more on responsive design before the next one. I'm really looking to learn how to approach situations so I can embed my own systematic way of of solving problems in future.

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

Adding the cart icon to the button was a bit tricky. I got around this with display: inline-flex on the button element; and the (cart) tag within the button element. This worked because it center-aligned them. I had to change it in the end for responsive desktop design.

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

I'm ok with how similar the outcome is to the designs. I wasn't aiming for total perfection, just to learn how to approach the solutions. I'm trying to workout the units I should be using for responsive design rather that just hard coding px. It seemed to work out ok. This reference from Kevin Powell, seems useful: https://whatunit.com/ I didn't come across it till close to the end of my solution though.

Community feedback

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