Stats preview card component

Solution retrospective
Here I face a little bit of a problem, I can not make exact overlay color on like given design. If you can make it, please share it with me. Happy Coding :)
Please log in to post a comment
Log in with GitHubCommunity feedback
- @brasspetals
Hi, Jannatun Naher Reya! 👋
The image coloring was tricky on this one! For your solution, you actually don't need to use a
::before
element. I did this when I was trying to figure out the coloring too.😄Delete your
::before
element and set thebackground-color
of the.image-container
to the purple accent color. Then setmix-blend-mode: multiply
on.image-container img
. Adding anopacity
to your.image-container img
, somewhere around0.8
, should complete the look!You might also want to change the font-family on your h1 to match the design. 👍
Hope this helps - and happy coding!
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