Skip to content
  • Unlock Pro
  • Log in with GitHub
Solution
Submitted about 3 years ago

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

next, react, tailwind-css
exitsimulation•100
@exitsimulation
A solution to the News homepage challenge
View live sitePreview (opens in new tab)View codeCode (opens in new tab)

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.

Code
Loading...

Please log in to post a comment

Log in with GitHub

Community 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

Stay up to datewith new challenges, featured solutions, selected articles, and our latest news

Frontend Mentor

  • Unlock Pro
  • Contact us
  • FAQs
  • Become a partner
  • Use cases

Explore

  • Learning paths
  • Challenges
  • Solutions
  • Articles

Community

  • Discord
  • Guidelines

For companies

  • Hire developers
  • Train developers
© Frontend Mentor 2019 - 2025
  • Terms
  • Cookie Policy
  • Privacy Policy
  • License