Skip to content
Submitted over 2 years ago

Product preview card component - Tailwind and NextJS

tailwind-css, next
LVL 2
n0rrman370
@n0rrman
A solution to the Product preview card component challenge

Solution retrospective


I couldn't use the next/image component to change between two different images, so I used the <picture> tag instead. Would a better solution be to only use the long desktop image and crop it using next/image?

Code
Loading...

Please log in to post a comment

Log in

Community feedback

No feedback yet. Be the first to give feedback on n0rrman’s solution.

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