Design comparison
SolutionDesign
Solution retrospective
I have some problem in my script Scripts sometimes work, feel free to say some tips to improve my script to work perfectly.
Community feedback
- @pikapikamartPosted about 3 years ago
Hey, awesome work on this one. Layout in desktop looks bigger but it's fine though the
background-color
of the overall site should be changed to what the design is using. The site is responsive and the mobile state looks great.Some other suggestions would be:
- Always have a
main
element to wrap the main content of your page. On this one, the.gridLayout
should be using themain
instead ofdiv
. - Using
margin
to center on all axis an element is not consistent, I normally suggest not using it but on this one, by removing it, the layout's size changes since there is no definition ofmax-width
on the.gridLayout
or in the container inside it. - The left-side image could use a more descriptive
alt
sincedrawers
is too ambiguous right. - I wouldn't really use heading tag on the bold text since it is just like an opening text of a blog rather than being a title of something.
- Also, an
h1
is always required on a page, since there is no visible text that could beh1
, it would be a screen-reader onlyh1
. Meaning this will be hidden for sighted users and only be visible for screen-reader users, search aboutsr-only
stylings and see how it is used. Theh1
text should describe what is the main content is all about, thish1
would be placed as the first text-content inside themain
element. Have a look at this simple snippet of mine about that method I mentioned comments are already in there but if you have more queries, just let me know. - The person's name as well the text below it should not be inside a
ul
since those are not really list of items. Use adiv
to contain both, then the person's name should be a heading tag but usep
tag on the text below it. You use heading on the person's name since they are the focal point of the component. - You should have used
button
on the toggle. Remember that interactive components needs to use interactive elements. By usingimg
on it, you are not making it accessible, only mouse events can toggle it but not by other peripherals. - The button toggle for the social-media should have aria-expanded="false" as a default attribute and it will be set to true if the user toggles it and vice-versa. It also should have
aria-label
attribute on it, defining what thebutton
will do, it could be likearia-label="share on social media dropdown"
. To provide clear example, have look at Kasia's solution on this challenge, - 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. - Lastly, there are lots of classes going on around here, are you using css framework? If yes, I suggest not using right now if you are starting out in frontend, use only native css or scss to build up that fundamentals properly.
Still, great job again on this one.
0 - Always have a
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