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 preview card component using Tailwind CSS

#tailwind-css
Lucas Pausinā€¢ 90

@lucaspausin

Desktop design screenshot for the NFT preview card component coding challenge

This is a solution for...

  • HTML
  • CSS
1newbie
View challenge

Design comparison


SolutionDesign

Solution retrospective


Feedback welcome!

Community feedback

P
Robert McGovernā€¢ 1,095

@tarasis

Posted

Oh fudge, my comment failed, apologies this will be more terse. Congrats on finishing the challenge, it looks good. I don't see the problem with the preview image.

I can't really comment on the CSS/Tailwind, I haven't used it and don't like how cluttered it makes the HTML look. I find it hard to grok.

First I know these are just challenges, but get into the habit of providing useful alt text. Don't leave it as simply alt="" as you have here.

Where you can use semantic html rather than divs. For instance the first div has a role of main, in which case, why not use the main tag?

If an icon isn't important for screenreaders and such then add aria-hidden=true to them. Consider aria-label to provide more info that a sighted person might not need. For instance have an label that said "The price of the NTF image is 0.041 ethereum"

Best wishes for your next challenge.

Marked as helpful

0

@VCarames

Posted

Hey @lucaspausin, some suggestions to improve you code:

  • Stay away from using libraries until you fully grasp the fundamentals. This is the purpose of this challenges.

  • Your card is broken. The NFT image is taking up the entire card. I do not use Tailwinds so I can not provide assistance on how to fix it.

Happy Coding! šŸ‘»šŸŽƒ

0

P
Robert McGovernā€¢ 1,095

@tarasis

Posted

@vcarames Odd, I'm not seeing that problem in Safari. image is as large as expected. Looks good to me from 320px upwards.

0

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