Skip to content

Commit

Permalink
feat(libs/website/layout): create basic layout
Browse files Browse the repository at this point in the history
  • Loading branch information
HasithDeAlwis authored and MFarabi619 committed Nov 21, 2024
1 parent a398470 commit 49a2c75
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions libs/website/layouts/base.tsx
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} />
</>
)
}

0 comments on commit 49a2c75

Please sign in to comment.