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

Testimonial Grid using Grid, SASS

Jun Wei 200

@junwei-wong

Desktop design screenshot for the Testimonials grid section coding challenge

This is a solution for...

  • HTML
  • CSS
2junior
View challenge

Design comparison


SolutionDesign

Solution retrospective


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

99% using grid. Only centering the body html tag that I used flexbox.

For the profile header:

    display: grid;
    align-content: space-between;

For the overall layout:

    display: grid;
    grid-template-areas: 'danial danial jonathan kira'
      'jeanette patrick patrick kira';
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;

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

  • Using grid properly, and lots of mdn, stackoverflow, and googling. I feel that in production or practical experience, everyone is more comfortable with flexbox than grid. This challenge forced me to use grid more effectively than ever before.

  • Figuring out how to add the quotation into the background. Using svg as a background instead of a tag. This is cool ngl.

  background-image: url(../images/bg-pattern-quotation.svg);
  background-size: 7rem 7rem;
  background-repeat: no-repeat;
  background-position: top right 18%;

Community feedback

thamu-acn 200

@thamu-acn

Posted

Well done, nice work!

Just some recommendations:

  • Avoid using element selectors instead add classes to your element tags for code reuse.
  • Consider a naming convention such as BEM in preparation for maintainability in large and complex projects

Marked as helpful

0

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