Design comparison
Solution retrospective
I don't know why it's not responsive below about 350px, could someone check?
Community feedback
- @pikapikamartPosted about 3 years ago
Hey, awesome work on this one. Layout in desktop a bit smaller and shorter than the design, the site is responsive and for mobile state, it looks great but like what you said at 350px going down, the site is not adapting anymore because on your
clamp
youmin
value is greater than 350px that is why it creates horizontal scroll and layout won't resize.Some suggestions would be, but first, why is your pikachu looks like that:>:
- Making
font-size
for desktop bigger so that it will be easier for the text to be read. header
does not need therole="banner
sinceheader
itself is a banner/landmark.- For the website-logo, use only the website's name as the
alt
value likealt="clipboard"
. - When using
img
tag, you don't need to add words that relates to "graphic" such as "logo" and others, sinceimg
is already an image so no need to describe it as one. - Maybe add an
outline
to thefocus-visible
state of thebutton
because those transition to scale when focusing on thebutton
is not enough since it still looks the same with the other one. - You don't need to use
figure
on the images since when usingfigure
you should usefigcaption
along with it. A regularimg
would be enough. - Make a more descriptive
alt
value and lose theimage
word as well for other images. For example on the desktop image, you could use like `alt="clipboard app running on apple desktop". - Use only company name as the
alt
like `alt="Google".
FOOTER
role="content info"
is not needed forfooter
since it is one.- Same with the company logo, use a more proper
alt
value. - Those 5 links could be inside a
nav
since those are still your website's navigational links. - Again, those 5 links should have use
grid
so that you could place each item properly. It should have 5 list-items and do not nest 2 links inside 1li
. - Also another visual indicator for the links.
- Each
a
tag that wraps the social-media icon should have eitheraria-label
attribute orsr-only
text inside it, defining where the link would take them. For example, you should usefacebook
as the value if the link would take the user to facebook. - Social-media image should be hidden since it is only a decorative image so use
alt=""
andaria-hidden="true"
.
Aside from those, great job again on this one.
Marked as helpful1@LightisicusPosted about 3 years ago@pikamart Thanks for the tips I will start applying those! Also, you said that I should use five li's for each of the footer links, but do you need a ul or an ol to use li or could they be inside of a nav also?
Like...
<nav> <li></li> <li></li> <li></li> <li></li> <li></li> </nav>0@pikapikamartPosted about 3 years ago@Lightisicus Hey, great that you find it useful!
For that part, yes use 5
li
items since there are five links. Your markup should look like:<nav> <ul> <li> <a /> </li> .... ........ </ul> </nav>
0 - Making
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