Design comparison
Solution retrospective
Surprised on how fast I got this done! Pretty happy with my achievements. Any feedback is welcomed
Community feedback
- @pikapikamartPosted almost 3 years ago
Hey, awesome work on this one. The desktop view looks fine I think, just needed those
padding
orgap
between each card so that it will set like a boundary. Also, if you could adjust thebox-shadow
a little more to dark side, that would be really nice. The mobile state looks fine as well, just for the breakpoint, it is too early. Right now, you are using 0px - 1250px to show the mobile state which is really big for only the mobile state to occupy since the desktop view could use more of those screen time. Adjusting that would be nice.For some other suggestions, here are some:
- For this, you should only have a
main
tag as the direct child of thebody
. Put the 2 heading tag inside themain
since it is part of the main-content of the site. - For the
h1
, thebr
is not needed on that one. What you can do is that, add amax-width
on theh1
so that it will limit the size and that will wrap the second text on another row. Just remember to addmargin: 0 auto
to center it. - The text after the
h1
is not really a heading tag. Usually, a heading tag is not like a long sentence and it should describe or give information on what the section/part of the layout would contain. Usep
tag on this one. main
tag doesn't need top userole="main"
since it is already amain
.- Also in general, adding a
max-width
on thebody
for example will make the site more consistent. If you zoom out on your screen, you will notice that the layout's content stretches along.max-width
will prevent this one. - On each card, you could just replace the
article
bydiv
tag since it just looks like a regular content of the page to which can't be reused on other pages wherearticle
content can be. Adiv
would be fine and each of the heading tag will be enough to structure it. - Also, since you are removing the
h2
after theh1
, useh2
on theh3
on each card so that you won't skip a heading level. - For all the icons on the cards, hide them since they are only decorative images. Decorative images are just images that doesn't contribute to the overall content of the site. They should be hidden for screen-reader at all times by using
alt=""
andaria-hidden="true"
to theimg
tag or onlyaria-hidden="true"
if you are usingsvg
instead ofimg
tag. - Lastly, just keep in mind about the first suggestions about the
padding
andbox-shadow
^^
Aside from those, great job again on this one.
Marked as helpful1@ingegnerlorenzoPosted almost 3 years ago@pikapikamart Hi, and thanks for your feedback! Seems I need to get back on work on this. Refining these details will be key to be a better front end developer! Thank you for pointing out these upgrades to be done!
1 - For this, you should only 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