responsive landing page using CSS positioning properties
Design comparison
Solution retrospective
I really used lots of relative and absolute positionings throughout the CSS to complete this challenge. It was a good learning experience of CSS position
properties. The background picture in mobile screen however, for some unknown reason was a bit compressed than the original, although I have set the image to the exact dimensions that Figma provided.
I still haven't found really helpful resources on how to configure CSS filter to get the image color change on hover. The block below changes the social icon color/hue from black to orange. Can some one explain how this works or send some helpful links? I got the filter configurations from @mendoncajoao who has completed the challenge.
.social_media a:hover,
.social_media a:active {
filter: invert(74%) sepia(57%) saturate(5327%) hue-rotate(327deg) brightness(103%) contrast(96%);
}
Community feedback
- @mendoncajoaoPosted over 2 years ago
Hey Clara!
I posted on my reply the resources for the CSS filter, but I will repost them here, so people that are led to your solution can also have access to the resources:
CodePen Home CSS filter generator to convert from black to target hex color
CSS tricks has a page on CSS filters that explains some tricks to change the hue colors: Ways to change svg fill colors with css filters
If you want to get really technical and maybe even go crazy, check this discussion on stackoverflow: Crazy maths ahead: Watch out!
1@clarafuwenPosted over 2 years ago@mendoncajoao Thank you for being so thoughtful! One more reason I should start using CodePen now :)
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