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 component

#accessibility#lighthouse
P

@andreasremdt

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


Hey there,

This is my solution to the product preview card component. My goal was to make the markup as accessible as possible and the design as close to Figma as possible.

The HTML is enhanced by (schema.org)[https://schema.org/], marking the container as a product with appropriate properties, such as name, price, and category. The image is responsive and loads depending on the viewport's size, thanks to srcset and sizes.

Stylewise, the challenge was built mobile-first, introducing a single media query to break the layout for better desktop support. Let me know what you think :)

Community feedback

jerry 320

@realsale

Posted

Yo! @andreasremdt,

Congrats taking and completing the design and providing such quality code!

Thanks for introducing schema.org, This was my first time hearing of it and I'm pretty sure it's worth exploring.

1

P

@andreasremdt

Posted

@realsale Thank you for the feedback! Yeah, I haven't used schema.org before, either, I always like challenging myself with these solutions and to learn new things :)

1
jerry 320

@realsale

Posted

@andreasremdt Thanks for this bro, now it's my opportunity to learn this solution and try and see how can it help my future project.

1

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