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

Yuko-code 235

@Yuko-code

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


For this challenge I learned to make the hover effects work. Any feedback will be appreciated.

Community feedback

Rio Cantre 9,710

@RioCantre

Posted

Hello! Good job on implementing the hover state effectively. The design is pretty close to the original but I could suggest the following for you:

  • Inside the .creator-text rule set add a margin-top: 1rem or equivalent to align it on the center
  • Its better to have margin-left: 0 and margin-right: 1.5rem in the .creator-img to balance the space and make it align to the rest of the content.
  • The icons should align to the text, in order to do that you could try
.price {
    color: var(--primary-2);
    font-weight: 400;
    display: flex;
    justify-content: center;
}

.time-left {
    font-weight: 400;
    grid-area: D;
    justify-self: end;
    display: flex;
    justify-content: center;
}

img {
    margin-right: 0.5rem;
}
  • The hr tag should have a width of 300px to give full length on the inner content. (only applicable if you made changes on the above suggestions.)

  • The images should have alt attribute to give emphasis whenever it fails to upload.

  • Wrap the .attribution in footer tag to make it more readable.

  • Clean the whitespaces in your code.

  • Use a validator to check any errors in your solution.

Keep up the good work ! I hope this helps.

Marked as helpful

0

Yuko-code 235

@Yuko-code

Posted

@RioCantre

Thank you so much for the detailed advices !! This will help me a lot :)

0
Rio Cantre 9,710

@RioCantre

Posted

@Yuko-code You can mark it helpful if it really does ;)

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