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

Stats preview card component made with Flexbox and mix-blend-mode

P

@Eileenpk

Desktop design screenshot for the Stats preview card component coding challenge

This is a solution for...

  • HTML
  • CSS
1newbie
View challenge

Design comparison


SolutionDesign

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

Ahmed Bayoumi 6,800

@Bayoumi-dev

Posted

Hey Eileen, I suggest you put the status of the preview card component into the list item to add more semantics 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 helpful

1

P

@Eileenpk

Posted

@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

@faruking

Posted

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 helpful

0

P

@Eileenpk

Posted

@faruking thank you for pointing that out, I am changing the breaking point to a more natural place for the media query.

0
P

@Eileenpk

Posted

Thank you Chisom, I appreciate the kudos!!

0

@Mavreon

Posted

Great work on this Eileen, you really nailed it 🎉🎉🎉

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