Design comparison
Solution retrospective
happy coding everyone <3, feedback is welcome.
Community feedback
- @pikapikamartPosted almost 3 years ago
Hey, nice work on this one. Layout in general looks great, for mobile state, if you go to like 375px below, you will notice that the content is being hidden by the screen.
MikevPeeren already gave great tip on this one, just going to add some suggestions on the site as well:
- Avoid using
id
to target and style an element since it is a bad practice due to css specificity. Instead, just useclass
to target element. - Use
footer
for the.attribution
selector so that it will be its own landmark. - Also, if you try zooming out on your screen, you will notice that the layout is not being centered properly( on y-axis). Using
margin
only is not consistent, what you can do is that remove themargin
on themain
tag, then on thebody
tag add these stylings:
align-items: center; display: flex; flex-direction: column; justify-content: center; min-height: 100vh;
This will make sure that content will be centered. Though add a
margin-bottom
on themain
tag or just usegap
inside thebody
tag.- When using
img
tag, you don't need to add words that relates to "graphic" such as "image" and others, sinceimg
is already an image so no need to describe it as one. For the nft image, since the nft name is already present, use it as the value likealt="Equilibrium"
. - On a site, always have a single
h1
. Since there are no visible text that are suitable to beh1
, theh1
would be a screen-reader only heading. Meaning it will be hidden visually but present for screen-reader users. On this, theh1
would have likesr-only
class and the text-content should describe what is the main-content is all about. Theh1
could be placed as the first text inside themain
.Have a look at this snippet of mine about screen-reader h1. If you have query about this one, just let me know okay. - Add an extra
aria-hidden="true"
for images that are usingalt=""
so that they will be totally hidden for screen-reader user. - When wrapping up a text-content, make sure that it is inside a meaningful element like
p
tag or heading tag and not using likediv, span
to wrap the text. - Person's image should be using the person's name as the
alt
value likealt="Jules Wyvers"
. Components like this where a person's information is presented, make sure to use their name as the person'simg
alt
value. - Lastly, to resolve the issue about the 375px below, on your
main
tag, just remove thewidth: 380px
since this will just add a fixed width, you can usemax-width
instead ofwidth
.
Aside from those, great job again on this one.
Marked as helpful1 - Avoid using
- @MikevPeerenPosted almost 3 years ago
Hey 👋
Good job finishing this one 👏
Try to use h1 before you use h2, also try to add more descriptive alt text when you do add it so screen readers know what they are viewing. I am also missing the hover effects 😢
Marked as helpful1@abdeldevprojectsPosted almost 3 years ago@MikevPeeren oh i forgot the hover effects hahaha i will add them , thank you so much for your feedback <3
0 - @abdeldevprojectsPosted almost 3 years ago
Thank you so much for taking time to read my code and writing this amaizing feedback , im going to work today on the things you mentioned , thank you again <3
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