NFT preview card component

Solution retrospective
I’m most proud of implementing the hover effect on the NFT image using CSS positioning and maintaining a clean layout with Bootstrap. Next time, I’d reduce dependency on external libraries by writing custom CSS utilities and add more interactive features with JavaScript.
What challenges did you encounter, and how did you overcome them?Creating the overlay with the "eye" icon on image hover while maintaining the card’s aspect ratio was tricky. Initially, the hover state distorted the layout.
Solution:
Used Bootstrap’s position-relative on the parent (img-container) and position-absolute for the overlay (img-view).
Set explicit dimensions for the overlay (w-100 h-100) to cover the image fully.
Added overflow-hidden to prevent content shifting.
What specific areas of your project would you like help with?Which part of my NFT card needs improvement? Performance, accessibility, or animations? Let’s focus on one first
Please log in to post a comment
Log in with GitHubCommunity feedback
- @Polariz625
Hello, really excellent job there using Bootstrap. only one think I would say you can do to improve this work, is giving "cursor: pointer;" to the card's main image, the NFT's name and the NFT's creator's name. that would be like my only advice (from a noob's point of view).
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