Submitted about 3 years ago
responsive landing page using html, css flex&grid and js
@KurtGonzales
Design comparison
SolutionDesign
Solution retrospective
I will really appreciate everyone who will give some feedbacks and tips. Thanks everyone!
Community feedback
- @pikapikamartPosted about 3 years ago
Hey, awesome work on this one. But there styling issues on this one both desktop and mobile as well for responsiveness, I suspect a lot of
position: absolute
on this one which should be avoided as much as you can.But still, some suggestions mainly on the markup:
- The
a
tag that wraps website-logo should have eitheraria-label
attribute or screen-reader element inside it. The value for whatever method you will use should describe where the link would take them, usually a website-logo-link points to homepage so usearia-label="homepage"
something like that. - Website-logo
img
should be using the website's name as thealt
likealt="loopstudios"
. Remember that a website's logo is meaningful so always make sure it uses the properalt
value. - Also when using
alt
attribute, avoid using words that relates to "graphic" such as "logo" and others. Animg
is already an image/graphic so no need to describe it as one. - When using
ul
element, onlyli
tag are valid tag to be directly inside it, so wrap thosea
tag by their respectiveli
tag. - You should not have used
margin
to set a size on thediv
that wraps the website-img, thenav
should be usingpadding
on this one so that the element inside it won't get an extra unnecessary sizes. Try tabbing on the website-logo, you will notice it occupies huge size on its outline. h1
doesn't need thosebr
tag to make the text wrapped in another row. You could have usedmax-width
on theh1
adjust until all 3 lines are in their own row.- Same goes for the next heading tag, use
max-width
instead ofbr
. - Also, as I suspected, lots of
position: absolute
are being used. For example, the section after the hero. The image and the text-content in its right side should be nested in a singlesection
ordiv
and that container will be usingposition: relative
if you like, this way the content inside it are only relative to their respective container and not for thebody
tag since right now, they are relative to thebody
and not to themain
nor in their respective container. Always make sure that when usingposition: absolute
on an element, they are relative to a controlled container by addingposition: relative
. see all
should be a link so usea
tag.- On this one, the creations section, you could have use
figure
element because it make sense in here since each text for every collections arefigcaption
of theimg
inside it. Have a look at my solution on this one see the markup and you can take note on how they are properly placed without usage ofposition: absolute
I rarely use that since they go out of the flow.
FOOTER
- Same for the website-logo and website-logo-link, use what I mentioned earlier about it.
- Social medias could use a
ul
element since those are "list" of links. - Each
a
tag that wraps social media, it should have eitheraria-label
attribute or screen-reader element inside it. The value for whatever method you will use should be the name of the social media likearia-label="facebook"
on the facebook linka
tag. This way, users will know where this link would take them. - Each
img
inside the social media link should be hidden since they are only decoration so usealt=""
and addaria-hidden="true"
attribute on them. - The other 5 links at the bottom should be using the same structure I mentioned above,
li
tags and you could nest thatul
inside anav
since that is still your navigational links.
MOBILE
- Hamburger menu should be using a
button
element since it is a control. Again, interactive components uses interactive elements. By usingimg
you are making it not-accessible.
SUPPOSING BUTTON IS USED
- The
button
will be using the method I mentioned usingaria-label
attribute or screen-reader element inside. The value will describe what does thebutton
do. The value could bearia-label="navigational dropdown menu"
. - The
img
inside thebutton
should be hidden so usealt=""
and extraaria-hidden="true"
attribute on theimg
tag. - The
button
should have a defaultaria-expanded="false"
attribute on it. It will be set totrue
if the user toggles thebutton
. - The order of the hamburger button and the dropdown in the markup is wrong, the
button
should be placed before the dropdown so that the focus will be next to the dropdown, after thebutton
has been toggled.
Currently, stylings are the very issue in here, but still, great work on this one.
Marked as helpful0@KurtGonzalesPosted about 3 years ago@pikamart Thank you for the effort and time giving feedback on may project, sir!
1 - 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