Design comparison
SolutionDesign
Community feedback
- @correlucasPosted over 2 years ago
๐พHello Carrara, congratulations for your solution!
Your component is working fine and responsive. But you can improve it importing the image using <img> or <picture> directly from the html, doing that is better than using a pseudo-elements for SEO reasons.
To add the exact same purple overlay effect for the image, matching the design files you can user,
filter
,background-blend-mode
ormix-blend-mode
(the best choice in my opinion). See the code below:img { mix-blend-mode: multiply; opacity: 0.8;}
Hope it helps and happy coding!
0
Please log in to post a comment
Log in with GitHubJoin 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