init commit
This commit is contained in:
commit
c0ee8a4a11
54 changed files with 1055 additions and 0 deletions
50
app/layout.tsx
Normal file
50
app/layout.tsx
Normal file
|
|
@ -0,0 +1,50 @@
|
|||
'use client'
|
||||
|
||||
import { Background, Header, Sidebar } from 'chora/components'
|
||||
import { MenuContextProvider, ThemeContextProvider } from 'chora/contexts'
|
||||
|
||||
import './globals.css'
|
||||
|
||||
const Layout = ({ children }: any) => (
|
||||
<html lang="en">
|
||||
<body>
|
||||
<ThemeContextProvider>
|
||||
<MenuContextProvider>
|
||||
<Background />
|
||||
<Header
|
||||
title={{
|
||||
link: '/',
|
||||
}}
|
||||
items={[
|
||||
{
|
||||
link: '/artifacts',
|
||||
title: 'artifacts',
|
||||
target: '',
|
||||
},
|
||||
]}
|
||||
showMenuButton={true}
|
||||
showMobileTitle={true}
|
||||
/>
|
||||
<Sidebar
|
||||
items={[
|
||||
{
|
||||
link: '.',
|
||||
target: '',
|
||||
title: 'home',
|
||||
},
|
||||
{
|
||||
link: 'artifacts',
|
||||
target: '',
|
||||
title: 'artifacts',
|
||||
},
|
||||
]}
|
||||
mobileOnly={true}
|
||||
/>
|
||||
<main>{children}</main>
|
||||
</MenuContextProvider>
|
||||
</ThemeContextProvider>
|
||||
</body>
|
||||
</html>
|
||||
)
|
||||
|
||||
export default Layout
|
||||
Loading…
Add table
Add a link
Reference in a new issue