Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found

Submitted

Social Proof: SASS + Grid + Flexbox

Fraser Wattβ€’ 1,790

@fraserwat

Desktop design screenshot for the Social proof section coding challenge

This is a solution for...

  • HTML
  • CSS
1newbie
View challenge

Design comparison


SolutionDesign

Solution retrospective


I'm still looking for a way to get the footer to "flex" itself to the bottom of the page without messing up the positioning of my container. In the end I just got irritated with it and deleted it πŸ˜‚ - any tips here v much appreciated!

Also was wondering how you'd approach this if there were e.g. 4 or 5 reviews (or other times), so you couldn't just play with flex alignment. Any ideas?

As ever, any ideas to simplify code, mistakes or weird habits I've picked up always welcome! 😎✌️

Community feedback

P
Graceβ€’ 27,650

@grace-snow

Posted

Hi Fraser,

Great job on this one!

Looking at the preview above it looks like you need to set a narrower max width on the content so it doesn't spread quite so wide. Other than that, design all looks spot on to me.

I'm not sure what you mean about the footer as you don't seem to have one in your html? Have you tried making the body a flex column and setting the main to flex-grow 1? That would push the footer down when you have one. Or grid is an option

I can see you've removed the alt attributes completely from the star images. They are still needed on there but should be left empty like alt="". As voiceover will still announce svg images despite the empty alt tag (annoyingly!) it's best to also add aria-hidden="true" to those svgs.

I wouldn't do the stars with background images as suggested above by the way. In a real project they would be added to the html programmatically and that's unlikely to be done with background images.

Another alt related suggestion is to not say things like "picture of" in alt descriptions. That is already an image tag, so just the persons name will be a fine description.

Take a look again at what the section element is for. I would make this whole challenge one section, as it's all related to "why users love the products". You could make the bottom 3 testimonials into their own section, but if you did that you'd need to add a visually hidden heading to the section.

I hope these pointers are useful. Keep going, you're doing really well πŸ‘

2
P
ApplePieGiraffeβ€’ 30,545

@ApplePieGiraffe

Posted

Hi, Fraser Watt! πŸ‘‹

Nice job on this challenge! πŸ‘ Overall, everything looks great and the page responds well! πŸ‘

A few things I'd like to suggest are,

  • Not adding any alt text to the star icons if you choose to add them to the page using <img> tags. That'll make screen readers read out the alt text for every single image, which is unnecessary (and might be a little annoying). πŸ˜‰ An alternative way of adding the star icons would be to use CSS background images and playing around with the width of the container containing the background images and the background-repeat property. That way, the stars won't show up in the markup of the page as images or anything. But that's just a thoughtβ€”there are many ways to do the same thing in HTML and CSS, of course! 😊
  • Perhaps adding a little more margin/padding to the top and bottom sides of the page (just so that the content of the page still has a comfortable amount of room between it and the edges of the screen when the height of the screen decreases).

I guess you could always use margin or the transform property if you wanted to offset the position more than three review boxes (which wouldn't be so easy to do with flex alignment, like you mentioned).

And sometimes, I just use absolute positioning for the attribution in these challenges (just so they don't get in the way of the design and also because sometimes I like it when they overlap the content of the page).

Hope that helps a little. πŸ™‚

Keep coding (and happy coding, too)! 😁

1

Please log in to post a comment

Log in with GitHub
Discord logo

Join 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