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 using Next.js, Typescript and SASS

@AnthonyQY

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


Is there any way to make the "view" icon opacity: 1? SASS selectors are unable to access the .view class for some unknown reason. Maybe because CSS modules are in use?

Community feedback

Maksim 590

@MaxTarasevich

Posted

Hi Anthony!

You can easily solve your problem by setting the property background-color as rgba(0, 255, 247, 0.65);.

The opacity property when hovering over the .Card Image _wrapper block should be 1, respectively.

.Card_image__wrapper__MClPi:hover .Card_overlay__3i7Lc {
    opacity: 1.0;
}

You can't make the value of the opacity property of a child element greater than that of the parent element. Less - you can, no more!

Also add a display: block property to the image, as it has a smaller height than the parent, and it's noticeable on hover!

.Card_image__sWcC9 {
    display: block;
}

I hope my feedback was helpful!

Marked as helpful

1

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