
Design comparison
SolutionDesign
Solution retrospective
What challenges did you encounter, and how did you overcome them?
When resizing the window, instead of having the hero images resize, I made them behave like in the Figma design, where they stay the same size and are evenly cropped from both the left and right sides. I used flexbox to ensure that the hero images disappear equally on both sides as the window is resized.
But I have to wrap the hero content in an extra div for better control. Please kindly comment on my approach, is there anything I can do better?
Community feedback
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