Design comparison
Solution retrospective
how did you guys created the header section? how did you guys managed to change the arrow up and down on dropdown open and close respectively? how did you guys managed to show the image ,its height etc
any suggestion will appreciated .Thanks
Community feedback
- @Chanda-AbdulPosted over 2 years ago
Great Solution!
For the header section I conditionally rendered the content based on the screen size. I used an event listener/react hook to keep track of the current screen size. If the screen size is less than 600px I would display the Mobile Header, if the screen size is bigger than 600px I would display the Desktop Header. I did something similar with the images, switched from the mobile image to the desktop image at a specific breakpoint. But I will say that the main image does look a bit funky and the content looks a bit wonky near that breakpoint.
For the arrows, I initially set them to ⬆️. OnClick they would switch to ⬇️ and the dropdown menu's would open.
I hope that helps!
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