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 Components

P
Orkhan 60

@octopusmann

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`m a newbie in frontend. I would greatly appreciate it if you could suggest any tips for development.

Community feedback

Daniel 🛸 44,230

@danielmrz-dev

Posted

Hello @octopusmann!

Your project looks great!

It's quite a challenge to add that hover effect properly. Here's how you can do it:

HTML

<img src="images/image-equilibrium.jpg" alt="Equilibrium" class="pic">
  <div class="icon">
    <img src="images/icon-view.svg" alt="icon-view" class="icon-view">
  </div>

CSS

.pic {
   width: 300px;
   background: url('images/icon-view.svg') center center no-repeat;
   background-color: $Cyan-hover;
   background-size: cover;
   margin: auto;
   border-radius: 10px;
}
.icon {
   display: grid;
   justify-content: center;
   align-items: center;
   position: absolute;
   opacity: 0;
   background-color: $Cyan-hover;
   width: 300px;
   height: 300px;
   border-radius: 10px;
}
icon:hover {
   opacity: .5;
   cursor: pointer;
}

Just don't forget to change the class names to match yours.

I hope it helps!

Other than that, you did an excelent job!

2

P
Orkhan 60

@octopusmann

Posted

thanks, i really appreciated.I will try to add this to my code@danielmrz-dev

1

@prayasjadhav

Posted

That's a great work you have done. Being a newbie myself I know the efforts you've put into this. With a little bit of knowledge that I have I would suggest you to add some padding to the main (card). Also give a gap between the Ethereum logo and the number (0.041).

I hope this helps you :)

1

P
Orkhan 60

@octopusmann

Posted

thanks your review.I will take that into account@prayasjadhav

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