Submitted about 1 year ago
Product Preview Card Component Solution using Next.js + Tailwind CSS
@jmadilia
Design comparison
SolutionDesign
Solution retrospective
The most difficult part was getting the Next.js Image component to play nice with Tailwind.
The part I'm most unsure of is how to get the image to be properly responsive on smaller screens. As of the current solution, I had to cheat a bit and use a hardcoded value for the height of the image on smaller screens. Any advice on how to properly fix this would be greatly appreciated!
Community feedback
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