Skip to content

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

feat: more progress

Jonathan Summers-Muir4283ca9f734c
diff --git a/www/components/AdminAccess/index.tsx b/www/components/AdminAccess/index.tsx
index d9d80bd4dfa..a88730bb378 100644
--- a/www/components/AdminAccess/index.tsx
+++ b/www/components/AdminAccess/index.tsx
@@ -8,7 +8,7 @@ const AdminAccess = () => {
const [tabId, setTabId] = useState('tabTableEditor')
return (
- <div className="py-16 bg-gray-50 dark:bg-dark-700 overflow-hidden lg:py-24">
+ <div className="py-16 bg-gray-50 dark:bg-dark-800 overflow-hidden lg:py-24">
<div className="container mx-auto px-8 sm:px-16 xl:px-20">
<div className="mx-auto max-w-7xl">
<div className="relative items-center">
diff --git a/www/components/BuiltWithSupabase/index.tsx b/www/components/BuiltWithSupabase/index.tsx
index 410fde37f8b..4e6a031b32f 100644
--- a/www/components/BuiltWithSupabase/index.tsx
+++ b/www/components/BuiltWithSupabase/index.tsx
@@ -6,9 +6,9 @@ import { useRouter } from 'next/router'
const BuiltExamples = () => {
const { basePath } = useRouter()
return (
- <div className="relative bg-gray-50 dark:bg-dark-600 pt-12 pb-16">
+ <div className="relative bg-gray-50 dark:bg-dark-800 pt-12 pb-16">
<div className="absolute inset-0">
- <div className="mx-auto bg-white dark:bg-dark-600 w-full h-1/3 sm:h-2/3 lg:h-1/2"></div>
+ <div className="mx-auto bg-white dark:bg-dark-800 w-full h-1/3 sm:h-2/3 lg:h-1/2"></div>
</div>
<div className="container mx-auto px-8 sm:px-16 xl:px-20 relative">
<div className="mx-auto max-w-7xl">
@@ -34,7 +34,10 @@ const BuiltExamples = () => {
</div>
<p className="mt-10 text-base text-gray-500 dark:text-dark-400">
See all examples on our{' '}
- <a className="text-brand-700" href="https://github.com/supabase/supabase/tree/master/examples">
+ <a
+ className="text-brand-700"
+ href="https://github.com/supabase/supabase/tree/master/examples"
+ >
Github
</a>
</p>
diff --git a/www/components/Carousels/ImageCarousel.tsx b/www/components/Carousels/ImageCarousel.tsx
index 618376a8c34..555a86e7dd8 100644
--- a/www/components/Carousels/ImageCarousel.tsx
+++ b/www/components/Carousels/ImageCarousel.tsx
@@ -17,7 +17,19 @@ import TweetCard from '../TweetCard'
SwiperCore.use([EffectFade])
-function ImageCarousel() {
+interface Content {
+ title: string
+ label?: string
+ img_url: string
+ text: string
+}
+
+interface ImageCaoursel {
+ content: Content
+ footer?: React.ReactNode
+}
+
+function ImageCarousel(props: ImageCaoursel) {
// base path for images
const { basePath } = useRouter()
@@ -63,24 +75,13 @@ function ImageCarousel() {
// @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>
+ {props.content.map((content, i) => {
+ return (
+ <Tabs.Panel label={content.label ? content.label : content.title} id={i.toString()}>
+ <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']}`}
@@ -89,31 +90,20 @@ function ImageCarousel() {
// @ts-ignore
onSwiper={setImageSwiper}
style={{ zIndex: 0 }}
- initialSlide={2}
+ initialSlide={0}
spaceBetween={0}
slidesPerView={1}
- speed={800}
+ speed={400}
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>
+ {props.content.map((content, i) => {
+ return (
+ <SwiperSlide key={i}>
+ <img src={`${basePath}${content.img_url}`} />
+ </SwiperSlide>
+ )
+ })}
</Swiper>
</div>
</div>
@@ -123,87 +113,29 @@ function ImageCarousel() {
// @ts-ignore
onSwiper={setSwiperDetails}
// style={{ zIndex: 0 }}
- // initialSlide={2}
+ initialSlide={0}
// spaceBetween={0}
// slidesPerView={1}
// direction="horizontal"
// style={{ overflow: 'hidden' }}
- speed={800}
+ speed={400}
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 />
+ {props.content.map((content, i) => {
+ return (
+ <SwiperSlide key={i}>
+ <div className="bg-white dark:bg-gray-800">
+ <Typography.Title level={4}>{content.title}</Typography.Title>
+ <Typography.Text>
+ <p className="text-base">{content.text}</p>
+ <Button className="mb-8">See documentation</Button>
+ </Typography.Text>
+ </div>
+ </SwiperSlide>
+ )
+ })}
+ {props.footer && <div className="my-8">{props.footer}</div>}
</Swiper>
</div>
</div>
diff --git a/www/components/Carousels/SplitCodeBlockCarousel.tsx b/www/components/Carousels/SplitCodeBlockCarousel.tsx
index f23b1a6a177..ca31c4e1b61 100644
--- a/www/components/Carousels/SplitCodeBlockCarousel.tsx
+++ b/www/components/Carousels/SplitCodeBlockCarousel.tsx
@@ -2,13 +2,18 @@ import { useState } from 'react'
// Import Swiper React components
import { Swiper, SwiperSlide } from 'swiper/react'
-import { Tabs, Typography, Button } from '@supabase/ui'
+import { Tabs, Typography, Button, Space } from '@supabase/ui'
import CodeBlock from '../CodeBlock/CodeBlock'
// Import Swiper styles
import 'swiper/swiper.min.css'
+import Badge from '../Badge'
-function SplitCodeBlockCarousel() {
+interface SplitCodeBlockCarousel {
+ content: any
+}
+
+function SplitCodeBlockCarousel(props: SplitCodeBlockCarousel) {
// store API swiper instance
const [apiSwiper, setApiSwiper] = useState(undefined)
const [swiperDetails, setSwiperDetails] = useState(undefined)
@@ -49,24 +54,13 @@ function SplitCodeBlockCarousel() {
// @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>
+ {props.content.map((extension, i) => {
+ return (
+ <Tabs.Panel label={extension.title} id={i.toString()}>
+ <span></span>
+ </Tabs.Panel>
+ )
+ })}
</Tabs>
<div className="border border-gray-100 dark:border-gray-600 rounded-md bg-gray-800 overflow-hidden">
<Swiper
@@ -76,70 +70,22 @@ function SplitCodeBlockCarousel() {
initialSlide={apiSwiperActiveIndex}
spaceBetween={0}
slidesPerView={1}
- speed={800}
+ speed={400}
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>
+ {props.content.map((extension, i) => {
+ return (
+ <SwiperSlide>
+ <CodeBlock key={i} lang={extension.lang}>
+ {extension.code}
+ </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">
+ <div className="overflow-hidden bg-gray-800 p-8 dark rounded-md border border-t-none border-t-0 border-gray-600">
<Swiper
// @ts-ignore
onSwiper={setSwiperDetails}
@@ -149,15 +95,39 @@ alter table public.messages enable row level security;
slidesPerView={1}
direction="horizontal"
// style={{ overflow: 'hidden' }}
- speed={800}
+ speed={400}
allowTouchMove={false}
>
- <SwiperSlide>{details}</SwiperSlide>
- <SwiperSlide>{details}</SwiperSlide>
- <SwiperSlide>{details}</SwiperSlide>
- <SwiperSlide>{details}</SwiperSlide>
- <SwiperSlide>{details}</SwiperSlide>
- <SwiperSlide>{details}</SwiperSlide>
+ {props.content.map((extension, i) => {
+ return (
+ <SwiperSlide key={i}>
+ <div className="">
+ <Typography.Text>
+ <span className="block text-lg text-white mb-4">
+ {extension.detail_title}
+ </span>
+ </Typography.Text>
+ <Typography.Text type="secondary" className="block mb-6">
+ <p>{extension.detail_text}</p>
+ </Typography.Text>
+ <Space className="justify-between">
+ <Typography.Text>
+ <Button type="outline">View documentation</Button>
+ </Typography.Text>
+ <div>
+ <Typography.Text type="secondary" className="mr-4">
+ {extension.badges_label}
+ </Typography.Text>
+ {extension.badges &&
+ extension.badges.map((badge, i) => {
+ return <Badge>{badge}</Badge>
+ })}
+ </div>
+ </Space>
+ </div>
+ </SwiperSlide>
+ )
+ })}
</Swiper>
</div>
</div>
diff --git a/www/components/CaseStudies/index.tsx b/www/components/CaseStudies/index.tsx
index b96c36f67ef..11c4d1854d5 100644
--- a/www/components/CaseStudies/index.tsx
+++ b/www/components/CaseStudies/index.tsx
@@ -8,9 +8,9 @@ const CaseStudies = () => {
const { basePath } = useRouter()
return (
- <div className="relative bg-gray-50 dark:bg-dark-600 pb-20">
+ <div className="relative bg-gray-50 dark:bg-dark-800 pb-20">
<div className="absolute inset-0">
- <div className="mx-auto bg-white dark:bg-dark-700 h-1/5 sm:h-2/5 w-full"></div>
+ <div className="mx-auto bg-white dark:bg-dark-800 h-1/5 sm:h-2/5 w-full"></div>
</div>
<div className="container relative mx-auto px-8 sm:px-16 xl:px-20 lg:py-8">
<div className="relative max-w-7xl mx-auto">
diff --git a/www/components/CodeBlock/CodeBlock.tsx b/www/components/CodeBlock/CodeBlock.tsx
index 867f137d3e0..ebc153a05e2 100644
--- a/www/components/CodeBlock/CodeBlock.tsx
+++ b/www/components/CodeBlock/CodeBlock.tsx
@@ -14,6 +14,7 @@ interface Props {
hideCopy?: boolean
className?: string
children?: string
+ size?: 'small' | 'medium' | 'large'
}
function CodeBlock(props: Props) {
@@ -29,6 +30,8 @@ function CodeBlock(props: Props) {
SyntaxHighlighter.registerLanguage('py', py)
SyntaxHighlighter.registerLanguage('sql', sql)
+ const large = props.size === 'large' ? true : false
+
return (
<div className="relative">
<SyntaxHighlighter
@@ -37,8 +40,8 @@ function CodeBlock(props: Props) {
className={CodeBlockStyles['code-block']}
customStyle={{
padding: 0,
- fontSize: 12,
- lineHeight: 1.2,
+ fontSize: large ? 18 : 12,
+ lineHeight: large ? 1.2 : 1.2,
borderTop: '1px solid #393939',
background: '#181818',
}}
@@ -52,7 +55,7 @@ function CodeBlock(props: Props) {
paddingLeft: '21px',
marginRight: '12px',
color: '#828282',
- fontSize: 12,
+ fontSize: large ? 14 : 12,
paddingTop: '4px',
paddingBottom: '4px',
}}
diff --git a/www/components/Features/index.tsx b/www/components/Features/index.tsx
index 1a0843b752f..20fa1bdc604 100644
--- a/www/components/Features/index.tsx
+++ b/www/components/Features/index.tsx
@@ -34,7 +34,7 @@ const Features = () => {
})
return (
- <div className="bg-gray-50 dark:bg-dark-700 overflow-hidden py-12">
+ <div className="bg-gray-50 dark:bg-dark-800 overflow-hidden py-12">
<div className="container mx-auto px-8 sm:px-16 xl:px-20">
<div className="mx-auto max-w-7xl">
<SectionHeader
diff --git a/www/components/MadeForDevelopers/index.tsx b/www/components/MadeForDevelopers/index.tsx
index 28915c73084..2a86d83c326 100644
--- a/www/components/MadeForDevelopers/index.tsx
+++ b/www/components/MadeForDevelopers/index.tsx
@@ -7,7 +7,7 @@ import DeveloperFeatures from 'data/DeveloperFeatures.json'
const MadeForDevelopers = () => {
return (
- <div className="py-16 bg-gray-50 dark:bg-dark-600 overflow-hidden lg:py-16">
+ <div className="py-16 bg-white dark:bg-dark-800 overflow-hidden lg:py-16">
<div className="container mx-auto px-8 sm:px-16 xl:px-20">
<div className="mx-auto max-w-7xl">
<div className="grid grid-cols-12">
diff --git a/www/components/Sections/APISection.tsx b/www/components/Sections/APISection.tsx
index e8f8a4d1343..f6a24729bf2 100644
--- a/www/components/Sections/APISection.tsx
+++ b/www/components/Sections/APISection.tsx
@@ -1,11 +1,22 @@
import { useState } from 'react'
// Import Swiper React components
-import { Button, IconBriefcase, IconEye, Tabs, Typography } from '@supabase/ui'
+import { Button, Tabs, Typography } from '@supabase/ui'
import { Swiper, SwiperSlide } from 'swiper/react'
import CodeBlock from '../CodeBlock/CodeBlock'
-import FeatureColumn from '../FeatureColumn'
-function APISection() {
+interface APIExample {
+ lang: 'js' | 'py' | 'sql'
+ code: string
+ title: string
+}
+
+interface Props {
+ content?: APIExample
+ title: string
+ footer?: React.ReactNode
+}
+
+function APISection(props: Props) {
// store API swiper instance
const [apiSwiper, setApiSwiper] = useState(undefined)
const [apiSwiperActiveIndex, setApiSwiperActiveIndex] = useState(0)
@@ -18,11 +29,8 @@ function APISection() {
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>
+ <div className="col-span-12 lg:col-span-5 pb-8">
+ <Typography.Title level={2}>{props.title}</Typography.Title>
<p className="text-lg">
An API built from the groud up for server and client side authentication that is fast to
implement.
@@ -34,22 +42,7 @@ function APISection() {
<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>
+ {props.footer && <div className="py-8">{props.footer}</div>}
</div>
<div className="col-span-12 lg:col-span-6 lg:col-start-7">
<Tabs
@@ -59,24 +52,12 @@ function APISection() {
// @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>
+ {props.content &&
+ props.content.map((content, i) => (
+ <Tabs.Panel label={content.title} id={i.toString()}>
+ <span></span>
+ </Tabs.Panel>
+ ))}
</Tabs>
<div className="border border-gray-100 dark:border-gray-600 rounded-md bg-gray-800 overflow-hidden">
<Swiper
@@ -86,171 +67,17 @@ function APISection() {
initialSlide={apiSwiperActiveIndex}
spaceBetween={0}
slidesPerView={1}
- speed={800}
+ speed={400}
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>
+ {props.content &&
+ props.content.map((content, i) => (
+ <SwiperSlide>
+ <CodeBlock key={i} lang={content.lang} size={'large'}>
+ {content.code}
+ </CodeBlock>
+ </SwiperSlide>
+ ))}
</Swiper>
</div>
</div>
diff --git a/www/components/Sections/TwitterSocialProof.tsx b/www/components/Sections/TwitterSocialProof.tsx
new file mode 100644
index 00000000000..688242ad7ad
--- /dev/null
+++ b/www/components/Sections/TwitterSocialProof.tsx
@@ -0,0 +1,85 @@
+import { useRouter } from 'next/router'
+import { Swiper, SwiperSlide } from 'swiper/react'
+
+import SectionContainer from '../Layouts/SectionContainer'
+import {
+ Button,
+ Typography,
+ IconGitHub,
+ IconSpeaker,
+ IconMessageCircle,
+ IconMail,
+ Space,
+ IconSlack,
+} from '@supabase/ui'
+
+import Examples from '../../data/tweets/Tweets.json'
+import ExampleCard from '../ExampleCard'
+import TweetCard from '../TweetCard'
+
+function TwitterSocialProof() {
+ // 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}>Join the community</Typography.Title>
+ <Typography.Text>
+ <p className="text-lg">
+ The Supabase team is overwhelmed with the support from early advocates, contributors,
+ and champions.
+ <br />
+ Supabase would not be possible without them.
+ </p>
+ <Space className="justify-center mt-8">
+ <Button size="small" iconRight={<IconMessageCircle size="tiny" />} type="outline">
+ Join the discussion
+ </Button>
+ <Button
+ size="small"
+ iconRight={<img src={`${basePath}/images/index/slack-mark.svg`} width="16" />}
+ type="default"
+ >
+ Request Slack invite
+ </Button>
+ </Space>
+ </Typography.Text>
+ </div>
+ </div>
+
+ <div className="mt-6">
+ <div className={'-mr-32 -ml-32'}>
+ <Swiper
+ style={{ overflow: 'visible' }}
+ initialSlide={3}
+ spaceBetween={0}
+ slidesPerView={4}
+ autoplay={{
+ delay: 2400,
+ }}
+ loop={true}
+ speed={2400}
+ >
+ {Examples.map((tweet: any, i: number) => {
+ return (
+ <SwiperSlide>
+ <div className="mr-3 ml-3 my-8 ">
+ <TweetCard
+ key={i}
+ handle={`@${tweet.handle}`}
+ quote={tweet.text}
+ img_url={tweet.img_url}
+ />
+ </div>
+ </SwiperSlide>
+ )
+ })}
+ </Swiper>
+ </div>
+ </div>
+ </>
+ )
+}
+
+export default TwitterSocialProof
diff --git a/www/components/TweetCard.tsx b/www/components/TweetCard.tsx
index 358e8ca4ea2..3d1c04d7a5b 100644
--- a/www/components/TweetCard.tsx
+++ b/www/components/TweetCard.tsx
@@ -1,13 +1,16 @@
import { IconTwitter, Typography } from '@supabase/ui'
-function TweetCard() {
+interface TweetCard {
+ handle: string
+ quote: string
+ img_url: string
+}
+
+function TweetCard(props: TweetCard) {
return (
- <div className="bg-white dark:bg-dark-800 rounded-lg border dark:border-gray-600 p-6">
+ <div className="bg-white dark:bg-dark-800 rounded-lg border border-gray-100 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"
- />
+ <img className="rounded-md w-12" src={props.img_url} />
<div
className="absolute -top-2 -left-2 w-6 h-6 flex justify-center items-center rounded-md"
style={{ background: '#00acee' }}
@@ -18,13 +21,10 @@ function TweetCard() {
</div>
</div>
<Typography.Text type="secondary" className="block mt-3">
- @JSummersMuir
+ {props.handle}
</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>
+ <p className="text-base mt-3 text-gray-900 dark:text-white">"{props.quote}"</p>
</Typography.Text>
</div>
)
diff --git a/www/data/products/auth/auth-sql-rules-examples.js b/www/data/products/auth/auth-sql-rules-examples.js
new file mode 100644
index 00000000000..a0677705774
--- /dev/null
+++ b/www/data/products/auth/auth-sql-rules-examples.js
@@ -0,0 +1,43 @@
+export default [
+ {
+ lang: 'sql',
+ title: 'Allow anyone to view',
+ code: `create table profiles (
+ id serial primary key,
+ username text unique,
+ avatar_url
+);
+
+alter table profiles
+ enable row level security;
+
+create policy "Public profiles are viewable by everyone."
+ on profiles
+ for select using (true);
+
+
+
+
+
+
+ `,
+ },
+ {
+ lang: 'js',
+ title: 'Read a record',
+ code: `//
+ // reading a record from a table
+ // with column \`public\` equals true
+
+ const { data, error } = await supabase
+ .from('rooms').select(\`
+ name,
+ messages ( text )
+ \`)
+ .eq('public', true)
+
+ // \`data\` returns data
+ // \`error\` for handling errors
+ `,
+ },
+]
diff --git a/www/data/products/database/api-examples.js b/www/data/products/database/api-examples.js
new file mode 100644
index 00000000000..52227644826
--- /dev/null
+++ b/www/data/products/database/api-examples.js
@@ -0,0 +1,44 @@
+export default [
+ {
+ lang: 'js',
+ title: 'Create a record',
+ code: `//
+// Create a record in a table
+// Insert new record into a table called \`rooms\`
+
+const { data, error } = await supabase
+ .from('rooms')
+ .insert({
+ name: 'Supabase Fan Club',
+ public: true
+ })
+
+// \`data\` returns data
+// \`error\` for handling errors
+
+
+
+
+
+
+`,
+ },
+ {
+ lang: 'js',
+ title: 'Read a record',
+ code: `//
+// reading a record from a table
+// with column \`public\` equals true
+
+const { data, error } = await supabase
+.from('rooms').select(\`
+ name,
+ messages ( text )
+\`)
+.eq('public', true)
+
+// \`data\` returns data
+// \`error\` for handling errors
+`,
+ },
+]
diff --git a/www/data/products/database/extensions-examples.js b/www/data/products/database/extensions-examples.js
new file mode 100644
index 00000000000..5d8965b71dc
--- /dev/null
+++ b/www/data/products/database/extensions-examples.js
@@ -0,0 +1,76 @@
+export default [
+ {
+ lang: 'sql',
+ title: 'Geographical',
+ code: `SELECT superhero.name
+FROM city, superhero
+WHERE ST_Contains(city.geom, superhero.geom)
+AND city.name = 'Gotham';
+ `,
+ detail_title: 'Spatial and Geographic objects for PostgreSQL',
+ detail_text:
+ 'PostGIS is a spatial database extender for PostgreSQL object-relational database. It adds support for geographic objects allowing location queries to be run in SQL.',
+ badges_label: 'Extensions used:',
+ badges: ['PostGIS'],
+ url: '',
+ },
+ {
+ lang: 'sql',
+ title: 'Crypto',
+ code: `-- This can be run in the SQL editor
+psql
+CREATE EXTENSION pgcrypto;
+SELECT crypt('mypass', gen_salt('bf', 4));
+crypt
+--------------------------------------------------------------
+$2a$04$1bfMQDOR6aLyD4q3KVb8/ujG7ZAkyie4d/s3ABwuZNbzkFFgXtC76
+
+-- We can now execute the statement below to store the string safely in the database:
+INSERT INTO users (user_id,enc_pass) VALUES (1,'$2a$04$1bfMQDOR6aLyD4q3KVb8/ujG7ZAkyie4d/s3ABwuZNbzkFFgXtC76');`,
+ detail_title: 'The pgcrypto module provides cryptographic functions for PostgreSQL.',
+ detail_text:
+ 'The pgcrypto module is a cryptographic extension that provides a number of hashing and cryptographic functions.',
+ badges_label: 'Extensions used:',
+ badges: ['pgcrypto'],
+ url: '',
+ },
+ {
+ lang: 'sql',
+ title: 'Monitoring',
+ code: `SELECT order_details.qty,
+ order_details.item_id,
+ order_details.item_price
+FROM order_details,
+ customers
+WHERE customers.id = order_details.customer_id
+AND customers.email = '[email protected]'
+
+-- You can now view pg_stat_statements
+
+SELECT *
+FROM pg_stat_statements;
+
+userid | 16384
+dbid | 16388
+query | select * from users where email = ?;
+calls | 2
+total_time | 0.000268
+rows | 2
+shared_blks_hit | 16
+shared_blks_read | 0
+shared_blks_dirtied | 0
+shared_blks_written | 0
+local_blks_hit | 0
+local_blks_read | 0
+local_blks_dirtied | 0
+local_blks_written | 0
+...
+`,
+ detail_title: 'Tracking execution statistics of all SQL statements',
+ detail_text:
+ 'The pg_stat_statements module provides a means for tracking execution statistics of all SQL statements executed by a server.',
+ badges_label: 'Extensions used:',
+ badges: ['pg_stat_statements'],
+ url: '',
+ },
+]
diff --git a/www/data/products/database/sql-view-carousel.json b/www/data/products/database/sql-view-carousel.json
new file mode 100644
index 00000000000..4098ef2f1fa
--- /dev/null
+++ b/www/data/products/database/sql-view-carousel.json
@@ -0,0 +1,32 @@
+[
+ {
+ "title": "Fast column navigation",
+ "label": "Fast column navigation",
+ "img_url": "/images/product/database/table-view/test.png",
+ "text": "Write, save, and execute SQL queries directly on our"
+ },
+ {
+ "title": "Fast column navigation",
+ "label": "Fast column navigation",
+ "img_url": "/images/product/database/table-view/test.png",
+ "text": "Write, save, and execute SQL queries directly on our"
+ },
+ {
+ "title": "Fast column navigation",
+ "label": "Fast column navigation",
+ "img_url": "/images/product/database/table-view/test.png",
+ "text": "Write, save, and execute SQL queries directly on our"
+ },
+ {
+ "title": "Fast column navigation",
+ "label": "Fast column navigation",
+ "img_url": "/images/product/database/table-view/test.png",
+ "text": "Write, save, and execute SQL queries directly on our"
+ },
+ {
+ "title": "Fast column navigation",
+ "label": "Fast column navigation",
+ "img_url": "/images/product/database/table-view/test.png",
+ "text": "Write, save, and execute SQL queries directly on our"
+ }
+]
diff --git a/www/data/products/database/table-view-carousel.json b/www/data/products/database/table-view-carousel.json
new file mode 100644
index 00000000000..4098ef2f1fa
--- /dev/null
+++ b/www/data/products/database/table-view-carousel.json
@@ -0,0 +1,32 @@
+[
+ {
+ "title": "Fast column navigation",
+ "label": "Fast column navigation",
+ "img_url": "/images/product/database/table-view/test.png",
+ "text": "Write, save, and execute SQL queries directly on our"
+ },
+ {
+ "title": "Fast column navigation",
+ "label": "Fast column navigation",
+ "img_url": "/images/product/database/table-view/test.png",
+ "text": "Write, save, and execute SQL queries directly on our"
+ },
+ {
+ "title": "Fast column navigation",
+ "label": "Fast column navigation",
+ "img_url": "/images/product/database/table-view/test.png",
+ "text": "Write, save, and execute SQL queries directly on our"
+ },
+ {
+ "title": "Fast column navigation",
+ "label": "Fast column navigation",
+ "img_url": "/images/product/database/table-view/test.png",
+ "text": "Write, save, and execute SQL queries directly on our"
+ },
+ {
+ "title": "Fast column navigation",
+ "label": "Fast column navigation",
+ "img_url": "/images/product/database/table-view/test.png",
+ "text": "Write, save, and execute SQL queries directly on our"
+ }
+]
diff --git a/www/data/tweets/Tweets.json b/www/data/tweets/Tweets.json
new file mode 100644
index 00000000000..e9e93093526
--- /dev/null
+++ b/www/data/tweets/Tweets.json
@@ -0,0 +1,278 @@
+[
+ {
+ "text": "Been playing with @supabase_io and so far I'm liking it. I ❤️ you get full access to the database. It's very quick to get up and running, seems a nice fit for prototypes or smaller apps",
+ "url": "https://twitter.com/mattegreer/status/1341765395133415425",
+ "handle": "mattegreer",
+ "img_url": "https://pbs.twimg.com/profile_images/1362197960663080960/IgXniSVk_400x400.jpg"
+ },
+ {
+ "text": "Reply enjoying building on @supabase_io for a project with @lasnindrek - allows incredible development speed when bashing together an MVP",
+ "url": "https://twitter.com/geordidearns/status/1344433863804788737",
+ "handle": "geordidearns",
+ "img_url": "https://pbs.twimg.com/profile_images/1346222912714518535/vppimY3M_400x400.jpg"
+ },
+ {
+ "text": "We started migrating @primo_af from @Firebase to @supabase_io for better auth/data management, but stumbled on a missing critical feature. 2 weeks later our PR got merged and now everyone has it. Open source is amazing.",
+ "url": "https://twitter.com/_mateomorris/status/1369661317729124353",
+ "handle": "_mateomorris",
+ "img_url": "https://pbs.twimg.com/profile_images/1342201402727215104/1FyEWRE8_400x400.jpg"
+ },
+ {
+ "text": "OKAY OKAY FINE I'LL LOOK AT SUPABASE PROPERLY",
+ "url": "https://twitter.com/benbarbersmith/status/1369758528764776453",
+ "handle": "benbarbersmith",
+ "img_url": "https://pbs.twimg.com/profile_images/1332690145099862016/Jqle_tE6_400x400.jpg"
+ },
+ {
+ "text": "We started migrating @primo_af from @Firebase to @supabase_io for better auth/data management, but stumbled on a missing critical feature. 2 weeks later our PR got merged and now everyone has it. Open source is amazing.",
+ "url": "https://twitter.com/_mateomorris/status/1369661317729124353",
+ "handle": "_mateomorris",
+ "img_url": "https://pbs.twimg.com/profile_images/1342201402727215104/1FyEWRE8_400x400.jpg"
+ },
+ {
+ "text": "Been trying out this new stack. Loving it so far. Next.js (Frontend) + Stitches.js (Styling) + Radix (Primitives & Icons) + Supabase (Backend) + Vercel (Deployment) 😍 Thank you @vercel @Modulz @supabase_io for this amazing DX.",
+ "url": "https://twitter.com/VaibhavAcharya_/status/1369499616794660864",
+ "handle": "VaibhavAcharya_",
+ "img_url": ""
+ },
+ {
+ "text": "DB/Backend: @supabase_io Reason: Takes care of Auth, DB hosting, API. Open source, easy to eject into something else. I love SQL. Cloud IDE is incredible for productivity.",
+ "url": "https://twitter.com/JessetheSibley/status/1369678185508593673",
+ "handle": "JessetheSibley",
+ "img_url": "https://pbs.twimg.com/profile_images/1355558918177624074/aNx9O0lH_400x400.jpg"
+ },
+ {
+ "text": "Looking for a Firebase alternative? Consider using the open-source @supabase_io. It's as simple as Firebase but I found the dashboard UX more intuitive and hey it's OSS! It's in beta so you can use it for free rn 🤌",
+ "url": "https://twitter.com/mneelansh15/status/1368171468153118721",
+ "handle": "mneelansh15",
+ "img_url": "https://pbs.twimg.com/profile_images/1329674768430206979/6XKH3Rm6_400x400.jpg"
+ },
+ {
+ "text": "big props to the @supabase_io team - open source is a two way street and they’re super responsive & community oriented",
+ "url": "https://twitter.com/_mateomorris/status/1369661833557196800",
+ "handle": "_mateomorris",
+ "img_url": ""
+ },
+ {
+ "text": "Been actively working on Quill. It's been rapid, thanks to @supabase_io and @tailwindui",
+ "url": "https://twitter.com/quill_web/status/1369061125157961734",
+ "handle": "quill_web",
+ "img_url": "https://pbs.twimg.com/profile_images/1366133044185333762/F_8WdZbZ_400x400.jpg"
+ },
+ {
+ "text": "@supabase_io not only is it Firebase alternative, but it has SQL and it uses #elixirlang for handling realtime Smiling face with heart-shaped eyesSmiling face with heart-shaped eyesSmiling face with heart-shaped eyes @josevalim did you know that? That's power of your creation Smiling face with sunglasses",
+ "url": "https://twitter.com/MartinOrszulik/status/1369252918570983424",
+ "handle": "MartinOrszulik",
+ "img_url": "https://pbs.twimg.com/profile_images/1296536233208930305/ext7ggBo_400x400.jpg"
+ },
+ {
+ "text": "Using @supabase_io with SWR by @vercel is something else Fire",
+ "url": "https://twitter.com/eunjae_lee/status/1369788285317419009",
+ "handle": "eunjae_lee",
+ "img_url": "https://pbs.twimg.com/profile_images/1188191474401320965/eGjSYbQd_400x400.jpg"
+ },
+ {
+ "text": "Another month, another impressive @supabase_io release. It’s rare to see a startup ship in public so consistently.",
+ "url": "https://twitter.com/yuris/status/1366770633401491456",
+ "handle": "yuris",
+ "img_url": "https://pbs.twimg.com/profile_images/798707219520835585/2ilFPL2Z_400x400.jpg"
+ },
+ {
+ "text": "There are a lot of indie hackers building in public, but it’s rare to see a startup shipping as consistently and transparently as Supabase. Their upcoming March releases look to be 🔥 Def worth a follow! also opened my eyes as to how to value add in open source.",
+ "url": "https://twitter.com/swyx/status/1366685025047994373",
+ "handle": "swyx",
+ "img_url": "https://pbs.twimg.com/profile_images/1360406256842797056/qhvO9V6x_400x400.jpg"
+ },
+ {
+ "text": "@supabase_io is amazing, super easy to get up and running quickly + they have multiple examples with various frameworks (chat app, auth, etc)",
+ "url": "https://twitter.com/ssw1ss/status/1366515168260337671",
+ "handle": "ssw1ss",
+ "img_url": "https://pbs.twimg.com/profile_images/1258050979901014019/4mD0C5Wk_400x400.jpg"
+ },
+ {
+ "text": "This weekend I made a personal record 🥇 on the less time spent creating an application with social login / permissions, database, cdn, infinite scaling, git push to deploy and for free. Thanks to @supabase_io and @vercel",
+ "url": "https://twitter.com/jperelli/status/1366195769657720834",
+ "handle": "jperelli",
+ "img_url": "https://pbs.twimg.com/profile_images/1373967833495973889/YH_VX6we_400x400.jpg"
+ },
+ {
+ "text": "I'm excited to know that there's a Firebase alternative OSS project, @supabase_io. It's not a mere copy, you can use Postgre. I like Firebase but always miss the power of SQL.",
+ "url": "https://twitter.com/kouariga/status/1366192045648347138",
+ "handle": "kouariga",
+ "img_url": "https://pbs.twimg.com/profile_images/1081935821224128517/IhXPN_CQ_400x400.jpg"
+ },
+ {
+ "text": "That’s the best part of @supabase_io! No vendor lock 😎",
+ "url": "https://twitter.com/jim_bisenius/status/1366094388816928770",
+ "handle": "jim_bisenius",
+ "img_url": "https://pbs.twimg.com/profile_images/1372987165869760513/rLgwUZSB_400x400.jpg"
+ },
+ {
+ "text": "Just span up a @supabase_io app for my new side project. Honestly thinking the tagline \"Firebase Alternative\" should really be \"A Far Superior Firebase Alternative\". Love writing SQL in the cloud! Big love ❤️",
+ "url": "https://twitter.com/JessetheSibley/status/1365634006608457729",
+ "handle": "JessetheSibley",
+ "img_url": "https://pbs.twimg.com/profile_images/1355558918177624074/aNx9O0lH_400x400.jpg"
+ },
+ {
+ "text": "Lack of count in firebase/firestore is such a nightmare and workaround solutions are crappy. I experienced it while implementing http://HelloEle.com good job Supabase 👍",
+ "url": "https://twitter.com/prakis/status/1365201855849009155",
+ "handle": "prakis",
+ "img_url": "https://pbs.twimg.com/profile_images/1313453251509932032/eRvqp-t0_400x400.jpg"
+ },
+ {
+ "text": "Me using @supabase_io for the first time right now 🤯",
+ "url": "https://twitter.com/nasiscoe/status/1365140856035024902",
+ "handle": "nasiscoe",
+ "img_url": "https://pbs.twimg.com/profile_images/1332049061621485568/nc2Ms5hH_400x400.jpg"
+ },
+ {
+ "text": "I'm trying @supabase_io, Firebase alternative that uses PostgreSQL (and you can use GraphQL too) in the cloud. It's incredible Smiling face with heart-shaped eyes",
+ "url": "https://twitter.com/JP__Gallegos/status/1365699468109242374",
+ "handle": "JP__Gallegos",
+ "img_url": "https://pbs.twimg.com/profile_images/1304486009888018435/1PH2mt6v_400x400.jpg"
+ },
+ {
+ "text": "Check out this amazing product @supabase_io. A must give try #newidea #opportunity",
+ "url": "https://twitter.com/digitaldaswani/status/1364447219642814464",
+ "handle": "digitaldaswani",
+ "img_url": "https://pbs.twimg.com/profile_images/1354865630738935814/w8HLdlC7_400x400.jpg"
+ },
+ {
+ "text": "I gave @supabase_io a try this weekend and I was able to create a quick dashboard to visualize the data from the PostgreSQL instance. It's super easy to use Supabase's API or the direct DB connection. Check out the tutorial 📖",
+ "url": "https://twitter.com/razvanilin/status/1363770020581412867",
+ "handle": "razvanilin",
+ "img_url": "https://pbs.twimg.com/profile_images/1343810205184770049/AiaH9vJ2_400x400.jpg"
+ },
+ {
+ "text": "Tried @supabase_io for the first time yesterday. Amazing tool! I was able to get my Posgres DB up in no time and their documentation on operating on the DB is super easy! 👏 Can't wait for Cloud functions to arrive! It's gonna be a great Firebase alternative!",
+ "url": "https://twitter.com/chinchang457/status/1363347740793524227",
+ "handle": "chinchang457",
+ "img_url": "https://pbs.twimg.com/profile_images/1370236201081434113/LTw5OCnv_400x400.jpg"
+ },
+ {
+ "text": "10/100 All day i was migrating my project from firebase to @supabase_io Because it is perfect and simple!!! I like design and API for understandable. There are in BETA now. Just try!🧪",
+ "url": "https://twitter.com/roomahhka/status/1363155396391763971",
+ "handle": "roomahhka",
+ "img_url": "https://pbs.twimg.com/profile_images/1358741973239234560/e_2eQt6C_400x400.jpg"
+ },
+ {
+ "text": "I gave @supabase_io a try today and I was positively impressed! Very quick setup to get a working remote database with API access and documentation generated automatically for you 👌 10/10 will play more",
+ "url": "https://twitter.com/razvanilin/status/1363002398738800640",
+ "handle": "razvanilin",
+ "img_url": "https://pbs.twimg.com/profile_images/1343810205184770049/AiaH9vJ2_400x400.jpg"
+ },
+ {
+ "text": "Wait. Is it so easy to write queries for @supabase_io ? It's like simple SQL stuff!",
+ "url": "https://twitter.com/T0ny_Boy/status/1362911838908911617",
+ "handle": "T0ny_Boy",
+ "img_url": "https://pbs.twimg.com/profile_images/1368251332948279301/UCBhUBZl_400x400.jpg"
+ },
+ {
+ "text": "Jeez, and @supabase_io have native support for magic link login?! I was going to use http://magic.link for this But if I can get my whole DB + auth + magic link support in one... Awesome",
+ "url": "https://twitter.com/louisbarclay/status/1362016666868154371",
+ "handle": "louisbarclay",
+ "img_url": "https://pbs.twimg.com/profile_images/1334856185888067588/6f1O8ZOW_400x400.jpg"
+ },
+ {
+ "text": "@MongoDB or @MySQL?!?! Please, let me introduce you to @supabase_io and the wonderful world of @PostgreSQL before it's too late!!",
+ "url": "https://twitter.com/jim_bisenius/status/1361772978841788416",
+ "handle": "jim_bisenius",
+ "img_url": "https://pbs.twimg.com/profile_images/1372987165869760513/rLgwUZSB_400x400.jpg"
+ },
+ {
+ "text": "Where has @supabase_io been all my life? 😍",
+ "url": "https://twitter.com/Elsolo244/status/1360257201911320579",
+ "handle": "Elsolo244",
+ "img_url": "https://pbs.twimg.com/profile_images/2486328968/v6citnk33y2wpeyzrq05_400x400.jpeg"
+ },
+ {
+ "text": "Honestly Supabase is such a killer Firebase alternative.",
+ "url": "https://twitter.com/XPCheese/status/1360229397735895043",
+ "handle": "XPCheese",
+ "img_url": "https://pbs.twimg.com/profile_images/1362369605453418497/eYP6YXr7_400x400.jpg"
+ },
+ {
+ "text": "I think you'll love @supabase_io :-) Open-source, PostgreSQL-based & zero magic.",
+ "url": "https://twitter.com/zippoxer/status/1360021315852328961",
+ "handle": "zippoxer",
+ "img_url": "https://pbs.twimg.com/profile_images/1295778726261727252/6rd3xub9_400x400.png"
+ },
+ {
+ "text": "@supabase_io is the answer to all of firebase’s problems imo",
+ "url": "https://twitter.com/jim_bisenius/status/1358590362953142278",
+ "handle": "jim_bisenius",
+ "img_url": "https://pbs.twimg.com/profile_images/1372987165869760513/rLgwUZSB_400x400.jpg"
+ },
+ {
+ "text": "@supabase_io is insane.",
+ "url": "https://twitter.com/codewithbhargav/status/1357647840911126528",
+ "handle": "codewithbhargav",
+ "img_url": "https://pbs.twimg.com/profile_images/1352128808283848704/LQYfHXBp_400x400.jpg"
+ },
+ {
+ "text": "It’s fun, feels lightweight, and really quick to spin up user auth and a few tables. Almost too easy! Highly recommend.",
+ "url": "https://twitter.com/nerdburn/status/1356857261495214085",
+ "handle": "nerdburn",
+ "img_url": "https://pbs.twimg.com/profile_images/1138638265337040896/66VSV9Mm_400x400.png"
+ },
+ {
+ "text": "I’m probably the wrong person to ask because I pick tools based on UX. Supabase was immediately approachable: instant setup, fast web app, auth, and easy APIs. Same reason I liked Firebase when I first discovered. Fauna didn’t do that for me and I unfortunately lost interest.",
+ "url": "https://twitter.com/jasonbarone/status/1357015483619422210",
+ "handle": "jasonbarone",
+ "img_url": "https://pbs.twimg.com/profile_images/1242700943755489280/6zCnwpvi_400x400.jpg"
+ },
+ {
+ "text": "Now things are starting to get interesting! Firebase has long been the obvious choice for many #flutter devs for the ease of use. But their databases are NoSQL, which has its downsides... Seems like @supabase_io is working on something interesting here!",
+ "url": "https://twitter.com/RobertBrunhage/status/1356973695865085953",
+ "handle": "RobertBrunhage",
+ "img_url": "https://pbs.twimg.com/profile_images/1364915715350888449/5LMWEACf_400x400.jpg"
+ },
+ {
+ "text": "Honestly, I really love what @supabase_io is doing, you don't need to own a complete backend, just write your logic within your app and you'll get a powerful Postgresql at your disposal.",
+ "url": "https://twitter.com/NavicsteinR/status/1356927229217959941",
+ "handle": "NavicsteinR",
+ "img_url": "https://pbs.twimg.com/profile_images/1342254554025517058/w_zNZAs7_400x400.jpg"
+ },
+ {
+ "text": "Next.js, @supabase_io, @stripe, and @vercel. Supastack™",
+ "url": "https://twitter.com/jasonbarone/status/1356765411832922115",
+ "handle": "jasonbarone",
+ "img_url": "https://pbs.twimg.com/profile_images/1242700943755489280/6zCnwpvi_400x400.jpg"
+ },
+ {
+ "text": "> So they just help me use @PostgreSQL better. They don't try to invent a wheel and trap me in it. Whereas they provide a good abstraction overall, they also provide a raw access to the database.",
+ "url": "https://twitter.com/supabase_io/status/1370652139152797698",
+ "handle": "supabase_io",
+ "img_url": "https://pbs.twimg.com/profile_images/1265930492752261120/Z_q3YLKR_400x400.jpg"
+ },
+ {
+ "text": "I've really enjoyed the DX! Extremely fun to use, which is odd to say about a database at least for me.",
+ "url": "https://twitter.com/Soham_Asmi/status/1373086068132745217",
+ "handle": "Soham_Asmi",
+ "img_url": "https://pbs.twimg.com/profile_images/1371671270581010435/Os4nhKIr_400x400.jpg"
+ },
+ {
+ "text": "Supabase team is doing some awesome stuff Heart suit #supabase #facts @supabase_io",
+ "url": "https://twitter.com/_strawbird/status/1372607500499841025",
+ "handle": "_strawbird",
+ "img_url": "https://pbs.twimg.com/profile_images/1359293071301644290/iMBvvQdn_400x400.jpg"
+ },
+ {
+ "text": "Did a website with @supabase_io last week with no prior experience with it. Up and running in 20 minutes. It's awesome to use. Thumbs up",
+ "url": "https://twitter.com/michael_webdev/status/1352885366928404481?s=20",
+ "handle": "michael_webdev",
+ "img_url": "https://pbs.twimg.com/profile_images/1285187864083550208/SvAyLaWV_400x400.jpg"
+ },
+ {
+ "text": "Next.js, @supabase_io, @stripe, and @vercel. Supastack™",
+ "url": "https://twitter.com/jasonbarone/status/1356765411832922115?s=20",
+ "handle": "jasonbarone",
+ "img_url": "https://pbs.twimg.com/profile_images/1242700943755489280/6zCnwpvi_400x400.jpg"
+ },
+ {
+ "text": "I just learned about @supabase_io and im in love Smiling face with heart-shaped eyes Supabase is an open source Firebase alternative! EarListen (& react) to database changes Person tipping handManage users & permissions WrenchSimple UI for database interaction",
+ "url": "https://twitter.com/0xBanana/status/1373677301905362948",
+ "handle": "0xBanana",
+ "img_url": "https://pbs.twimg.com/profile_images/1345829348939591683/pgHIGqZ0_400x400.jpg"
+ }
+]
diff --git a/www/pages/auth/Auth.tsx b/www/pages/auth/Auth.tsx
index 357f0ac84e4..47a317f6ed4 100644
--- a/www/pages/auth/Auth.tsx
+++ b/www/pages/auth/Auth.tsx
@@ -19,7 +19,7 @@ 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'
@@ -31,6 +31,9 @@ import GithubExamples from '~/components/Sections/GithubExamples'
import FeatureColumn from '~/components/FeatureColumn'
import FloatingIcons from '~/components/FloatingIcons'
+import ApiExamples from 'data/products/database/api-examples'
+import AuthSqlRulesExamples from 'data/products/auth/auth-sql-rules-examples'
+
function AuthPage() {
// base path for images
const { basePath } = useRouter()
@@ -61,7 +64,28 @@ function AuthPage() {
</SectionContainer>
<SectionContainer className="-mb-48">
- <APISection />
+ <APISection
+ title="Simple and convenient APIs"
+ content={ApiExamples}
+ footer={[
+ <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>,
+ ]}
+ />
</SectionContainer>
<div className="relative">
@@ -97,7 +121,7 @@ function AuthPage() {
</Button>
</div>
<div className="col-span-12 lg:col-span-6 lg:col-start-7">
- <SplitCodeBlockCarousel />
+ <SplitCodeBlockCarousel content={AuthSqlRulesExamples} />
</div>
</div>
</SectionContainer>
diff --git a/www/pages/database/Database.tsx b/www/pages/database/Database.tsx
index 062f7cb3bf0..3e568ee1ec6 100644
--- a/www/pages/database/Database.tsx
+++ b/www/pages/database/Database.tsx
@@ -17,6 +17,16 @@ import GithubExamples from '~/components/Sections/GithubExamples'
import SplitCodeBlockCarousel from '~/components/Carousels/SplitCodeBlockCarousel'
import FloatingIcons from '~/components/FloatingIcons'
+// data
+import ApiExamplesData from 'data/products/database/api-examples'
+import ExtensionsExamplesData from 'data/products/database/extensions-examples'
+
+import TableViewCarouselData from 'data/products/database/table-view-carousel.json'
+import SqlViewCarouselData from 'data/products/database/sql-view-carousel.json'
+
+import TweetCard from '~/components/TweetCard'
+import FeatureColumn from '~/components/FeatureColumn'
+
// install Swiper's Controller component
// SwiperCore.use([Controller])
@@ -90,24 +100,57 @@ function Database() {
initialSlide={0}
spaceBetween={0}
slidesPerView={1}
- speed={800}
+ speed={400}
allowTouchMove={false}
>
<div className="grid grid-cols-12">
<SwiperSlide>
<SectionContainer className="pt-16">
- <ImageCarousel />
+ <ImageCarousel
+ content={TableViewCarouselData}
+ footer={[
+ <TweetCard
+ handle="@Elsolo244"
+ img_url="https://pbs.twimg.com/profile_images/2486328968/v6citnk33y2wpeyzrq05_400x400.jpeg"
+ quote="Where has
+ @supabase_io
+ been all my life? 😍"
+ />,
+ ]}
+ />
</SectionContainer>
</SwiperSlide>
<SwiperSlide>
<SectionContainer className="pt-16">
- <ImageCarousel />
+ <ImageCarousel
+ content={SqlViewCarouselData}
+ footer={[
+ <TweetCard
+ handle="@jim_bisenius"
+ img_url="https://pbs.twimg.com/profile_images/1372987165869760513/rLgwUZSB_400x400.jpg"
+ quote="@MongoDB or @MySQL?!?! Please, let me introduce you to @supabase_io and the wonderful world of @PostgreSQL before it's too late!!"
+ />,
+ ]}
+ />
</SectionContainer>
</SwiperSlide>
</div>
</Swiper>
+
<SectionContainer className="-mb-48">
- <APISection />
+ <APISection
+ content={ApiExamplesData}
+ title="Never write an API again"
+ footer={[
+ <TweetCard
+ handle="@eunjae_lee"
+ img_url="https://pbs.twimg.com/profile_images/1188191474401320965/eGjSYbQd_400x400.jpg"
+ quote="So they just help me use @PostgreSQL better. They don't try to invent a wheel and trap me
+ in it. Whereas they provide a good abstraction overall, they also provide a raw access to
+ the database."
+ />,
+ ]}
+ />
</SectionContainer>
<div className="relative">
@@ -129,21 +172,26 @@ function Database() {
<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>
+ <Typography.Title level={2}>Extend your database</Typography.Title>
+ <Typography.Text>
+ <p className="text-lg">
+ Your PostgreSQL database can be extended with any PostgreSQL extension.
+ </p>
+ <p>
+ Install any extension you like, and even add your own as long as it's written in
+ SQL.
+ </p>
+ </Typography.Text>
+ <FeatureColumn
+ title="40+ preinstalled extensions"
+ text="We only show a few of the extensions supported by Supabase here, but we preinstall many more that you can use right away."
+ />
<Button size="small" className="mt-4">
Expore documentation
</Button>
</div>
<div className="col-span-12 lg:col-span-6 lg:col-start-7">
- <SplitCodeBlockCarousel />
+ <SplitCodeBlockCarousel content={ExtensionsExamplesData} />
</div>
</div>
</SectionContainer>
diff --git a/www/pages/index.tsx b/www/pages/index.tsx
index c7a8b2421f0..259e3bbd0f8 100644
--- a/www/pages/index.tsx
+++ b/www/pages/index.tsx
@@ -1,12 +1,18 @@
import Container from 'components/Container'
import Layout from '~/components/Layouts/Default'
import Hero from 'components/Hero'
+
import Features from 'components/Features/index'
import BuiltExamples from 'components/BuiltWithSupabase/index'
import MadeForDevelopers from 'components/MadeForDevelopers/index'
import AdminAccess from 'components/AdminAccess/index'
import CaseStudies from 'components/CaseStudies/index'
import CTABanner from 'components/CTABanner/index'
+import SectionContainer from '~/components/Layouts/SectionContainer'
+import TwitterSocialProof from '~/components/Sections/TwitterSocialProof'
+
+// Import Swiper styles if swiper used on page
+import 'swiper/swiper.min.css'
type Props = {}
@@ -19,6 +25,20 @@ const Index = ({}: Props) => {
<Features />
<BuiltExamples />
<MadeForDevelopers />
+ <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">
+ <div className="overflow-x-hidden">
+ <SectionContainer className="mb-0 pb-8">
+ <TwitterSocialProof />
+ </SectionContainer>
+ </div>
+ </div>
+ </div>
+ </div>
<AdminAccess />
<CaseStudies />
<CTABanner />
diff --git a/www/public/images/index/slack-mark.svg b/www/public/images/index/slack-mark.svg
new file mode 100644
index 00000000000..a049d09d4d2
--- /dev/null
+++ b/www/public/images/index/slack-mark.svg
@@ -0,0 +1,34 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!-- Generator: Adobe Illustrator 25.2.0, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->
+<svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
+ viewBox="0 0 270 270" style="enable-background:new 0 0 270 270;" xml:space="preserve">
+<style type="text/css">
+ .st0{fill:#E01E5A;}
+ .st1{fill:#36C5F0;}
+ .st2{fill:#2EB67D;}
+ .st3{fill:#ECB22E;}
+</style>
+<g>
+ <g>
+ <path class="st0" d="M56.7,170.6c0,15.6-12.8,28.4-28.4,28.4S0,186.2,0,170.6c0-15.6,12.8-28.4,28.4-28.4h28.4V170.6z"/>
+ <path class="st0" d="M71,170.6c0-15.6,12.8-28.4,28.4-28.4s28.4,12.8,28.4,28.4v71c0,15.6-12.8,28.4-28.4,28.4S71,257.2,71,241.6
+ C71,241.6,71,170.6,71,170.6z"/>
+ </g>
+ <g>
+ <path class="st1" d="M99.4,56.7C83.8,56.7,71,44,71,28.4S83.8,0,99.4,0s28.4,12.8,28.4,28.4v28.4H99.4z"/>
+ <path class="st1" d="M99.4,71c15.6,0,28.4,12.8,28.4,28.4s-12.8,28.4-28.4,28.4h-71C12.8,127.7,0,115,0,99.4S12.8,71,28.4,71
+ C28.4,71,99.4,71,99.4,71z"/>
+ </g>
+ <g>
+ <path class="st2" d="M213.3,99.4c0-15.6,12.8-28.4,28.4-28.4c15.6,0,28.4,12.8,28.4,28.4s-12.8,28.4-28.4,28.4h-28.4V99.4z"/>
+ <path class="st2" d="M199,99.4c0,15.6-12.8,28.4-28.4,28.4s-28.4-12.8-28.4-28.4v-71C142.3,12.8,155,0,170.6,0
+ C186.2,0,199,12.8,199,28.4V99.4z"/>
+ </g>
+ <g>
+ <path class="st3" d="M170.6,213.3c15.6,0,28.4,12.8,28.4,28.4c0,15.6-12.8,28.4-28.4,28.4c-15.6,0-28.4-12.8-28.4-28.4v-28.4
+ H170.6z"/>
+ <path class="st3" d="M170.6,199c-15.6,0-28.4-12.8-28.4-28.4c0-15.6,12.8-28.4,28.4-28.4h71c15.6,0,28.4,12.8,28.4,28.4
+ c0,15.6-12.8,28.4-28.4,28.4H170.6z"/>
+ </g>
+</g>
+</svg>