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 Solution

@peterhannell

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


Any feedback/suggestions welcome!

Community feedback

Naveen Gumaste 10,480

@NaveenGumaste

Posted

Hay ! Peter Good Job on challenge

These below mentioned tricks will help you remove any Accessibility Issues

-> Add Main tag after body <main class="container"></main>

-> Learn more on accessibility issues

If this comment helps you then pls mark it as helpful!

Have a good day and keep coding 👍!

Marked as helpful

0

@peterhannell

Posted

@Crazimonk,

Thanks for your feedback, much appreciated!

1
PhoenixDev22 16,990

@PhoenixDev22

Posted

Hello @peterhannell ,

I have some suggestions regarding your solution:

To tackle the accessibility issues:

  • There should be two landmark components as children of the body element - a main (which will be the NFT card ) and a footer (which will be the attribution).<Footer> should be in the <main >read more about A simplified web page, might look something like this:

  • Anything with a hover style in a design means it's interactive. you need to add an interactive element around the image Equilibrium #3429, Jules Wyvern.

It would be better

<h1><a href="#">Equilibrium #3429</a></h1>
<p>Creation of <a href="#">Jules Wyvern</a></p>

  • For any decorative images, each img tag should have empty alt="" andaria-hidden="true"attributes to make all web assistive technologies such as screen reader ignore those images in alt="Icon View" alt="Ethereum", alt="Clock"

  • the link should be wrapping the original image and either have Sr-only text, an aria-label or alt text that says where that link takes you.

  • The avatar's alt text shouldn't be alt="Avatar" You can use Jules Wyvern as an alt text.

  • You can read more about alt text

  • You can use an unordered list <ul> for class="flex"and in each <li>, there would be <img> and<p>(for the text ).

  • You can use border-top to the class="card__footer">instead of <hr/>.

  • Section lacks heading. Consider using h2-h6 elements to add identifying headings to all sections.(even though no need for a <section> in this challenge)

  • I don't recommend to change the base html size. This has huge accessibility implications for those of us with different font size or zoom requirements.


html {
  font-size: 62.5%;
}

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

  • Using percentages % for width can cause a lot of problems , consider using max-width. That will let the component grow up to a point and be limited.

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

Marked as helpful

0

@peterhannell

Posted

@PhoenixDev22,

Thanks! That's really helpful. I will incorporate your suggestions into my solution.

1
Rio Cantre 9,710

@RioCantre

Posted

Hello there! Nice work with this one. Looking at your solution, I would recommend the following for you...

  • Remove margin-top: 1rem; in .card__desc p:first-of-type rule set to align the elements in .flex
  • Remove unnecessary code to keep it clean

Above all, you did really well. Keep it up!Cheers!

Marked as helpful

0

@peterhannell

Posted

@RioCantre,

Thank you! I appreciate the feedback and suggestions.

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