Design comparison
Solution retrospective
The site may be seem easy, but it is not what it seems. I tried everything, but never came to a logical conclusion myself. I had to watch a video on how to properly make such a site. I watched it, did everything according to the tutorial and it worked but then i deleted everything and did it again from my memory. Sometimes I watched the video again because I did not know some tricks in css (like gap or cursor pointer) My advice - do not procrastinate. Break the task into several small pieces and be happy that by completing each small piece you will be on your way to completing one whole task. Good Luck :)
Translated with www.DeepL.com/Translator (free version)
Community feedback
- @PhoenixDev22Posted over 2 years ago
Hello Bahtiyar Rozmetov,
Congratulation on completing another frontend mentor challenge.
Excellent Work!I have few suggestions regarding your solution if you don't mind:
HTML
-
Page should contain a level-one heading. In this challenge , as it’s not a whole page, you can have
<h1>
visually hidden withsr-only
. -
You can use
<main>
landmark to wrap the NFT card. HTML5 landmark elements are used to improve navigation, -
Since there's a :hover state on the image and means it's interactive, So there should be an interactive element around it. When you create a component that could be interacted with a user , always remember to include interactive elements like(button, textarea,input, ..) For this imagine what would happen when you click on the image, there are two possible ways:
1: If clicking the image would show a popup where the user can see the full NFT, here you use
<button>
.2:If clicking the image would navigate the user to another page to see the NFT, here use
<a>
.-
Also use
<a>
to wrapJules Wyvern and Equilibrium #3429
. -
The link wrapping the equilibrium image(
image-equilibrium
) should either haveSr-only
text, anaria-label
oralt
text on the image that indicates where the link navigate the user. -
For any decorative images, each img tag should have empty
alt=""
and addaria-hidden="true"
attributes to make all web assistive technologies such as screen reader ignore those images in(icon-view, icon-ethereum, icon-clock
). -
The avatar's alt should not be avatar . You can use the creator's name
Jules Wyvern
. Read more how to write an alt text -
To use more semantic tags , you may use
<figure>
and<figcaption>
for the avatar's part. -
There are so many ways to add the hover effect on the image , The one I would use, using pseudo-elements to change the teal bg color to a hsla. Then opacity can be changed from 0 to 1 on the pseudo element on hover. The icon view doesn’t really need to be in the HTML as there no need for another clutter in HTML. You can use CSS for it.
Aside these, Great work! Hopefully this feedback helps.
Marked as helpful0 -
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