Submitted 2 months agoA solution to the NFT preview card component challenge
responsive nft-card preview page with scss, flex
sass/scss
LVL 2
@viipzy

Solution retrospective
What are you most proud of, and what would you do differently next time?
One part I’m especially proud of is how I handled the hover overlay effect on the image. Instead of adding extra elements or pseudo-elements, I used the container’s background itself to create the reveal.
.img-container:hover { background: url(./images/icon-view.svg); background-color: hsla(178, 100%, 50%, 1); background-size: 10%; background-repeat: no-repeat; background-position: center; cursor: pointer; }
Code
Loading...
Please log in to post a comment
Log in with GitHubCommunity feedback
No feedback yet. Be the first to give feedback on Vipzy’s solution.
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