@correlucas
Posted
👾Hello @edufelibugm, congratulations for your new solution!
🎨 Here’s some tips to improve your component design:
Instead of using this long code you can reach the overlay effect with only 2 lines:
@media (max-width: 1115px)
.card .mobile .cover {
width: 328px;
height: 240px;
border-radius: 10px 10px 0 0;
background: hsla(277, 49%, 38%, 0.581);
}
To make your hero image have the same look and the color purple overlay, you need to use mix-blend-mode
using the multiply
one.The mix-blend-mode CSS property sets how an element's content should blend with the content of the element's parent and the element's background.
Here’s how you can add this to your img
selector:
img { mix-blend-mode: multiply; opacity: 84%;}
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