NFT preview card component using CSS Flexbox
Design comparison
Community feedback
- @PhoenixDev22Posted almost 3 years ago
Hello @Abhirup-Sarkar ,
I have some suggestions regarding your solution:
To tackle the accessibility issues:
-
You can use landmark
main
to wrap the body content (which will be the NFT card )HTML5 landmark elements are used to improve navigation . -
Anything with a hover style in design means it's interactive. you need to add an interactive element
<a>
around the image,Equilibrium #3429 and Jules Wyvern
. add hover effect on them . -
The avatar's alt shouldn't be
image of creator
it's meaningless , you can useJules Wyvern
for it. -
the link should be wrapping the main image and either have
Sr-only
text, anaria-label
oralt
text that says where that link takes you. -
No need for this
<hr>
, you can simply useborder-top
for the avatar's partclass="container__creator
-
You should use
em
andrem
units .Bothem
andrem
are flexible, Usingpx
won't allow the user to control the font size based on their needs. It's recommended to use rem for font-size.
Overall, your solution is good, Hopefully this feedback helps.
Marked as helpful0@Abhirup-SarkarPosted almost 3 years ago@PhoenixDev22 Thank you for your helpful advice :)
1 -
- @Andrew-CastroPosted almost 3 years ago
Great job Abhirup, you're getting some HTML validation issues because of your class names. I would consider reviewing BEM methodology naming conventions: https://en.bem.info/methodology/css/#naming
TLDR: The modifier should only have one hyphen, but two underscores.
Marked as helpful0@Abhirup-SarkarPosted almost 3 years ago@Andrew-Castro Thank you for your advice :)
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