Design comparison
Solution retrospective
Worked on advice given from previous challenge and feel like the structure of my code is a lot better. Also the process of building each component one by one made it all fit together a lot easier. I really struggled with getting the colour to change on the image hover effect and will continue to research and look for further feedback
Community feedback
- @PhoenixDev22Posted over 2 years ago
Hi Ashley Stone,
Congratulation on completing your second challenge.
Great work on this one ! I have few points to mention:
HTML
- Since there's a :hover state on the image and means it's interactive, So there should be an interactive element around them. 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 that says where that link takes you. -
The avatar's alt should not be ~Profile Picture, It’s meaningless. 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. And the icon view doesn’t really need to be in HTML. You can use CSS, as there’s no need for another clutter in the HTML.
Aside these, Your solution is good. 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