Skip to content
  • Unlock Pro
  • Log in with GitHub
Solution
Submitted 8 months ago

NFT preview card component

bootstrap
MGDev25•220
@TheWizCoder
A solution to the NFT preview card component challenge
View live sitePreview (opens in new tab)View codeCode (opens in new tab)

Solution retrospective


What are you most proud of, and what would you do differently next time?

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

Code
Loading...

Please log in to post a comment

Log in with GitHub

Community feedback

No feedback yet. Be the first to give feedback on MGDev25'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

Stay up to datewith new challenges, featured solutions, selected articles, and our latest news

Frontend Mentor

  • Unlock Pro
  • Contact us
  • FAQs
  • Become a partner
  • Use cases

Explore

  • Learning paths
  • Challenges
  • Solutions
  • Articles

Community

  • Discord
  • Guidelines

For companies

  • Hire developers
  • Train developers
© Frontend Mentor 2019 - 2025
  • Terms
  • Cookie Policy
  • Privacy Policy
  • License