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

Reza Jaber 200

@rezajaber

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


Hey! I am Reza 🙂 I just recently started to learn web-development and would like to get every little help out there. So if you have the time, feel free to look over my project/projects and give me some advice to get better as fast as possible.

Third Project: Some questions for this "nft-card" project:

  1. I just can not figure a way to put this blue-color, when I hover over. Please help :)
  2. Is my "Index.html" well structured?
  3. Did I center everything right, or was there a easier way?
  4. What did I do completely wrong, and just have luck within this project?

I appreciate it✌️

Community feedback

Adriano 34,090

@AdrianoEscarabote

Posted

Hello Reza Jaber, how are you? I truly loved your project's outcome, however I have some advice that I hope you'll find useful:

To improve the responsiveness of the project, we can do this:

.container {
    max-width: 350px;
    height: auto;
}
.image {
    width: 100%;
    height: auto;
}

The remainder is excellent.

I hope it's useful. 👍

Marked as helpful

0

Reza Jaber 200

@rezajaber

Posted

@AdrianoEscarabote Perfect, thank you the help. Even such small details can help me to improve my code a lot :) Could you please elaborate why, you would do that, since I do not really understand it fully?

0
Adriano 34,090

@AdrianoEscarabote

Posted

@rezajaber I put max-width for the content to have a maximum width and not an absolute one!

and I set height auto for the parent element to adapt to the height of the child elements!

0
mahmmoud 180

@mahmmoud5

Posted

Hey Reza :) , you realy did a great job keep going if you want to creat this blue color when you hover over <div class="equilibrium"> <div class="hover-effect"><img src="images/icon-view.svg" alt=""></div> </div> this is the html for it and then make you'r picture a background picture for equilibrium div for you'r hover effect div use background-color: rgba(0, 255, 247, 0.441) ; opacity: 0; the last trick you write this line .hover-effect:hover{ opacity: 1; }

Marked as helpful

0

Reza Jaber 200

@rezajaber

Posted

@mahmmoud5 Thank you very much Mahmmoud! I will try it in the evening and I am looking forward to test this method 👌 Have a great day and hopefully I will see more of your comments👍

0
Fritz 300

@fritzadelbertus

Posted

Hello @rezajaber. First of all, congratulations on finishing this challenge!

Here are some few suggestion I can give:

  1. For the hover effect you can add an additional overlay in front of the image and change the opacity during hover. I use a <div> containing the eye icon for the overlay. You can see how I implement the styles here in the /* Hover Effect */ section
  2. The index.html structure is clean. The card content could be wrap in an <article> tag to create a cleaner structure but the current structure is already good.
  3. The layout is good. Although I prefer using flexbox for 1 dimension layout, grid is also a good solution.
  4. There are no 'unusual sightings' in your code. At least in the index.html and styles.css file so it's fine in my opinion.

I hope it's helpful and happy coding!

Marked as helpful

0

Reza Jaber 200

@rezajaber

Posted

@fritzadelbertus Hey Fritz, thank you for taking your time, I really appreciate it! I will try out your suggestion for the hover-effect. These were some really good tips! Have a nice day! Keep up the good work✌️

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