Design comparison
Solution retrospective
Hi there. I really appreciate for looking forward to my codes. I think I need some improvement especially on js. By the way, i'm still newbie using javascript. I have so much fun actually. Happy coding everyone!!
Community feedback
- @zyq-mPosted about 3 years ago
Hi Raymart Pamplona, thanks for reviewing my codes. I appreciate it. Thanks also for the suggestion. I've learned a lot new things from you. Thank you again!!
0 - @pikapikamartPosted about 3 years ago
Hey, really great work on this one. Layout in desktop looks really great and the looks really is close to the design. It is responsive and the mobile state looks great as well.
Some suggestions would be:
- The website-logo-link shouldn't be inside the
nav
since it is not your navigational links, those 4 links on its right side are the ones that should be inside. - The
a
tag that wraps the website-logo should havearia-label
attribute or ansr-only
text inside it, defining where this link would take them,homepage
could be used as the value, since thea
tag uses "/" route, which is the home or root route. - The website-logo should only be using
alt="sunnyside"
lose the word "logo". When usingalt
attribute, avoid adding words that relates to "graphic" such as "logo, icon, image.." it is already an image, no need to describe it as one. - The arrow-icon-image should be using
alt=""
empty, andaria-hidden="true"
as extra attribute. If an image acts as a decoration, you use those two that I mentioned, but if the image adds content to the site, then use a meaningfulalt
attribute. - For some reason the text
client testimonial
is not appearing. - Since you use
article
on the testimonial section, you should include the person's image inside it, since those are just one whole component.
FOOTER
- Website-logo-
svg
should havetitle
element inside thesvg
, thattitle
element will be using asr-only
class to make it not visible. When usingimg
alt
is used, but when usingsvg
title
is used but thetitle
should havesr-only
class, if you want the text not be visible. - The 3 links could be inside
nav
element as well, since those are still your navigational links, usingul
as well inside thenav
to wrap those will be really great. - For the social media section, you should use
ul
element on those, since those are "list" of social-media-links and eachsvg
should be wrapped insidea
tag. - Each
a
tag that wraps thesvg
should have eitheraria-label
or ansr-only
text inside thea
tag, describing where the link would take them. As an example:
Using aria-label <a href="facebook.com" aria-label="facebook"> { svg inside here} </a> sr-only <a href="facebook.com> <span class="sr-only"> facebook </span> { svg inside here } </a> .sr-only { border: 0; clip: rect(0 0 0 0); height: 1px; margin: -1px; overflow: hidden; padding: 0; position: absolute; width: 1px; }
Using the
sr-only
is the better choice, since the text is translatable for other languages.MOBILE
- Using
img
for the hamburger is not really great. When creating interactive component, use interactive element. For this one , you should be usingbutton
.
SUPPOSING BUTTON IS USED
- The
button
should have eitheraria-label
attribute or ansr-only
text inside it, describing what thebutton
does, you could usenavigation menu dropdown
as a text. - The
button
should also havearia-expanded="false"
as a default attribute, the value will be changed to "true" by javascript, if the toggle is clicked.You can see simple snippet of mine, check the javascript, this is just a simple example for thearia-expanded
.
Aside from those, really great work again on this one.
0 - The website-logo-link shouldn't be inside the
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