My NFT preview card component solution

Solution retrospective
I'd like your feedback on this project. Do you think I could have achieved the hover state on the main image in a smarter way - with less code?
Please log in to post a comment
Log in with GitHubCommunity feedback
- @osoriodev
Hello @akinsanyajoseph 👋
Your solution looks good. I see that the eye icon is not centered properly, you can do this to fix it:
.overlay-icon { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); }
With this it should work fine.
Marked as helpful
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