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 Solution using Next.js + Tailwind CSS

@jmadilia

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


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 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