Design comparison
Solution retrospective
i had some issues with the box-shadow, i lean how does it work and that using chrome devtools i can customize how it will look using special ui for it. another issue that i had is to create the on hover behavior of the image that need to have other image on top of it on hover, i solved this issue by using images container and do the onhover style on the container.
Community feedback
- @AdrianoEscarabotePosted about 1 month ago
Hi Hadar Shoshan, how are you doing? I really loved the outcome of your project, but I have a few suggestions that I think might be helpful:
Using only
<div>
to structure your code, as in the example below, can be problematic for both accessibility and HTML semantics. Whilediv
elements are generic containers, they don’t provide meaning to the content. This can make it harder for screen readers and accessibility tools to understand and present the content correctly.Example with semantic tags:
<div class="container"> <main> <figure class="image-container"> <img class="nft-img" src="images/image-equilibrium.jpg" alt="NFT artwork" /> <figcaption class="eye-image-container"> <img class="eye-img" src="images/icon-view.svg" alt="Enlarge the image" /> </figcaption> </figure> <h1 class="nft-name"> Equilibrium #3429 </h1> <p class="nft-text"> Our Equilibrium collection promotes balance and calm. </p> <section class="sale-data-container"> <div class="price icon-and-text"> <img src="images/icon-ethereum.svg" alt="Ethereum"> 0.041 ETH </div> <time class="time icon-and-text" datetime="P3D"> <img src="images/icon-clock.svg" alt="Clock"> 3 days left </time> </section> </main> <footer> <hr class="divider" /> <div class="icon-and-text"> <img class="avatar" src="images/image-avatar.png" alt="Avatar of Jules Wyvern"> <p class="created-by">Creation of</p> <address class="creator">Jules Wyvern</address> </div> </footer> </div>
The rest is excellent.
I hope you find it useful. 👍
0
Please log in to post a comment
Log in with GitHubJoin 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