mirror of
https://github.com/supabase/supabase.git
synced 2026-07-06 13:44:23 +08:00
41 lines
1.2 KiB
TypeScript
41 lines
1.2 KiB
TypeScript
import Head from 'next/head'
|
|
import type { PropsWithChildren } from 'react'
|
|
|
|
import Divider from 'components/ui/Divider'
|
|
import { BASE_PATH } from 'lib/constants'
|
|
|
|
const VercelIntegrationLayout = ({ children }: PropsWithChildren<{}>) => {
|
|
return (
|
|
<>
|
|
<Head>
|
|
<title>Supabase + Vercel</title>
|
|
</Head>
|
|
<main className="flex flex-col w-full h-full">
|
|
<div>
|
|
<div className="mx-auto px-4 sm:px-6">
|
|
<div className="max-w-xl flex justify-between items-center mx-auto py-4">
|
|
<div className="flex justify-start lg:w-0 lg:flex-1">
|
|
<div>
|
|
<span className="sr-only">Supabase</span>
|
|
<img
|
|
className="h-6 w-auto sm:h-6"
|
|
src={`${BASE_PATH}/img/supabase-logo.svg`}
|
|
alt=""
|
|
/>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<Divider light />
|
|
<div className="flex-grow overflow-y-auto">
|
|
<div className="max-w-7xl h-full mx-auto px-4 sm:px-6">
|
|
<div className="max-w-xl h-full mx-auto py-10">{children}</div>
|
|
</div>
|
|
</div>
|
|
</main>
|
|
</>
|
|
)
|
|
}
|
|
export default VercelIntegrationLayout
|