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 using HTML & CSS

@Abdelghafour122

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


This was an easy one, i made this after taking a break from coding for a while, but it was fun!

Community feedback

PhoenixDev22 16,950

@PhoenixDev22

Posted

Hello Abdelghafour,

Congratulation on completing this frontend mentor challenge.

I have some suggestions regarding your solution:

The link wrapping the equilibrium image should either have Sr-only text, an aria-label or alt text that says where that link takes you.

  • The avatar's alt should not be avatar. It's meaningless, you can use the creator's name Jules Wyvern. Read more how to write an alt text

  • Never use <span> or <div>alone for meaningful content , you can use <p> instead.

  • To use more semantic tags , you can use <ul> to wrap class="worth" and in each <li> there would be<img>and <p>.

You can use <figure> and <figcaption > for the avatar's part.

CSS

  • To center the component on the middle of the page , you can use the flexbox properties and min-height: 100vh for the <body>(and you can remove the card's margin.)

  • width: 353px; an explicit width is not a good way . consider using max-width to card instead and a little margin to the card .That will let it shrink a little when it needs to.

General points :

  • Really important to keep css specificity as low/flat as possible. The best way to do styling is single class selectors.

  • It's recommended to use em and rem units .Both em and rem are flexible, Using px won't allow the user to control the font size based on their needs.

  • Remember a css reset on every project. That will do things like set the images to display block and make all browsers display elements the same.

Overall , your solution is good. Hopefully this feedback helps.

Marked as helpful

0

@Abdelghafour122

Posted

@PhoenixDev22 thank you so much for taking the time to write this, i really appreciate your feedback!

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