Stats preview card component solution with SCSS and NEXT.JS 13
Design comparison
Solution retrospective
I think my blend image is not correct. Do you guys know the proper way to blend color over image ?
Community feedback
- @AdrianoEscarabotePosted almost 2 years ago
Hi Fiqih Alfito, how are you? I really liked the result of your project, but I have some tips that I think you will enjoy:
We have to make sure that all the content is contained in a reference region, designated with HTML5 reference elements.
HTML5 reference elements:
<body> <header>This is the header</header> <nav>This is the nav</nav> <main>This is the main</main> <footer>This is the footer</footer> </body>
The hero image has a color slightly different from the Figma design, if you want to match the color you can reach this using
mix-blend-mode
withmix-blend-mode: multiply;
. The multiply will make the image blend the div background and the opacity will make the image less evident and improve the blend between image/purple div. See the code below:img { mix-blend-mode: multiply; opacity: 0.8; }
The rest is great!
I hope it helps... 👍
Marked as helpful1
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