Loopstudios landing page - Mobile first (SASS & JS)
Design comparison
Solution retrospective
Is there any other way to add the needed backgrounds for the "creations" images? (the dark one to contrast the title and the bright one on hover).
I used pseudo-elements but, I feel there is another way. Thank you! :D
Community feedback
- @pikapikamartPosted about 3 years ago
Hey, great work on this one. Layout looks great in desktop, it is very responsive and the mobile state looks really great as well.
At first I used a pseudo element as well to that white filter and when I refactored it, I didn't know that "white" filter should be include, I just realized it by now on what you said hahaha, though I don't know other approach since I will still use pseudo if I were to refactor it again.
Some other suggestions on this would be:
- 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 and do notaria-hidden="true"
an image if it is meaningful. - 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. - Navlinks could be wrapped inside
ul
since those are "list" of links. - Those decorative images on the site could have use an extra
aria-hidden="true"
attribute so that they will be totally hidden alongside with thealt=""
see all
should be a linka
tag since it is more like a link to "see all" creations rather thanbutton
to control.- For the creations card, you could wrap those inside their own
figure
element, since each card title are great for afigcaption
, this way it is more related even if theimg
is being hidden.
FOOTER
- Same goes for the website-logo, use a proper
alt
value. - As well for the navlinks,
ul
could be used. - Social media links could be inside
ul
since those are "list" of links.
MOBILE
- The hamburger
button
will b eusingaria-label
attribute or screen-reader element inside. The value will describe what does thebutton
do. The value could bearia-label="navigational dropdown menu"
. - The hamburger
button
should have a defaultaria-expanded="false"
attribute on it. It will be set totrue
if the user toggles thebutton
. img
inside the hamburgerbutton
should be using an extraaria-hidden="true"
attribute.- It would be better if you have reused the same navigation dropdown instead of creating 1 for mobile and 1 for desktop, this way you won't be duplicating your markup and keeping it dry.
- The dropdown is not being hidden properly. Visually it is hidden but it is still picked up by screen-reader because you are only using
height
to hide it, instead add avisibility: hidden
on it as well and when it transition, make itvisible
.
Aside from those, great work again on this one.
Marked as helpful1 - Website-logo
- @anuarshaidenovPosted about 3 years ago
THIS IS CLEAN NGL YOU KILLED IT BRO KEEP UP GOOD WORK
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