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

Christophβ€’ 130

@TheChrisP

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


Try to learn HTML & CSS with some Challenges her. Would appreciate feedback.

Thanks in advance

Community feedback

PhoenixDev22β€’ 16,990

@PhoenixDev22

Posted

Hello @TheChrisP ,

I have some suggestions:

  • For any decorative images, each img tag should have emptyalt=""and aria-hidden="true" attributes to make all web assistive technologies such as screen reader ignore those images like in alt="Eye Hover Icon", alt="clock-icon" and alt="Ethereum Icon" AND avatar's one andimage-equilibrium.jpgshould be descriptive (not "Creator Photo" you can use the the avatar name Jules Wyvern) .

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

  • You can use an unordered list<ul> to wrap class="card-value-text" and in each <li> there's <img> and <p>.

  • Don't use span for meaningful content.

  • It is essential that interactive elements have focus-visible styles as well as hover styles. These need to be really clear and obvious as they are needed to help a keyboard user know where is focused on the page.

  • the eye image doesn't really need to be in the html, you could do it with css. If you want it to stay in html it needs to be aria-hidden orrole presentationwith empty alt.

  • You can use <figure> and <figcaptin> for the avatar div (to use more semantic tags).

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

Hopefully this feedback helps.

Marked as helpful

0
Rio Cantreβ€’ 9,710

@RioCantre

Posted

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

  • Include description with the alt in img tags
  • Add border-radius: 8px; in .hover rule set

Overall, you did well in implementing the design. Hope this helps and Keep up the good work!

Marked as helpful

0

Christophβ€’ 130

@TheChrisP

Posted

@RioCantre Yes thanks, that helps a lot, fixed it now :)

1
Kamasah-Dicksonβ€’ 5,610

@Kamasah-Dickson

Posted

Your design looks perfect on desktop but it just need a little bit of margin all around on mobile

Keep codingπŸ‘

Marked as helpful

0

Christophβ€’ 130

@TheChrisP

Posted

@Kamasah-Dickson thanks for the feedback, add a little bit her :)

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