Design comparison
Solution retrospective
I struggled with getting the desktop image to fully cover the height of the card container between the viewport range of 960px to 1060px. I am very reticent to add a fixed height to any element. Even when I did for this challenge I still had issues with the image not taking up the entire space I wanted it to. I am still learning about responsive behavior of elements.
The violet overlay on the image doesn't completely match the contrast/intensity of the design. Not sure if there was anything else that could be done with code to adjust for this.
Let me know what you think of my solution!
Community feedback
- @0xabdulkhaliqPosted over 1 year ago
Hello there 👋. Congratulations on successfully completing the challenge! 🎉
- I have other recommendations regarding your code that I believe will be of great interest to you.
iMAGE BLEND 📸:
- The image is not properly blended with the primary color.
- Just quickly resolve it by adding
mix-blend-mode
property to the image and add the violet color as the background for the image container
- Example:
.card-image { opacity: .75; mix-blend-mode: multiply; }
- Now you got the desired result where the image is perfectly blended with the background violet, and the result will accurately match the design image
.
I hope you find this helpful 😄 Above all, the solution you submitted is great !
Happy coding!
Marked as helpful1@amyspencerprojectPosted over 1 year ago@0xAbdulKhalid Thank you!! It looks so much better now. 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