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

nft_card

NayyabAqib•650
@nayyabaqib
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 am proud of how I structured the NFT card using HTML & CSS. I used Flexbox to align elements properly and applied box-shadow to give the card a modern look. The hover effect on the image, where an overlay appears, enhances the user experience. Next time, I would like to improve accessibility by adding ARIA attributes and making the design more responsive for smaller screens.

What challenges did you encounter, and how did you overcome them?

One of the challenges I faced was centering the card on the page and making sure it remained responsive. Initially, I struggled with positioning, but I resolved it by using Flexbox with align-items and justify-content properties. Another issue was getting the hover effect on the image to work correctly, which I fixed by using position: absolute inside a relative container.

What specific areas of your project would you like help with?

This project helped me improve my CSS layout skills, especially in working with Flexbox and hover effects. I also learned how to use CSS transitions to make animations smoother. Additionally, I understood the importance of writing clean and maintainable code for future modifications.

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