Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found

Submitted

Testimonials Grid Section

Guilherme Lopesβ€’ 350

@gguilhermelopes

Desktop design screenshot for the Testimonials grid section coding challenge

This is a solution for...

  • HTML
  • CSS
2junior
View challenge

Design comparison


SolutionDesign

Solution retrospective


Very nice Grid Layout challenge. I'm unsure about the media queries, is it too much? Any advice would be great! Thanks.

Community feedback

Md5 daltonβ€’ 1,430

@md5dalton

Posted

Hello Guilherme Lopes πŸ‘‹

Congratulations on finishing this challenge. Impressive work πŸ‘

☝️ Mobile First

You may have heard of this before but if not, this just means creating a layout where the default configuration is for narrow screen/mobile devices, and layout features for wider viewports are then layered on top of that default.

To address your question, we will not be creating media queries for mobile since in mobile first approach, we assume that all your default styles are targeted to mobile screen sizes, then we are going to create media queries to define styles for bigger screen devices. Below are some examples I've used and please note that you can modify the breakpoints to meet your project design.

.container {
    display: grid;
    ...
}


/* Tablets */
@media (min-width: 576px) {
    .container {
        grid-template-columns: 1fr 1fr;
        ...
    }
}

/* Desktops */
@media (min-width: 1024px) {
    .container {
        grid-template-columns: repeat(4, 1fr);
        ...
    }
}

This is just an example and you may have noticed that I used min-width instead of max-width; this is a typical pattern in mobile first approach.

CheersπŸ‘Œ

Marked as helpful

0

Guilherme Lopesβ€’ 350

@gguilhermelopes

Posted

@md5dalton Thanks for the tips! In my next challenge I'll try to use Mobile First. See ya!

1

Please log in to post a comment

Log in with GitHub
Discord logo

Join our Discord community

Join thousands of Frontend Mentor community members taking the challenges, sharing resources, helping each other, and chatting about all things front-end!

Join our Discord