Design comparison
Solution retrospective
What can i improve??
Community feedback
- @pikapikamartPosted almost 3 years ago
Hey, glad to review another solution of yours. For desktop state, it looks fine but needed those
font-weight
to be present to create a hierarchy and each review container is too wide and the stars and review should be in a single row. The site is responsive which is really nice, I would just suggest forpadding
in thebody
tag to prevent the layout from touching the screen. Mobile state looks great as well.Others already gave their feedback on this one which is really nice, just going to add some suggestions as well:
- The
br
tag inside theh1
is not really needed. What you can do is that, set amax-width
on theh1
so that the text will be wrapped on their own. Adjust until you get the desired look. - Each of those stars could have been used as a value for the
background
property. Remember thatbackground
can accept multiple images, this way, you won't have to create those extraimg
tags. - If you insist on using
img
tags for each stars, then use analt=""
andaria-hidden="true"
on each of theimg
since they are all decorative images. - For each of the testimonial card, you can use this markup below for better navigation when using screen-reader using
blockquote
:
<figure> <img src="" alt={person name}> <blockquote> <p> {qoute in here}</p> </blockquote> <figcaption> person name <p> person role </p> </figcaption> </figure>
Though you would need to use
display: grid
on thefigure
so that you could place each item properly like in the design.- Each person's name doesn't really need to be heading tags, but if you still insist, use
h2
instead ofh3
so that heading tag level won't be skipped.
Those only. Again, great job for this one.
Marked as helpful1 - The
- @Cod-BiggPosted almost 3 years ago
Hey Alejandro, See if you can fix the width of the five star reviews on the desktop view. It looks like you have a lot of empty space on the right. other then that, see if you can match the font weight as the example. Otherwise, it looks spot on.
Marked as helpful1 - @AuddityPosted almost 3 years ago
Good start.
Inside of the div with the class .review set the display to flex and align-items to flex-start, that will get them aligned in a row instead of being stacked for the desktop view.
Also, set the h1 and the <p> inside of .review to font-weight: 700
That will get it looking closer to the final desktop layout.
Marked as helpful0
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