Stats preview card component in HTML5, SCSS, BEM, Gulp, Flexbox, Grid

Solution retrospective
I have no questions about this challenge, but you are always free to give me some tips.
Please log in to post a comment
Log in with GitHubCommunity feedback
- @correlucas
👾Hello Yari, congratulations for your solution!
Your solution its really accurate, all the elements and colors are matching the design files.
I've some tips for you and you see if is good idea to apply or not to your code Yari.
If you want to improve a bit your code you can use less elements to wrap the two columns, there's no need for so many divs. Look that you container is fully responsive so you don't need to set so many
media queries
since the container is fluid it will contract and fit the information inside, so you can use only the mobilemedia query
.Instead of managing both mobile and desktop image versions with media query and
background-image
a quick fix is to use the<picture>
tag and wrap both images inside the html setting when the images should switch, with no need for media query for image changes.To reach the exact same color for the image overlay, you can use
mix-blend-mode: multiply;
andopacity: 0.8;
.Hope it helps Yari, and happy coding!
Marked as helpful
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