Product preview card build with Astro and Tailwind CSS
Design comparison
Solution retrospective
Learning new CSS tricks such as adding spacing between letters and adjusting line height. What I would do differently is handle the dual image differently. I believe the solution is to use the element, but I could not figure out how to map its functionality to the Astro equivalent - so I used the "hidden" declaration instead which is not ideal.
What challenges did you encounter, and how did you overcome them?Spend way too much time tweaking spacing, text size, text weight, etc. Perhaps Figma might help.
What specific areas of your project would you like help with?Using the Astro component to select different images based on the screen size. The documentation, that I found, does not seem to explain how to do this (assuming it is even possible to do with this component).
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