Skip to content

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

feat: initial marketing pages update

Jonathan Summers-Muirb74f468ef11b
diff --git a/www/components/AuthWidget/AuthWidget.tsx b/www/components/AuthWidget/AuthWidget.tsx
new file mode 100644
index 00000000000..b3a151f1ccb
--- /dev/null
+++ b/www/components/AuthWidget/AuthWidget.tsx
@@ -0,0 +1,240 @@
+import { useState } from 'react'
+import { createClient, Provider } from '@supabase/supabase-js'
+
+import DefaultLayout from '~/components/Layouts/Default'
+import CodeBlock from '~/components/CodeBlock/CodeBlock'
+import {
+ Button,
+ Auth,
+ Card,
+ Checkbox,
+ Divider,
+ Radio,
+ Select,
+ Space,
+ Tabs,
+ Typography,
+ Input,
+ Toggle,
+ IconCode,
+ IconZoomIn,
+ IconCopy,
+ IconColumns,
+} from '@supabase/ui'
+
+import AuthStyles from './Auth.module.css'
+
+function AuthPage() {
+ const supabase = createClient(
+ 'https://rsnibhkhsbfnncjmwnkj.supabase.co',
+ 'eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJyb2xlIjoiYW5vbiIsImlhdCI6MTYxNTIxNDE1MywiZXhwIjoxOTMwNzkwMTUzfQ.OQEbAaTfgDdLCCht251P2JRD3QDnui6nsU8N-tZA_Mc'
+ )
+
+ type SizeProps = 'tiny' | 'small' | 'medium' | 'large' | 'xlarge'
+ type LayoutProps = 'horizontal' | 'vertical'
+
+ const [companyName, setCompanyName] = useState('Acme Company')
+ const [widgetSize, setWidgetSize] = useState<SizeProps>('tiny')
+ const [socialLogins, setSocialLogins] = useState(true)
+ const [socialLoginLayout, setSocialLoginLayout] = useState<LayoutProps>('horizontal')
+ const [socialColors, setSocialColors] = useState(false)
+
+ const socials: Provider[] = ['facebook', 'google', 'bitbucket', 'github', 'gitlab']
+
+ const formSize = 'small'
+ const formLayout = 'vertical'
+
+ return (
+ <DefaultLayout>
+ <div className="container mx-auto px-8 sm:px-16 xl:px-20 relative py-32">
+ <div className="grid grid-cols-12">
+ <div className="col-span-8">
+ <Typography.Title level={2} className="mb-4">
+ ReactJS Auth Widget
+ </Typography.Title>
+ <Typography.Text>
+ An API built from the groud up just for Storage.With powerful library clients coming
+ soon that allow for asset optimasation and image transformation
+ </Typography.Text>
+ </div>
+ <div className="col-span-8">
+ <div
+ className={`relative bg-white dark:bg-gray-800 py-2 pb-16 border-t border-l border-b dark:border-gray-600 ${AuthStyles['auth-container']}`}
+ >
+ <div className="w-full h-full left-0 top-2">
+ <Tabs
+ size="medium"
+ defaultActiveId="panel-1"
+ type="underlined"
+ tabBarStyle={{ padding: '0 16px' }}
+ addOnAfter={[
+ <Space>
+ <Button type="outline" icon={<IconCopy />}>
+ Copy code
+ </Button>
+ <Button type="outline" icon={<IconColumns />}>
+ Customise
+ </Button>
+ </Space>,
+ ]}
+ >
+ <Tabs.Panel label="Preview" id="panel-1" icon={<IconZoomIn />}>
+ <div style={{ maxWidth: '420px', margin: '0 auto' }}>
+ <Card>
+ <Space size={8} direction="vertical">
+ <div>
+ <Space size={3} direction="vertical">
+ <img src="https://app.supabase.io/img/supabase-dark.svg" width="96" />
+ <Typography.Title level={3}>{companyName}</Typography.Title>
+ </Space>
+ </div>
+ <Auth
+ providers={socialLogins ? socials : []}
+ socialButtonSize={widgetSize}
+ socialLayout={socialLoginLayout}
+ supabaseClient={supabase}
+ socialColors={socialColors}
+ />
+ </Space>
+ </Card>
+ </div>
+ </Tabs.Panel>
+ <Tabs.Panel label="Code" icon={<IconCode />} id="panel-2">
+ <div className="h-full">
+ <CodeBlock
+ hideCopy
+ children={`// Auth example
+
+ import React, { useState } from 'react'
+ import { Auth } from './'
+ import { createClient } from '@supabase/supabase-js'
+ // @ts-ignore
+ import { Typography, Button, Space } from '../../index'
+
+ export default function app() {
+
+ const supabase = createClient(
+ 'https://YOUR-PROJECT-ID.supabase.co',
+ 'YOUR-PUBLIC-ANON-KEY'
+ )
+
+ return (
+ <Auth.UserContextProvider {...args}>
+ <Container {...args}>
+ <Auth {...args} />
+ </Container>
+ </Auth.UserContextProvider>
+ )
+ }
+ `}
+ lang="js"
+ />
+ </div>
+ </Tabs.Panel>
+ </Tabs>
+ </div>
+ </div>
+ </div>
+
+ <div className="col-span-4">
+ <div className="bg-white dark:bg-gray-800 border rounded-l-none dark:border-gray-600 rounded h-full">
+ <div className={`p-8`}>
+ <Space size={12} direction="vertical">
+ <div>
+ <Typography.Title level={3}>Customise your login form</Typography.Title>
+ <Typography.Text level={3}>
+ Our ReactJS Auth form will help you get going even quicker{' '}
+ </Typography.Text>
+ </div>
+ <Divider light />
+ <Input
+ size={formSize}
+ layout={formLayout}
+ label="Name of app"
+ value={companyName}
+ onChange={(e) => setCompanyName(e.target.value)}
+ />
+ {/* @ts-ignore */}
+ <Space size={8} direction="vertical">
+ <Card>
+ <Space size={8} direction="vertical">
+ <Checkbox
+ size={formSize}
+ label="Show social logins"
+ description=" "
+ checked={socialLogins}
+ onChange={() => setSocialLogins(!socialLogins)}
+ />
+ {socialLogins && (
+ <>
+ <Divider light />
+ {/* @ts-ignore */}
+ <Radio.Group
+ size={formSize}
+ type="cards"
+ label="Social button layout"
+ layout={formLayout}
+ name="layout-group"
+ value={socialLoginLayout}
+ onChange={(e: React.ChangeEvent<HTMLInputElement>) =>
+ // @ts-ignore
+ setSocialLoginLayout(e.target.value)
+ }
+ >
+ <Radio
+ name="layout-group"
+ key={'horizontal'}
+ label={'horizontal'}
+ value={'horizontal'}
+ />
+ <Radio
+ name="layout-group"
+ key={'vertical'}
+ label={'vertical'}
+ value={'vertical'}
+ />
+ </Radio.Group>
+ <Toggle
+ size={formSize}
+ layout="vertical"
+ align="right"
+ labelOptional="Use brand colors on buttons"
+ label="Social colors"
+ // descriptionText="Show the brand colors of the social logins in the buttons"
+ checked={socialColors}
+ onChange={() => setSocialColors(!socialColors)}
+ />
+ </>
+ )}
+ </Space>
+ </Card>
+ </Space>
+ <Radio.Group
+ size={formSize}
+ type="cards"
+ label="Form size"
+ labelOptional="This is an optional label"
+ descriptionText="This controls the button sizes and form input sizes"
+ layout={formLayout}
+ name="size-group"
+ value={widgetSize}
+ /* @ts-ignore */
+ onChange={(e) => setWidgetSize(e.target.value)}
+ >
+ <Radio name="size-group" key={1} label={'tiny'} value={'tiny'} />
+ <Radio name="size-group" key={2} label={'small'} value={'small'} />
+ <Radio name="size-group" key={3} label={'medium'} value={'medium'} />
+ <Radio name="size-group" key={3} label={'large'} value={'large'} />
+ <Radio name="size-group" key={3} label={'xlarge'} value={'xlarge'} />
+ </Radio.Group>
+ </Space>
+ </div>
+ </div>
+ </div>
+ </div>
+ </div>
+ </DefaultLayout>
+ )
+}
+
+export default AuthPage
diff --git a/www/components/Carousels/ImageCarousel.module.css b/www/components/Carousels/ImageCarousel.module.css
new file mode 100644
index 00000000000..5a8c40ab2af
--- /dev/null
+++ b/www/components/Carousels/ImageCarousel.module.css
@@ -0,0 +1,6 @@
+/* bright */
+.gradient-bg {
+ background: linear-gradient(338.96deg, rgba(0, 0, 0, 0.2) -18.99%, rgba(0, 0, 0, 0) 25.34%),
+ linear-gradient(300.08deg, #53ffb1 7.6%, #3ecf8e 64.93%);
+ /* transform: rotate(-89.79deg); */
+}
diff --git a/www/components/Carousels/ImageCarousel.tsx b/www/components/Carousels/ImageCarousel.tsx
new file mode 100644
index 00000000000..618376a8c34
--- /dev/null
+++ b/www/components/Carousels/ImageCarousel.tsx
@@ -0,0 +1,213 @@
+import { useRouter } from 'next/router'
+import { Tabs, Typography, Button } from '@supabase/ui'
+import { useState } from 'react'
+
+// Import Swiper React components
+import { Swiper, SwiperSlide } from 'swiper/react'
+import SwiperCore, { EffectFade } from 'swiper'
+
+// Import Swiper styles
+import 'swiper/swiper.min.css'
+import 'swiper/components/effect-fade/effect-fade.min.css'
+
+import CodeBlock from '../CodeBlock/CodeBlock'
+
+import ImageCarouselStyles from './ImageCarousel.module.css'
+import TweetCard from '../TweetCard'
+
+SwiperCore.use([EffectFade])
+
+function ImageCarousel() {
+ // base path for images
+ const { basePath } = useRouter()
+
+ // store API swiper instance
+ const [imageSwiper, setImageSwiper] = useState(undefined)
+ const [swiperDetails, setSwiperDetails] = useState(undefined)
+
+ const [imageSwiperActiveIndex, setImageSwiperActiveIndex] = useState(0)
+
+ function handleImageSwiperNav(e: number) {
+ setImageSwiperActiveIndex(e)
+ // @ts-ignore
+ imageSwiper.slideTo(e)
+ // @ts-ignore
+ swiperDetails.slideTo(e)
+ }
+
+ const details = (
+ <div className="h-64 bg-white">
+ <Typography.Text>
+ <span className="block text-white mb-8">Allow fetch something</span>
+ </Typography.Text>
+ <Typography.Text type="secondary">
+ <p>
+ This would only allow the authenticated user access to a folder that is named after their
+ own account UID. This is useful for things like profile images.
+ </p>
+ </Typography.Text>
+ <Typography.Text>
+ <Button type="outline">View documentation</Button>
+ </Typography.Text>
+ </div>
+ )
+
+ return (
+ <div className="grid grid-cols-12">
+ <div className="col-span-6 w-full">
+ <div className="col-span-12 lg:col-span-7">
+ <Tabs
+ scrollable
+ // @ts-ignore
+ activeId={imageSwiperActiveIndex.toString()}
+ // @ts-ignore
+ onChange={(id: string) => handleImageSwiperNav(Number(id))}
+ >
+ <Tabs.Panel label="Fast column navigation" id="0">
+ <span></span>
+ </Tabs.Panel>
+ <Tabs.Panel label="Fast column navigation" id="1">
+ <span></span>
+ </Tabs.Panel>
+ <Tabs.Panel label="Fast column navigation" id="2">
+ <span></span>
+ </Tabs.Panel>
+ <Tabs.Panel label="Fast column navigation" id="3">
+ <span></span>
+ </Tabs.Panel>
+ <Tabs.Panel label="Fast column navigation" id="4">
+ <span></span>
+ </Tabs.Panel>
+ <Tabs.Panel label="Fast column navigation" id="5">
+ <span></span>
+ </Tabs.Panel>
+ </Tabs>
+ <div
+ className={`border border-gray-100 dark:border-gray-600 rounded-md bg-gray-800 overflow-hidden ${ImageCarouselStyles['gradient-bg']}`}
+ >
+ <Swiper
+ // @ts-ignore
+ onSwiper={setImageSwiper}
+ style={{ zIndex: 0 }}
+ initialSlide={2}
+ spaceBetween={0}
+ slidesPerView={1}
+ speed={800}
+ autoHeight={true}
+ allowTouchMove={false}
+ >
+ <SwiperSlide>
+ <img src={`${basePath}/images/product/database/table-view/test.png`} />
+ </SwiperSlide>
+ <SwiperSlide>
+ <img src={`${basePath}/images/product/database/table-view/test.png`} />
+ </SwiperSlide>
+ <SwiperSlide>
+ <img src={`${basePath}/images/product/database/table-view/test.png`} />
+ </SwiperSlide>
+ <SwiperSlide>
+ <img src={`${basePath}/images/product/database/table-view/test.png`} />
+ </SwiperSlide>
+ <SwiperSlide>
+ <img src={`${basePath}/images/product/database/table-view/test.png`} />
+ </SwiperSlide>
+ <SwiperSlide>
+ <img src={`${basePath}/images/product/database/table-view/test.png`} />
+ </SwiperSlide>
+ </Swiper>
+ </div>
+ </div>
+ </div>
+ <div className="col-span-4 col-start-9">
+ <Swiper
+ // @ts-ignore
+ onSwiper={setSwiperDetails}
+ // style={{ zIndex: 0 }}
+ // initialSlide={2}
+ // spaceBetween={0}
+ // slidesPerView={1}
+ // direction="horizontal"
+ // style={{ overflow: 'hidden' }}
+ speed={800}
+ allowTouchMove={false}
+ autoHeight={true}
+ >
+ <SwiperSlide>
+ <div className="bg-white dark:bg-gray-800">
+ <Typography.Title level={4}>Create a table</Typography.Title>
+ <Typography.Text>
+ <p className="text-base">Write, save, and execute SQL queries directly on our</p>
+ <Button className="mb-8">See documentation</Button>
+ </Typography.Text>
+ </div>
+ </SwiperSlide>
+ <SwiperSlide>
+ <div className="bg-white dark:bg-gray-800">
+ <Typography.Title level={4}>Create a row</Typography.Title>
+ <Typography.Text>
+ <p className="text-base">
+ Write, save, and execute SQL queries directly on our dashboard, with templates to
+ help you save time from common queries and even build applications.
+ </p>
+ <Button className="mb-8">See documentation</Button>
+ </Typography.Text>
+ dddddd adsdsdasdas asdasd
+ </div>
+ </SwiperSlide>
+ <SwiperSlide>
+ <div className="bg-white dark:bg-gray-800">
+ <Typography.Title level={4}>Create a adsdsdasdas</Typography.Title>
+ <Typography.Text>
+ <p className="text-base">
+ Write, save, and execute SQL queries directly on our dashboard, with templates to
+ help you save time from common queries and even build applications.
+ </p>
+ <Button className="mb-8">See documentation</Button>
+ </Typography.Text>
+ </div>
+ </SwiperSlide>
+ <SwiperSlide>
+ <div className="bg-white dark:bg-gray-800">
+ <Typography.Title level={4}>Create a table</Typography.Title>
+ <Typography.Text>
+ <p className="text-base">
+ Write, save, and execute SQL queries directly on our dashboard, with templates to
+ help you save time from common queries and even build applications.
+ </p>
+ <Button className="mb-8">See documentation</Button>
+ </Typography.Text>
+ </div>
+ </SwiperSlide>
+ <SwiperSlide>
+ <div className="bg-white dark:bg-gray-800">
+ <Typography.Title level={4}>Create a table</Typography.Title>
+ <Typography.Text>
+ <p className="text-base">
+ Write, save, and execute SQL queries directly on our dashboard, with templates to
+ help you save time from common queries and even build applications.
+ </p>
+ <Button className="mb-8">See documentation</Button>
+ </Typography.Text>
+ </div>
+ </SwiperSlide>
+ <SwiperSlide>
+ <div className="bg-white dark:bg-gray-800">
+ <Typography.Title level={4}>Create a table</Typography.Title>
+ <Typography.Text>
+ <p className="text-base">
+ Write, save, and execute SQL queries directly on our dashboard, with templates to
+ help you save time from common queries and even build applications.
+ </p>
+ <Button className="mb-8">See documentation</Button>
+ </Typography.Text>
+ sdasd
+ </div>
+ </SwiperSlide>
+ <TweetCard />
+ </Swiper>
+ </div>
+ </div>
+ )
+}
+
+export default ImageCarousel
diff --git a/www/components/Carousels/SplitCodeBlockCarousel.tsx b/www/components/Carousels/SplitCodeBlockCarousel.tsx
new file mode 100644
index 00000000000..f23b1a6a177
--- /dev/null
+++ b/www/components/Carousels/SplitCodeBlockCarousel.tsx
@@ -0,0 +1,168 @@
+import { useState } from 'react'
+// Import Swiper React components
+import { Swiper, SwiperSlide } from 'swiper/react'
+
+import { Tabs, Typography, Button } from '@supabase/ui'
+import CodeBlock from '../CodeBlock/CodeBlock'
+
+// Import Swiper styles
+import 'swiper/swiper.min.css'
+
+function SplitCodeBlockCarousel() {
+ // store API swiper instance
+ const [apiSwiper, setApiSwiper] = useState(undefined)
+ const [swiperDetails, setSwiperDetails] = useState(undefined)
+
+ const [apiSwiperActiveIndex, setApiSwiperActiveIndex] = useState(0)
+
+ function handleApiSwiperNavChange(e: number) {
+ setApiSwiperActiveIndex(e)
+ // @ts-ignore
+ apiSwiper.slideTo(e)
+ // @ts-ignore
+ swiperDetails.slideTo(e)
+ }
+
+ const details = (
+ <div className="">
+ <Typography.Text>
+ <span className="block text-white mb-8">Allow fetch something</span>
+ </Typography.Text>
+ <Typography.Text type="secondary">
+ <p>
+ This would only allow the authenticated user access to a folder that is named after their
+ own account UID. This is useful for things like profile images.
+ </p>
+ </Typography.Text>
+ <Typography.Text>
+ <Button type="outline">View documentation</Button>
+ </Typography.Text>
+ </div>
+ )
+
+ return (
+ <div className="col-span-12 lg:col-span-6 lg:col-start-7">
+ <Tabs
+ scrollable
+ // @ts-ignore
+ activeId={apiSwiperActiveIndex.toString()}
+ // @ts-ignore
+ onChange={(id: string) => handleApiSwiperNavChange(Number(id))}
+ >
+ <Tabs.Panel label="Fast column navigation" id="0">
+ <span></span>
+ </Tabs.Panel>
+ <Tabs.Panel label="Fast column navigation" id="1">
+ <span></span>
+ </Tabs.Panel>
+ <Tabs.Panel label="Fast column navigation" id="2">
+ <span></span>
+ </Tabs.Panel>
+ <Tabs.Panel label="Fast column navigation" id="3">
+ <span></span>
+ </Tabs.Panel>
+ <Tabs.Panel label="Fast column navigation" id="4">
+ <span></span>
+ </Tabs.Panel>
+ <Tabs.Panel label="Fast column navigation" id="5">
+ <span></span>
+ </Tabs.Panel>
+ </Tabs>
+ <div className="border border-gray-100 dark:border-gray-600 rounded-md bg-gray-800 overflow-hidden">
+ <Swiper
+ // @ts-ignore
+ onSwiper={setApiSwiper}
+ style={{ zIndex: 0 }}
+ initialSlide={apiSwiperActiveIndex}
+ spaceBetween={0}
+ slidesPerView={1}
+ speed={800}
+ autoHeight={true}
+ allowTouchMove={false}
+ >
+ <SwiperSlide>
+ <CodeBlock lang="sql">
+ {`-- Secure the tables
+alter table public.users enable row level security;
+alter table public.channels enable row level security;
+alter table public.messages enable row level security;
+create policy "Allow logged-in read access" on public.users for select using ( auth.role() = 'authenticated' );
+create policy "Allow individual insert access" on public.users for insert with check ( auth.uid() = id );
+create policy "Allow individual update access" on public.users for update using ( auth.uid() = id );
+`}
+ </CodeBlock>
+ </SwiperSlide>
+ <SwiperSlide>
+ <CodeBlock lang="sql">
+ {`-- Secure the tables
+alter table public.users enable row level security;
+alter table public.channels enable row level security;
+alter table public.messages enable row level security;
+`}
+ </CodeBlock>
+ </SwiperSlide>
+ <SwiperSlide>
+ <CodeBlock lang="sql">
+ {`-- Secure the tables
+alter table public.users enable row level security;
+alter table public.channels enable row level security;
+alter table public.messages enable row level security;
+`}
+ </CodeBlock>
+ </SwiperSlide>
+ <SwiperSlide>
+ <CodeBlock lang="sql">
+ {`-- Secure the tables
+alter table public.users enable row level security;
+alter table public.channels enable row level security;
+alter table public.messages enable row level security;
+`}
+ </CodeBlock>
+ </SwiperSlide>
+ <SwiperSlide>
+ <CodeBlock lang="sql">
+ {`-- Secure the tables
+alter table public.users enable row level security;
+alter table public.channels enable row level security;
+alter table public.messages enable row level security;
+`}
+ </CodeBlock>
+ </SwiperSlide>
+ <SwiperSlide>
+ <CodeBlock lang="sql">
+ {`-- Secure the tables
+alter table public.users enable row level security;
+alter table public.channels enable row level security;
+alter table public.messages enable row level security;
+`}
+ </CodeBlock>
+ </SwiperSlide>
+ </Swiper>
+
+ <div className="overflow-hidden bg-gray-900 p-8 dark rounded-md border border-t-none border-t-0 border-gray-600">
+ <Swiper
+ // @ts-ignore
+ onSwiper={setSwiperDetails}
+ style={{ zIndex: 0 }}
+ initialSlide={2}
+ spaceBetween={0}
+ slidesPerView={1}
+ direction="horizontal"
+ // style={{ overflow: 'hidden' }}
+ speed={800}
+ allowTouchMove={false}
+ >
+ <SwiperSlide>{details}</SwiperSlide>
+ <SwiperSlide>{details}</SwiperSlide>
+ <SwiperSlide>{details}</SwiperSlide>
+ <SwiperSlide>{details}</SwiperSlide>
+ <SwiperSlide>{details}</SwiperSlide>
+ <SwiperSlide>{details}</SwiperSlide>
+ </Swiper>
+ </div>
+ </div>
+ </div>
+ )
+}
+
+export default SplitCodeBlockCarousel
diff --git a/www/components/CodeBlock/CodeBlock.module.css b/www/components/CodeBlock/CodeBlock.module.css
index 8a61c32e225..db53ee2b0ed 100644
--- a/www/components/CodeBlock/CodeBlock.module.css
+++ b/www/components/CodeBlock/CodeBlock.module.css
@@ -1,5 +1,5 @@
.code-block {
- @apply rounded-b-lg;
+ @apply rounded-lg;
/* padding-top: 8px !important; */
@apply border border-gray-600;
}
diff --git a/www/components/CodeBlock/CodeBlock.tsx b/www/components/CodeBlock/CodeBlock.tsx
index 34dab98ae6f..867f137d3e0 100644
--- a/www/components/CodeBlock/CodeBlock.tsx
+++ b/www/components/CodeBlock/CodeBlock.tsx
@@ -9,7 +9,7 @@ import py from 'react-syntax-highlighter/dist/cjs/languages/hljs/python'
import sql from 'react-syntax-highlighter/dist/cjs/languages/hljs/sql'
interface Props {
- lang: 'js'
+ lang: 'js' | 'sql' | 'py'
startingLineNumber?: number
hideCopy?: boolean
className?: string
@@ -62,7 +62,7 @@ function CodeBlock(props: Props) {
{!props.hideCopy && props.children ? (
<div className="absolute right-2 top-2 dark">
<CopyToClipboard text={props.children}>
- <Button type="outline" icon={<IconCopy />}>
+ <Button type="outline" className="dark:bg-dark-800" icon={<IconCopy />}>
Copy
</Button>
</CopyToClipboard>
diff --git a/www/components/ExampleCard.tsx b/www/components/ExampleCard.tsx
new file mode 100644
index 00000000000..54dd6863752
--- /dev/null
+++ b/www/components/ExampleCard.tsx
@@ -0,0 +1,40 @@
+import { IconGitHub, Typography } from '@supabase/ui'
+
+function ExampleCard(props: any) {
+ return (
+ <div
+ className="
+ mr-3 ml-3 my-8
+ bg-white dark:bg-gray-700
+ border border-gray-100 dark:border-gray-600
+ p-5 h-52
+ flex flex-col justify-between
+ rounded shadow-light-small dark:shadow-override"
+ >
+ <div>
+ <Typography.Title level={5} className="mb-1">
+ Supabase Auth x NextJS
+ </Typography.Title>
+ <Typography.Text>
+ NextJS based Auth example, with support for Server side rendering
+ </Typography.Text>
+ </div>
+ <div>
+ <Typography.Text>
+ <div className="flex flex-row items-center mb-2">
+ Created by <img src={props.author_img} className="ml-2 inline w-5 rounded-full" />
+ <span className="ml-1">{props.author}</span>
+ </div>
+ <a className="flex flex-row items-center">
+ <span>{props.repo_name}</span>
+ <span className="ml-1 inline-block">
+ <IconGitHub size="small" />
+ </span>
+ </a>
+ </Typography.Text>
+ </div>
+ </div>
+ )
+}
+
+export default ExampleCard
diff --git a/www/components/FeatureColumn.tsx b/www/components/FeatureColumn.tsx
new file mode 100644
index 00000000000..c8b02744970
--- /dev/null
+++ b/www/components/FeatureColumn.tsx
@@ -0,0 +1,15 @@
+import { Typography } from '@supabase/ui'
+
+function FeatureColumn({ icon, title, text }: any) {
+ return (
+ <>
+ <p>{icon}</p>
+ <Typography.Title level={4}>{title}</Typography.Title>
+ <Typography.Text>
+ <p>{text}</p>
+ </Typography.Text>
+ </>
+ )
+}
+
+export default FeatureColumn
diff --git a/www/components/FloatingIcons/FloatingIcons.module.css b/www/components/FloatingIcons/FloatingIcons.module.css
new file mode 100644
index 00000000000..ddbf0fb45d2
--- /dev/null
+++ b/www/components/FloatingIcons/FloatingIcons.module.css
@@ -0,0 +1,36 @@
+.icon-react-one {
+ @apply absolute w-20 z-10;
+ right: 13%;
+ top: 8%;
+}
+.icon-electron {
+ @apply absolute w-16 z-0;
+ left: 17%;
+ top: 35%;
+}
+.icon-vue {
+ @apply absolute w-16 z-10;
+ right: 33%;
+ top: 3%;
+}
+.icon-angular {
+ @apply absolute w-12 z-10;
+ right: 21%;
+ top: 33%;
+}
+.icon-flutter {
+ @apply absolute w-16 z-10;
+ left: 5%;
+ top: 15%;
+}
+.icon-nuxt {
+ @apply absolute w-12 z-10;
+ right: 5%;
+ top: 28%;
+}
+.icon-redwood {
+ @apply absolute w-14 z-10;
+ /* background-color: yellow; */
+ left: 15%;
+ top: 5%;
+}
diff --git a/www/components/FloatingIcons/FloatingIcons.tsx b/www/components/FloatingIcons/FloatingIcons.tsx
new file mode 100644
index 00000000000..e7bda55ec36
--- /dev/null
+++ b/www/components/FloatingIcons/FloatingIcons.tsx
@@ -0,0 +1,45 @@
+import { useRouter } from 'next/router'
+
+import Styles from './FloatingIcons.module.css'
+
+function FloatingIcons() {
+ // base path for images
+ const { basePath } = useRouter()
+
+ return (
+ <div className="absolute w-full h-full">
+ <div className="container max-w-screen-2xl h-full relative mx-auto">
+ <img
+ className={`${Styles['icon-react-one']}`}
+ src={`${basePath}/images/product/auth/react-icon.svg`}
+ />
+ <img
+ src={`${basePath}/images/product/auth/electron-icon.svg`}
+ className={`${Styles['icon-electron']}`}
+ />
+ <img
+ src={`${basePath}/images/product/auth/vue-icon.svg`}
+ className={`${Styles['icon-vue']}`}
+ />
+ <img
+ src={`${basePath}/images/product/auth/angular-icon.svg`}
+ className={`${Styles['icon-angular']}`}
+ />
+ <img
+ src={`${basePath}/images/product/auth/flutter-icon.svg`}
+ className={`${Styles['icon-flutter']}`}
+ />
+ <img
+ src={`${basePath}/images/product/auth/nuxt-icon.svg`}
+ className={`${Styles['icon-nuxt']}`}
+ />
+ <img
+ src={`${basePath}/images/product/auth/redwood-icon.svg`}
+ className={`${Styles['icon-redwood']}`}
+ />
+ </div>
+ </div>
+ )
+}
+
+export default FloatingIcons
diff --git a/www/components/FloatingIcons/index.tsx b/www/components/FloatingIcons/index.tsx
new file mode 100644
index 00000000000..87ca7e9ea48
--- /dev/null
+++ b/www/components/FloatingIcons/index.tsx
@@ -0,0 +1,3 @@
+import FloatingIcons from './FloatingIcons'
+
+export default FloatingIcons
diff --git a/www/components/Footer/index.tsx b/www/components/Footer/index.tsx
index a64db216665..1e17e4ca270 100644
--- a/www/components/Footer/index.tsx
+++ b/www/components/Footer/index.tsx
@@ -1,6 +1,7 @@
import { useState, useEffect } from 'react'
import FooterLinks from 'data/Footer.json'
import { useRouter } from 'next/router'
+import SectionContainer from '../Layouts/SectionContainer'
type Props = {
darkMode: boolean
@@ -56,120 +57,108 @@ const Footer = (props: Props) => {
)
return (
- <footer className="bg-white dark:bg-dark-700" aria-labelledby="footerHeading">
+ <footer
+ className="bg-white dark:bg-dark-800 border-t border-gray-100 dark:border-gray-600"
+ aria-labelledby="footerHeading"
+ >
<h2 id="footerHeading" className="sr-only">
Footer
</h2>
- <div className="container mx-auto px-8 sm:px-16 xl:px-20 py-12 lg:pt-16 lg:pb-32">
- <div className="mx-auto max-w-7xl">
- <div className="xl:grid xl:grid-cols-3 xl:gap-8">
- <div className="space-y-8 xl:col-span-1">
- <img
- className="h-10 w-auto"
- src={
- darkMode
- ? `${basePath}/images/logo-dark.png`
- : `${basePath}/images/logo-light.png`
- }
- alt="Supabase"
- />
- <div className="flex space-x-6">
- <a
- href="https://twitter.com/supabase_io"
- className="text-gray-300 hover:text-gray-400"
- >
- <span className="sr-only">Twitter</span>
- <svg
- className="h-6 w-6"
- fill="currentColor"
- viewBox="0 0 24 24"
- aria-hidden="true"
- >
- <path d="M8.29 20.251c7.547 0 11.675-6.253 11.675-11.675 0-.178 0-.355-.012-.53A8.348 8.348 0 0022 5.92a8.19 8.19 0 01-2.357.646 4.118 4.118 0 001.804-2.27 8.224 8.224 0 01-2.605.996 4.107 4.107 0 00-6.993 3.743 11.65 11.65 0 01-8.457-4.287 4.106 4.106 0 001.27 5.477A4.072 4.072 0 012.8 9.713v.052a4.105 4.105 0 003.292 4.022 4.095 4.095 0 01-1.853.07 4.108 4.108 0 003.834 2.85A8.233 8.233 0 012 18.407a11.616 11.616 0 006.29 1.84" />
- </svg>
- </a>
+ {/* <div className="container mx-auto px-8 sm:px-16 xl:px-20 py-12 lg:pt-16 lg:pb-32"> */}
+ <SectionContainer>
+ <div className="xl:grid xl:grid-cols-3 xl:gap-8">
+ <div className="space-y-8 xl:col-span-1">
+ <img
+ className="h-10 w-auto"
+ src={
+ darkMode ? `${basePath}/images/logo-dark.png` : `${basePath}/images/logo-light.png`
+ }
+ alt="Supabase"
+ />
+ <div className="flex space-x-6">
+ <a
+ href="https://twitter.com/supabase_io"
+ className="text-gray-300 hover:text-gray-400"
+ >
+ <span className="sr-only">Twitter</span>
+ <svg className="h-6 w-6" fill="currentColor" viewBox="0 0 24 24" aria-hidden="true">
+ <path d="M8.29 20.251c7.547 0 11.675-6.253 11.675-11.675 0-.178 0-.355-.012-.53A8.348 8.348 0 0022 5.92a8.19 8.19 0 01-2.357.646 4.118 4.118 0 001.804-2.27 8.224 8.224 0 01-2.605.996 4.107 4.107 0 00-6.993 3.743 11.65 11.65 0 01-8.457-4.287 4.106 4.106 0 001.27 5.477A4.072 4.072 0 012.8 9.713v.052a4.105 4.105 0 003.292 4.022 4.095 4.095 0 01-1.853.07 4.108 4.108 0 003.834 2.85A8.233 8.233 0 012 18.407a11.616 11.616 0 006.29 1.84" />
+ </svg>
+ </a>
- <a href="https://github.com/supabase" className="text-gray-300 hover:text-gray-400">
- <span className="sr-only">GitHub</span>
- <svg
- className="h-6 w-6"
- fill="currentColor"
- viewBox="0 0 24 24"
- aria-hidden="true"
- >
- <path
- fillRule="evenodd"
- d="M12 2C6.477 2 2 6.484 2 12.017c0 4.425 2.865 8.18 6.839 9.504.5.092.682-.217.682-.483 0-.237-.008-.868-.013-1.703-2.782.605-3.369-1.343-3.369-1.343-.454-1.158-1.11-1.466-1.11-1.466-.908-.62.069-.608.069-.608 1.003.07 1.531 1.032 1.531 1.032.892 1.53 2.341 1.088 2.91.832.092-.647.35-1.088.636-1.338-2.22-.253-4.555-1.113-4.555-4.951 0-1.093.39-1.988 1.029-2.688-.103-.253-.446-1.272.098-2.65 0 0 .84-.27 2.75 1.026A9.564 9.564 0 0112 6.844c.85.004 1.705.115 2.504.337 1.909-1.296 2.747-1.027 2.747-1.027.546 1.379.202 2.398.1 2.651.64.7 1.028 1.595 1.028 2.688 0 3.848-2.339 4.695-4.566 4.943.359.309.678.92.678 1.855 0 1.338-.012 2.419-.012 2.747 0 .268.18.58.688.482A10.019 10.019 0 0022 12.017C22 6.484 17.522 2 12 2z"
- clipRule="evenodd"
- />
- </svg>
- </a>
- </div>
+ <a href="https://github.com/supabase" className="text-gray-300 hover:text-gray-400">
+ <span className="sr-only">GitHub</span>
+ <svg className="h-6 w-6" fill="currentColor" viewBox="0 0 24 24" aria-hidden="true">
+ <path
+ fillRule="evenodd"
+ d="M12 2C6.477 2 2 6.484 2 12.017c0 4.425 2.865 8.18 6.839 9.504.5.092.682-.217.682-.483 0-.237-.008-.868-.013-1.703-2.782.605-3.369-1.343-3.369-1.343-.454-1.158-1.11-1.466-1.11-1.466-.908-.62.069-.608.069-.608 1.003.07 1.531 1.032 1.531 1.032.892 1.53 2.341 1.088 2.91.832.092-.647.35-1.088.636-1.338-2.22-.253-4.555-1.113-4.555-4.951 0-1.093.39-1.988 1.029-2.688-.103-.253-.446-1.272.098-2.65 0 0 .84-.27 2.75 1.026A9.564 9.564 0 0112 6.844c.85.004 1.705.115 2.504.337 1.909-1.296 2.747-1.027 2.747-1.027.546 1.379.202 2.398.1 2.651.64.7 1.028 1.595 1.028 2.688 0 3.848-2.339 4.695-4.566 4.943.359.309.678.92.678 1.855 0 1.338-.012 2.419-.012 2.747 0 .268.18.58.688.482A10.019 10.019 0 0022 12.017C22 6.484 17.522 2 12 2z"
+ clipRule="evenodd"
+ />
+ </svg>
+ </a>
</div>
- <div className="mt-12 grid grid-cols-1 gap-8 xl:mt-0 xl:col-span-2">
- <div className="grid grid-cols-2 gap-8 md:grid-cols-4">
- {FooterLinks.map((segment: any) => {
- return (
- <div key={`footer_${segment.title}`}>
- <h3 className="text-sm font-semibold text-gray-400 dark:text-dark-400 tracking-wider uppercase">
- {segment.title}
- </h3>
- <ul className="mt-4 space-y-4">
- {segment.links.map((link: any, idx: number) => (
- <li key={`${segment.title}_link_${idx}`}>
- <a
- href={link.url}
- className={`text-base ${
- link.url
- ? 'text-gray-500 dark:text-dark-100'
- : 'text-gray-400 dark:text-dark-200'
- } hover:text-gray-900 dark:hover:text-gray-300`}
- >
- {link.text}
- {!link.url && (
- <span className="block text-sm text-gray-300 dark:text-dark-300">
- Coming soon
- </span>
- )}
- </a>
- </li>
- ))}
- </ul>
- </div>
- )
- })}
- </div>
+ </div>
+ <div className="mt-12 grid grid-cols-1 gap-8 xl:mt-0 xl:col-span-2">
+ <div className="grid grid-cols-2 gap-8 md:grid-cols-4">
+ {FooterLinks.map((segment: any) => {
+ return (
+ <div key={`footer_${segment.title}`}>
+ <h3 className="text-sm text-gray-300 dark:text-dark-400">{segment.title}</h3>
+ <ul className="mt-4 space-y-2">
+ {segment.links.map((link: any, idx: number) => (
+ <li key={`${segment.title}_link_${idx}`}>
+ <a
+ href={link.url}
+ className={`text-sm ${
+ link.url
+ ? 'text-gray-500 dark:text-dark-100'
+ : 'text-gray-400 dark:text-dark-200'
+ } hover:text-gray-900 dark:hover:text-gray-300`}
+ >
+ {link.text}
+ {!link.url && (
+ <span className="block text-sm text-gray-300 dark:text-dark-300">
+ Coming soon
+ </span>
+ )}
+ </a>
+ </li>
+ ))}
+ </ul>
+ </div>
+ )
+ })}
</div>
</div>
- <div className="mt-12 border-t border-gray-200 dark:border-dark-600 pt-8 flex justify-between">
- <p className="text-base text-gray-400 dark:text-dark-400">&copy; Supabase Inc</p>
- <div className="flex items-center">
- <SunEmoji />
- <button
- type="button"
- aria-pressed="false"
- className={`
+ </div>
+ <div className="mt-32 border-t border-gray-100 dark:border-dark-600 pt-8 flex justify-between">
+ <p className="text-base text-gray-400 dark:text-dark-400">&copy; Supabase Inc</p>
+ <div className="flex items-center">
+ <SunEmoji />
+ <button
+ type="button"
+ aria-pressed="false"
+ className={`
relative inline-flex flex-shrink-0 h-6 w-11 border-2 border-transparent rounded-full cursor-pointer
transition-colors ease-in-out duration-200 focus:outline-none ${
darkMode ? 'bg-dark-500' : 'bg-gray-200'
} mx-5
`}
- onClick={() => toggleDarkMode()}
- >
- <span className="sr-only">Toggle Themes</span>
- <span
- aria-hidden="true"
- className={`
+ onClick={() => toggleDarkMode()}
+ >
+ <span className="sr-only">Toggle Themes</span>
+ <span
+ aria-hidden="true"
+ className={`
${darkMode ? 'translate-x-5' : 'translate-x-0'} inline-block h-5 w-5 rounded-full
bg-white dark:bg-dark-700 shadow-lg transform ring-0 transition ease-in-out duration-200
`}
- />
- </button>
- <MoonEmoji />
- </div>
+ />
+ </button>
+ <MoonEmoji />
</div>
</div>
- </div>
+ </SectionContainer>
</footer>
)
}
diff --git a/www/components/Layouts/Default.tsx b/www/components/Layouts/Default.tsx
index b9b05d42096..5c673f5644e 100644
--- a/www/components/Layouts/Default.tsx
+++ b/www/components/Layouts/Default.tsx
@@ -28,7 +28,7 @@ const DefaultLayout = (props: Props) => {
return (
<>
{!hideHeader && <Nav darkMode={darkMode} />}
- <div className="min-h-screen bg-gray-50 dark:bg-gray-800">
+ <div className="min-h-screen bg-white dark:bg-gray-800">
<main>{children}</main>
</div>
{!hideFooter && <Footer darkMode={darkMode} updateTheme={updateTheme} />}
diff --git a/www/components/Layouts/SectionContainer.tsx b/www/components/Layouts/SectionContainer.tsx
new file mode 100644
index 00000000000..93807d0bfe7
--- /dev/null
+++ b/www/components/Layouts/SectionContainer.tsx
@@ -0,0 +1,12 @@
+interface Props {
+ children: React.ReactNode
+ className?: string
+}
+
+const SectionContainer = ({ children, className }: Props) => (
+ <div className={`container mx-auto px-8 sm:px-16 xl:px-20 relative py-32 ${className}`}>
+ {children}
+ </div>
+)
+
+export default SectionContainer
diff --git a/www/components/Nav/index.tsx b/www/components/Nav/index.tsx
index 1201a744970..f496a4cddfe 100644
--- a/www/components/Nav/index.tsx
+++ b/www/components/Nav/index.tsx
@@ -10,6 +10,7 @@ import SolutionsData from 'data/Solutions.json'
import Solutions from '~/components/Nav/Product'
import Developers from './Developers'
import Company from './Company'
+import SectionContainer from '../Layouts/SectionContainer'
type Props = {
darkMode: boolean
@@ -181,10 +182,11 @@ const Nav = (props: Props) => {
return (
<nav className="bg-white dark:bg-dark-700 z-50 sticky">
- <div className="lg:container mx-auto relative flex justify-between h-16 lg:px-10 xl:px-0">
+ {/* <div className="lg:container mx-auto relative flex justify-between h-16 lg:px-10 xl:px-0"> */}
+ <div className="lg:container mx-auto relative flex justify-between h-16 lg:px-16 xl:px-20">
<HamburgerButton toggleFlyOut={() => setOpen(true)} />
- <div className="flex-1 flex items-center justify-center sm:px-10 sm:items-stretch lg:justify-between">
+ <div className="flex-1 flex items-center justify-center sm:items-stretch lg:justify-between">
<div className="flex items-center">
<div className="flex-shrink-0 flex items-center">
<Link href="/" as="/">
@@ -270,6 +272,7 @@ const Nav = (props: Props) => {
</div>
{/* <div className="absolute inset-y-0 right-0 flex items-center pr-2 sm:static sm:inset-auto sm:ml-6 sm:pr-0"></div> */}
</div>
+ {/* </div> */}
{/* Mobile Nav Menu */}
<Transition
diff --git a/www/components/Sections/APISection.tsx b/www/components/Sections/APISection.tsx
new file mode 100644
index 00000000000..e8f8a4d1343
--- /dev/null
+++ b/www/components/Sections/APISection.tsx
@@ -0,0 +1,261 @@
+import { useState } from 'react'
+// Import Swiper React components
+import { Button, IconBriefcase, IconEye, Tabs, Typography } from '@supabase/ui'
+import { Swiper, SwiperSlide } from 'swiper/react'
+import CodeBlock from '../CodeBlock/CodeBlock'
+import FeatureColumn from '../FeatureColumn'
+
+function APISection() {
+ // store API swiper instance
+ const [apiSwiper, setApiSwiper] = useState(undefined)
+ const [apiSwiperActiveIndex, setApiSwiperActiveIndex] = useState(0)
+
+ function handleApiSwiperNavChange(e: number) {
+ setApiSwiperActiveIndex(e)
+ // @ts-ignore
+ apiSwiper.slideTo(e)
+ }
+
+ return (
+ <div className="grid grid-cols-12 lg:gap-16">
+ <div className="col-span-12 lg:col-span-5">
+ <Typography.Title level={2}>
+ Sleek dashboard
+ <br /> for managing your media
+ </Typography.Title>
+ <p className="text-lg">
+ An API built from the groud up for server and client side authentication that is fast to
+ implement.
+ </p>
+ <p className="text-lg">
+ With powerful library clients coming soon that allow for asset optimasation and image
+ transformation
+ </p>
+ <Button size="small" className="mt-4">
+ Expore documentation
+ </Button>
+ <div className="grid grid-cols-12 gap-16 mt-8">
+ <div className="col-span-4">
+ <FeatureColumn
+ icon={<IconBriefcase />}
+ title="Enterprise logins"
+ text="Type definitions for both server side and client side"
+ />
+ </div>
+ <div className="col-span-4">
+ <FeatureColumn
+ icon={<IconEye />}
+ title="Social login scopes"
+ text="Request additonal user data permissions when using social logins"
+ />
+ </div>
+ </div>
+ </div>
+ <div className="col-span-12 lg:col-span-6 lg:col-start-7">
+ <Tabs
+ scrollable
+ // @ts-ignore
+ activeId={apiSwiperActiveIndex.toString()}
+ // @ts-ignore
+ onChange={(id: string) => handleApiSwiperNavChange(Number(id))}
+ >
+ <Tabs.Panel label="Fast column navigation" id="0">
+ <span></span>
+ </Tabs.Panel>
+ <Tabs.Panel label="Fast column navigation" id="1">
+ <span></span>
+ </Tabs.Panel>
+ <Tabs.Panel label="Fast column navigation" id="2">
+ <span></span>
+ </Tabs.Panel>
+ <Tabs.Panel label="Fast column navigation" id="3">
+ <span></span>
+ </Tabs.Panel>
+ <Tabs.Panel label="Fast column navigation" id="4">
+ <span></span>
+ </Tabs.Panel>
+ <Tabs.Panel label="Fast column navigation" id="5">
+ <span></span>
+ </Tabs.Panel>
+ </Tabs>
+ <div className="border border-gray-100 dark:border-gray-600 rounded-md bg-gray-800 overflow-hidden">
+ <Swiper
+ // @ts-ignore
+ onSwiper={setApiSwiper}
+ style={{ zIndex: 0 }}
+ initialSlide={apiSwiperActiveIndex}
+ spaceBetween={0}
+ slidesPerView={1}
+ speed={800}
+ allowTouchMove={false}
+ >
+ <SwiperSlide>
+ <CodeBlock lang="js">
+ {`import { createClient } from '@supabase/supabase-js'
+
+// Initialize
+const supabaseUrl = 'https://chat-room.supabase.co'
+const supabaseKey = 'public-anon-key'
+const supabase = createClient(supabaseUrl, supabaseKey)
+
+// Create a new user
+const { user, error } = await supabase.auth.signUp({
+ email: '[email protected]',
+ password: 'example-password',
+})
+
+
+
+
+
+
+
+
+
+
+`}
+ </CodeBlock>
+ </SwiperSlide>
+ <SwiperSlide>
+ <CodeBlock lang="js">
+ {`import { createClient } from '@supabase/supabase-js'
+
+// Initialize 2nd ONE
+const supabaseUrl = 'https://chat-room.supabase.co'
+const supabaseKey = 'public-anon-key'
+const supabase = createClient(supabaseUrl, supabaseKey)
+
+// Create a new user
+const { user, error } = await supabase.auth.signUp({
+ email: '[email protected]',
+ password: 'example-password',
+})
+
+
+
+
+
+
+
+
+
+
+`}
+ </CodeBlock>
+ </SwiperSlide>
+ <SwiperSlide>
+ <CodeBlock lang="js">
+ {`import { createClient } from '@supabase/supabase-js'
+
+// Initialize 2nd ONE
+const supabaseUrl = 'https://chat-room.supabase.co'
+const supabaseKey = 'public-anon-key'
+const supabase = createClient(supabaseUrl, supabaseKey)
+
+// Create a new user
+const { user, error } = await supabase.auth.signUp({
+ email: '[email protected]',
+ password: 'example-password',
+})
+
+
+
+
+
+
+
+
+
+
+`}
+ </CodeBlock>
+ </SwiperSlide>
+ <SwiperSlide>
+ <CodeBlock lang="js">
+ {`import { createClient } from '@supabase/supabase-js'
+
+// Initialize 2nd ONE
+const supabaseUrl = 'https://chat-room.supabase.co'
+const supabaseKey = 'public-anon-key'
+const supabase = createClient(supabaseUrl, supabaseKey)
+
+// Create a new user
+const { user, error } = await supabase.auth.signUp({
+ email: '[email protected]',
+ password: 'example-password',
+})
+
+
+
+
+
+
+
+
+
+
+`}
+ </CodeBlock>
+ </SwiperSlide>
+ <SwiperSlide>
+ <CodeBlock lang="js">
+ {`import { createClient } from '@supabase/supabase-js'
+
+// Initialize 2nd ONE
+const supabaseUrl = 'https://chat-room.supabase.co'
+const supabaseKey = 'public-anon-key'
+const supabase = createClient(supabaseUrl, supabaseKey)
+
+// Create a new user
+const { user, error } = await supabase.auth.signUp({
+ email: '[email protected]',
+ password: 'example-password',
+})
+
+
+
+
+
+
+
+
+
+
+`}
+ </CodeBlock>
+ </SwiperSlide>
+ <SwiperSlide>
+ <CodeBlock lang="js">
+ {`import { createClient } from '@supabase/supabase-js'
+
+// Initialize 2nd ONE
+const supabaseUrl = 'https://chat-room.supabase.co'
+const supabaseKey = 'public-anon-key'
+const supabase = createClient(supabaseUrl, supabaseKey)
+
+// Create a new user
+const { user, error } = await supabase.auth.signUp({
+ email: '[email protected]',
+ password: 'example-password',
+})
+
+
+
+
+
+
+
+
+
+
+`}
+ </CodeBlock>
+ </SwiperSlide>
+ </Swiper>
+ </div>
+ </div>
+ </div>
+ )
+}
+
+export default APISection
diff --git a/www/components/Sections/FeatureSection.tsx b/www/components/Sections/FeatureSection.tsx
new file mode 100644
index 00000000000..d16a18c8c74
--- /dev/null
+++ b/www/components/Sections/FeatureSection.tsx
@@ -0,0 +1,58 @@
+import { IconDatabase, Typography } from '@supabase/ui'
+
+const FeatureSection = (props: any) => {
+ return (
+ <div className="grid grid-cols-12">
+ <div className="col-span-3">
+ <p className="mb-4">
+ <IconDatabase />
+ </p>
+ <Typography.Title level={4}>Write less code</Typography.Title>
+ <Typography.Text>
+ <p>
+ Use media in your project without needing to reply on external services or learn new
+ frameworks.
+ </p>
+ <p>
+ Familiar and easy to use permissions mean that your content is secure and accessible
+ only to the right users
+ </p>
+ </Typography.Text>
+ </div>
+ <div className="col-span-3 col-start-5">
+ <p className="mb-4">
+ <IconDatabase />
+ </p>
+ <Typography.Title level={4}>Blazing fast</Typography.Title>
+ <Typography.Text>
+ <p>
+ Use media in your project without needing to reply on external services or learn new
+ frameworks.
+ </p>
+ <p>
+ Familiar and easy to use permissions mean that your content is secure and accessible
+ only to the right users
+ </p>
+ </Typography.Text>
+ </div>
+ <div className="col-span-3 col-start-9">
+ <p className="mb-4">
+ <IconDatabase />
+ </p>
+ <Typography.Title level={4}>Dependable</Typography.Title>
+ <Typography.Text>
+ <p>
+ Use media in your project without needing to reply on external services or learn new
+ frameworks.
+ </p>
+ <p>
+ Familiar and easy to use permissions mean that your content is secure and accessible
+ only to the right users
+ </p>
+ </Typography.Text>
+ </div>
+ </div>
+ )
+}
+
+export default FeatureSection
diff --git a/www/components/Sections/GithubExamples.tsx b/www/components/Sections/GithubExamples.tsx
new file mode 100644
index 00000000000..6a649b678b7
--- /dev/null
+++ b/www/components/Sections/GithubExamples.tsx
@@ -0,0 +1,53 @@
+import { useRouter } from 'next/router'
+import { Swiper, SwiperSlide } from 'swiper/react'
+
+import SectionContainer from '../Layouts/SectionContainer'
+import { Typography, IconGitHub } from '@supabase/ui'
+
+import Examples from '../../data/Examples.json'
+import ExampleCard from '../ExampleCard'
+
+function GithubExamples() {
+ // base path for images
+ const { basePath } = useRouter()
+ return (
+ <>
+ <div className="grid grid-cols-12">
+ <div className="col-span-12 text-center">
+ <Typography.Title level={2}>
+ Community driven examples, libaries and guides
+ </Typography.Title>
+ <Typography.Text>
+ <p className="text-lg">Type definitions for both server side and client side </p>
+ </Typography.Text>
+ </div>
+ </div>
+
+ <div className="mt-16">
+ <div className={'-mr-32 -ml-32'}>
+ <Swiper
+ style={{ overflow: 'visible' }}
+ initialSlide={3}
+ spaceBetween={0}
+ slidesPerView={4}
+ autoplay={{
+ delay: 2400,
+ }}
+ loop={true}
+ speed={2400}
+ >
+ {Object.values(Examples).map((example: any, i: number) => {
+ return (
+ <SwiperSlide>
+ <ExampleCard i={i} {...example} />
+ </SwiperSlide>
+ )
+ })}
+ </Swiper>
+ </div>
+ </div>
+ </>
+ )
+}
+
+export default GithubExamples
diff --git a/www/components/Sections/ProductHeader.tsx b/www/components/Sections/ProductHeader.tsx
new file mode 100644
index 00000000000..9b2b56cd0ce
--- /dev/null
+++ b/www/components/Sections/ProductHeader.tsx
@@ -0,0 +1,40 @@
+import { Button, IconKey, Space, Typography } from '@supabase/ui'
+
+type subheader = string
+interface Types {
+ h1: string | React.ReactNode
+ subheader: string[]
+}
+
+const ProductHeader = (props: Types) => (
+ <div className="container mx-auto px-8 sm:px-16 xl:px-20 relative py-32">
+ <div className="grid grid-cols-12">
+ <div className="col-span-12 lg:col-span-6">
+ <div className="flex flex-row mb-4 item-center">
+ <div className="w-8 h-8 bg-gray-800 dark:bg-white text-white dark:text-gray-800 flex rounded items-center justify-center">
+ <IconKey strokeWidth="2px" size="tiny" />
+ </div>
+ <Typography.Title level={4} className="ml-3">
+ Auth
+ </Typography.Title>
+ </div>
+ <Typography.Title>{props.h1}</Typography.Title>
+ {props.subheader && (
+ <Typography.Text>
+ {props.subheader.map((subheader) => {
+ return <p className="text-lg">{subheader}</p>
+ })}
+ </Typography.Text>
+ )}
+ <Space className="mt-12">
+ <Button size="medium">Start a project</Button>
+ <Button type="text" size="medium">
+ See documentation
+ </Button>
+ </Space>
+ </div>
+ </div>
+ </div>
+)
+
+export default ProductHeader
diff --git a/www/components/TweetCard.tsx b/www/components/TweetCard.tsx
new file mode 100644
index 00000000000..358e8ca4ea2
--- /dev/null
+++ b/www/components/TweetCard.tsx
@@ -0,0 +1,32 @@
+import { IconTwitter, Typography } from '@supabase/ui'
+
+function TweetCard() {
+ return (
+ <div className="bg-white dark:bg-dark-800 rounded-lg border dark:border-gray-600 p-6">
+ <div className="relative">
+ <img
+ className="rounded-md w-12"
+ src="https://pbs.twimg.com/profile_images/1086183037069549569/wUlAfmEd_400x400.jpg"
+ />
+ <div
+ className="absolute -top-2 -left-2 w-6 h-6 flex justify-center items-center rounded-md"
+ style={{ background: '#00acee' }}
+ >
+ <div className="text-white">
+ <IconTwitter fill={'white'} size="tiny" />
+ </div>
+ </div>
+ </div>
+ <Typography.Text type="secondary" className="block mt-3">
+ @JSummersMuir
+ </Typography.Text>
+ <Typography.Text>
+ <p className="text-base mt-3 text-gray-900 dark:text-white">
+ “I haven't really participated in community meetups before but the @supabase_io meetup
+ (zoom call) was awesome.”
+ </p>
+ </Typography.Text>
+ </div>
+ )
+}
+export default TweetCard
diff --git a/www/data/Examples.json b/www/data/Examples.json
new file mode 100644
index 00000000000..b8ac59ed20a
--- /dev/null
+++ b/www/data/Examples.json
@@ -0,0 +1,66 @@
+[
+ {
+ "name": "Supabase Auth x NextJS",
+ "description": "NextJS based Auth example, with support for Server side rendering",
+ "author": "Supabase",
+ "author_img": "https://avatars.githubusercontent.com/u/54469796",
+ "repo_name": "with-supabase-auth-realtime-db",
+ "repo_link": "https://github.com/vercel/next.js/tree/canary/examples/with-supabase-auth-realtime-db"
+ },
+ {
+ "name": "Supabase Auth x NextJS",
+ "description": "NextJS based Auth example, with support for Server side rendering",
+ "author": "Supabase",
+ "author_img": "https://avatars.githubusercontent.com/u/54469796",
+ "repo_name": "with-supabase-auth-realtime-db",
+ "repo_link": "https://github.com/vercel/next.js/tree/canary/examples/with-supabase-auth-realtime-db"
+ },
+ {
+ "name": "Supabase Auth x NextJS",
+ "description": "NextJS based Auth example, with support for Server side rendering",
+ "author": "Supabase",
+ "author_img": "https://avatars.githubusercontent.com/u/54469796",
+ "repo_name": "with-supabase-auth-realtime-db",
+ "repo_link": "https://github.com/vercel/next.js/tree/canary/examples/with-supabase-auth-realtime-db"
+ },
+ {
+ "name": "Supabase Auth x NextJS",
+ "description": "NextJS based Auth example, with support for Server side rendering",
+ "author": "Supabase",
+ "author_img": "https://avatars.githubusercontent.com/u/54469796",
+ "repo_name": "with-supabase-auth-realtime-db",
+ "repo_link": "https://github.com/vercel/next.js/tree/canary/examples/with-supabase-auth-realtime-db"
+ },
+ {
+ "name": "Supabase Auth x NextJS",
+ "description": "NextJS based Auth example, with support for Server side rendering",
+ "author": "Supabase",
+ "author_img": "https://avatars.githubusercontent.com/u/54469796",
+ "repo_name": "with-supabase-auth-realtime-db",
+ "repo_link": "https://github.com/vercel/next.js/tree/canary/examples/with-supabase-auth-realtime-db"
+ },
+ {
+ "name": "Supabase Auth x NextJS",
+ "description": "NextJS based Auth example, with support for Server side rendering",
+ "author": "Supabase",
+ "author_img": "https://avatars.githubusercontent.com/u/54469796",
+ "repo_name": "with-supabase-auth-realtime-db",
+ "repo_link": "https://github.com/vercel/next.js/tree/canary/examples/with-supabase-auth-realtime-db"
+ },
+ {
+ "name": "Supabase Auth x NextJS",
+ "description": "NextJS based Auth example, with support for Server side rendering",
+ "author": "Supabase",
+ "author_img": "https://avatars.githubusercontent.com/u/54469796",
+ "repo_name": "with-supabase-auth-realtime-db",
+ "repo_link": "https://github.com/vercel/next.js/tree/canary/examples/with-supabase-auth-realtime-db"
+ },
+ {
+ "name": "Supabase Auth x NextJS",
+ "description": "NextJS based Auth example, with support for Server side rendering",
+ "author": "Supabase",
+ "author_img": "https://avatars.githubusercontent.com/u/54469796",
+ "repo_name": "with-supabase-auth-realtime-db",
+ "repo_link": "https://github.com/vercel/next.js/tree/canary/examples/with-supabase-auth-realtime-db"
+ }
+]
diff --git a/www/package-lock.json b/www/package-lock.json
index 56057ffb9b7..e3819372140 100644
--- a/www/package-lock.json
+++ b/www/package-lock.json
@@ -1683,6 +1683,42 @@
"resolved": "https://registry.npmjs.org/@opentelemetry/context-base/-/context-base-0.14.0.tgz",
"integrity": "sha512-sDOAZcYwynHFTbLo6n8kIbLiVF3a3BLkrmehJUyEbT9F+Smbi47kLGS2gG2g0fjBLR/Lr1InPD7kXL7FaTqEkw=="
},
+ "@supabase/gotrue-js": {
+ "version": "1.12.0",
+ "resolved": "https://registry.npmjs.org/@supabase/gotrue-js/-/gotrue-js-1.12.0.tgz",
+ "integrity": "sha512-SrOCFmE9s3haX7DwClS3Z9a4M8NfnO06UrnYxlID95r+jyqZYsEcckSUyIUJQRHdeF4UPELrzpVqxOeHiUgkCg==",
+ "requires": {
+ "cross-fetch": "^3.0.6"
+ }
+ },
+ "@supabase/postgrest-js": {
+ "version": "0.26.1",
+ "resolved": "https://registry.npmjs.org/@supabase/postgrest-js/-/postgrest-js-0.26.1.tgz",
+ "integrity": "sha512-fD7K6S2bl8JkYqeeZ0hWBWaCz61ktqz2MA4jiugT9FiKITaMgnjekHUwA29KbPsiRRft0HW/bNDRPxrGy+3UNw==",
+ "requires": {
+ "cross-fetch": "^3.0.6"
+ }
+ },
+ "@supabase/realtime-js": {
+ "version": "1.0.6",
+ "resolved": "https://registry.npmjs.org/@supabase/realtime-js/-/realtime-js-1.0.6.tgz",
+ "integrity": "sha512-qzYYBzXteYsqQYlLzoYwee2OloWn3w8YzUFbDYFUPdkUwLs01OIqsm+lRCzKDivmyn2G0FJQjloWcF4BF5TyBg==",
+ "requires": {
+ "@types/websocket": "^1.0.1",
+ "query-string": "^6.12.1",
+ "websocket": "^1.0.31"
+ }
+ },
+ "@supabase/supabase-js": {
+ "version": "1.6.0",
+ "resolved": "https://registry.npmjs.org/@supabase/supabase-js/-/supabase-js-1.6.0.tgz",
+ "integrity": "sha512-YQKo9AUCfVZtwX2izTb/fnHA7TigJ3gBaroQs1ntSDbu6/v9QVzCWQHh912qe8BbJAx7Bu36OZCeyYml8OlM8w==",
+ "requires": {
+ "@supabase/gotrue-js": "^1.12.0",
+ "@supabase/postgrest-js": "^0.26.1",
+ "@supabase/realtime-js": "^1.0.6"
+ }
+ },
"@supabase/ui": {
"version": "0.21.3",
"resolved": "https://registry.npmjs.org/@supabase/ui/-/ui-0.21.3.tgz",
@@ -1759,8 +1795,7 @@
"@types/node": {
"version": "14.14.9",
"resolved": "https://registry.npmjs.org/@types/node/-/node-14.14.9.tgz",
- "integrity": "sha512-JsoLXFppG62tWTklIoO4knA+oDTYsmqWxHRvd4lpmfQRNhX6osheUOWETP2jMoV/2bEHuMra8Pp3Dmo/stBFcw==",
- "dev": true
+ "integrity": "sha512-JsoLXFppG62tWTklIoO4knA+oDTYsmqWxHRvd4lpmfQRNhX6osheUOWETP2jMoV/2bEHuMra8Pp3Dmo/stBFcw=="
},
"@types/parse5": {
"version": "5.0.3",
@@ -1814,6 +1849,14 @@
"resolved": "https://registry.npmjs.org/@types/unist/-/unist-2.0.3.tgz",
"integrity": "sha512-FvUupuM3rlRsRtCN+fDudtmytGO6iHJuuRKS1Ss0pG5z8oX0diNEw94UEL7hgDbpN94rgaK5R7sWm6RrSkZuAQ=="
},
+ "@types/websocket": {
+ "version": "1.0.2",
+ "resolved": "https://registry.npmjs.org/@types/websocket/-/websocket-1.0.2.tgz",
+ "integrity": "sha512-B5m9aq7cbbD/5/jThEr33nUY8WEfVi6A2YKCTOvw5Ldy7mtsOkqRvGjnzy6g7iMMDsgu7xREuCzqATLDLQVKcQ==",
+ "requires": {
+ "@types/node": "*"
+ }
+ },
"@types/yargs": {
"version": "15.0.10",
"resolved": "https://registry.npmjs.org/@types/yargs/-/yargs-15.0.10.tgz",
@@ -2231,6 +2274,14 @@
"resolved": "https://registry.npmjs.org/buffer-xor/-/buffer-xor-1.0.3.tgz",
"integrity": "sha1-JuYe0UIvtw3ULm42cp7VHYVf6Nk="
},
+ "bufferutil": {
+ "version": "4.0.3",
+ "resolved": "https://registry.npmjs.org/bufferutil/-/bufferutil-4.0.3.tgz",
+ "integrity": "sha512-yEYTwGndELGvfXsImMBLop58eaGW+YdONi1fNjTINSY98tmMmFijBG6WXgdkfuLNt4imzQNtIE+eBp1PVpMCSw==",
+ "requires": {
+ "node-gyp-build": "^4.2.0"
+ }
+ },
"builtin-status-codes": {
"version": "3.0.0",
"resolved": "https://registry.npmjs.org/builtin-status-codes/-/builtin-status-codes-3.0.0.tgz",
@@ -2543,6 +2594,14 @@
"sha.js": "^2.4.8"
}
},
+ "cross-fetch": {
+ "version": "3.1.0",
+ "resolved": "https://registry.npmjs.org/cross-fetch/-/cross-fetch-3.1.0.tgz",
+ "integrity": "sha512-a+yso9lSpXQI9DH+YjAu/m0dVfP8IVoZDPBLLFcvGpeq3KHNdikkekTOdkHiXEuTq4GBOeO0MfWkE40yzF1w7g==",
+ "requires": {
+ "node-fetch": "2.6.1"
+ }
+ },
"crypto-browserify": {
"version": "3.12.0",
"resolved": "https://registry.npmjs.org/crypto-browserify/-/crypto-browserify-3.12.0.tgz",
@@ -2720,6 +2779,15 @@
"resolved": "https://registry.npmjs.org/csstype/-/csstype-3.0.5.tgz",
"integrity": "sha512-uVDi8LpBUKQj6sdxNaTetL6FpeCqTjOvAQuQUa/qAqq8oOd4ivkbhgnqayl0dnPal8Tb/yB1tF+gOvCBiicaiQ=="
},
+ "d": {
+ "version": "1.0.1",
+ "resolved": "https://registry.npmjs.org/d/-/d-1.0.1.tgz",
+ "integrity": "sha512-m62ShEObQ39CfralilEQRjH6oAMtNCV1xJyEx5LpRYUVN+EviphDgUc/F3hnYbADmkiNs67Y+3ylmlG7Lnu+FA==",
+ "requires": {
+ "es5-ext": "^0.10.50",
+ "type": "^1.0.1"
+ }
+ },
"data-uri-to-buffer": {
"version": "3.0.1",
"resolved": "https://registry.npmjs.org/data-uri-to-buffer/-/data-uri-to-buffer-3.0.1.tgz",
@@ -2738,6 +2806,11 @@
"ms": "2.1.2"
}
},
+ "decode-uri-component": {
+ "version": "0.2.0",
+ "resolved": "https://registry.npmjs.org/decode-uri-component/-/decode-uri-component-0.2.0.tgz",
+ "integrity": "sha1-6zkTMzRYd1y4TNGh+uBiEGu4dUU="
+ },
"define-properties": {
"version": "1.1.3",
"resolved": "https://registry.npmjs.org/define-properties/-/define-properties-1.1.3.tgz",
@@ -2844,6 +2917,14 @@
"entities": "^2.0.0"
}
},
+ "dom7": {
+ "version": "3.0.0",
+ "resolved": "https://registry.npmjs.org/dom7/-/dom7-3.0.0.tgz",
+ "integrity": "sha512-oNlcUdHsC4zb7Msx7JN3K0Nro1dzJ48knvBOnDPKJ2GV9wl1i5vydJZUSyOfrkKFDZEud/jBsTk92S/VGSAe/g==",
+ "requires": {
+ "ssr-window": "^3.0.0-alpha.1"
+ }
+ },
"domain-browser": {
"version": "1.2.0",
"resolved": "https://registry.npmjs.org/domain-browser/-/domain-browser-1.2.0.tgz",
@@ -2903,6 +2984,35 @@
"resolved": "https://registry.npmjs.org/entities/-/entities-2.2.0.tgz",
"integrity": "sha512-p92if5Nz619I0w+akJrLZH0MX0Pb5DX39XOwQTtXSdQQOaYH03S1uIQp4mhOZtAXrxq4ViO67YTiLBo2638o9A=="
},
+ "es5-ext": {
+ "version": "0.10.53",
+ "resolved": "https://registry.npmjs.org/es5-ext/-/es5-ext-0.10.53.tgz",
+ "integrity": "sha512-Xs2Stw6NiNHWypzRTY1MtaG/uJlwCk8kH81920ma8mvN8Xq1gsfhZvpkImLQArw8AHnv8MT2I45J3c0R8slE+Q==",
+ "requires": {
+ "es6-iterator": "~2.0.3",
+ "es6-symbol": "~3.1.3",
+ "next-tick": "~1.0.0"
+ }
+ },
+ "es6-iterator": {
+ "version": "2.0.3",
+ "resolved": "https://registry.npmjs.org/es6-iterator/-/es6-iterator-2.0.3.tgz",
+ "integrity": "sha1-p96IkUGgWpSwhUQDstCg+/qY87c=",
+ "requires": {
+ "d": "1",
+ "es5-ext": "^0.10.35",
+ "es6-symbol": "^3.1.1"
+ }
+ },
+ "es6-symbol": {
+ "version": "3.1.3",
+ "resolved": "https://registry.npmjs.org/es6-symbol/-/es6-symbol-3.1.3.tgz",
+ "integrity": "sha512-NJ6Yn3FuDinBaBRWl/q5X/s4koRHBrgKAu+yGI6JCBeiu3qrcbJhwT2GeR/EXVfylRk8dpQVJoLEFhK+Mu31NA==",
+ "requires": {
+ "d": "^1.0.1",
+ "ext": "^1.1.2"
+ }
+ },
"escalade": {
"version": "3.1.1",
"resolved": "https://registry.npmjs.org/escalade/-/escalade-3.1.1.tgz",
@@ -2950,6 +3060,21 @@
"fill-range": "^2.1.0"
}
},
+ "ext": {
+ "version": "1.4.0",
+ "resolved": "https://registry.npmjs.org/ext/-/ext-1.4.0.tgz",
+ "integrity": "sha512-Key5NIsUxdqKg3vIsdw9dSuXpPCQ297y6wBjL30edxwPgt2E44WcWBZey/ZvUc6sERLTxKdyCu4gZFmUbk1Q7A==",
+ "requires": {
+ "type": "^2.0.0"
+ },
+ "dependencies": {
+ "type": {
+ "version": "2.5.0",
+ "resolved": "https://registry.npmjs.org/type/-/type-2.5.0.tgz",
+ "integrity": "sha512-180WMDQaIMm3+7hGXWf12GtdniDEy7nYcyFMKJn/eZz/6tSLXrUN9V0wKSbMjej0I1WHWbpREDEKHtqPQa9NNw=="
+ }
+ }
+ },
"extend": {
"version": "3.0.2",
"resolved": "https://registry.npmjs.org/extend/-/extend-3.0.2.tgz",
@@ -3018,6 +3143,11 @@
"repeat-string": "^1.5.2"
}
},
+ "filter-obj": {
+ "version": "1.1.0",
+ "resolved": "https://registry.npmjs.org/filter-obj/-/filter-obj-1.1.0.tgz",
+ "integrity": "sha1-mzERErxsYSehbgFsbF1/GeCAXFs="
+ },
"find-cache-dir": {
"version": "3.3.1",
"resolved": "https://registry.npmjs.org/find-cache-dir/-/find-cache-dir-3.3.1.tgz",
@@ -3629,6 +3759,11 @@
}
}
},
+ "is-typedarray": {
+ "version": "1.0.0",
+ "resolved": "https://registry.npmjs.org/is-typedarray/-/is-typedarray-1.0.0.tgz",
+ "integrity": "sha1-5HnICFjfDBsR3dppQPlgEfzaSpo="
+ },
"is-whitespace-character": {
"version": "1.0.4",
"resolved": "https://registry.npmjs.org/is-whitespace-character/-/is-whitespace-character-1.0.4.tgz",
@@ -4521,6 +4656,11 @@
"resolved": "https://registry.npmjs.org/next-seo/-/next-seo-4.20.0.tgz",
"integrity": "sha512-N3NIISxOV+6XatPdZWRt8L/PkdxX4qpl6s2uQVMYTkteo8hgpHDgs6XZkDzuHaPi10neSZoqQiytsxohTCyEvw=="
},
+ "next-tick": {
+ "version": "1.0.0",
+ "resolved": "https://registry.npmjs.org/next-tick/-/next-tick-1.0.0.tgz",
+ "integrity": "sha1-yobR/ogoFpsBICCOPchCS524NCw="
+ },
"node-emoji": {
"version": "1.10.0",
"resolved": "https://registry.npmjs.org/node-emoji/-/node-emoji-1.10.0.tgz",
@@ -4535,6 +4675,11 @@
"resolved": "https://registry.npmjs.org/node-fetch/-/node-fetch-2.6.1.tgz",
"integrity": "sha512-V4aYg89jEoVRxRb2fJdAg8FHvI7cEyYdVAh94HH0UIK8oJxUfkjlDQN9RbMx+bEjP7+ggMiFRprSti032Oipxw=="
},
+ "node-gyp-build": {
+ "version": "4.2.3",
+ "resolved": "https://registry.npmjs.org/node-gyp-build/-/node-gyp-build-4.2.3.tgz",
+ "integrity": "sha512-MN6ZpzmfNCRM+3t57PTJHgHyw/h4OWnZ6mR8P5j/uZtqQr46RRuDE/P+g3n0YR/AiYXeWixZZzaip77gdICfRg=="
+ },
"node-html-parser": {
"version": "1.4.9",
"resolved": "https://registry.npmjs.org/node-html-parser/-/node-html-parser-1.4.9.tgz",
@@ -5803,6 +5948,17 @@
}
}
},
+ "query-string": {
+ "version": "6.14.1",
+ "resolved": "https://registry.npmjs.org/query-string/-/query-string-6.14.1.tgz",
+ "integrity": "sha512-XDxAeVmpfu1/6IjyT/gXHOl+S0vQ9owggJ30hhWKdHAsNPOcasn5o9BW0eejZqL2e4vMjhAxoW3jVHcD6mbcYw==",
+ "requires": {
+ "decode-uri-component": "^0.2.0",
+ "filter-obj": "^1.1.0",
+ "split-on-first": "^1.0.0",
+ "strict-uri-encode": "^2.0.0"
+ }
+ },
"querystring": {
"version": "0.2.1",
"resolved": "https://registry.npmjs.org/querystring/-/querystring-0.2.1.tgz",
@@ -6413,11 +6569,21 @@
"resolved": "https://registry.npmjs.org/space-separated-tokens/-/space-separated-tokens-1.1.5.tgz",
"integrity": "sha512-q/JSVd1Lptzhf5bkYm4ob4iWPjx0KiRe3sRFBNrVqbJkFaBm5vbbowy1mymoPNLRa52+oadOhJ+K49wsSeSjTA=="
},
+ "split-on-first": {
+ "version": "1.1.0",
+ "resolved": "https://registry.npmjs.org/split-on-first/-/split-on-first-1.1.0.tgz",
+ "integrity": "sha512-43ZssAJaMusuKWL8sKUBQXHWOpq8d6CfN/u1p4gUzfJkM05C8rxTmYrkIPTXapZpORA6LkkzcUulJ8FqA7Uudw=="
+ },
"sprintf-js": {
"version": "1.0.3",
"resolved": "https://registry.npmjs.org/sprintf-js/-/sprintf-js-1.0.3.tgz",
"integrity": "sha1-BOaSb2YolTVPPdAVIDYzuFcpfiw="
},
+ "ssr-window": {
+ "version": "3.0.0",
+ "resolved": "https://registry.npmjs.org/ssr-window/-/ssr-window-3.0.0.tgz",
+ "integrity": "sha512-q+8UfWDg9Itrg0yWK7oe5p/XRCJpJF9OBtXfOPgSJl+u3Xd5KI328RUEvUqSMVM9CiQUEf1QdBzJMkYGErj9QA=="
+ },
"stacktrace-parser": {
"version": "0.1.10",
"resolved": "https://registry.npmjs.org/stacktrace-parser/-/stacktrace-parser-0.1.10.tgz",
@@ -6492,6 +6658,11 @@
}
}
},
+ "strict-uri-encode": {
+ "version": "2.0.0",
+ "resolved": "https://registry.npmjs.org/strict-uri-encode/-/strict-uri-encode-2.0.0.tgz",
+ "integrity": "sha1-ucczDHBChi9rFC3CdLvMWGbONUY="
+ },
"string-hash": {
"version": "1.1.3",
"resolved": "https://registry.npmjs.org/string-hash/-/string-hash-1.1.3.tgz",
@@ -6616,6 +6787,15 @@
"has-flag": "^3.0.0"
}
},
+ "swiper": {
+ "version": "6.5.0",
+ "resolved": "https://registry.npmjs.org/swiper/-/swiper-6.5.0.tgz",
+ "integrity": "sha512-cSx1SpfgrHlgwku++3Ce3cjPBpXgB7P+bGik5S3+F+j6ID0NUeV6qtmedFdr3C8jXR/W+TJPVNIT9fH/cwVAiA==",
+ "requires": {
+ "dom7": "^3.0.0",
+ "ssr-window": "^3.0.0"
+ }
+ },
"tailwindcss": {
"version": "2.0.1",
"resolved": "https://registry.npmjs.org/tailwindcss/-/tailwindcss-2.0.1.tgz",
@@ -6819,6 +6999,11 @@
"resolved": "https://registry.npmjs.org/tty-browserify/-/tty-browserify-0.0.0.tgz",
"integrity": "sha1-oVe6QC2iTpv5V/mqadUk7tQpAaY="
},
+ "type": {
+ "version": "1.2.0",
+ "resolved": "https://registry.npmjs.org/type/-/type-1.2.0.tgz",
+ "integrity": "sha512-+5nt5AAniqsCnu2cEQQdpzCAh33kVx8n0VoFidKpB1dVVLAN/F+bgVOqOJqOnEnrhp222clB5p3vUlD+1QAnfg=="
+ },
"type-fest": {
"version": "0.7.1",
"resolved": "https://registry.npmjs.org/type-fest/-/type-fest-0.7.1.tgz",
@@ -6829,6 +7014,14 @@
"resolved": "https://registry.npmjs.org/typedarray/-/typedarray-0.0.6.tgz",
"integrity": "sha1-hnrHTjhkGHsdPUfZlqeOxciDB3c="
},
+ "typedarray-to-buffer": {
+ "version": "3.1.5",
+ "resolved": "https://registry.npmjs.org/typedarray-to-buffer/-/typedarray-to-buffer-3.1.5.tgz",
+ "integrity": "sha512-zdu8XMNEDepKKR+XYOXAVPtWui0ly0NtohUscw+UmaHiAWT8hrV1rr//H6V+0DvJ3OQ19S979M0laLfX8rm82Q==",
+ "requires": {
+ "is-typedarray": "^1.0.0"
+ }
+ },
"typescript": {
"version": "4.1.2",
"resolved": "https://registry.npmjs.org/typescript/-/typescript-4.1.2.tgz",
@@ -7031,6 +7224,14 @@
"object-assign": "^4.1.1"
}
},
+ "utf-8-validate": {
+ "version": "5.0.4",
+ "resolved": "https://registry.npmjs.org/utf-8-validate/-/utf-8-validate-5.0.4.tgz",
+ "integrity": "sha512-MEF05cPSq3AwJ2C7B7sHAA6i53vONoZbMGX8My5auEVm6W+dJ2Jd/TZPyGJ5CH42V2XtbI5FD28HeHeqlPzZ3Q==",
+ "requires": {
+ "node-gyp-build": "^4.2.0"
+ }
+ },
"util": {
"version": "0.11.1",
"resolved": "https://registry.npmjs.org/util/-/util-0.11.1.tgz",
@@ -7113,6 +7314,34 @@
"resolved": "https://registry.npmjs.org/webidl-conversions/-/webidl-conversions-4.0.2.tgz",
"integrity": "sha512-YQ+BmxuTgd6UXZW3+ICGfyqRyHXVlD5GtQr5+qjiNW7bF0cqrzX500HVXPBOvgXb5YnzDd+h0zqyv61KUD7+Sg=="
},
+ "websocket": {
+ "version": "1.0.33",
+ "resolved": "https://registry.npmjs.org/websocket/-/websocket-1.0.33.tgz",
+ "integrity": "sha512-XwNqM2rN5eh3G2CUQE3OHZj+0xfdH42+OFK6LdC2yqiC0YU8e5UK0nYre220T0IyyN031V/XOvtHvXozvJYFWA==",
+ "requires": {
+ "bufferutil": "^4.0.1",
+ "debug": "^2.2.0",
+ "es5-ext": "^0.10.50",
+ "typedarray-to-buffer": "^3.1.5",
+ "utf-8-validate": "^5.0.2",
+ "yaeti": "^0.0.6"
+ },
+ "dependencies": {
+ "debug": {
+ "version": "2.6.9",
+ "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz",
+ "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==",
+ "requires": {
+ "ms": "2.0.0"
+ }
+ },
+ "ms": {
+ "version": "2.0.0",
+ "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz",
+ "integrity": "sha1-VgiurfwAvmwpAd9fmGF4jeDVl8g="
+ }
+ }
+ },
"whatwg-url": {
"version": "7.1.0",
"resolved": "https://registry.npmjs.org/whatwg-url/-/whatwg-url-7.1.0.tgz",
@@ -7134,6 +7363,11 @@
"resolved": "https://registry.npmjs.org/xtend/-/xtend-4.0.2.tgz",
"integrity": "sha512-LKYU1iAXJXUgAXn9URjiu+MWhyUXHsvfp7mcuYm9dSUKK0/CjtrUwFAxD82/mCWbtLsGjFIad0wIsod4zrTAEQ=="
},
+ "yaeti": {
+ "version": "0.0.6",
+ "resolved": "https://registry.npmjs.org/yaeti/-/yaeti-0.0.6.tgz",
+ "integrity": "sha1-8m9ITXJoTPQr7ft2lwqhYI+/lXc="
+ },
"yocto-queue": {
"version": "0.1.0",
"resolved": "https://registry.npmjs.org/yocto-queue/-/yocto-queue-0.1.0.tgz",
diff --git a/www/package.json b/www/package.json
index d7781507dd8..159e7a2c0a8 100644
--- a/www/package.json
+++ b/www/package.json
@@ -15,6 +15,7 @@
"@mdx-js/loader": "^1.6.22",
"@mdx-js/react": "^1.6.22",
"@next/mdx": "^10.0.7",
+ "@supabase/supabase-js": "^1.6.0",
"@supabase/ui": "^0.21.3",
"classnames": "2.2.6",
"date-fns": "2.10.0",
@@ -34,6 +35,7 @@
"remark": "^13.0.0",
"remark-gfm": "^1.0.0",
"remark-html": "10.0.0",
+ "swiper": "^6.5.0",
"typescript": "^4.0.3",
"uuid": "^8.3.2"
},
diff --git a/www/pages/auth/Auth.module.css b/www/pages/auth/Auth.module.css
new file mode 100644
index 00000000000..8a9b0969b1c
--- /dev/null
+++ b/www/pages/auth/Auth.module.css
@@ -0,0 +1,13 @@
+.auth-container > div:nth-child(2) {
+ width: 420px;
+ margin: 0 auto;
+}
+
+.auth-container {
+ @apply rounded;
+ background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100' height='100' viewBox='0 0 100 100'%3E%3Cg fill-rule='evenodd'%3E%3Cg fill='%23edebf0' fill-opacity='0.4'%3E%3Cpath opacity='.5' d='M96 95h4v1h-4v4h-1v-4h-9v4h-1v-4h-9v4h-1v-4h-9v4h-1v-4h-9v4h-1v-4h-9v4h-1v-4h-9v4h-1v-4h-9v4h-1v-4h-9v4h-1v-4H0v-1h15v-9H0v-1h15v-9H0v-1h15v-9H0v-1h15v-9H0v-1h15v-9H0v-1h15v-9H0v-1h15v-9H0v-1h15v-9H0v-1h15V0h1v15h9V0h1v15h9V0h1v15h9V0h1v15h9V0h1v15h9V0h1v15h9V0h1v15h9V0h1v15h9V0h1v15h4v1h-4v9h4v1h-4v9h4v1h-4v9h4v1h-4v9h4v1h-4v9h4v1h-4v9h4v1h-4v9h4v1h-4v9zm-1 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-9-10h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm9-10v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-9-10h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm9-10v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-9-10h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm9-10v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-9-10h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9z'/%3E%3Cpath d='M6 5V0H5v5H0v1h5v94h1V6h94V5H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
+}
+
+.dark .auth-container {
+ background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100' height='100' viewBox='0 0 100 100'%3E%3Cg fill-rule='evenodd'%3E%3Cg fill='%23565656' fill-opacity='0.4'%3E%3Cpath opacity='.5' d='M96 95h4v1h-4v4h-1v-4h-9v4h-1v-4h-9v4h-1v-4h-9v4h-1v-4h-9v4h-1v-4h-9v4h-1v-4h-9v4h-1v-4h-9v4h-1v-4h-9v4h-1v-4H0v-1h15v-9H0v-1h15v-9H0v-1h15v-9H0v-1h15v-9H0v-1h15v-9H0v-1h15v-9H0v-1h15v-9H0v-1h15v-9H0v-1h15V0h1v15h9V0h1v15h9V0h1v15h9V0h1v15h9V0h1v15h9V0h1v15h9V0h1v15h9V0h1v15h9V0h1v15h4v1h-4v9h4v1h-4v9h4v1h-4v9h4v1h-4v9h4v1h-4v9h4v1h-4v9h4v1h-4v9h4v1h-4v9zm-1 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-9-10h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm9-10v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-9-10h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm9-10v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-9-10h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm9-10v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-9-10h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9z'/%3E%3Cpath d='M6 5V0H5v5H0v1h5v94h1V6h94V5H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
+}
diff --git a/www/pages/auth/Auth.tsx b/www/pages/auth/Auth.tsx
new file mode 100644
index 00000000000..357f0ac84e4
--- /dev/null
+++ b/www/pages/auth/Auth.tsx
@@ -0,0 +1,230 @@
+import { useRouter } from 'next/router'
+
+import {
+ Button,
+ Auth,
+ Card,
+ Space,
+ Tabs,
+ Typography,
+ IconCode,
+ IconZoomIn,
+ IconCopy,
+ IconKey,
+ IconBriefcase,
+ IconEye,
+ IconX,
+} from '@supabase/ui'
+import { createClient } from '@supabase/supabase-js'
+import DefaultLayout from '~/components/Layouts/Default'
+
+import AuthStyles from './Auth.module.css'
+import { useState } from 'react'
+import CodeBlock from '~/components/CodeBlock/CodeBlock'
+import ProductHeader from '~/components/Sections/ProductHeader'
+import FeatureSection from '~/components/Sections/FeatureSection'
+import SectionContainer from '~/components/Layouts/SectionContainer'
+
+import SplitCodeBlockCarousel from '~/components/Carousels/SplitCodeBlockCarousel'
+import APISection from '~/components/Sections/APISection'
+import GithubExamples from '~/components/Sections/GithubExamples'
+import FeatureColumn from '~/components/FeatureColumn'
+import FloatingIcons from '~/components/FloatingIcons'
+
+function AuthPage() {
+ // base path for images
+ const { basePath } = useRouter()
+
+ // supabase auth widget project details
+ const supabase = createClient(
+ 'https://rsnibhkhsbfnncjmwnkj.supabase.co',
+ 'eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJyb2xlIjoiYW5vbiIsImlhdCI6MTYxNTIxNDE1MywiZXhwIjoxOTMwNzkwMTUzfQ.OQEbAaTfgDdLCCht251P2JRD3QDnui6nsU8N-tZA_Mc'
+ )
+
+ return (
+ <DefaultLayout>
+ <ProductHeader
+ h1={[
+ <span>
+ Unlimited users
+ <br /> with social providers
+ </span>,
+ ]}
+ subheader={[
+ 'An open source scalable object store, capable of holding any file and file size you like.',
+ 'With custom policies and permissions that are familair, easy to implement and unlimited scalable storage.',
+ ]}
+ />
+
+ <SectionContainer>
+ <FeatureSection />
+ </SectionContainer>
+
+ <SectionContainer className="-mb-48">
+ <APISection />
+ </SectionContainer>
+
+ <div className="relative">
+ <div className="section--masked">
+ <div className="section--bg-masked">
+ <div className="section--bg border-t border-b border-gray-100 dark:border-gray-600"></div>
+ </div>
+ <div className="section-container pt-12 pb-0">
+ <FloatingIcons />
+ <div className="overflow-x-hidden">
+ <SectionContainer className="mb-0 pb-8">
+ <GithubExamples />
+ </SectionContainer>
+ </div>
+ </div>
+ </div>
+ </div>
+
+ <SectionContainer>
+ <div className="grid grid-cols-12 lg:gap-16">
+ <div className="col-span-12 lg:col-span-5 mb-8">
+ <Typography.Title level={2}>No middleware user permission</Typography.Title>
+ <p className="text-lg">
+ Restrict user access with row level security, even without prior knowledge of SQL.
+ Control who can create, edit and delete specific rows in your database.
+ </p>
+ <p>
+ Set up user profiles in your app using methods such as auth.user() so you can spend
+ more time building an app, rather than user profile forms.
+ </p>
+ <Button size="small" className="mt-4">
+ Expore documentation
+ </Button>
+ </div>
+ <div className="col-span-12 lg:col-span-6 lg:col-start-7">
+ <SplitCodeBlockCarousel />
+ </div>
+ </div>
+ </SectionContainer>
+
+ <div className="container mx-auto px-8 sm:px-16 xl:px-20 relative py-32">
+ <div className="grid grid-cols-12 lg:gap-16">
+ <div className="col-span-12 lg:col-span-6">
+ <div
+ className={`relative bg-white dark:bg-gray-800 py-2 pb-16 border dark:border-gray-600 ${AuthStyles['auth-container']}`}
+ >
+ <div className="w-full h-full left-0 top-2">
+ <Tabs
+ size="medium"
+ defaultActiveId="panel-1"
+ type="underlined"
+ tabBarStyle={{ padding: '0 16px' }}
+ addOnAfter={[
+ <Space>
+ <Button type="outline" icon={<IconCopy />}>
+ Copy code
+ </Button>
+ </Space>,
+ ]}
+ >
+ <Tabs.Panel label="Preview" id="panel-1" icon={<IconZoomIn />}>
+ <div style={{ maxWidth: '420px', margin: '0 auto' }}>
+ <Card>
+ <Space size={8} direction="vertical">
+ <div>
+ <Space size={3} direction="vertical">
+ <img src="https://app.supabase.io/img/supabase-dark.svg" width="96" />
+ <Typography.Title level={3}>{'Acme Company'}</Typography.Title>
+ </Space>
+ </div>
+ <Auth
+ providers={['facebook', 'google', 'github', 'bitbucket', 'gitlab']}
+ socialButtonSize={'medium'}
+ socialLayout={'horizontal'}
+ supabaseClient={supabase}
+ socialColors={false}
+ />
+ </Space>
+ </Card>
+ </div>
+ </Tabs.Panel>
+ <Tabs.Panel label="Code" icon={<IconCode />} id="panel-2">
+ <div className="h-full">
+ <CodeBlock
+ hideCopy
+ children={`// Auth example
+
+import React, { useState } from 'react'
+import { Auth } from './'
+import { createClient } from '@supabase/supabase-js'
+// @ts-ignore
+import { Typography, Button, Space } from '../../index'
+
+export default function app() {
+
+ const supabase = createClient(
+ 'https://YOUR-PROJECT-ID.supabase.co',
+ 'YOUR-PUBLIC-ANON-KEY'
+ )
+
+ return (
+ <Auth.UserContextProvider {...args}>
+ <Container {...args}>
+ <Auth {...args} />
+ </Container>
+ </Auth.UserContextProvider>
+ )
+}
+`}
+ lang="js"
+ />
+ </div>
+ </Tabs.Panel>
+ </Tabs>
+ </div>
+ </div>
+ </div>
+ <div className="col-span-12 lg:col-span-4 lg:col-start-8 mt-8 lg:mt-0">
+ <Space className="mb-4">
+ <div className="w-8 h-8 rounded-md bg-gray-900 dark:bg-white text-white dark:text-gray-900 flex justify-center items-center">
+ <IconKey size="small" strokeWidth={1.5} />
+ </div>
+ <Typography.Text type="secondary">
+ <IconX />
+ </Typography.Text>
+ <img className="w-8" src={`${basePath}/images/product/auth/react-icon.svg`} />
+ </Space>
+
+ <Typography.Title level={2} className="mb-4">
+ ReactJS Auth Widget
+ </Typography.Title>
+ <Typography.Text>
+ <p className="text-lg">
+ Bring authentication to your ReactJS app without coding a single form.
+ </p>
+ <p className="text-base">
+ We provide a ReactJS component that handles all the usual needs for logging in,
+ signing up, magic link and forgot password forms.
+ </p>
+ </Typography.Text>
+ <Button>Explore documentation</Button>
+
+ <div className="grid grid-cols-12 gap-16 mt-8">
+ <div className="col-span-4">
+ <FeatureColumn
+ icon={<IconBriefcase />}
+ title="Enterprise logins"
+ text="Type definitions for both server side and client side"
+ />
+ </div>
+ <div className="col-span-4">
+ <FeatureColumn
+ icon={<IconEye />}
+ title="Social login scopes"
+ text="Request additonal user data permissions when using social logins"
+ />
+ </div>
+ </div>
+ </div>
+ </div>
+ </div>
+ </DefaultLayout>
+ )
+}
+
+export default AuthPage
diff --git a/www/pages/auth/index.tsx b/www/pages/auth/index.tsx
new file mode 100644
index 00000000000..43806d558f9
--- /dev/null
+++ b/www/pages/auth/index.tsx
@@ -0,0 +1,3 @@
+import Auth from './Auth'
+
+export default Auth
diff --git a/www/pages/database/Database.css b/www/pages/database/Database.css
new file mode 100644
index 00000000000..e69de29bb2d
diff --git a/www/pages/database/Database.tsx b/www/pages/database/Database.tsx
new file mode 100644
index 00000000000..062f7cb3bf0
--- /dev/null
+++ b/www/pages/database/Database.tsx
@@ -0,0 +1,154 @@
+import { useState } from 'react'
+
+import DefaultLayout from '~/components/Layouts/Default'
+import SectionContainer from '~/components/Layouts/SectionContainer'
+import ProductHeader from '~/components/Sections/ProductHeader'
+
+import { Button, Tabs, Typography } from '@supabase/ui'
+
+import { Swiper, SwiperSlide } from 'swiper/react'
+import SwiperCore, { Controller } from 'swiper'
+
+// Import Swiper styles
+import 'swiper/swiper.min.css'
+import ImageCarousel from '~/components/Carousels/ImageCarousel'
+import APISection from '~/components/Sections/APISection'
+import GithubExamples from '~/components/Sections/GithubExamples'
+import SplitCodeBlockCarousel from '~/components/Carousels/SplitCodeBlockCarousel'
+import FloatingIcons from '~/components/FloatingIcons'
+
+// install Swiper's Controller component
+// SwiperCore.use([Controller])
+
+function Database() {
+ const [dashboardSwiper, setDashboardSwiper] = useState(undefined)
+ const [dashboardSwiperActiveIndex, setDashboardSwiperActiveIndex] = useState(0)
+
+ function handleDashboardSwiperNav(e: number) {
+ setDashboardSwiperActiveIndex(e)
+ // @ts-ignore
+ dashboardSwiper.slideTo(e)
+ }
+
+ return (
+ <DefaultLayout>
+ <ProductHeader
+ h1={[
+ <span>
+ A Database ready for millions
+ <br /> and the weekend project
+ </span>,
+ ]}
+ subheader={[
+ 'A postgres SQL database, trusted by 100,000s of developers, with built in row level security hosted on a dedicated instance.',
+ 'It is the industry standard database used by AWS architecture, data scientists and backend engineers.',
+ ]}
+ />
+
+ {/* <SectionContainer>÷ */}
+ <div className="grid">
+ <SectionContainer className="text-center pb-8">
+ <div className="grid grid-cols-12">
+ <div className="col-span-8 col-start-3">
+ <Typography.Title level={2}>Easy to update, maintain and grow </Typography.Title>
+ <Typography.Text>
+ <p className="text-lg">
+ Let your international customers pay with their preferred payment method, and
+ improve conversion. Stripe supports 135+ currencies and offers a unified API for
+ cards, wallets, bank debits, and more.
+ </p>
+ </Typography.Text>
+ </div>
+ </div>
+ </SectionContainer>
+ <div className={'dashboard-tabs'}>
+ <Tabs
+ size="xlarge"
+ activeId={dashboardSwiperActiveIndex.toString()}
+ onChange={(e: string) => handleDashboardSwiperNav(Number(e))}
+ type="underlined"
+ tabBarStyle={{
+ marginBottom: 0,
+ // borderBottom: '1px solid #dedede',
+ }}
+ // block
+ >
+ <Tabs.Panel id="0" label="Table editor">
+ <span></span>
+ </Tabs.Panel>
+ <Tabs.Panel id="1" label="SQL editor">
+ <span></span>
+ </Tabs.Panel>
+ </Tabs>
+ </div>
+ </div>
+
+ <Swiper
+ // @ts-ignore
+ onSwiper={setDashboardSwiper}
+ style={{ overflow: 'hidden' }}
+ initialSlide={0}
+ spaceBetween={0}
+ slidesPerView={1}
+ speed={800}
+ allowTouchMove={false}
+ >
+ <div className="grid grid-cols-12">
+ <SwiperSlide>
+ <SectionContainer className="pt-16">
+ <ImageCarousel />
+ </SectionContainer>
+ </SwiperSlide>
+ <SwiperSlide>
+ <SectionContainer className="pt-16">
+ <ImageCarousel />
+ </SectionContainer>
+ </SwiperSlide>
+ </div>
+ </Swiper>
+ <SectionContainer className="-mb-48">
+ <APISection />
+ </SectionContainer>
+
+ <div className="relative">
+ <div className="section--masked">
+ <div className="section--bg-masked">
+ <div className="section--bg border-t border-b border-gray-100 dark:border-gray-600"></div>
+ </div>
+ <div className="section-container pt-12 pb-0">
+ <FloatingIcons />
+ <div className="overflow-x-hidden">
+ <SectionContainer className="mb-0 pb-8">
+ <GithubExamples />
+ </SectionContainer>
+ </div>
+ </div>
+ </div>
+ </div>
+
+ <SectionContainer>
+ <div className="grid grid-cols-12 lg:gap-16">
+ <div className="col-span-12 lg:col-span-5 mb-8">
+ <Typography.Title level={2}>No middleware user permission</Typography.Title>
+ <p className="text-lg">
+ Restrict user access with row level security, even without prior knowledge of SQL.
+ Control who can create, edit and delete specific rows in your database.
+ </p>
+ <p>
+ Set up user profiles in your app using methods such as auth.user() so you can spend
+ more time building an app, rather than user profile forms.
+ </p>
+ <Button size="small" className="mt-4">
+ Expore documentation
+ </Button>
+ </div>
+ <div className="col-span-12 lg:col-span-6 lg:col-start-7">
+ <SplitCodeBlockCarousel />
+ </div>
+ </div>
+ </SectionContainer>
+ </DefaultLayout>
+ )
+}
+
+export default Database
diff --git a/www/pages/database/index.tsx b/www/pages/database/index.tsx
new file mode 100644
index 00000000000..446df005cc9
--- /dev/null
+++ b/www/pages/database/index.tsx
@@ -0,0 +1,3 @@
+import Database from './Database'
+
+export default Database
diff --git a/www/public/images/product/auth/angular-icon.svg b/www/public/images/product/auth/angular-icon.svg
new file mode 100644
index 00000000000..09c59e99fa9
--- /dev/null
+++ b/www/public/images/product/auth/angular-icon.svg
@@ -0,0 +1 @@
+<svg width="2370" height="2500" viewBox="0 0 256 270" xmlns="http://www.w3.org/2000/svg" preserveAspectRatio="xMinYMin meet"><path d="M127.606.341L.849 44.95 20.88 211.022l106.86 58.732 107.412-59.528L255.175 44.16 127.606.341z" fill="#B3B3B3"/><path d="M242.532 53.758L127.31 14.466v241.256l96.561-53.441 18.66-148.523z" fill="#A6120D"/><path d="M15.073 54.466l17.165 148.525 95.07 52.731V14.462L15.074 54.465z" fill="#DD1B16"/><path d="M159.027 142.898L127.31 157.73H93.881l-15.714 39.305-29.228.54L127.31 23.227l31.717 119.672zm-3.066-7.467l-28.44-56.303-23.329 55.334h23.117l28.652.97z" fill="#F2F2F2"/><path d="M127.309 23.226l.21 55.902 26.47 55.377h-26.62l-.06 23.189 36.81.035 17.204 39.852 27.967.518-81.981-174.873z" fill="#B3B3B3"/></svg>
\ No newline at end of file
diff --git a/www/public/images/product/auth/electron-icon.svg b/www/public/images/product/auth/electron-icon.svg
new file mode 100644
index 00000000000..dc81c99d2cf
--- /dev/null
+++ b/www/public/images/product/auth/electron-icon.svg
@@ -0,0 +1 @@
+<svg width="256" height="256" xmlns="http://www.w3.org/2000/svg"><g fill="none" fill-rule="evenodd"><circle fill="#2B2E3A" cx="128" cy="128" r="128"/><g fill="#9FEAF9" fill-rule="nonzero"><path d="M100.502 71.69c-26.005-4.736-46.567.221-54.762 14.415-6.115 10.592-4.367 24.635 4.24 39.646a2.667 2.667 0 1 0 4.626-2.653c-7.752-13.522-9.261-25.641-4.247-34.326 6.808-11.791 25.148-16.213 49.187-11.835a2.667 2.667 0 0 0 .956-5.247zm-36.999 72.307c10.515 11.555 24.176 22.394 39.756 31.388 37.723 21.78 77.883 27.601 97.675 14.106a2.667 2.667 0 1 0-3.005-4.406c-17.714 12.078-55.862 6.548-92.003-14.318-15.114-8.726-28.343-19.222-38.478-30.36a2.667 2.667 0 1 0-3.945 3.59z"/><path d="M194.62 140.753c17.028-20.116 22.973-40.348 14.795-54.512-6.017-10.423-18.738-15.926-35.645-16.146a2.667 2.667 0 0 0-.069 5.333c15.205.198 26.165 4.939 31.096 13.48 6.792 11.765 1.49 29.807-14.248 48.399a2.667 2.667 0 1 0 4.071 3.446zm-43.761-68.175c-15.396 3.299-31.784 9.749-47.522 18.835-38.942 22.483-64.345 55.636-60.817 79.675a2.667 2.667 0 1 0 5.277-.775c-3.133-21.344 20.947-52.769 58.207-74.281 15.267-8.815 31.135-15.06 45.972-18.239a2.667 2.667 0 1 0-1.117-5.215z"/><path d="M87.77 187.753c8.904 24.86 23.469 40.167 39.847 40.167 11.945 0 22.996-8.143 31.614-22.478a2.667 2.667 0 1 0-4.571-2.748c-7.745 12.883-17.258 19.892-27.043 19.892-13.605 0-26.596-13.652-34.825-36.63a2.667 2.667 0 1 0-5.021 1.797zm81.322-4.863c4.61-14.728 7.085-31.718 7.085-49.423 0-44.179-15.463-82.263-37.487-92.042a2.667 2.667 0 0 0-2.164 4.874c19.643 8.723 34.317 44.866 34.317 87.168 0 17.177-2.397 33.63-6.84 47.83a2.667 2.667 0 1 0 5.09 1.593zm50.224-2.612c0-7.049-5.714-12.763-12.763-12.763-7.049 0-12.763 5.714-12.763 12.763 0 7.049 5.714 12.763 12.763 12.763 7.049 0 12.763-5.714 12.763-12.763zm-5.333 0a7.43 7.43 0 1 1-14.86 0 7.43 7.43 0 0 1 14.86 0zM48.497 193.041c7.05 0 12.764-5.714 12.764-12.763 0-7.049-5.715-12.763-12.764-12.763-7.048 0-12.763 5.714-12.763 12.763 0 7.049 5.715 12.763 12.763 12.763zm0-5.333a7.43 7.43 0 1 1 0-14.86 7.43 7.43 0 0 1 0 14.86z"/><path d="M127.617 54.444c7.049 0 12.763-5.714 12.763-12.763 0-7.049-5.714-12.763-12.763-12.763-7.049 0-12.763 5.714-12.763 12.763 0 7.049 5.714 12.763 12.763 12.763zm0-5.333a7.43 7.43 0 1 1 0-14.86 7.43 7.43 0 0 1 0 14.86zm1.949 93.382c-4.985 1.077-9.896-2.091-10.975-7.076a9.236 9.236 0 0 1 7.076-10.976c4.985-1.077 9.896 2.091 10.976 7.076 1.077 4.985-2.091 9.897-7.077 10.976z"/></g></g></svg>
\ No newline at end of file
diff --git a/www/public/images/product/auth/flutter-icon.svg b/www/public/images/product/auth/flutter-icon.svg
new file mode 100644
index 00000000000..001b2b8049b
--- /dev/null
+++ b/www/public/images/product/auth/flutter-icon.svg
@@ -0,0 +1 @@
+<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="0 0 34 42" fill="#fff" fill-rule="evenodd" stroke="#000" stroke-linecap="round" stroke-linejoin="round"><style><![CDATA[.B{fill-rule:nonzero}]]></style><use xlink:href="#C" x=".5" y=".5"/><defs><linearGradient id="A" x1="19.68%" y1="119.30%" x2="69.89%" y2="44.82%"><stop offset="0%" stop-color="#1a237e" stop-opacity=".4"/><stop offset="1%" stop-color="#1a237e" stop-opacity="0"/></linearGradient><radialGradient id="B" cx="3%" cy="7%" r="135%" fx="3%" fy="7%"><stop offset="0%" stop-color="#fff" stop-opacity=".1"/><stop offset="1%" stop-color="#fff" stop-opacity="0"/></radialGradient></defs><symbol id="C" overflow="visible"><g stroke="none"><path d="M15.504 35.667l17.057-17.061H20.159L9.305 29.464zM0 20.159L20.159 0h12.403L6.203 26.362z" fill="#39cefd" class="B"/><path d="M20.158 40.318h12.403L21.707 29.464l-6.203 6.203z" fill="#03569b" class="B"/><path d="M21.707 29.464l-6.203 6.203 9.2-3.187z" fill="url(#A)" class="B"/><path d="M9.304 29.461l6.203-6.203 6.204 6.203-6.204 6.203z" fill="#16b9fd" class="B"/><path d="M32.561 18.606L21.708 29.464l10.854 10.858H20.159L9.301 29.464l10.858-10.858h12.403zM20.159 0L0 20.159l6.203 6.203L32.561 0H20.159z" fill="url(#B)" class="B"/></g></symbol></svg>
\ No newline at end of file
diff --git a/www/public/images/product/auth/nuxt-icon.svg b/www/public/images/product/auth/nuxt-icon.svg
new file mode 100644
index 00000000000..1cc014898bb
--- /dev/null
+++ b/www/public/images/product/auth/nuxt-icon.svg
@@ -0,0 +1 @@
+<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 400 298"><g fill="none" fill-rule="nonzero"><path fill="#00C58E" d="M227.92099 82.07407l-13.6889 23.7037-46.8148-81.08641L23.7037 273.58025h97.3037c0 13.0912 10.61252 23.7037 23.70371 23.7037H23.70371c-8.46771 0-16.29145-4.52017-20.5246-11.85382-4.23315-7.33366-4.23272-16.36849.00114-23.70174L146.89383 12.83951c4.23415-7.33433 12.0596-11.85252 20.5284-11.85252 8.46878 0 16.29423 4.51819 20.52839 11.85252l39.97037 69.23456z"/><path fill="#2F495E" d="M331.6642 261.7284l-90.05432-155.95062-13.6889-23.7037-13.68888 23.7037-90.04445 155.95061c-4.23385 7.33325-4.23428 16.36808-.00113 23.70174 4.23314 7.33365 12.05689 11.85382 20.5246 11.85382h166.4c8.46946 0 16.29644-4.51525 20.532-11.84955 4.23555-7.3343 4.23606-16.37123.00132-23.706h.01976zM144.7111 273.58024L227.921 129.48148l83.19012 144.09877h-166.4z"/><path fill="#108775" d="M396.04938 285.4321c-4.23344 7.33254-12.05656 11.85185-20.52345 11.85185H311.1111c13.0912 0 23.7037-10.6125 23.7037-23.7037h40.66173L260.09877 73.74815l-18.4889 32.02963-13.68888-23.7037L239.5753 61.8963c4.23416-7.33433 12.0596-11.85252 20.5284-11.85252 8.46879 0 16.29423 4.51819 20.52839 11.85252l115.41728 199.8321c4.23426 7.33395 4.23426 16.36975 0 23.7037z"/></g></svg>
\ No newline at end of file
diff --git a/www/public/images/product/auth/react-icon.svg b/www/public/images/product/auth/react-icon.svg
new file mode 100644
index 00000000000..945ab385dfc
--- /dev/null
+++ b/www/public/images/product/auth/react-icon.svg
@@ -0,0 +1 @@
+<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 490.6 436.9"><defs><style>.cls-1{fill:#61dafb;}</style></defs><g id="Layer_2" data-name="Layer 2"><g id="Layer_2-2" data-name="Layer 2"><path class="cls-1" d="M490.6,218.5c0-32.5-40.7-63.3-103.1-82.4,14.4-63.6,8-114.2-20.2-130.4A43.84,43.84,0,0,0,344.9.1V22.4A23.16,23.16,0,0,1,356.3,25c13.6,7.8,19.5,37.5,14.9,75.7-1.1,9.4-2.9,19.3-5.1,29.4a484.62,484.62,0,0,0-63.5-10.9,487.8,487.8,0,0,0-41.6-50c32.6-30.3,63.2-46.9,84-46.9V0h0c-27.5,0-63.5,19.6-99.9,53.6C208.7,19.8,172.7.4,145.2.4V22.7c20.7,0,51.4,16.5,84,46.6a472.31,472.31,0,0,0-41.3,49.9,467,467,0,0,0-63.6,11c-2.3-10-4-19.7-5.2-29-4.7-38.2,1.1-67.9,14.6-75.8,3-1.8,6.9-2.6,11.5-2.6V.5h0a44.59,44.59,0,0,0-22.6,5.6C94.5,22.3,88.2,72.8,102.7,136.2,40.5,155.4,0,186.1,0,218.5s40.7,63.3,103.1,82.4c-14.4,63.6-8,114.2,20.2,130.4,6.5,3.8,14.1,5.6,22.5,5.6,27.5,0,63.5-19.6,99.9-53.6,36.4,33.8,72.4,53.2,99.9,53.2a44.59,44.59,0,0,0,22.6-5.6c28.1-16.2,34.4-66.7,19.9-130.1C450.1,281.7,490.6,250.9,490.6,218.5ZM360.4,151.8c-3.7,12.9-8.3,26.2-13.5,39.5-4.1-8-8.4-16-13.1-24s-9.5-15.8-14.4-23.4C333.6,146,347.3,148.6,360.4,151.8ZM314.6,258.3c-7.8,13.5-15.8,26.3-24.1,38.2-14.9,1.3-30,2-45.2,2s-30.2-.7-45-1.9q-12.45-17.85-24.2-38Q164.7,239,155.3,218.8c6.2-13.4,13.2-26.8,20.7-39.9,7.8-13.5,15.8-26.3,24.1-38.2,14.9-1.3,30-2,45.2-2s30.2.7,45,1.9q12.45,17.85,24.2,38,11.4,19.65,20.8,39.8C329,231.8,322.1,245.2,314.6,258.3Zm32.3-13c5.4,13.4,10,26.8,13.8,39.8-13.1,3.2-26.9,5.9-41.2,8,4.9-7.7,9.8-15.6,14.4-23.7S342.8,253.3,346.9,245.3ZM245.5,352a412.27,412.27,0,0,1-27.8-32c9,.4,18.2.7,27.5.7s18.7-.2,27.8-.7A390.33,390.33,0,0,1,245.5,352Zm-74.4-58.9c-14.2-2.1-27.9-4.7-41-7.9,3.7-12.9,8.3-26.2,13.5-39.5,4.1,8,8.4,16,13.1,24S166.2,285.5,171.1,293.1ZM245,85a412.27,412.27,0,0,1,27.8,32c-9-.4-18.2-.7-27.5-.7s-18.7.2-27.8.7A390.33,390.33,0,0,1,245,85Zm-74,58.9c-4.9,7.7-9.8,15.6-14.4,23.7s-8.9,16-13,24c-5.4-13.4-10-26.8-13.8-39.8C142.9,148.7,156.7,146,171,143.9ZM80.5,269.1C45.1,254,22.2,234.2,22.2,218.5s22.9-35.6,58.3-50.6c8.6-3.7,18-7,27.7-10.1a480.28,480.28,0,0,0,22.5,60.9,473.51,473.51,0,0,0-22.2,60.6C98.6,276.2,89.2,272.8,80.5,269.1ZM134.3,412c-13.6-7.8-19.5-37.5-14.9-75.7,1.1-9.4,2.9-19.3,5.1-29.4A484.62,484.62,0,0,0,188,317.8a487.8,487.8,0,0,0,41.6,50c-32.6,30.3-63.2,46.9-84,46.9A23.87,23.87,0,0,1,134.3,412Zm237.2-76.2c4.7,38.2-1.1,67.9-14.6,75.8-3,1.8-6.9,2.6-11.5,2.6-20.7,0-51.4-16.5-84-46.6a472.31,472.31,0,0,0,41.3-49.9,467,467,0,0,0,63.6-11A279.94,279.94,0,0,1,371.5,335.8ZM410,269.1c-8.6,3.7-18,7-27.7,10.1a480.28,480.28,0,0,0-22.5-60.9A473.51,473.51,0,0,0,382,157.7c9.9,3.1,19.3,6.5,28.1,10.2,35.4,15.1,58.3,34.9,58.3,50.6S445.4,254.1,410,269.1Z"/><circle class="cls-1" cx="245.2" cy="218.5" r="45.7"/></g></g></svg>
\ No newline at end of file
diff --git a/www/public/images/product/auth/redwood-icon.svg b/www/public/images/product/auth/redwood-icon.svg
new file mode 100644
index 00000000000..e85b6861921
--- /dev/null
+++ b/www/public/images/product/auth/redwood-icon.svg
@@ -0,0 +1 @@
+<svg fill="none" height="1000" viewBox="0 0 917 1000" width="917" xmlns="http://www.w3.org/2000/svg"><path clip-rule="evenodd" d="m249.557 144.582 194.171 132.54c4.383 2.918 9.502 4.516 14.755 4.606 5.261-.038 10.394-1.641 14.755-4.606l194.319-132.986c7.55-5.406 11.714-14.418 10.957-23.717-.757-9.298-6.322-17.507-14.646-21.6024l-194.171-96.13614c-7.366-3.573948-15.947-3.573948-23.313 0l-193.581 96.13614c-8.474 4.1174-14.113 12.4854-14.783 21.9354-.67 9.451 3.73 18.541 11.537 23.83zm274.879 174.144c.016 8.789 4.318 17.01 11.509 21.991l155.662 106.389c9.965 6.87 23.298 6.012 32.313-2.081l130.579-116.789c5.819-5.199 9.051-12.729 8.823-20.56s-3.892-15.158-10.004-20.005l-124.677-99.702c-9.062-7.199-21.704-7.68-31.28-1.189l-161.416 110.401c-7.064 4.89-11.35 12.914-11.509 21.545zm-387.163 144.724c6.292 5.652 9.526 13.988 8.706 22.437-.817 8.499-5.726 16.052-13.132 20.208l-92.9545 55.72c-9.4227 5.633-21.32 4.82-29.90183-2.041-8.5818-6.861-12.06543-18.346-8.75546-28.865l34.37839-108.172c2.6969-8.57 9.5328-15.175 18.1483-17.533 8.609-2.505 17.8924-.309 24.4928 5.795zm504.168 11.293-168.056-115.007c-8.931-6.01-20.578-6.01-29.509 0l-168.056 115.007c-6.684 4.626-10.919 12.061-11.509 20.208-.435 8.203 2.816 16.169 8.853 21.693l167.909 150.222c4.842 4.319 11.089 6.698 17.558 6.687 6.465-.002 12.708-2.38 17.558-6.687l167.908-150.222c6.056-5.501 9.265-13.5 8.705-21.693-.469-8.146-4.666-15.612-11.361-20.208zm-448.247-29.718-130.4316-116.79c-5.8687-5.331-9.1073-12.995-8.8528-20.95.1419-7.841 3.7705-15.204 9.8856-20.06l124.6768-100.296c9.126-7.179 21.793-7.658 31.428-1.189l161.269 110.401c7.484 4.908 11.998 13.293 11.998 22.288 0 8.994-4.514 17.38-11.998 22.288l-155.515 106.388c-10.025 6.841-23.376 5.985-32.46-2.08zm669.715 167.756-132.792-79.495c-9.862-5.943-22.415-4.739-30.985 2.972l-162.301 144.873c-6.846 6.114-10.062 15.362-8.499 24.441 1.563 9.08 7.681 16.698 16.171 20.135l225.157 91.233c3.088 1.283 6.397 1.939 9.738 1.932 10.449.033 19.936-6.142 24.197-15.751l69.79-156.314c5.68-12.37 1.157-27.062-10.476-34.026zm18.443-190.043 34.379 108.171h-.295c2.542 8.091 1.097 16.919-3.889 23.761-4.986 6.841-12.915 10.876-21.342 10.86-4.728.016-9.37-1.269-13.427-3.715l-93.102-55.72c-7.254-4.243-11.992-11.789-12.689-20.208-.87-8.456 2.373-16.814 8.705-22.436l59.019-52.6c6.668-5.976 15.881-8.156 24.493-5.795 8.609 2.459 15.423 9.098 18.148 17.682zm-492.511 282.761c1.587-9.042-1.597-18.266-8.41-24.368l-162.302-144.873c-8.57-7.711-21.123-8.915-30.985-2.972l-132.7921 79.495c-11.4977 6.995-16.0467 21.502-10.6233 33.878l69.9374 156.314c5.794 13.034 20.774 19.134 33.936 13.818l225.009-91.232c8.492-3.407 14.632-10.995 16.23-20.06zm79.675 44.577 180.598 73.105c8.83 3.779 14.93 12.084 15.935 21.694 1.143 9.729-3.178 19.291-11.214 24.814l-180.745 125.556c-4.331 3.043-9.473 4.7-14.754 4.755-5.277-.082-10.411-1.737-14.755-4.755l-180.597-125.556c-8.066-5.508-12.439-15.061-11.362-24.814 1.206-9.71 7.526-18.006 16.526-21.694l180.597-73.105c6.351-2.532 13.421-2.532 19.771 0z" fill="#bf4722" fill-rule="evenodd"/></svg>
\ No newline at end of file
diff --git a/www/public/images/product/auth/vue-icon.png b/www/public/images/product/auth/vue-icon.png
new file mode 100644
index 00000000000..5310793a383
Binary files /dev/null and b/www/public/images/product/auth/vue-icon.png differ
diff --git a/www/public/images/product/auth/vue-icon.svg b/www/public/images/product/auth/vue-icon.svg
new file mode 100644
index 00000000000..a1d285eb2a1
--- /dev/null
+++ b/www/public/images/product/auth/vue-icon.svg
@@ -0,0 +1,2 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<svg version="1.1" viewBox="0 0 261.76 226.69" xmlns="http://www.w3.org/2000/svg"><g transform="matrix(1.3333 0 0 -1.3333 -76.311 313.34)"><g transform="translate(178.06 235.01)"><path d="m0 0-22.669-39.264-22.669 39.264h-75.491l98.16-170.02 98.16 170.02z" fill="#41b883"/></g><g transform="translate(178.06 235.01)"><path d="m0 0-22.669-39.264-22.669 39.264h-36.227l58.896-102.01 58.896 102.01z" fill="#34495e"/></g></g></svg>
diff --git a/www/public/images/product/database/table-view/test.png b/www/public/images/product/database/table-view/test.png
new file mode 100644
index 00000000000..8cf8c26a2c0
Binary files /dev/null and b/www/public/images/product/database/table-view/test.png differ
diff --git a/www/styles/index.css b/www/styles/index.css
index 10a18e70198..c660c55a636 100644
--- a/www/styles/index.css
+++ b/www/styles/index.css
@@ -21,15 +21,6 @@
font-weight: 400;
font-style: normal;
}
-/* @font-face {
- font-family: "custom-font";
- src: url(/new/fonts/custom/CustomFont-BookItalic.woff2)
- format('woff2'),
- url(/new/fonts/custom/CustomFont-BookItalic.woff)
- format('woff');
- font-weight: 400;
- font-style: italic;
-} */
@font-face {
font-family: 'custom-font';
src: url(/new/fonts/custom/CustomFont-Medium.woff2) format('woff2'),
@@ -37,51 +28,24 @@
font-weight: 500;
font-style: normal;
}
-/* @font-face {
- font-family: "custom-font";
- src: url(/new/fonts/custom/CustomFont-MediumItalic.woff2)
- format('woff2'),
- url(/new/fonts/custom/CustomFont-MediumItalic.woff)
- format('woff');
- font-weight: 500;
- font-style: italic;
-} */
-/* @font-face {
- font-family: "custom-font";
- src: url(/new/fonts/custom/CustomFont-Bold.woff2)
- format('woff2'),
- url(/new/fonts/custom/CustomFont-Bold.woff)
- format('woff');
- font-weight: 700;
- font-style: 600;
-} */
-/* @font-face {
- font-family: "custom-font";
- src: url(/new/fonts/custom/CustomFont-BoldItalic.woff2)
- format('woff2'),
- url(/new/fonts/custom/CustomFont-BoldItalic.woff)
- format('woff');
- font-style: 600;
- font-style: italic;
-} */
-/* @font-face {
- font-family: "custom-font";
- src: url(/new/fonts/custom/CustomFont-Black.woff2)
- format('woff2'),
- url(/new/fonts/custom/CustomFont-Black.woff)
- format('woff');
- font-weight: 800;
- font-style: normal;
+
+/*
+ Typography
+*/
+
+h1,
+h2,
+h3,
+h4,
+h5,
+h6 {
+ margin-bottom: 16px;
+}
+
+p {
+ @apply text-gray-light dark:text-gray-dark;
+ margin-bottom: 16px;
}
-@font-face {
- font-family: "custom-font";
- src: url(/new/fonts/custom/CustomFont-BlackItalic.woff2)
- format('woff2'),
- url(/new/fonts/custom/CustomFont-BlackItalic.woff)
- format('woff');
- font-weight: 800;
- font-style: italic;
-} */
.sbui-border-fix select {
@apply border-solid;
@@ -92,3 +56,49 @@ body {
-moz-osx-font-smoothing: grayscale;
-webkit-font-smoothing: antialiased;
}
+
+.section--masked {
+ /* overflow: hidden; */
+}
+
+.section--bg-masked {
+ position: absolute;
+ width: 100%;
+ height: 100%;
+ /* overflow: visible; */
+}
+
+.section--bg {
+ @apply bg-gray-50 dark:bg-gray-800;
+ position: relative;
+ height: 100%;
+ width: 100%;
+ top: 0;
+ left: 0;
+ transform-origin: 100% 0;
+ transform: skewY(-2deg);
+ overflow: hidden;
+ /* transform-origin: var(--sectionTransformOrigin);
+ transform: skewY(var(--sectionAngle));
+ background: var(--backgroundColor);
+ overflow:
+ hidden; */
+}
+
+.section-container {
+ position: relative;
+ /* z-index: 1; */
+ /* display: flex;
+ justify-content: center; */
+}
+
+/* Database page */
+
+/* override position of tabs */
+.dashboard-tabs > div > div > div > div {
+ justify-content: center;
+}
+
+.dashboard-tabs div[role='seperator'] {
+ @apply border border-gray-50 dark:border-gray-600;
+}
diff --git a/www/tailwind.config.js b/www/tailwind.config.js
index d685aa5c842..d0a33615af3 100644
--- a/www/tailwind.config.js
+++ b/www/tailwind.config.js
@@ -20,6 +20,8 @@ module.exports = {
// => @media (min-width: 1536px) { ... }
},
colors: {
+ 'gray-light': '#7B7F86',
+ 'gray-dark': '#7B7F86',
'accent-1': '#FAFAFA',
'accent-2': '#EAEAEA',
'accent-7': '#333',
@@ -76,8 +78,10 @@ module.exports = {
'8xl': '6.25rem',
},
boxShadow: {
+ 'light-small': '0px 4px 8px 2px rgba(107, 114, 128, 0.08)',
small: '0 5px 10px rgba(0, 0, 0, 0.12)',
medium: '0 8px 30px rgba(0, 0, 0, 0.12)',
+ override: '0px 0px 0px rgba(0, 0, 0, 0)',
},
fontFamily: {
sans: [
@@ -112,4 +116,7 @@ module.exports = {
},
},
plugins: [],
+ corePlugins: {
+ preflight: true,
+ },
}