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 card

P

@medic-code

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?

Getting the responsive elements working together and using BEM for more consistent HTML.

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

The main challenge i had was around centering the cards, eventually settled on a flexbox approach to both mobile and desktop approach.

The figma file was not consistent in the product details spacing which present a challenge in providing consistencies. So its not absolutely pixel perfect for that reason but from a UI perspective is more consistent.

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

HTML semantic structure CSS structure and general CSS feedback on where i can improve

Community feedback

Bakhtiar 380

@b4khtiar

Posted

the border-radius implementation in your product-card__details is not there, is that intentional?

Based on the design, the border radius applied on all 4 corners of the card.

0

P

@medic-code

Posted

Nope thanks for pointing it out! @b4khtiar

Update: fixed it now.

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