This is a solution to the Social Proof Section challenge on Frontend Mentor. Frontend Mentor challenges help you improve your coding skills by building realistic projects.
Coding Time : 8 hrs 36 mins
Users should be able to:
- View the optimal layout for the site depending on their device's screen size
- GitHub: [https://github.com/Drallas/Social-proof-section](https://github.com/Drallas/Social-proof-section
- GitHub Pages: https://drallas.github.io/Social-proof-section/
- Semantic HTML5 markup
- CSS Grid and Flexbox using BEM
- Mobile First approach
Planning this project before building it, it seems fun to me, to make grid wrapper using flexbox in the bottom row for the card items. In my workflow I first built the mobile layout and responsive desktop as an outline. When those basic layouts where good, I moved on to adding the graphical details.
Still learning about grid, i learned to forget to specify grid-area values (otherwise weird things happens to the layout). I'm also 'forcing' myself this time not to use exact values but trying to rely on fr values.
My desktop grid :
.grid {
grid-template-rows: 1.1fr 1fr;
grid-template-columns: 1fr 1fr;
grid-template-areas:
"grid__header grid__ratings"
"grid__cards grid__cards";
gap: 10px 15px;
}
I need to improve CSS naming and BEM naming too. I guess even i'm just starting out with CSS Grid that i'm already more comfortable with it than CSS Flexbox . This challenge also used Flexbox and it feels a bit like a Flexible (Black) Box, so i need to put extra effort improving my understaning of Flexbox. :)
- CSS Tricks - Flexbox - To figure out flexbox properties.