Skip to content

My solve for 'Social Proof Section' challenge from Frontend Mentor.

Notifications You must be signed in to change notification settings

Drallas/Social-proof-section

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Frontend Mentor - Four card feature section solution

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.

Table of contents

Overview

Coding Time : 8 hrs 36 mins

The challenge

Users should be able to:

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

Screenshot

Links

My process

Built with

  • 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.

What I learned

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;
  }

Continued development

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. :)

Useful resources

Author

About

My solve for 'Social Proof Section' challenge from Frontend Mentor.

Topics

Resources

Stars

Watchers

Forks