Stats Preview Card Component
Design comparison
Solution retrospective
Here are the difficulties faced during the implementation of the project:-
- To give the overlay colour on the header image.
- To change the image based on device width (when on mobile, the image change to image-header-mobile.jpg and when on desktop, image-header-desktop.jpg)
- The responsiveness of the card
May I get some ideas on how to solve those issues? Thank you.
Kind regards, Aima Aimaduddin bin Bollhasan
Community feedback
- @AdrianoEscarabotePosted almost 2 years ago
Hi Aima Aimaduddin bin Bollhasan, how are you? I really liked the result of your project, but I have some tips that I think you will enjoy:
To get closer to the photo overlay effect, you'd better use mix-blend-mode. All you need is the div under the image with this background color: hsl(277, 64%, 61%); and position mix-blend-mode: multiply and opacity: 80% on the image or apply image to activate the overlay by blending the image with the div's color. See the code below:
img { mix-blend mode: multiply; opacity: 80%; }
You can read this content which is explaining these effects with mix-blend-mode: click here
The rest is great!
I hope it helps... 👍
Marked as helpful1@aimaduddinPosted almost 2 years ago@AdrianoEscarabote
Hi Adriano. Thank you for the tip! I will try to read more about that and apply it in my code in the future. 😊
1
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