Skip to content
  • Unlock Pro
  • Log in with GitHub
Solution
Submitted almost 2 years ago

NFT Card Preview no Figma

web-components, styled-components
grgrnkoo•520
@grgrnkoo
A solution to the NFT preview card component challenge
View live sitePreview (opens in new tab)View codeCode (opens in new tab)

Solution retrospective


One more project was made by me. I'm getting closer to my goal of completing all free tasks on Frontend Mentor

Challenges I faced in this project:

  1. figcaption had 2% more height than image. Ended up adding a flex attribute to a figure box. Probably adding a cover property to an image would've led to the same result.

  2. Also spent some time experimenting with replacing figcaption with a common div. No difference at all. Just semantic

  3. Relative position of figure. Took a time to realize how to make an absolute figcaption fit into a figure

Would like to see your reviews!

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