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 Card Equilibrium #3429

@LeonardoSchuquel

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


I had problems with the display of the second image but I hope I solved it in the best way

Community feedback

Elaine 11,400

@elaineleung

Posted

Hi Leonardo, great job on your second challenge! I think you did well in finding a solution to display the eye icon and how to position it; often times it's the creative solutions that help us learn how to do problem solving.

For the overlay, I also would use position: absolute, like what you did. For the eye, instead of using position: absolute, I would use add display: grid on the overlay and use that to put the eye in center position.

Here's how it looks like:

.overlay {
   display: grid;
   place-content: center;
   // rest of your CSS
}

// you can just remove the position: absolute properties for the eye icon

You can use the same technique to center your component; all you need to do is to add these lines in the body selector:

body {
   display: grid;
   place-content: center;
   min-height: 100vh;
}

Hope this helps you out a bit, and happy coding! 😊

Marked as helpful

0

@LeonardoSchuquel

Posted

@elaineleung Elaine I'm glad you liked mine I confess that when I finished working I thought it was too messy and that it should have been a much easier and more convenient way to have done it so I'm glad you liked it

1
Elaine 11,400

@elaineleung

Posted

@LeonardoSchuquel Hey Leonardo, I also made a lot of mistakes in my earlier projects (which is why I've been going back to fix them), so no worries, I totally understand how you feel! I honestly think you should be proud of yourself in putting this together, because your solution looks pretty close to the design at least, even if you used a lot of "hacks" along the way. Just keep going and keep learning how to get better, and one day you'll see how far you've come 🙂

Marked as helpful

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