-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(libs/website/layout): create basic layout
- Loading branch information
1 parent
a398470
commit 49a2c75
Showing
1 changed file
with
23 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
import { FOOTER_CONSTANTS, FooterPresenter, NAVBAR_CONSTANTS, NavbarPresenter } from '@website/shared/ui/navigation' | ||
import React from 'react' | ||
import { ClientOnly } from 'remix-utils/client-only' | ||
|
||
export function Layout({ children }) { | ||
return ( | ||
<> | ||
<ClientOnly> | ||
{() => ( | ||
<NavbarPresenter | ||
links={NAVBAR_CONSTANTS.LINKS} | ||
logo={NAVBAR_CONSTANTS.LOGO} | ||
socials={NAVBAR_CONSTANTS.SOCIALS} | ||
hamburger={NAVBAR_CONSTANTS.HAMBURGER} | ||
/> | ||
)} | ||
</ClientOnly> | ||
|
||
<div className="mt-10">{children}</div> | ||
<FooterPresenter logo={FOOTER_CONSTANTS.LOGO} socials={FOOTER_CONSTANTS.SOCIALS} /> | ||
</> | ||
) | ||
} |