Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found

Submitted

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

exitsimulationโ€ข 100

@exitsimulation

Desktop design screenshot for the News homepage coding challenge

This is a solution for...

  • HTML
  • CSS
  • JS
2junior
View challenge

Design comparison


SolutionDesign

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.

Community feedback

@catherineisonline

Posted

Nice! ๐Ÿ™Œ๐Ÿป

I would also add some transitions for active states (when colors change on hover). It creates more interactivity and makes the project looks cooler. Active states can be done on buttons, links, titles which act like links or anything else, you choose.

You can read more about it here, in case you havenโ€™t done much of it:โ€จhttps://www.w3schools.com/css/css3_transitions.asp

IF THIS WAS HELPFUL PLEASE MARK IT AS HELPFUL ๐Ÿคฉ

0

Please log in to post a comment

Log in with GitHub
Discord logo

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