This is a solution to the Testimonials grid section challenge on Frontend Mentor. Frontend Mentor challenges help you improve your coding skills by building realistic projects.
Users should be able to:
- View the optimal layout for the site depending on their device's screen size
- Solution URL: Add solution URL here
- Live Site URL: Add live site URL here
- Semantic HTML5 markup
- CSS custom properties
- Flexbox
- CSS Grid
- Mobile-first workflow
I have really learned a lot from this challenge. -First as always, it's always good to first analyze the design before anything else -Then work up the html requirements for the project before styling -Then when it comes to styling, it's always good to start with declaring the variables first before applying the styling.
I have also learned how to work effectively with css grid, to build out different layouts. Specifically the grid template areas
.testimonial-grid{
grid-template-areas:
"card1 card1 card2 card5"
"card3 card4 card4 card5";
}
They really make layouts easier.
I have also learned how to work with different css selectors i.e:
- The nth child selectors
.testimonial-card:nth-child(1){
grid-area: card1;
}
- The grandchild or anything else below selectors
.testimonial-card:nth-child(5) * .image{
border: solid .2rem var(--dark-grayish-blue);
}
This selector especially helped me to select the border radius of each user image
As always I want to continue improving on css positioning and css measurements. I will also continue practicing with css grid and flex box to improve on it
-
github - @munyite001
-
Frontend Mentor - @munyite001
-
Twitter - @Emunyite
-
Feel free to contact me for any collaborations or gigs.
Stay Frosty