Responsive Design Using Flexbox and CSS media queries.
Design comparison
Solution retrospective
with 3 media queries applied to the page at different page-width, I think it's looking nice. but if you find any problems while accessing the site feel free to add feedback.
Community feedback
- @pikapikamartPosted about 3 years ago
Hey, awesome work on this one. Desktop layout is really lot smaller than the design but it respond well though which is great, the mobile state looks great as well just needed those to be centered.
Zayat gave a great tip on this, just going to add some suggestions as well:
- Always have a
main
element to wrap the main content of your page. On this one, the.main-container
should be using themain
instead ofdiv
. - Also on your
.main-container
don't useheight: 400%;
you don't need to add aheight
on this, let the element inside it give the container its proper dimension. Doing this, you are just limiting the element's size/height. - Website-logo
img
should be using the website's name as thealt
likealt="clipboard"
. 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. - Avoid using multiple
h1
on a page, use only at least 1 per page so change those into other heading tags. - Other
img
element could use a more properalt
text, since for every image devices, there is the clipboard app logo, you could use likeclipboard application on a desktop device
something like that, more descriptive. - When using heading tag, make sure you aren't skipping a level. If you use
h4
make sure thath1, h2, h3
are present "before" it. - The 3 icons before the company logos should be hidden. Decorative image must be hidden at all times by using
alt=""
and extraaria-hidden="true"
attribute on theimg
tag. - Use only the name of the company for each company logo like
alt="google"
.
FOOTER
-
Your
.footer
should be inside thefooter
element not the.attribution
. -
Website-logo-image should use proper
alt
like what I mentioned above. -
The 5 links could be inside a
nav
element since those are still your websites' navigational links. Also they could be inside aul
element since those are "list" of links. So aul
inside of anav
. -
Social medias could be inside a
ul
since "list" of links as well. -
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
of social-media should be hidden, use the method I mentioned above as well. -
Lastly, just the other section's text-content to be centered on mobile state.
Aside from those, great work again on this one.
Marked as helpful1@Darshan-Pandya10Posted about 3 years ago@pikamart thank you ! I really appreciate your support and yeah I will surely work on it to improve. Thanks again
1 - Always have a
- @Z-ayatPosted about 3 years ago
Quick search (benifits) section should be text-align-center; and in web view you can give the img position:relative;and left:-xxpx; till you get it as the design otherwise you did well ❤️
Marked as helpful1
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