@nikoescobal
Posted
Hello Danny! 👋
Congratulations on finishing your challenge! 🎉
One lesson that really stuck with me, which I got from Kevin Powell, is that the web is responsive by default, meaning that any time you build a project, as long as you don't mess with negative margins or absolute positioning, your content is by default, responsive. That said, it makes so much more sense to go with a mobile-first approach, then meaning all your CSS classes should apply to the mobile viewport first, after which you then add media queries to manage the other screen sizes. Doing it this way also makes it easier to scale and adjust in the future, even if you will add changes to your layout.
As for using flexbox vs grid, it's best to practice both. For anything that has to do with tables, you should use the grid approach, whereas flex can be used to manage layouts that are simpler. Given that you ran into the difficulty of trying to make the columns the same size, the only solution is to use grid-template-columns with the fractional (fr) value, which guarantees they will always be the same size. An example of this looks like this grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr));;
Try giving it a shot -- the best way to learn is by practicing and applying new things little by little.
Here's some other feedback on this solution:
- It seems like the filtered image is a bit too dark. You could either adjust the opacity or instead use background-blend-mode or mix-blend-mode with the property set to multiply.
- For your text below the numbers, you're not using the correct font, font size, and font weight
I hope this is helpful and all the best with your coding journey!
Marked as helpful
@dvbenthem
Posted
Hello @nikoescobal,
Thank you for your feedback. Ahhh yes, Kevin the "CSS King" I always watch his video's they have a lot of good information.
Ok mobile first it is. It is going to be a difficult one. But I see yet another challenge:)
That grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr));
looks like abracadabra, hahaha but I am going to figure it out.
I will correct the issues on the design like mix-blend-mode and font issues.
Thanks again for the feedback. That helps me a lot. Danny