Design comparison
SolutionDesign
Solution retrospective
let me know your feedback and helps for better coding
Community feedback
- @pikapikamartPosted about 3 years ago
Hey awesome work on this. Layout in general looks great but the component is not responsive.
Some suggestions would be:
- First, the font-style is different, you might want to check that one out.
- Avoid using
height: 100vh
as this limits the element's height based on the screen. On yourbody
tag replace it withmin-height: 100vh
this takes full height but lets the element expand if needed. - Always have a
main
element to wrap the main content of the page. On this, the.card
should be using amain
instead ofdiv
. - On the
.card
instead ofwidth: 430px
usemax-width: 430px
. Using the former makes the element have "fixed" width which makes it not-responsive to screen-changes unlike the latter. - Vector image should be hidden so use
alt=""
and addaria-hidden="true"
attribute on theimg
. If an image acts only as decoration, always hide them at all times. Meaningful images needs to use meaningfulalt
value. - Also when using
alt
, avoid adding words that relates to "graphic" such as "illustration" sinceimg
is already an image, no need to describe it as one. - Always have an
h1
on a page. On this one, since you useh2
on theorder summary
you would need to make theh1
screen-reader only text. Search up forsr-only
on the net and see how it is used. Theh1
will need that and theh1
will be placed as the first text-content element of themain
. The text of theh1
will describe what is the main content is all about. - Music icon should be hidden by the method I mentioned above.
- When using heading tag, make sure you aren't skipping a level. When you use
h4
make sure thath1, h2, h3
are all present before it.
Aside from those, great work again on this one.
0
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