Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add global shared UI Header component to the root layout file #349

Open
nozomione opened this issue May 29, 2024 · 0 comments
Open

Add global shared UI Header component to the root layout file #349

nozomione opened this issue May 29, 2024 · 0 comments
Assignees

Comments

@nozomione
Copy link
Member

Context

Resource: Next.js: Migrate routing hooks

Currently, the following UI components are shared globally and rendered in the Layout component for the page router:

  • Band
    • ParticlesBg
  • BackToTopButton
  • Header
    • GlobalNav
    • GithubAnchor
    • LogoAnchor
    • NavDropDown
    • NavIcon
    • NavLink
  • Footer
  • Notification
  • PageTitle

In this issue, we want to render Header in the root layout of the app router. We'll also need to migrate the routing hook useRouter.

Problem or idea

As stated above, refactor the Header component and render it in the root layout of the app router.

Solution or next step

  • Refactor Header and adjust the sub-components as necessary
  • Add it to the root layout in the app folder
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant