Skip to content
  • Unlock Pro
  • Log in with GitHub
Solution
Submitted 8 days ago

Responsive Social Proof Section using CSS Flexbox and Grid

P
Schindler Dumagat•450
@schindlerdumagat
A solution to the Social proof section challenge
View live sitePreview (opens in new tab)View codeCode (opens in new tab)

Solution retrospective


What are you most proud of, and what would you do differently next time?

I was able to practice creating layouts using CSS Flexbox and Grid. To master may layout skills, I will continue to learn more about CSS Flexbox and Grid.

What challenges did you encounter, and how did you overcome them?

One challenge that I have encountered is how to implement the staggered layout of the reviews and the testimonials. To give me some insights on how to implement it, I used AI to give me some approaches on how to implement it. I also tried to remember some of the flexbox and grid CSS properties that I can use and I have found out that you can position a flex or grid item individually using align-self or justify-self.

.reviews__item:nth-child(1) {
  align-self: flex-start;
}

.reviews__item:nth-child(2) {
  align-self: center;
}
.reviews__item:nth-child(3) {
  align-self: flex-end;
}

I also used the CSS transform property for the testimonials staggered layout.

.testimonials {
  grid-template-columns: repeat(3, 1fr);
}

.testimonials__card:nth-child(2) {
  transform: translateY(clamp(0rem, -2.4615rem + 3.8462vw, 1rem));
}

.testimonials__card:nth-child(3) {
  transform: translateY(clamp(0rem, -4.9231rem + 7.6923vw, 2rem));
}
What specific areas of your project would you like help with?

I would like help on improving my HTML markup. Are there better semantic html elements that I can use for the review and the testimonial cards?

As usual, any feedbacks and recommendations are welcome!

Code
Loading...

Please log in to post a comment

Log in with GitHub

Community feedback

No feedback yet. Be the first to give feedback on Schindler Dumagat's solution.

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

Stay up to datewith new challenges, featured solutions, selected articles, and our latest news

Frontend Mentor

  • Unlock Pro
  • Contact us
  • FAQs
  • Become a partner
  • Use cases

Explore

  • Learning paths
  • Challenges
  • Solutions
  • Articles

Community

  • Discord
  • Guidelines

For companies

  • Hire developers
  • Train developers
© Frontend Mentor 2019 - 2025
  • Terms
  • Cookie Policy
  • Privacy Policy
  • License