News homepage - Solution with Next.js, Tailwind CSS and Typescript
Design comparison
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
- @catherineisonlinePosted almost 2 years ago
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 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