Design comparison
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
- @realsalePosted over 2 years ago
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@andreasremdtPosted over 2 years ago@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@realsalePosted over 2 years ago@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 GitHubJoin 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