Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found

Submitted

NFT Card Component utilizando HTML e CSS

Evandroβ€’ 100

@evandromaris

Desktop design screenshot for the NFT preview card component coding challenge

This is a solution for...

  • HTML
  • CSS
1newbie
View challenge

Design comparison


SolutionDesign

Community feedback

Travolgi πŸ•β€’ 31,420

@denielden

Posted

Hi Evandro, great work on this challenge! πŸ˜‰

Here are a few tips for improve your code:

  • first, remove width and height from container class
  • add main tag and wrap the card for improve the Accessibility
  • img element must have an alt attribute, it's very important! add it to author image
  • You can add the effect :hover creating a div that appears on hover. I used tailwind but you can still see and understand which css properties you can use to do the same. Look here -> my solution
  • remove all unnecessary code, the less you write the better as well as being clearer: for example the div container of element like .text-area class
  • centering a div with absolute or relative positioning is now deprecated, it uses modern css like flexbox or grid
  • use flexbox to container class to center the card. Read here -> best flex guide
  • after, add min-height: 100vh to container class because Flexbox aligns child items to the size of the parent container
  • instead of using px use relative units of measurement like rem -> read here

Overall you did well 😁 Hope this help!

Marked as helpful

1

Evandroβ€’ 100

@evandromaris

Posted

@denielden thanks for the tips, I will study flexbox.

1

Please log in to post a comment

Log in with GitHub
Discord logo

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