Design comparison
Solution retrospective
Nice and straightforward, but I couldn't quite get the orange filter on the image after the hero section to match the figma files on this. The darker parts are much more defined on the original. Any suggestions on how to get there v much appreciated!
Also on forcing line breaks on titles in a few places is there a simpler way of doing this than with <span> tags?
Aside from those questions, any tweaks that could have been made v much appreciated!! 😎
Community feedback
- @gchristoffersonPosted about 3 years ago
Hey @fraserwat 🙋♂️
Nice job! Practically pixel perfect.
What I would do to fix your orange filter is remove all the styles associated with
image-filter::before
. Then on.image-filter
I would add the orange background color and the same border radius as your image. Then on your image I would addmix-blend-mode: multiply
. You might add some opacity, maybe .75 to lighten the image up a bit too for a better match. Here's an example:https://codepen.io/Gregg-Christofferson/pen/qBXapGJ
Hope that helps!
1@fraserwatPosted about 3 years ago@gchristofferson this is such a useful function - had no idea about this one, cheers!!!
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