Skip to content

The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.

start adding react layout with updated sidebar

Jonathan Summers-Muir007813b772e5
diff --git a/apps/docs/components/NavigationMenu/index.tsx b/apps/docs/components/NavigationMenu/index.tsx
new file mode 100644
index 00000000000..731b0ec0176
--- /dev/null
+++ b/apps/docs/components/NavigationMenu/index.tsx
@@ -0,0 +1,216 @@
+import { useRouter } from 'next/router'
+import { useState } from 'react'
+
+const SideNav = () => {
+ console.log('sidebar rerendered')
+ const router = useRouter()
+
+ const [level, setLevel] = useState('home')
+
+ const tempBasePath = '/new'
+
+ const home = [
+ {
+ label: 'Home',
+ icon: 'home.svg',
+ href: '',
+ level: 'home',
+ },
+ {
+ label: 'Getting started',
+ icon: 'getting-started.svg',
+ level: 'getting-started',
+ },
+ {
+ label: 'Tutorials',
+ icon: 'tutorials.svg',
+ level: 'tutorials',
+ },
+ {
+ label: 'Database',
+ icon: 'database.svg',
+ level: 'database',
+ },
+ {
+ label: 'Auth',
+ icon: 'auth.svg',
+ href: '/auth',
+ level: 'auth',
+ },
+ {
+ label: 'Storage',
+ icon: 'storage.svg',
+ level: 'storage',
+ },
+ {
+ label: 'API Reference',
+ icon: 'api.svg',
+ href: '/ref',
+ level: 'ref',
+ },
+ {
+ label: 'Integrations',
+ icon: 'integrations.svg',
+ level: 'integrations',
+ },
+ {
+ label: 'Platform',
+ icon: 'platform.svg',
+ level: 'platform',
+ },
+ ]
+
+ const auth = [
+ {
+ label: 'back',
+ icon: 'home.svg',
+ href: '',
+ level: 'home',
+ },
+ ]
+
+ const ref = [
+ {
+ label: 'back',
+ icon: 'home.svg',
+ href: '',
+ level: 'home',
+ },
+ {
+ label: 'supabsae-js',
+ icon: 'home.svg',
+ href: '/ref/js/start',
+ level: 'ref_js',
+ },
+ ]
+
+ const ref_js = [
+ {
+ label: 'back to ref',
+ icon: 'home.svg',
+ href: '/ref',
+ level: 'ref',
+ },
+ ]
+
+ return (
+ <div className="flex py-10 px-5">
+ {/* // main menu */}
+ <div
+ className={[
+ 'absolute transition-all ml-8 duration-200',
+ level === 'home' ? 'opacity-100 ml-0 visible' : 'opacity-0 invisible',
+ ].join(' ')}
+ >
+ <ul className="relative w-full flex flex-col gap-2">
+ {home.map((link) => {
+ return (
+ <a
+ onClick={() => {
+ setLevel(link.level)
+ router.push(tempBasePath + link.href)
+ }}
+ >
+ <li
+ className={[
+ 'flex items-center gap-3',
+ 'text-base transition-all duration-200 text-scale-1200 hover:text-brand-900 hover:cursor-pointer ',
+ ].join(' ')}
+ >
+ <img src={`${router.basePath}/img/icons/menu/${link.icon}`} />
+ {link.label}
+ </li>
+ </a>
+ )
+ })}
+ </ul>
+ </div>
+
+ {/* // auth menu */}
+ <div
+ className={[
+ 'absolute transition-all ml-8 duration-200',
+ level === 'auth' ? 'opacity-100 ml-0 visible' : 'opacity-0 invisible',
+ ].join(' ')}
+ >
+ <ul className={'relative w-full flex flex-col gap-2'}>
+ {auth.map((link) => {
+ return (
+ <li
+ onClick={() => {
+ setLevel(link.level)
+ router.push(tempBasePath + link.href)
+ }}
+ className={[
+ 'flex items-center gap-3',
+ 'text-base transition-all duration-200 text-scale-1200 hover:text-brand-900 hover:cursor-pointer ',
+ ].join(' ')}
+ >
+ <img src={`${router.basePath}/img/icons/menu/${link.icon}`} />
+ {link.label}
+ </li>
+ )
+ })}
+ </ul>
+ </div>
+
+ {/* // ref menu */}
+ <div
+ className={[
+ 'absolute transition-all ml-8 duration-200',
+ level === 'ref' ? 'opacity-100 ml-0 visible' : 'opacity-0 invisible',
+ ].join(' ')}
+ >
+ <ul className={'relative w-full flex flex-col gap-2'}>
+ {ref.map((link) => {
+ return (
+ <li
+ onClick={() => {
+ setLevel(link.level)
+ router.push(tempBasePath + link.href)
+ }}
+ className={[
+ 'flex items-center gap-3',
+ 'text-base transition-all duration-200 text-scale-1200 hover:text-brand-900 hover:cursor-pointer ',
+ ].join(' ')}
+ >
+ <img src={`${router.basePath}/img/icons/menu/${link.icon}`} />
+ {link.label}
+ </li>
+ )
+ })}
+ </ul>
+ </div>
+
+ {/* // JS menu */}
+ <div
+ className={[
+ 'absolute transition-all ml-8 duration-200',
+ level === 'ref_js' ? 'opacity-100 ml-0 visible' : 'opacity-0 invisible',
+ ].join(' ')}
+ >
+ <ul className={'relative w-full flex flex-col gap-2'}>
+ {ref_js.map((link) => {
+ return (
+ <li
+ onClick={() => {
+ setLevel(link.level)
+ router.push(tempBasePath + link.href)
+ }}
+ className={[
+ 'flex items-center gap-3',
+ 'text-base transition-all duration-200 text-scale-1200 hover:text-brand-900 hover:cursor-pointer ',
+ ].join(' ')}
+ >
+ <img src={`${router.basePath}/img/icons/menu/${link.icon}`} />
+ {link.label}
+ </li>
+ )
+ })}
+ </ul>
+ </div>
+ </div>
+ )
+}
+
+export default SideNav
diff --git a/apps/docs/layouts/DefaultLayout.tsx b/apps/docs/layouts/DefaultLayout.tsx
index fe682e44686..ca550788c07 100644
--- a/apps/docs/layouts/DefaultLayout.tsx
+++ b/apps/docs/layouts/DefaultLayout.tsx
@@ -12,7 +12,6 @@ interface Props {
children: any
toc?: any
menuItems: any
- currentPage: string
}
const Layout: FC<Props> = (props: Props) => {
@@ -53,41 +52,33 @@ const Layout: FC<Props> = (props: Props) => {
<meta property="og:title" content={props.meta?.title} />
</Head>
- <main>
- {/* <NavBar currentPage={currentPage} /> */}
- <div className="flex w-full flex-row">
- <NavBar currentPage={null} />
- <SideBar menuItems={props.menuItems} />
- <div className="main-content-pane docs-width grid md:grid-cols-12 gap-4 justify-between p-4 pb-8 w-full">
- <div
- className={`${
- props.meta?.hide_table_of_contents || !hasTableOfContents
- ? 'col-span-12 xl:col-start-2 xl:col-span-10 2xl:col-start-3 2xl:col-span-8'
- : 'col-span-12 md:col-span-9'
- } py-2 md:py-4 px-2 md:px-8`}
- >
- <p className="text-brand-900 tracking-wider">Tutorials</p>
- <article className="prose dark:prose-dark dark:bg-scale-200 max-w-4xl mt-8">
- <h1>{props.meta.title}</h1>
- <div className="max-w-xs w-32 h-[1px] bg-gradient-to-r from-brand-800 to-brand-900 my-16"></div>
+ <div className="main-content-pane docs-width grid md:grid-cols-12 gap-4 justify-between p-4 pb-8 w-full">
+ <div
+ className={`${
+ props.meta?.hide_table_of_contents || !hasTableOfContents
+ ? 'col-span-12 xl:col-start-2 xl:col-span-10 2xl:col-start-3 2xl:col-span-8'
+ : 'col-span-12 md:col-span-9'
+ } py-2 md:py-4 px-2 md:px-8`}
+ >
+ <p className="text-brand-900 tracking-wider">Tutorials</p>
+ <article className="prose dark:prose-dark dark:bg-scale-200 max-w-4xl mt-8">
+ <h1>{props.meta.title}</h1>
+ <div className="max-w-xs w-32 h-[1px] bg-gradient-to-r from-brand-800 to-brand-900 my-16"></div>
- <MDXProvider components={components} children={props.children} />
- </article>
- </div>
- {hasTableOfContents && !props.meta?.hide_table_of_contents && (
- <div
- className={[
- 'border-scale-400 dark:bg-scale-200 table-of-contents-height border-l',
- 'thin-scrollbar overflow-y-auto sticky hidden md:block md:col-span-3 px-2',
- ].join(' ')}
- >
- <TableOfContents toc={props.toc} video={props.meta.video} />
- </div>
- )}
- </div>
+ <MDXProvider components={components} children={props.children} />
+ </article>
</div>
- <Footer />
- </main>
+ {hasTableOfContents && !props.meta?.hide_table_of_contents && (
+ <div
+ className={[
+ 'border-scale-400 dark:bg-scale-200 table-of-contents-height border-l',
+ 'thin-scrollbar overflow-y-auto sticky hidden md:block md:col-span-3 px-2',
+ ].join(' ')}
+ >
+ <TableOfContents toc={props.toc} video={props.meta.video} />
+ </div>
+ )}
+ </div>
</>
)
}
diff --git a/apps/docs/layouts/SiteLayout.tsx b/apps/docs/layouts/SiteLayout.tsx
new file mode 100644
index 00000000000..7f063211927
--- /dev/null
+++ b/apps/docs/layouts/SiteLayout.tsx
@@ -0,0 +1,22 @@
+import Footer from '~/components/Footer'
+import NavBar from '~/components/Navigation/NavBar'
+import NavigationMenu from '~/components/NavigationMenu'
+
+const Layout = ({ children }) => {
+ return (
+ <>
+ <main>
+ <NavBar />
+ <div className="flex flex-row opacity-100 duration-100">
+ <div className="w-[320px]">
+ <NavigationMenu />
+ </div>
+ <div className="">{children}</div>
+ </div>
+ <Footer />
+ </main>
+ </>
+ )
+}
+
+export default Layout
diff --git a/apps/docs/pages/[...slug].tsx b/apps/docs/pages/[...slug].tsx
index e5becdfe654..5651f9b8be8 100644
--- a/apps/docs/pages/[...slug].tsx
+++ b/apps/docs/pages/[...slug].tsx
@@ -23,7 +23,6 @@ export default function Doc({ meta, content, toc }: Props) {
return (
// @ts-ignore
<Layout meta={meta} toc={toc}>
- <h1 className="text-7xl text-white">helo world</h1>
<MDXRemote {...content} components={components} />
</Layout>
)
diff --git a/apps/docs/pages/_app.tsx b/apps/docs/pages/_app.tsx
index 8a7e91dbafe..612ccbbacc7 100644
--- a/apps/docs/pages/_app.tsx
+++ b/apps/docs/pages/_app.tsx
@@ -1,17 +1,19 @@
-import { useEffect } from 'react'
-import { useRouter } from 'next/router'
-import type { AppProps } from 'next/app'
import { post } from 'lib/fetchWrappers'
-import { ThemeProvider } from '../components/Providers'
+import { useRouter } from 'next/router'
+import { useEffect } from 'react'
+import { AppPropsWithLayout } from 'types'
import { SearchProvider } from '~/components/DocSearch'
-import '../styles/main.scss?v=1.0.0'
-import '../styles/docsearch.scss'
+import { ThemeProvider } from '../components/Providers'
import '../styles/algolia-search.scss'
-import '../styles/prism-okaidia.scss'
import '../styles/ch.scss'
+import '../styles/docsearch.scss'
+import '../styles/main.scss?v=1.0.0'
import '../styles/new-docs.scss'
+import '../styles/prism-okaidia.scss'
+
+import SiteLayout from '~/layouts/SiteLayout'
-function MyApp({ Component, pageProps }: AppProps) {
+function MyApp({ Component, pageProps }: AppPropsWithLayout) {
const router = useRouter()
function telemetry(route: string) {
@@ -34,10 +36,12 @@ function MyApp({ Component, pageProps }: AppProps) {
}
}, [router.events])
+ const getLayout = Component.getLayout || ((page) => page)
+
return (
<ThemeProvider>
<SearchProvider>
- <Component {...pageProps} />
+ <SiteLayout>{getLayout(<Component {...pageProps}></Component>)}</SiteLayout>
</SearchProvider>
</ThemeProvider>
)
diff --git a/apps/docs/pages/new/1.mdx b/apps/docs/pages/new/1.mdx
new file mode 100644
index 00000000000..3eba9f5956e
--- /dev/null
+++ b/apps/docs/pages/new/1.mdx
@@ -0,0 +1,92 @@
+import Layout from '~/layouts/DefaultLayout'
+
+export const meta = {
+ title: 'Supabase Docs',
+}
+
+Auth UI is a pre-built React component for authenticating users.
+It supports custom themes and extensible styles to match your brand and aesthetic.
+
+<video width="99%" muted playsInline controls="true">
+ <source
+ src="https://supabase.com/images/blog/lw5-one-more/auth-ui-demo.mp4"
+ type="video/mp4"
+ muted
+ playsInline
+ />
+</video>
+
+## Set up Auth UI
+
+Install the latest version of [supabase-js](/docs/reference/javascript) and the Auth UI package:
+
+```bash
+npm install @supabase/supabase-js @supabase/auth-ui-react
+```
+
+### Import the Auth component
+
+Pass `supabaseClient` from `@supabase/supabase-js` as a prop to the component.
+
+```js title=/src/index.js
+import { createClient } from '@supabase/supabase-js'
+import { Auth } from '@supabase/auth-ui-react'
+
+const supabase = createClient('<INSERT PROJECT URL>', '<INSERT PROJECT ANON API KEY>')
+
+const App = () => <Auth supabaseClient={supabase} />
+```
+
+This renders the Auth component without any styling.
+We recommend using one of the predefined themes to style the UI.
+Import the theme you want to use and pass it to the `appearence.theme` prop.
+
+```js lines=4,11 title=/src/index.js
+import {
+ Auth,
+ // Import predefined theme
+ ThemeSupa,
+} from '@supabase/auth-ui-react'
+
+const App = () => (
+ <Auth
+ supabaseClient={supabase}
+ {/* Apply predefined theme */}
+ appearance={{ theme: ThemeSupa }}
+ />
+)
+```
+
+## Customization
+
+There are several ways to customize Auth UI:
+
+- Use one of the [predefined themes](#predefined-themes) that comes with Auth UI
+- Extend a theme by [overriding the variable tokens](#override-themes) in a theme
+- [Create your own theme](#create-theme)
+- [Use your own CSS classes](#custom-css-classes)
+- [Use inline styles](#custom-inline-styles)
+- [Use your own labels](#custom-labels)
+
+### Predefined themes
+
+Auth UI comes with several themes to customize the appearance. Each predefined theme comes with at least two variations, a `default` variation, and a `dark` variation. You can switch between these themes using the `theme` prop. Import the theme you want to use and pass it to the `appearence.theme` prop.
+
+```js lines=2,10 title=/src/index.js
+import { createClient } from '@supabase/supabase-js'
+import { Auth, ThemeSupa } from '@supabase/auth-ui-react'
+
+const supabase = createClient('<INSERT PROJECT URL>', '<INSERT PROJECT ANON API KEY>')
+
+const App = () => (
+ <Auth
+ supabaseClient={supabase}
+ {/* Apply predefined theme */}
+ appearance={{ theme: ThemeSupa }}
+ />
+)
+```
+
+export const Page = ({ children }) => <Layout meta={meta} children={children} />
+
+export default Page
diff --git a/apps/docs/pages/new/auth.mdx b/apps/docs/pages/new/auth.mdx
new file mode 100644
index 00000000000..4d846a79353
--- /dev/null
+++ b/apps/docs/pages/new/auth.mdx
@@ -0,0 +1,11 @@
+import Layout from '~/layouts/DefaultLayout'
+
+export const meta = {
+ title: 'Auth',
+}
+
+## wowzers auth !!
+
+export const Page = ({ children }) => <Layout meta={meta} children={children} />
+
+export default Page
diff --git a/apps/docs/pages/new/index.mdx b/apps/docs/pages/new/index.mdx
index 1ea8a21f30a..436a2588c71 100644
--- a/apps/docs/pages/new/index.mdx
+++ b/apps/docs/pages/new/index.mdx
@@ -8,4 +8,8 @@ In this 25-minute guide, we’ll be building a collaborative user managment app
As users add and move rectangles in a canvas, changes will be automatically synced and persisted, allowing for a canvas that updates in real-time across clients.
Users will also be able to see other users selections, and undo and redo actions.
-export default ({ children }) => <Layout meta={meta} children={children} />
+hello world
+
+export const Page = ({ children }) => <Layout meta={meta} children={children} />
+
+export default Page
diff --git a/apps/docs/pages/new/ref/index.mdx b/apps/docs/pages/new/ref/index.mdx
new file mode 100644
index 00000000000..6d74a1c57ff
--- /dev/null
+++ b/apps/docs/pages/new/ref/index.mdx
@@ -0,0 +1,11 @@
+import Layout from '~/layouts/DefaultLayout'
+
+export const meta = {
+ title: 'Ref',
+}
+
+## REF REF
+
+export const Page = ({ children }) => <Layout meta={meta} children={children} />
+
+export default Page
diff --git a/apps/docs/pages/ref/js/[...slug].tsx b/apps/docs/pages/new/ref/js/[...slug].tsx
similarity index 99%
rename from apps/docs/pages/ref/js/[...slug].tsx
rename to apps/docs/pages/new/ref/js/[...slug].tsx
index 97a13c3486f..803fae66c4e 100644
--- a/apps/docs/pages/ref/js/[...slug].tsx
+++ b/apps/docs/pages/new/ref/js/[...slug].tsx
@@ -21,7 +21,7 @@ import jsTypeSpec from '~/../../spec/enrichments/tsdoc_v2/combined.json'
// @ts-ignore
import examples from '~/../../spec/examples/examples.yml' assert { type: 'yml' }
// @ts-expect-error
-import jsSpec from '~/../../spec/supabase_js_v2_temp_new_shape--reduced.yml' assert { type: 'yml' }
+import jsSpec from '~/../../spec/supabase_js_v2_temp_new_shape.yml' assert { type: 'yml' }
import { IconDatabase, Tabs } from '~/../../packages/ui'
import CodeBlock from '~/components/CodeBlock/CodeBlock'
diff --git a/apps/docs/public/img/icons/menu/api.svg b/apps/docs/public/img/icons/menu/api.svg
new file mode 100644
index 00000000000..90ff154832e
--- /dev/null
+++ b/apps/docs/public/img/icons/menu/api.svg
@@ -0,0 +1,7 @@
+<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
+<circle cx="3.80957" cy="3.83301" r="2" fill="#133929" stroke="#4CC38A" stroke-miterlimit="10" stroke-linejoin="bevel"/>
+<circle cx="3.80957" cy="12.1489" r="2" fill="#133929" stroke="#4CC38A" stroke-miterlimit="10" stroke-linejoin="bevel"/>
+<circle cx="12.1719" cy="3.83301" r="2" fill="#133929" stroke="#4CC38A" stroke-miterlimit="10" stroke-linejoin="bevel"/>
+<circle cx="12.1719" cy="12.1489" r="2" fill="#133929" stroke="#4CC38A" stroke-miterlimit="10" stroke-linejoin="bevel"/>
+<path d="M13.8599 7.9998C13.8599 6.97158 13.5951 6.00522 13.13 5.16518M7.9998 13.8599C9.08655 13.8599 10.1042 13.5641 10.9766 13.0486M2.13965 7.9998C2.13965 9.0665 2.42465 10.0666 2.92267 10.9282M7.9998 2.13965C6.91075 2.13965 5.89108 2.43672 5.01742 2.95425" stroke="#4CC38A" stroke-miterlimit="10" stroke-linejoin="bevel"/>
+</svg>
diff --git a/apps/docs/public/img/icons/menu/auth.svg b/apps/docs/public/img/icons/menu/auth.svg
new file mode 100644
index 00000000000..49fcad94703
--- /dev/null
+++ b/apps/docs/public/img/icons/menu/auth.svg
@@ -0,0 +1,6 @@
+<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
+<path d="M9.5 5C9.5 5.27614 9.72386 5.5 10 5.5C10.2761 5.5 10.5 5.27614 10.5 5H9.5ZM9.5 3V5H10.5V3H9.5ZM6.5 5V3H5.5V5H6.5ZM8 1.5C8.82843 1.5 9.5 2.17157 9.5 3H10.5C10.5 1.61929 9.38071 0.5 8 0.5V1.5ZM8 0.5C6.61929 0.5 5.5 1.61929 5.5 3H6.5C6.5 2.17157 7.17157 1.5 8 1.5V0.5Z" fill="#4CC38A"/>
+<rect x="12.4727" y="5" width="9" height="9" transform="rotate(90 12.4727 5)" stroke="#4CC38A" stroke-miterlimit="10" stroke-linejoin="bevel"/>
+<rect x="3.49414" y="7.97461" width="5" height="2" fill="#133929" stroke="#4CC38A" stroke-miterlimit="10" stroke-linejoin="bevel"/>
+<rect x="3.49414" y="9.97461" width="5" height="2" fill="#133929" stroke="#4CC38A" stroke-miterlimit="10" stroke-linejoin="bevel"/>
+</svg>
diff --git a/apps/docs/public/img/icons/menu/database.svg b/apps/docs/public/img/icons/menu/database.svg
new file mode 100644
index 00000000000..8b8205599c2
--- /dev/null
+++ b/apps/docs/public/img/icons/menu/database.svg
@@ -0,0 +1,5 @@
+<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
+<path d="M2.99982 10.0368H12.9998V14.0368H2.99982V10.0368Z" fill="#133929" stroke="#4CC38A" stroke-width="0.636673" stroke-miterlimit="10" stroke-linejoin="bevel"/>
+<rect x="3.50189" y="5.9998" width="8.99609" height="4" stroke="#4CC38A" stroke-width="0.636673" stroke-miterlimit="10" stroke-linejoin="bevel"/>
+<path d="M2.99982 2.00008H12.9998V6.00008H2.99982V2.00008Z" fill="#133929" stroke="#4CC38A" stroke-width="0.636673" stroke-miterlimit="10" stroke-linejoin="bevel"/>
+</svg>
diff --git a/apps/docs/public/img/icons/menu/edge-functions.svg b/apps/docs/public/img/icons/menu/edge-functions.svg
new file mode 100644
index 00000000000..734a4c89e51
--- /dev/null
+++ b/apps/docs/public/img/icons/menu/edge-functions.svg
@@ -0,0 +1,6 @@
+<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
+<circle cx="12.625" cy="3.43188" r="2" fill="#133929" stroke="#4CC38A" stroke-miterlimit="10" stroke-linejoin="bevel"/>
+<circle cx="3.37109" cy="12.561" r="2" fill="#133929" stroke="#4CC38A" stroke-miterlimit="10" stroke-linejoin="bevel"/>
+<path d="M1.85724 11.3593C1.31075 10.3621 1 9.21735 1 8C1 4.13401 4.13401 1 8 1C9.18025 1 10.2923 1.29209 11.2677 1.80794M4.77293 14.2134C5.73858 14.716 6.83612 15 8 15C11.866 15 15 11.866 15 8C15 6.81345 14.7048 5.69585 14.1838 4.71665" stroke="#4CC38A" stroke-miterlimit="10" stroke-linejoin="bevel"/>
+<circle cx="8" cy="8" r="4.5" fill="#133929" stroke="#4CC38A" stroke-miterlimit="10" stroke-linejoin="bevel"/>
+</svg>
diff --git a/apps/docs/public/img/icons/menu/getting-started.svg b/apps/docs/public/img/icons/menu/getting-started.svg
new file mode 100644
index 00000000000..8b8205599c2
--- /dev/null
+++ b/apps/docs/public/img/icons/menu/getting-started.svg
@@ -0,0 +1,5 @@
+<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
+<path d="M2.99982 10.0368H12.9998V14.0368H2.99982V10.0368Z" fill="#133929" stroke="#4CC38A" stroke-width="0.636673" stroke-miterlimit="10" stroke-linejoin="bevel"/>
+<rect x="3.50189" y="5.9998" width="8.99609" height="4" stroke="#4CC38A" stroke-width="0.636673" stroke-miterlimit="10" stroke-linejoin="bevel"/>
+<path d="M2.99982 2.00008H12.9998V6.00008H2.99982V2.00008Z" fill="#133929" stroke="#4CC38A" stroke-width="0.636673" stroke-miterlimit="10" stroke-linejoin="bevel"/>
+</svg>
diff --git a/apps/docs/public/img/icons/menu/home.svg b/apps/docs/public/img/icons/menu/home.svg
new file mode 100644
index 00000000000..9b4269a849d
--- /dev/null
+++ b/apps/docs/public/img/icons/menu/home.svg
@@ -0,0 +1,5 @@
+<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
+<circle cx="8" cy="7.82764" r="2" fill="#133929" stroke="#4CC38A" stroke-miterlimit="10" stroke-linejoin="bevel"/>
+<path d="M11.32 15V13.0721C11.32 11.2802 9.86737 9.82764 8.07551 9.82764V9.82764C6.28364 9.82764 4.83105 11.2802 4.83105 13.0721V15" stroke="#4CC38A" stroke-miterlimit="10" stroke-linejoin="bevel"/>
+<path d="M4.70982 13.0182C3.07765 11.946 2 10.0988 2 8C2 4.68629 4.68629 2 8 2C11.3137 2 14 4.68629 14 8C14 10.0988 12.9223 11.946 11.2902 13.0182" stroke="#4CC38A" stroke-miterlimit="10"/>
+</svg>
diff --git a/apps/docs/public/img/icons/menu/integrations.svg b/apps/docs/public/img/icons/menu/integrations.svg
new file mode 100644
index 00000000000..6819b3bf467
--- /dev/null
+++ b/apps/docs/public/img/icons/menu/integrations.svg
@@ -0,0 +1,7 @@
+<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
+<rect x="2.08203" y="2.09741" width="5" height="5" stroke="#4CC38A" stroke-miterlimit="10" stroke-linejoin="bevel"/>
+<rect x="8.91797" y="8.90283" width="5" height="5" stroke="#4CC38A" stroke-miterlimit="10" stroke-linejoin="bevel"/>
+<path d="M11.4178 2.09741V7.09741" stroke="#4CC38A" stroke-miterlimit="10" stroke-linejoin="bevel"/>
+<path d="M13.918 4.59756L8.91797 4.59756" stroke="#4CC38A" stroke-miterlimit="10" stroke-linejoin="bevel"/>
+<circle cx="4.58203" cy="11.291" r="2.5" fill="#133929" stroke="#4CC38A" stroke-miterlimit="10" stroke-linejoin="bevel"/>
+</svg>
diff --git a/apps/docs/public/img/icons/menu/platform.svg b/apps/docs/public/img/icons/menu/platform.svg
new file mode 100644
index 00000000000..08b1db0487f
--- /dev/null
+++ b/apps/docs/public/img/icons/menu/platform.svg
@@ -0,0 +1,5 @@
+<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
+<path d="M2.99982 10.0368H12.9998V14.0368H2.99982V10.0368Z" fill="#133929" stroke="#4CC38A" stroke-width="0.636673" stroke-miterlimit="10" stroke-linejoin="bevel"/>
+<rect x="3.50189" y="5.99981" width="8.99609" height="4" stroke="#4CC38A" stroke-width="0.636673" stroke-miterlimit="10" stroke-linejoin="bevel"/>
+<path d="M2.99982 2.00008H12.9998V6.00008H2.99982V2.00008Z" fill="#133929" stroke="#4CC38A" stroke-width="0.636673" stroke-miterlimit="10" stroke-linejoin="bevel"/>
+</svg>
diff --git a/apps/docs/public/img/icons/menu/realtime.svg b/apps/docs/public/img/icons/menu/realtime.svg
new file mode 100644
index 00000000000..2c3be34319e
--- /dev/null
+++ b/apps/docs/public/img/icons/menu/realtime.svg
@@ -0,0 +1,6 @@
+<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
+<path d="M4.55762 4.52319L9.07535 14.8547L10.2522 10.2968L15.0002 9.11499L4.55762 4.52319Z" fill="#133929" stroke="#4CC38A" stroke-miterlimit="10" stroke-linejoin="bevel"/>
+<path d="M1.36621 1.28163L3.49715 3.47772" stroke="#4CC38A" stroke-miterlimit="10"/>
+<line x1="5.3623" y1="0.984375" x2="5.3623" y2="3.33325" stroke="#4CC38A" stroke-miterlimit="10"/>
+<line x1="3.41797" y1="5.20288" x2="1.05225" y2="5.20288" stroke="#4CC38A" stroke-miterlimit="10"/>
+</svg>
diff --git a/apps/docs/public/img/icons/menu/storage.svg b/apps/docs/public/img/icons/menu/storage.svg
new file mode 100644
index 00000000000..28e14c94387
--- /dev/null
+++ b/apps/docs/public/img/icons/menu/storage.svg
@@ -0,0 +1,5 @@
+<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
+<path d="M3 14.0002H13V5.60119L9.38184 2.00024H3V14.0002Z" stroke="#4CC38A" stroke-miterlimit="10" stroke-linejoin="bevel"/>
+<path d="M9.38037 2L12.9648 5.58447L9.38037 5.58447L9.38037 2Z" fill="#133929" stroke="#4CC38A" stroke-miterlimit="10" stroke-linejoin="bevel"/>
+<path d="M2 5.99976H4.87717L6.41088 7.50869H14V13.9998H2V5.99976Z" fill="#133929" stroke="#4CC38A" stroke-miterlimit="10" stroke-linejoin="bevel"/>
+</svg>
diff --git a/apps/docs/public/img/icons/menu/tutorials.svg b/apps/docs/public/img/icons/menu/tutorials.svg
new file mode 100644
index 00000000000..cfd48d44cf1
--- /dev/null
+++ b/apps/docs/public/img/icons/menu/tutorials.svg
@@ -0,0 +1,7 @@
+<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
+<circle cx="8" cy="8" r="6" stroke="#4CC38A" stroke-miterlimit="10" stroke-linejoin="bevel"/>
+<path d="M8 4V12" stroke="#4CC38A" stroke-miterlimit="10" stroke-linejoin="bevel"/>
+<path d="M11.4643 6.00006L4.53609 10.0001" stroke="#4CC38A" stroke-miterlimit="10" stroke-linejoin="bevel"/>
+<path d="M11.4643 9.99994L4.53609 5.99994" stroke="#4CC38A" stroke-miterlimit="10" stroke-linejoin="bevel"/>
+<circle cx="8.03125" cy="7.95483" r="1.95483" fill="#133929" stroke="#4CC38A" stroke-miterlimit="10" stroke-linejoin="bevel"/>
+</svg>
diff --git a/apps/docs/types/index.ts b/apps/docs/types/index.ts
new file mode 100644
index 00000000000..c1e58ad998a
--- /dev/null
+++ b/apps/docs/types/index.ts
@@ -0,0 +1 @@
+export * from './next'
diff --git a/apps/docs/types/next.ts b/apps/docs/types/next.ts
new file mode 100644
index 00000000000..b525bed86bc
--- /dev/null
+++ b/apps/docs/types/next.ts
@@ -0,0 +1,11 @@
+import { NextPage } from 'next'
+import { AppProps } from 'next/app'
+import { ReactElement, ReactNode } from 'react'
+
+export type AppPropsWithLayout = AppProps & {
+ Component: NextPageWithLayout
+}
+
+export type NextPageWithLayout = NextPage & {
+ getLayout?: (page: ReactElement) => ReactNode
+}