Skip to content

hassanidris/testimonials-grid-section

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Frontend Mentor - Testimonials grid section solution

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.

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 (Desktop View)

screenshot-127 0 0 1_5500-2021 11 24-21_17_15

Screenshot (Mobile View)

screenshot-127 0 0 1_5500-2021 11 24-21_17_52

Links

  • Solution URL: Link
  • Live Site URL: Link

My process

Built with

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

What I learned

I have learned how to muniplate the layout according to the device view.


/* ---------- Media Query ------------- */
@media only screen and (max-width: 992px) {
  .testimonials {
    grid-template-columns: repeat(3, 1fr);
    grid-template-areas: "moderateViolet moderateViolet   darkGrayishBlue" 
                         "white-a        darkBlackishBlue darkBlackishBlue" 
                         "white-b        white-b          white-b";
  }
}
@media only screen and (max-width: 576px) {
  .testimonials {
    grid-template-columns: repeat(1, 1fr);
    grid-template-areas: "moderateViolet" 
                         "darkGrayishBlue" 
                         "white-a" 
                         "darkBlackishBlue" 
                         "white-b";
  }
}

Author