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

Stano153 70

@Stano153

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


Very good challenge. I was struggling a little bit with overlay but I figured it out in the end. Everything is created with flexbox which I am getting familiar with more and more. Let me know what you think and feel free to give any advice and feedback. Looking forward to do another challenge :)

Community feedback

@0xabdulkhaliq

Posted

Hello there 👋. Congratulations on successfully completing the challenge! 🎉

  • I have other recommendations regarding your code that I believe will be of great interest to you.

SUGGESTIONS 💡 :

  • The .overlay element is just transparent when user hovers the cursor on the image, but the transparency setted for element .overlay also affects it child view-icon's opacity.
  • We can resolve this easily by optimizing the css rules, now add the following rules
.image-container:hover .overlay {
  opacity: 1;
}

.overlay {
  background-color: hsla(178, 100%, 50%, 50%);
}
  • Explanations for suggestions, we provided opacity: 1 and we have modified the opacity of background-color with the help of hsla color code. So our view-icon will have 100% of opacity.

.

I hope you find this helpful 😄 Above all, the solution you submitted is great !

Happy coding!

Marked as helpful

1

Stano153 70

@Stano153

Posted

@0xAbdulKhalid I didn't even realize it. That is helpful tip. Thank you very much :) Additional question, I see that on screenshot 0.041 ETH is cut in line and 3 days left too. Do you know why is that happening?

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