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

Project tracking intro component - using Sass and Flexbox

argel omnes• 1,800

@argelomnes

Desktop design screenshot for the Project tracking intro component coding challenge

This is a solution for...

  • HTML
  • CSS
  • JS
2junior
View challenge

Design comparison


SolutionDesign

Solution retrospective


About halfway through it felt like I'm overusing media queries. I have lessen them before completing the challenge. Question is, how much is too much?

current breakpoints: 8 (inside _variables.scss) maximum used in 1 selector: 3 (ie, main and h3)

Community feedback

P
AjeaS• 675

@AjeaSmith

Posted

Hey Argel, I feel your pain. I used to get overwhelmed with trying to cover so many device breakpoints that my CSS would be filled with them lol. From my experience, I found that it was easier for me to cover only like 3 or 4 major breakpoints. Like (smartphones/iPhones, tablets, and desktops) instead of covering every single breakpoint I could think of.

I use this website when I'm working on media queries: https://responsivedesign.is/develop/browser-feature-support/media-queries-for-common-device-breakpoints/

Hope this helps! :)

1

argel omnes• 1,800

@argelomnes

Posted

@AjeaSmith Thanks! I'll read through before continuing on my current challenge.

0
argel omnes• 1,800

@argelomnes

Posted

@mattstuddert I signed up. thanks!

0
P
Matt Studdert• 13,611

@mattstuddert

Posted

Hey Argel, great work with this challenge! When it comes to defining breakpoints, I tend to have a few pre-defined breakpoints (500px, 768px and 1240px), but then I do add in more custom breakpoints if the content looks wrong at a specific screen size.

I also only use min-width media queries for layout-related changes, which I find simplifies my CSS code quite a bit. I see you use a mixture of min-width and max-width, which could be making your CSS slightly less manageable.

I'd recommend trying to use just min-width queries on your next project and see if that helps.

Then you can change the browser size to make sure the content scales and changes at the right points. After that you can double-check everything with the device emulator in the dev tools to check common device sizes.

Having the number of breakpoints that you've got isn't inherently bad, as long as you know exactly why each one is there. Obviously, fewer breakpoints typically mean more maintainable code, but the content still has to look right.

You'll see that the content overlaps around 800px on your solution here, so there is a little bit of work still to be done on the responsive side.

Let me know if you have any more questions, keep up the great work!

0

argel omnes• 1,800

@argelomnes

Posted

@mattstuddert cool! I'll start with those 3 next time. Looking back at my code, I have only used max-width once. I think I can get sticking min-width to work. Thanks again!

0
P
Matt Studdert• 13,611

@mattstuddert

Posted

@argelomnes you're welcome! I hope it helps simplify the process for you.

0

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