Stats preview card component

Solution retrospective
I faced many difficulties when trying to make the images responsive. Prior to this project I used background images for images section of the webpage. The problems I faced are as follows:
- The object-fit property didn't work when I used it on large screens but worked when I used it on smaller screens, you can check it in my code. Anyone know why?
- I ended up using flexbox to make the image a flex item and cover the container it was in.
- The purple filter or overlay on the image was tricky to design. After some internet surfing I found many solution but nothing worked. At last I used background color and made the image transparent to get the desired effect. Any other ideas on how to design this?
Please log in to post a comment
Log in with GitHubCommunity feedback
No feedback yet. Be the first to give feedback on ShyamCanCode's solution.
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