Stats preview card component made with Flexbox and mix-blend-mode
Design comparison
Solution retrospective
I had to read up on mix-blend-mode to get the layering of the picture correct, but it wasn't complicated, the background-color had to be on the parent container, and the background-image + mix-blend-mode property on the child element. Any feedback is always welcome!
Community feedback
- @Bayoumi-devPosted over 2 years ago
Hey Eileen, I suggest you put the status of the preview card component into the
list item
to add moresemantics
to your project,Div
's don't do much for semantics but a list is much more meaningful..:<ul class="stats-preview__stats"> <li> <span class="stat-number">10K+</span> <span class="stat-name">Companies</span> </li> <li> <span class="stat-number">314</span> <span class="stat-name">Templates</span> </li> <li> <span class="stat-number">12M+</span> <span class="stat-name">Queries</span> </li> </ul>
I hope this is useful to you... Keep coding👍
Marked as helpful1@EileenpkPosted over 2 years ago@Bayoumi-dev thank you for pointing that out, you just stopped me from doing the same thing on another project! I'm making the change now :)
0 - @farukingPosted over 2 years ago
Good job! An observation though, the 'insight' text doesn't blend well on resizing i.e. the last letters are hidden on resize.
Marked as helpful0@EileenpkPosted over 2 years ago@faruking thank you for pointing that out, I am changing the breaking point to a more natural place for the media query.
0 - @MavreonPosted over 2 years ago
Great work on this Eileen, you really nailed it 🎉🎉🎉
0
Please log in to post a comment
Log in with GitHubJoin 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