Skip to content

daHatta/fem-testimonials-grid-section

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Frontend Mentor - Testimonials grid section solution

This is my solution to the Testimonials grid section challenge on Frontend Mentor.

Table of contents

Overview

The challenge

Users should be able to:

  • View the optimal layout for the site depending on their device's screen size

Screenshot

Testimonials grid section

Links

My process

Built with

  • Semantic HTML5 markup
  • CSS custom properties
  • Flexbox
  • CSS Grid
  • Mobile-first workflow

What I learned

It was a great lesson about grid and some pseudo-classes.

I used some of the tree-structural pseudo-classes:

.testimonial-card:nth-child(1) {
  grid-column: 1 / 3;
  grid-row: 1 / 2;
}

.testimonial-quote:last-child {
  line-height: 1.4;
}

It was also nice to set up a grid with different row heights and gaps:

.testimonial-box {
  gap: 24px 30px;
  grid-template-columns: repeat(4, 255px);
  grid-template-rows: 282px 266px;
  margin-block-start: 0;
}

Continued development

As it was a great exercise to practice grid and flex, i still need some more to do. Next will be something with JS again.

Useful resources

Author

Releases

No releases published

Packages

No packages published