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

@juanardanaz

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


Hello!

I´m a designer and video editor, still new to the IT world and last year I was studying web development.

This is my first challenge at Frontend Mentor. One of the problems I have was with the violet overlay. I think there is a better method to develop it because I am not completely satisfied.

Thank you very much for your time and your feedback!

Community feedback

Micpic3 0

@Micpic3

Posted

In regards to the violet overlay:

  1. The color is the same as the "accent" color defined in the style guide.

  2. There is a css property called mix-blend-mode. Mozilla has a section about it here: https://developer.mozilla.org/en-US/docs/Web/CSS/mix-blend-mode. In particular, the multiply option is most likely the one used for the challenge. The concept of blend modes is not unique to css. This is a resource I found helpful in understanding how some of them (including multiply) actually work: https://photoblogstop.com/photoshop/photoshop-blend-modes-explained.

So with respect to your code, you'll need your filter-img div over the img (which is already happening). Then, use mix-blend-mode: multiply in the filter-img div to multiply it with the image:

.filter-img {
  mix-blend-mode: multiply;
  background-color: hsl(277, 64%, 61%);
}
0

@juanardanaz

Posted

Hi @Micpic3, thank you very much for your comment and the information!

I will try that method!

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