This is a solution from Dimitris Kaffes to the Testimonials grid section challenge on Frontend Mentor.
Mobile first design approach was followed for this challenge.
A modern CSS reset (by Andy Bell) was implemented.
A good Grid practice takes place on this challenge. Flexbox adds to the overall layout structure.
Users should be able to:
- View the optimal layout for the site depending on their device's screen size
- Solution URL: testimonials-grid-section solution on Github
- Live Site URL: testimonials-grid-section live site
A mobile first design approach was followed, with the HTML structure taking into account the desktop layout as well.
Custom properties were used for the colors and font-weights.
Grid layout was used for the .cards-container
and Flexbox for the .card
and the .profile-container
.
In my first solution approach I used grid-template-areas
but after some research in the Discord #help channel of the FrontEndMentor community, I finally used grid-auto-flow: dense;
for the desktop Grid version.
- Semantic HTML5 markup
- CSS custom properties
- Flexbox
- CSS Grid
- Mobile-first workflow
The grid-auto-flow: dense;
property was something new to me and also fun to work with.
Further improve my knowledge on the Grid related properties.
- MDN grid-auto-flow - This helped me understand how to use the property so as to nail the design.
- Frontend Mentor - @dkaffes
Thanks to Alex and his useful comments on the #help Discord channel, I implemented grid-auto-flow: dense;
for this challenge.