News homepage - Solution with Next.js, Tailwind CSS and Typescript

Solution retrospective
I built this solution to the Frontend Mentor News Homepage challenge with Next.js 13, Tailwind CSS and Typescript.
For the mobile version (breakpoint of 768px width) I implemented a top bar that is sticky and a CSS only burger menu.
I would like to find a more elegant way of scaling the Footer flex containers based on the image height.
Any feedback is appreciated!
I struggled with passing the state of the menu being open or closed between the different components because of useState() only being accessible in Next.js client components. For now I am using "use client" in page.tsx as a solution, however, I would like to find a better way.
Please log in to post a comment
Log in with GitHubCommunity feedback
No feedback yet. Be the first to give feedback on exitsimulation's solution.
Join 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