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

@itssumo

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 am aware its not completely right like it suppose to be. Coudn't get the Image hover state right. I am trying to get back at css and web and submitting this solution so I am not stuck on this for long time. Perhaps In future after learning some more I'll get back to it.

Community feedback

Hadizaā€¢ 200

@Thedeezat

Posted

Hello, somnath šŸ‘‹

Good work on finishing this challenge! i have a few suggestions i think can help.

For the image hover effect i think you should try something like this, for the html

   <figure class="container">
      <span class="image_cover"></span>
      <img class="child-1" src="./images/image-equilibrium.jpg" alt="nft">
      <figcaption class="heading">
        <a href="#"> Equilibrium #3429</a>
      </figcaption>
    </figure>

As long as the image element and the figcaption element is wrapped in the same container, it will be easier when styling to target any of the child's element for the hover effect.

.container {
  position: relative;
}
.container:hover a {
  color: #00FFF8;
}
.child-1,
.image_cover {
  opacity: 1;
  width: 100%;
  height: 200px;
  border-radius: 10px;
  position: relative;
  z-index: 1;
}
.container:hover .image_cover {
  position: absolute;
  z-index: 2;
  background-color: rgba(0, 255,  248,  .5);
}

And also, i think you should check out šŸ‘‰ semantic html

Well that's it, nice work again! i hope this helps.

Marked as helpful

0

@itssumo

Posted

@Thedeezat Sure I'll look into it and add those in code thank you very much

0
Hadizaā€¢ 200

@Thedeezat

Posted

@itssumo The pleasure is mine šŸ˜„

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