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

Stat Preview Card Using SASS

@anondobhai

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


Hi frontEnder!

This is my solution with sass for Stat Preview Card :) Please, give your opinion!

Happy coding ;)

Community feedback

Lucas ๐Ÿ‘พโ€ข 104,400

@correlucas

Posted

๐Ÿ‘พHello Abdullah, Congratulations on completing this challenge!

Here's one tip to improve the image:

I saw that you've tried to create the overlay effect using a div with position: absolute and the color/position properties. But there's an easier and quick way to apply the purple overlay color all you need to use mix-blend-mode to make the color blend between the image and the background-color of the container. See the steps below to apply to the img or picture selector:

img {
mix-blend-mode: multiply;
opacity: 75%;}

Here's a good article explaining these effects with mix-blend-mode: https://developer.mozilla.org/en-US/docs/Web/CSS/mix-blend-mode

โœŒ๏ธ I hope this helps you and happy coding!

Marked as helpful

1

@anondobhai

Posted

@correlucas Didn't know about mix-blend-mode property๐Ÿ˜…. Thanks bro for the helpful tip ๐Ÿ’.

1
Lucas ๐Ÿ‘พโ€ข 104,400

@correlucas

Posted

@anondobhai Its really useful, a new trick to use in future projects Abdullah ๐Ÿ‘

1

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