Mobile First Design | NFT Preview Card
Design comparison
Solution retrospective
Any Feedback is welcome... I really appreciate it... š
Thanks š.. šš®š½š½š šš¼š±š¶š»š“ ā šš®š»šÆš¼
Community feedback
- @vanzasetiaPosted almost 3 years ago
Hello there, Muh Suryadi! š
Congratulations on finishing this challenge! š
I have some feedback on this solution:
- Accessibility
- Good job on using
main
landmark! š - The Ethereum and clock icons are decorative, so they should have empty
alt=""
andaria-hidden="true"
attributes to make all web assistive technologies such as screen reader ignore those images. - On this challenge, use interactive elements (
a
) for any elements that have:hover
or:active
states. - The alternative text for the avatar should not contain any words that related to image, such as avatar, photo, graphic, etc. The screen reader will pronounce it as an image so you don't need to put the word Avatar as the alternative text.
- Always wrap text content with a meaningful element (
p
). Only usediv
andspan
for styling purposes (not as the main wrapper of the text content).
- Good job on using
<p class="card__prize"> <img src="assets/images/icon-ethereum.svg" alt="Icon Ethereum"> 0.041ETH </p>
- Don't change the root or
html
font size. Changing the root font size can cause huge accessibility implications for those of the users with different font size or zoom requirements. Modify the font size on thebody
element instead. - Use
rem
or sometimesem
unit instead ofpx
(especially font size). Usingpx
will not allow the users to control the size of the page based on their needs. - Styling
- I would recommend making the
body
element as the main container instead of themain
element. Also, it is recommended to never limit theheight
of the page so usemin-height
instead ofheight
. - Add some
padding
on thebody
element to prevent the card from touching the edges of the browser. Currently, on mobile landscape view, the card touches the top and the bottom of the browser (full height).
- I would recommend making the
That's it! Hopefully, this is helpful! š
Salam dari Lampung! š
Marked as helpful1@msuryaditriputraRPosted almost 3 years ago@vanzasetia Impressive, you have valuable suggestions. I have learned a lot of new things from you š
thanks for sharing with me, I will write my code better than before š
btw do you have any recommended resources to learn about accessibility? I'm so blind to it and I don't know where to learn it š
I really appreciate your kindness š I hope we can be connected š
Glad to know you, Salam dari Makassar š
šš®š½š½š šš¼š±š¶š»š“ ā šš®š»šÆš¼
1@vanzasetiaPosted almost 3 years ago@msuryaditriputraR Here are some resources on accessibility:
- Check your web accessibility using this tool
- WAI about images (how to handle images)
- Scott O'Hara blog post - He has a lot of great blog posts about accessibility
- Accessibility Myths - It will tell you the truth š
I would like to ask two questions,
- Are you a self-taught developer? If not how do you learn web development?
- Also, are you already working as a professional web developer or still learning?
If you ask me those questions, I am a self-taught developer and I am not a professional web developer yet.
Happy coding too! š
1@msuryaditriputraRPosted almost 3 years ago@vanzasetia Thanks, your resources are extremely helpful for my learning progress š
yeah, me too.. i'm a self-taught developer and i'm still learning š
Keep Learning š„
1 - Accessibility
- Account deleted
Hi there š
Congratulate on finishing your project š. You did a great job šØ
I give some suggestions that I hope help you take your project to the next level š.
- The overlay color shouldn't be full green color it should have some opacity. For that lets add
background-color: hsl(178deg 100% 50% / 50%)
to.card__image .overlay
Happy coding ā
Maqsud
Marked as helpful1@msuryaditriputraRPosted almost 3 years ago@maqsudtolipov thanks for the advice. I will fix it
1 - The overlay color shouldn't be full green color it should have some opacity. For that lets add
- @Aadv1kPosted almost 3 years ago
Great job on nailing the component š. Only suggestion i have, is maybe turn the opacity of the overlay down a bit to make it a bit closer to the intended design
Marked as helpful0@msuryaditriputraRPosted almost 3 years ago@Aadv1k ah i missed that. thanks for reminding
1
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