Skip to content

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

chore: updated homepage

Jonathan Summers-Muirf7f0e01ca2e1
diff --git a/www/components/AdminAccess/index.tsx b/www/components/AdminAccess/index.tsx
index b371a6fc705..5587f67611b 100644
--- a/www/components/AdminAccess/index.tsx
+++ b/www/components/AdminAccess/index.tsx
@@ -2,68 +2,65 @@ import React, { useState } from 'react'
import Tabs from 'components/AdminAccess/tabs'
import SectionHeader from 'components/UI/SectionHeader'
import { useRouter } from 'next/router'
+import SectionContainer from '../Layouts/SectionContainer'
const AdminAccess = () => {
const { basePath } = useRouter()
const [tabId, setTabId] = useState('tabTableEditor')
return (
- <div className="py-16 bg-white 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">
- <div className="relative">
- <SectionHeader
- title={'Build your app'}
- title_alt={' without leaving the dashboard'}
- subtitle={'Admin Access'}
- />
- <div className="flex flex-col-reverse lg:flex-row lg:grid lg:grid-cols-2 gap-32">
- <Tabs tabId={tabId} setTabId={setTabId} />
- <div className="shadow-lg rounded-md" style={{ height: 'fit-content' }}>
- <div className="w-full rounded-t-md h-5 bg-dark-400 flex items-center justify-start px-2">
- <div className="h-2 w-2 mr-2 rounded-full bg-dark-500" />
- <div className="h-2 w-2 mr-2 rounded-full bg-dark-500" />
- <div className="h-2 w-2 mr-2 rounded-full bg-dark-500" />
- </div>
- {/* Joshen: Preload all videos to prevent the flickering of video when changing tabs */}
- <video
- className={`rounded-b-md ${tabId === 'tabTableEditor' ? 'block' : 'hidden'}`}
- src={`${basePath}/videos/tabTableEditor.mp4`}
- autoPlay
- loop
- muted
- playsInline
- >
- Your browser does not support the video tag
- </video>
- <video
- className={`rounded-b-md ${tabId === 'tabSqlEditor' ? 'block' : 'hidden'}`}
- src={`${basePath}/videos/tabSqlEditor.mp4`}
- autoPlay
- loop
- muted
- playsInline
- >
- Your browser does not support the video tag
- </video>
- <video
- className={`rounded-b-md ${tabId === 'tabAuthRules' ? 'block' : 'hidden'}`}
- src={`${basePath}/videos/tabAuthRules.mp4`}
- autoPlay
- loop
- muted
- playsInline
- >
- Your browser does not support the video tag
- </video>
- </div>
+ <SectionContainer>
+ <div className="relative items-center">
+ <div className="relative">
+ <SectionHeader
+ title={'Build your app'}
+ title_alt={' without leaving the dashboard'}
+ subtitle={'Admin Access'}
+ />
+ <div className="flex flex-col-reverse lg:flex-row lg:grid lg:grid-cols-2 gap-32">
+ <Tabs tabId={tabId} setTabId={setTabId} />
+ <div className="shadow-lg rounded-md" style={{ height: 'fit-content' }}>
+ <div className="w-full rounded-t-md h-5 bg-dark-400 flex items-center justify-start px-2">
+ <div className="h-2 w-2 mr-2 rounded-full bg-dark-500" />
+ <div className="h-2 w-2 mr-2 rounded-full bg-dark-500" />
+ <div className="h-2 w-2 mr-2 rounded-full bg-dark-500" />
</div>
+ {/* Joshen: Preload all videos to prevent the flickering of video when changing tabs */}
+ <video
+ className={`rounded-b-md ${tabId === 'tabTableEditor' ? 'block' : 'hidden'}`}
+ src={`${basePath}/videos/tabTableEditor.mp4`}
+ autoPlay
+ loop
+ muted
+ playsInline
+ >
+ Your browser does not support the video tag
+ </video>
+ <video
+ className={`rounded-b-md ${tabId === 'tabSqlEditor' ? 'block' : 'hidden'}`}
+ src={`${basePath}/videos/tabSqlEditor.mp4`}
+ autoPlay
+ loop
+ muted
+ playsInline
+ >
+ Your browser does not support the video tag
+ </video>
+ <video
+ className={`rounded-b-md ${tabId === 'tabAuthRules' ? 'block' : 'hidden'}`}
+ src={`${basePath}/videos/tabAuthRules.mp4`}
+ autoPlay
+ loop
+ muted
+ playsInline
+ >
+ Your browser does not support the video tag
+ </video>
</div>
</div>
</div>
</div>
- </div>
+ </SectionContainer>
)
}
diff --git a/www/components/BuiltWithSupabase/index.tsx b/www/components/BuiltWithSupabase/index.tsx
index 89bcfba1fa2..7794b3306f6 100644
--- a/www/components/BuiltWithSupabase/index.tsx
+++ b/www/components/BuiltWithSupabase/index.tsx
@@ -1,58 +1,67 @@
import { useRouter } from 'next/router'
import SectionHeader from 'components/UI/SectionHeader'
import ProjectExamples from 'data/ProjectExamples.json'
-import { Card, Typography, Space } from '@supabase/ui'
+import { Button, Card, Typography, Space, IconGitHub } from '@supabase/ui'
+import SectionContainer from '../Layouts/SectionContainer'
+import ExampleCard from '../ExampleCard'
+
+import Examples from 'data/Examples.json'
+// import Button from '../Button'
const BuiltExamples = () => {
const { basePath } = useRouter()
return (
- <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-800 w-full h-1/3 sm:h-2/3 lg:h-1/2"></div>
+ <SectionContainer className="pb-16">
+ <div className="text-center">
+ <Typography.Title level={2}>What can you build with supabase?</Typography.Title>
+ <Typography.Text>
+ <p className="text-lg">There's many example apps and starter projects to get going</p>
+ <Space className="justify-center">
+ <Button type="outline" href="https://github.com/supabase/supabase/tree/master/examples">
+ View all examples
+ </Button>
+ <Button
+ type="outline"
+ icon={<IconGitHub />}
+ href="https://github.com/supabase/supabase/tree/master/examples"
+ >
+ Official github library
+ </Button>
+ </Space>
+ </Typography.Text>
</div>
- <div className="container mx-auto px-8 sm:px-16 xl:px-20 relative">
- <div className="mx-auto max-w-7xl">
- <SectionHeader
- title={'What you can build'}
- title_alt={' with Supabase'}
- subtitle={'Built with supabase'}
- />
- </div>
- <div className="relative max-w-7xl mx-auto">
- <div className="mt-12 max-w-lg mx-auto grid gap-5 lg:grid-cols-3 lg:max-w-none">
- {ProjectExamples.map((example: any, idx: number) => (
- <a href={example.url}>
- <Card
- key={`example_${idx}`}
- hoverable
- cover={
- <img src={`${basePath}/${example.imgUrl}`} className="h-64 object-cover" />
- }
- >
- <Space className="justify-between h-40" direction="vertical">
- <div>
- <Typography.Text small type="secondary">
- Project example
- </Typography.Text>
- <Typography.Title level={3}>{example.title}</Typography.Title>
- </div>
- <Typography.Text type="default">{example.description}</Typography.Text>
- </Space>
- </Card>
- </a>
- ))}
- </div>
- <div className={'mt-8'}>
- <Typography.Text type="secondary">
- See all examples on our{' '}
- <Typography.Link href="https://github.com/supabase/supabase/tree/master/examples">
- Github
- </Typography.Link>
- </Typography.Text>
- </div>
- </div>
+ <div class="grid grid-cols-12 gap-5 mt-16">
+ {Examples.slice(0, 6).map((example, i) => {
+ return (
+ <div className="col-span-12 lg:col-span-6 xl:col-span-4">
+ <ExampleCard {...example} />
+ </div>
+ )
+ })}
</div>
- </div>
+
+ {/* <div className="mt-12 max-w-lg mx-auto grid gap-5 lg:grid-cols-3 lg:max-w-none">
+ {ProjectExamples.map((example: any, idx: number) => (
+ <a href={example.url}>
+ <Card
+ key={`example_${idx}`}
+ hoverable
+ cover={<img src={`${basePath}/${example.imgUrl}`} className="h-64 object-cover" />}
+ >
+ <Space className="justify-between h-40" direction="vertical">
+ <div>
+ <Typography.Text small type="secondary">
+ Project example
+ </Typography.Text>
+ <Typography.Title level={3}>{example.title}</Typography.Title>
+ </div>
+ <Typography.Text type="default">{example.description}</Typography.Text>
+ </Space>
+ </Card>
+ </a>
+ ))}
+ </div> */}
+ </SectionContainer>
)
}
diff --git a/www/components/CaseStudies/index.tsx b/www/components/CaseStudies/index.tsx
index 05e13c18505..1cbafa8db3f 100644
--- a/www/components/CaseStudies/index.tsx
+++ b/www/components/CaseStudies/index.tsx
@@ -3,54 +3,46 @@ import Benchmark from 'components/CaseStudies/benchmark'
import SectionHeader from 'components/UI/SectionHeader'
import CaseStudiesData from 'data/CaseStudies.json'
import { Card, Space, Typography } from '@supabase/ui'
+import SectionContainer from '../Layouts/SectionContainer'
const CaseStudies = () => {
const { basePath } = useRouter()
return (
- <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-800 h-1/5 sm:h-2/5 w-full"></div>
+ <SectionContainer>
+ <div>
+ <SectionHeader
+ title={'Scale up'}
+ title_alt={' with no extra effort'}
+ subtitle={'Enterprise Solutions'}
+ paragraph={
+ "Supabase is built with proven, enterprise-ready tools. We're supporting everything from fintech providers to social networks. "
+ }
+ />
</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">
- <div>
- <SectionHeader
- title={'Scale up'}
- title_alt={' with no extra effort'}
- subtitle={'Enterprise Solutions'}
- paragraph={
- "Supabase is built with proven, enterprise-ready tools. We're supporting everything from fintech providers to social networks. "
- }
- />
- </div>
- <div className="mt-5 max-w-lg mx-auto grid gap-5 lg:grid-cols-3 lg:max-w-none">
- {CaseStudiesData.map((caseStudy: any, idx: number) => (
- <a href={caseStudy.url}>
- <Card
- key={`caseStudy_${idx}`}
- hoverable
- cover={
- <img src={`${basePath}/${caseStudy.imgUrl}`} className="h-64 object-cover" />
- }
- >
- <Space className="justify-between h-40" direction="vertical">
- <div>
- <Typography.Text small type="secondary">
- Project example
- </Typography.Text>
- <Typography.Title level={3}>{caseStudy.title}</Typography.Title>
- </div>
- <Typography.Text type="default">{caseStudy.description}</Typography.Text>
- </Space>
- </Card>
- </a>
- ))}
- </div>
- <Benchmark />
- </div>
+ <div className="mt-5 max-w-lg mx-auto grid gap-5 lg:grid-cols-3 lg:max-w-none">
+ {CaseStudiesData.map((caseStudy: any, idx: number) => (
+ <a href={caseStudy.url}>
+ <Card
+ key={`caseStudy_${idx}`}
+ hoverable
+ cover={<img src={`${basePath}/${caseStudy.imgUrl}`} className="h-64 object-cover" />}
+ >
+ <Space className="justify-between h-40" direction="vertical">
+ <div>
+ <Typography.Text small type="secondary">
+ Project example
+ </Typography.Text>
+ <Typography.Title level={3}>{caseStudy.title}</Typography.Title>
+ </div>
+ <Typography.Text type="default">{caseStudy.description}</Typography.Text>
+ </Space>
+ </Card>
+ </a>
+ ))}
</div>
- </div>
+ <Benchmark />
+ </SectionContainer>
)
}
diff --git a/www/components/ExampleCard.tsx b/www/components/ExampleCard.tsx
index f87969e0705..773041ed6e4 100644
--- a/www/components/ExampleCard.tsx
+++ b/www/components/ExampleCard.tsx
@@ -11,7 +11,7 @@ import Link from 'next/link'
function ExampleCard(props: any) {
return (
- <div className="my-8 mr-3 ml-3">
+ <>
<div
className="
bg-white dark:bg-gray-700
@@ -95,7 +95,7 @@ function ExampleCard(props: any) {
</Space>
</div>
</div>
- </div>
+ </>
)
}
diff --git a/www/components/Features/index.tsx b/www/components/Features/index.tsx
index fe5e3fdafd5..9f8b6c294d0 100644
--- a/www/components/Features/index.tsx
+++ b/www/components/Features/index.tsx
@@ -1,6 +1,8 @@
import { Button, Badge, Typography } from '@supabase/ui'
import SectionHeader from 'components/UI/SectionHeader'
import Solutions from 'data/Solutions.json'
+import SectionContainer from '../Layouts/SectionContainer'
+import ProductIcon from '../ProductIcon'
const Features = () => {
const IconSections = Object.values(Solutions).map((solution: any) => {
@@ -8,19 +10,11 @@ const Features = () => {
return (
<div key={name} className="mb-16">
<div className="flex items-center">
- <div className="flex items-center justify-center h-12 w-12 rounded-md bg-gray-900 text-white dark:bg-white">
- <svg
- className="h-6 w-6 stroke-white dark:stroke-black"
- xmlns="http://www.w3.org/2000/svg"
- fill="none"
- viewBox="0 0 24 24"
- aria-hidden="true"
- >
- <path strokeLinecap="round" strokeLinejoin="round" strokeWidth="2" d={icon} />
- </svg>
- </div>
+ <ProductIcon icon={icon} />
<dt className="flex flex-row xl:flex-col ml-4">
- <Typography.Title level={4}>{name}</Typography.Title>
+ <Typography.Title level={4} className="m-0">
+ {name}
+ </Typography.Title>
</dt>
</div>
<div className="mt-5">
@@ -43,20 +37,14 @@ const Features = () => {
})
return (
- <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
- title={'Build Faster'}
- title_alt={' and Focus on Your Products'}
- subtitle={'What you get with Supabase'}
- />
- <dl className="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 md:gap-16">
- {IconSections}
- </dl>
- </div>
- </div>
- </div>
+ <SectionContainer className="pb-0">
+ <Typography.Title level={2} className="mb-16">
+ Build faster and focus on your products
+ </Typography.Title>
+ <dl className="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 md:gap-16 lg:gap-x-8 xl:gap-x-24">
+ {IconSections}
+ </dl>
+ </SectionContainer>
)
}
diff --git a/www/components/Hero.tsx b/www/components/Hero.tsx
index f732ede95b7..32c0037efd2 100644
--- a/www/components/Hero.tsx
+++ b/www/components/Hero.tsx
@@ -1,113 +1,101 @@
-import { Button, Typography } from '@supabase/ui'
+import { Button, IconBookOpen, Space, Typography } from '@supabase/ui'
import { useRouter } from 'next/router'
+import SectionContainer from './Layouts/SectionContainer'
const Hero = () => {
const { basePath } = useRouter()
return (
- <div className="relative bg-dark-800 overflow-hidden">
- <div className="container mx-auto px-8 sm:px-16 xl:px-20">
- <div className="mx-auto max-w-7xl">
- <div className="hidden sm:block sm:absolute sm:inset-0" aria-hidden="true">
- <svg
- className="absolute bottom-0 right-0 transform translate-x-1/2 mb-48 text-gray-700 lg:top-0 lg:mt-28 lg:mb-0 xl:transform-none xl:translate-x-0"
- width="364"
- height="384"
- viewBox="0 0 364 384"
- fill="none"
- >
- <defs>
- <pattern
- id="eab71dd9-9d7a-47bd-8044-256344ee00d0"
- x="0"
- y="0"
- width="20"
- height="20"
- patternUnits="userSpaceOnUse"
- >
- <rect x="0" y="0" width="4" height="4" fill="currentColor" />
- </pattern>
- </defs>
- <rect width="364" height="384" fill="url(#eab71dd9-9d7a-47bd-8044-256344ee00d0)" />
- </svg>
- </div>
- <div className="relative pt-6 pb-16 sm:pb-24">
- <main className="mt-16 sm:mt-24">
- <div className="mx-auto">
- <div className="lg:grid lg:grid-cols-12 lg:gap-16">
- <div className="md:max-w-2xl md:mx-auto lg:col-span-6 lg:text-left lg:flex lg:items-center">
- <div className="sm:mx-auto md:w-3/4 lg:w-full lg:mx-0">
- <h1 className="mt-4 text-4xl text-white sm:mt-5 sm:leading-none lg:mt-6 lg:text-5xl xl:text-6xl">
- <span className="block text-white">The Open Source</span>
- <span className="text-brand-600 md:ml-0 block">Firebase Alternative</span>
- </h1>
- <p className="mt-5 text-base text-dark-200 sm:mt-5 sm:text-xl lg:text-lg xl:text-xl">
+ <div className="">
+ <SectionContainer className="pb-0 pt-24">
+ <div className="relative">
+ <main className="">
+ <div className="mx-auto">
+ <div className="lg:grid lg:grid-cols-12 lg:gap-16">
+ <div className="md:max-w-2xl md:mx-auto lg:col-span-6 lg:text-left lg:flex lg:items-center">
+ <div className="sm:mx-auto md:w-3/4 lg:w-full lg:mx-0">
+ <h1 className="mt-4 text-4xl text-gray-800 dark:text-white sm:mt-5 sm:leading-none lg:mt-6 lg:text-5xl xl:text-6xl">
+ <span className="block text-gray-800 dark:text-white">The Open Source</span>
+ <span className="text-brand-600 md:ml-0 block">Firebase Alternative</span>
+ </h1>
+ <Typography.Text>
+ <p className="mt-5 text-base sm:mt-5 lg:text-lg ">
Create a backend in less than 2 minutes. Start your project with a Postgres
Database, Authentication, instant APIs, and realtime subscriptions.
</p>
- <p className="mt-3 text-base text-dark-400">
- Storage and serverless functions coming soon
- </p>
+ <p className="mt-3 text-base">Storage and serverless functions coming soon</p>
+ </Typography.Text>
+ <Space>
<a href="https://app.supabase.io/api/login">
<Button className="mt-10 py-3" size="medium">
Start your project
</Button>
</a>
- <p className="mt-8 text-sm text-dark-400 tracking-wide sm:mt-10">backed by</p>
- <div className="mt-5 w-full sm:max-w-lg lg:ml-0">
- <div className="flex flex-wrap items-center justify-start">
- <img
- className="h-8 sm:h-10 pr-10 mb-5"
- src={`${basePath}/images/logos/yc--grey.png`}
- alt="Y Combinator"
- />
- <img
- className="relative h-5 sm:h-7 pr-10 mb-5"
- src={`${basePath}/images/logos/mozilla--grey.png`}
- alt="Mozilla"
- />
- <img
- className="relative h-5 sm:h-7 pr-10 mb-5"
- src={`${basePath}/images/logos/coatue.png`}
- alt="Coatue"
- />
- </div>
+ <a href="https://app.supabase.io/api/login">
+ <Button
+ className="mt-10 py-3"
+ size="medium"
+ type="text"
+ icon={<IconBookOpen />}
+ >
+ Documentation
+ </Button>
+ </a>
+ </Space>
+ <p className="mt-8 text-sm text-dark-400 tracking-wide sm:mt-10">backed by</p>
+ <div className="mt-5 w-full sm:max-w-lg lg:ml-0">
+ <div className="flex flex-wrap items-center justify-start">
+ <img
+ className="h-8 sm:h-10 pr-10 mb-5"
+ src={`${basePath}/images/logos/yc--grey.png`}
+ alt="Y Combinator"
+ />
+ <img
+ className="relative h-5 sm:h-7 pr-10 mb-5"
+ src={`${basePath}/images/logos/mozilla--grey.png`}
+ alt="Mozilla"
+ />
+ <img
+ className="relative h-5 sm:h-7 pr-10 mb-5"
+ src={`${basePath}/images/logos/coatue.png`}
+ alt="Coatue"
+ />
</div>
</div>
</div>
- <div className="flex content-center mt-16 sm:mt-24 lg:absolute lg:-right-80 lg:mt-4 lg:w-9/12 lg:mt-0 lg:col-span-6 xl:relative xl:right-0 xl:w-full">
- <div className="flex flex-col items-center justify-center relative w-full rounded-md">
- <div className="w-full rounded-t-md h-5 bg-dark-700 flex items-center justify-start px-2">
- <div className="h-2 w-2 mr-2 rounded-full bg-dark-500" />
- <div className="h-2 w-2 mr-2 rounded-full bg-dark-500" />
- <div className="h-2 w-2 mr-2 rounded-full bg-dark-500" />
- </div>
- <div
- className="w-full relative bg-dark-900 shadow-lg"
- style={{ padding: '56.25% 0 0 0' }}
- >
- <iframe
- title="Demo video showcasing Supabase"
- className="absolute w-full h-full rounded-b-md"
- src="https://www.youtube-nocookie.com/embed/dBOSUER_5T4?playlist=dBOSUER_5T4&autoplay=1&loop=1&controls=0&modestbranding=1&rel=0&disablekb=1&mute=1&muted=1"
- style={{ top: 0, left: 0 }}
- frameBorder="0"
- allow="autoplay; modestbranding; encrypted-media"
- />
- </div>
- {/*
+ </div>
+ <div className="flex content-center mt-16 sm:mt-24 lg:absolute lg:-right-80 lg:mt-4 lg:w-9/12 lg:mt-0 lg:col-span-6 xl:relative xl:right-0 xl:w-full">
+ <div className="flex flex-col items-center justify-center relative w-full rounded-md">
+ <div className="w-full rounded-t-md h-5 bg-dark-700 flex items-center justify-start px-2">
+ <div className="h-2 w-2 mr-2 rounded-full bg-dark-500" />
+ <div className="h-2 w-2 mr-2 rounded-full bg-dark-500" />
+ <div className="h-2 w-2 mr-2 rounded-full bg-dark-500" />
+ </div>
+ <div
+ className="w-full relative bg-dark-900 shadow-lg"
+ style={{ padding: '56.25% 0 0 0' }}
+ >
+ <iframe
+ title="Demo video showcasing Supabase"
+ className="absolute w-full h-full rounded-b-md"
+ src="https://www.youtube-nocookie.com/embed/dBOSUER_5T4?playlist=dBOSUER_5T4&autoplay=1&loop=1&controls=0&modestbranding=1&rel=0&disablekb=1&mute=1&muted=1"
+ style={{ top: 0, left: 0 }}
+ frameBorder="0"
+ allow="autoplay; modestbranding; encrypted-media"
+ />
+ </div>
+ {/*
Replace src with the following if have preference:
Vimeo: https://player.vimeo.com/video/485959063?loop=1&autoplay=1
Youtube: https://www.youtube-nocookie.com/embed/dBOSUER_5T4?playlist=dBOSUER_5T4&autoplay=1&loop=1&controls=0&modestbranding=1&rel=0&disablekb=1&mute=1&muted=1
*/}
- </div>
</div>
</div>
</div>
- </main>
- </div>
+ </div>
+ </main>
</div>
- </div>
+ </SectionContainer>
</div>
)
}
diff --git a/www/components/MadeForDevelopers/index.tsx b/www/components/MadeForDevelopers/index.tsx
index a2c47111eb0..7532568678f 100644
--- a/www/components/MadeForDevelopers/index.tsx
+++ b/www/components/MadeForDevelopers/index.tsx
@@ -1,75 +1,79 @@
// import Button from 'components/Button'
// import Badge from 'components/Badge'
-import { Badge, Button, Typography } from '@supabase/ui'
+import {
+ Badge,
+ Button,
+ IconAlignJustify,
+ IconArrowUpRight,
+ IconCode,
+ IconMail,
+ IconTerminal,
+ IconType,
+ Typography,
+} from '@supabase/ui'
import SectionHeader from 'components/UI/SectionHeader'
-import CodeExamples from 'components/MadeForDevelopers/CodeExamples'
+// import CodeExamples from 'components/MadeForDevelopers/CodeExamples'
+
+import CodeExamples from 'data/home/api-examples'
import DeveloperFeatures from 'data/DeveloperFeatures.json'
+import APISection from '../Sections/APISection'
+import SectionContainer from '../Layouts/SectionContainer'
+import FeatureColumn from '../FeatureColumn'
const MadeForDevelopers = () => {
return (
- <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">
- <div className="col-span-12 lg:col-span-12 xl:col-span-12">
- <SectionHeader
- title={'Instant APIs'}
- title_alt={' that do the hard work for you'}
- subtitle={'MADE FOR DEVELOPERS'}
- paragraph={`We introspect your database to provide APIs instantly. Stop building repetitive CRUD endpoints and focus on your product.`}
- />
- </div>
- </div>
-
- <div className="relative grid grid-cols-12 gap-1 sm:gap-8 lg:items-center">
- <div className="mt-2 col-span-12">
- <CodeExamples />
-
- <div className="grid grid-cols-12 gap-2">
- <dl className="mt-12 grid-cols-12 grid col-span-12 sm:gap-4 md:gap-8 lg:gap-8 lg:space-y-0">
- {DeveloperFeatures.map((feature: any, idx: number) => {
- const blockClass =
- idx !== DeveloperFeatures.length - 1
- ? 'col-span-12 mb-10 sm:mb-0 sm:col-span-3 md:col-span-6 mb-12 lg:col-span-3 sm:border-gray-200 sm:pr-4 md:pr-6 lg:border-r dark:border-dark-600 even:rotate-45'
- : 'col-span-12 sm:col-span-3'
-
- return (
- <div className={blockClass} key={`dev_feature_${idx}`}>
- <div className="lg:mt-5">
- <dt className="flex flex-row sm:flex-col xl:flex-row">
- <Typography.Title level={4}>{feature.name}</Typography.Title>
- {feature.badge && (
- <div className="block xl:ml-3">
- <Badge
- dot
- // className="ml-3 sm:ml-0 sm:w-20 sm:mt-2 xl:ml-3 xl:mt-0 xl:w-auto"
- >
- {feature.badge}
- </Badge>
- </div>
- )}
- </dt>
- <dd className="my-3">
- <Typography.Text type="secondary">
- {feature.description}
- </Typography.Text>
- </dd>
-
- <Typography.Link href={feature.url}>
- {feature.badge ? 'Get notified' : 'Explore more'}
- </Typography.Link>
+ <SectionContainer className="pb-0">
+ <APISection
+ title={[
+ <span>
+ Instant APIs
+ <br /> that do the hard work for you
+ </span>,
+ ]}
+ text={[
+ <p className="text-lg">
+ We introspect your database to provide APIs instantly. Stop building repetitive CRUD
+ endpoints and focus on your product.
+ </p>,
+ ]}
+ content={CodeExamples}
+ size="small"
+ footer={[
+ // <div className="grid grid-cols-12 gap-8 lg:gap-16">
+ <dl className="grid grid-cols-12 gap-8">
+ {DeveloperFeatures.map((feature: any, idx: number) => {
+ return (
+ <div className={'col-span-6 lg:col-span-6'} key={`dev_feature_${idx}`}>
+ <div className="lg:mt-5">
+ <dt>
+ <FeatureColumn title={feature.name} text={feature.description} />
+ {feature.badge && (
+ <div className="block mb-4">
+ <Badge dot color="blue">
+ {feature.badge}
+ </Badge>
</div>
- </div>
- )
- })}
- </dl>
- </div>
- </div>
- </div>
- </div>
- </div>
- </div>
+ )}
+ {feature.badge ? (
+ <Button href={feature.url} type="default" icon={<IconMail />}>
+ {'Get notified'}
+ </Button>
+ ) : (
+ <Button href={feature.url} type="default" icon={<IconArrowUpRight />}>
+ {'Explore more'}
+ </Button>
+ )}
+ </dt>
+ </div>
+ </div>
+ )
+ })}
+ </dl>,
+ // </div>,
+ ]}
+ />
+ </SectionContainer>
)
}
diff --git a/www/components/Nav/index.tsx b/www/components/Nav/index.tsx
index 4e50acf4618..34c04646e9c 100644
--- a/www/components/Nav/index.tsx
+++ b/www/components/Nav/index.tsx
@@ -11,6 +11,7 @@ import Solutions from '~/components/Nav/Product'
import Developers from './Developers'
import Company from './Company'
import SectionContainer from '../Layouts/SectionContainer'
+import { Button } from '@supabase/ui'
type Props = {
darkMode: boolean
@@ -201,7 +202,7 @@ const Nav = (props: Props) => {
/>
</Link>
</div>
- <div className="pl-4 hidden sm:ml-6 lg:flex sm:space-x-8">
+ <div className="pl-4 hidden sm:ml-6 lg:flex sm:space-x-4">
<FlyOutNavButton
title={'Product'}
onClick={() => handleToggle(() => setOpenProduct(!openProduct))}
@@ -249,15 +250,9 @@ const Nav = (props: Props) => {
</a>
</div>
</div>
- <div className="flex items-center">
- <a
- href="https://app.supabase.io/api/login"
- className={`
- inline-flex items-center border-b-2 border-transparent text-sm font-normal transition
- rounded-md px-3 py-1 mr-5 bg-brand-700 text-white hover:bg-brand-800 hidden lg:block
- `}
- >
- Start your project
+ <div className="flex items-center sm:space-x-4">
+ <a href="https://app.supabase.io/api/login">
+ <Button>Start your project</Button>
</a>
<a
href="https://app.supabase.io/api/login"
diff --git a/www/components/Sections/APISection.tsx b/www/components/Sections/APISection.tsx
index 5cd28b803f9..c72e168da45 100644
--- a/www/components/Sections/APISection.tsx
+++ b/www/components/Sections/APISection.tsx
@@ -12,7 +12,7 @@ interface APIExample {
interface Props {
content?: APIExample
- title: string
+ title: string | React.ReactNode
footer?: React.ReactNode
text?: React.ReactNode
}
diff --git a/www/components/Sections/GithubExamples.tsx b/www/components/Sections/GithubExamples.tsx
index 6a649b678b7..87fc1682d44 100644
--- a/www/components/Sections/GithubExamples.tsx
+++ b/www/components/Sections/GithubExamples.tsx
@@ -39,7 +39,9 @@ function GithubExamples() {
{Object.values(Examples).map((example: any, i: number) => {
return (
<SwiperSlide>
- <ExampleCard i={i} {...example} />
+ <div className="my-8 mr-3 ml-3">
+ <ExampleCard i={i} {...example} />
+ </div>
</SwiperSlide>
)
})}
diff --git a/www/components/Sections/ProductHeader.tsx b/www/components/Sections/ProductHeader.tsx
index 02ee4e57577..b350d25240f 100644
--- a/www/components/Sections/ProductHeader.tsx
+++ b/www/components/Sections/ProductHeader.tsx
@@ -7,12 +7,14 @@ interface Types {
subheader: string[]
icon?: string
title?: string
+ image?: React.ReactNode
+ footer?: React.ReactNode
}
const ProductHeader = (props: Types) => (
- <div className="container mx-auto px-8 sm:px-16 xl:px-20 relative py-32">
+ <div className="container mx-auto px-8 sm:px-16 xl:px-20 relative pt-32 pb-0">
<div className="grid grid-cols-12">
- <div className="col-span-12 lg:col-span-6">
+ <div className="col-span-12 lg:col-span-5">
{props.icon || props.title ? (
<div className="flex flex-row mb-4 item-center">
{props.icon && <ProductIcon icon={props.icon} />}
@@ -23,7 +25,7 @@ const ProductHeader = (props: Types) => (
)}
</div>
) : null}
- <Typography.Title>{props.h1}</Typography.Title>
+ <Typography.Title level={1}>{props.h1}</Typography.Title>
{props.subheader && (
<Typography.Text>
{props.subheader.map((subheader) => {
@@ -37,7 +39,13 @@ const ProductHeader = (props: Types) => (
See documentation
</Button>
</Space>
+ {props.footer && <div className="mb-4">{props.footer}</div>}
</div>
+ {props.image && (
+ <div className="mt-8 lg:mt-0 col-span-12 lg:col-span-7 xl:col-span-6 xl:col-start-7">
+ {props.image}
+ </div>
+ )}
</div>
</div>
)
diff --git a/www/components/Sections/TwitterSocialProof.tsx b/www/components/Sections/TwitterSocialProof.tsx
index 688242ad7ad..4b74ee672a6 100644
--- a/www/components/Sections/TwitterSocialProof.tsx
+++ b/www/components/Sections/TwitterSocialProof.tsx
@@ -33,8 +33,8 @@ function TwitterSocialProof() {
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 size="small" iconRight={<IconMessageCircle size="tiny" />} type="default">
+ Github discussion
</Button>
<Button
size="small"
diff --git a/www/data/home/api-examples.js b/www/data/home/api-examples.js
new file mode 100644
index 00000000000..f10478174ec
--- /dev/null
+++ b/www/data/home/api-examples.js
@@ -0,0 +1,96 @@
+export default [
+ {
+ title: 'Create user',
+ description: 'Sign up a new user in an example chat room',
+ lang: 'js',
+ code: `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',
+})
+ `,
+ },
+ {
+ title: 'Realtime subscriptions',
+ description: 'Receive realtime messages in an example chat room',
+ lang: 'js',
+ code: `import { createClient } from '@supabase/supabase-js'
+
+// Initialize
+const supabaseUrl = 'https://chat-room.supabase.co'
+const supabaseKey = 'public-anon-key'
+const supabase = createClient(supabaseUrl, supabaseKey)
+
+// Get notified of all new chat messages
+const realtime = supabase
+ .from('messages')
+ .on('INSERT', message => {
+ console.log('New message!', message)
+ })
+ .subscribe()
+ `,
+ },
+ {
+ title: 'Read a record',
+ description: 'Get all public rooms and their messages',
+ lang: 'js',
+ code: `m '@supabase/supabase-js'
+
+// Initialize
+const supabaseUrl = 'https://chat-room.supabase.co'
+const supabaseKey = 'public-anon-key'
+const supabase = createClient(supabaseUrl, supabaseKey)
+
+// Get public rooms and their messages
+const publicRooms = await supabase
+ .from('rooms')
+ .select(\`
+ name,
+ messages ( text )
+ \`)
+ .eq('public', true)
+ `,
+ },
+ {
+ title: 'Create a record',
+ description: 'Create a new chat room',
+ lang: 'js',
+ code: `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 chat room
+const newRoom = await supabase
+ .from('rooms')
+ .insert({ name: 'Supabase Fan Club', public: true })
+ `,
+ },
+ {
+ title: 'Update a record',
+ description: 'Update a user',
+ lang: 'js',
+ code: `import { createClient } from '@supabase/supabase-js'
+
+// Initialize
+const supabaseUrl = 'https://chat-room.supabase.co'
+const supabaseKey = 'public-anon-key'
+const supabase = createClient(supabaseUrl, supabaseKey)
+
+// Update multiple users
+const updatedUsers = await supabase
+ .from('users')
+ .eq('account_type', 'paid')
+ .update({ highlight_color: 'gold' })
+`,
+ },
+]
diff --git a/www/pages/auth/Auth.tsx b/www/pages/auth/Auth.tsx
index 77177e516e0..af0195e1021 100644
--- a/www/pages/auth/Auth.tsx
+++ b/www/pages/auth/Auth.tsx
@@ -64,6 +64,16 @@ function AuthPage() {
'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.',
]}
+ image={[
+ <img
+ className="w-full header--light block"
+ src={`${basePath}/images/product/auth/header--light.png`}
+ />,
+ <img
+ className="w-full header--dark mr-0 dark:block"
+ src={`${basePath}/images/product/auth/header--dark.png`}
+ />,
+ ]}
/>
<SectionContainer>
diff --git a/www/pages/database/Database.tsx b/www/pages/database/Database.tsx
index f8fa303916f..cbf9e167e42 100644
--- a/www/pages/database/Database.tsx
+++ b/www/pages/database/Database.tsx
@@ -1,10 +1,20 @@
import { useState } from 'react'
+import { useRouter } from 'next/router'
import DefaultLayout from '~/components/Layouts/Default'
import SectionContainer from '~/components/Layouts/SectionContainer'
import ProductHeader from '~/components/Sections/ProductHeader'
-import { Badge, Button, IconArrowUpRight, Space, Tabs, Typography } from '@supabase/ui'
+import {
+ Badge,
+ Button,
+ IconArrowUpRight,
+ IconLock,
+ IconShield,
+ Space,
+ Tabs,
+ Typography,
+} from '@supabase/ui'
import { Swiper, SwiperSlide } from 'swiper/react'
import SwiperCore, { Controller } from 'swiper'
@@ -33,6 +43,9 @@ import Solutions from 'data/Solutions.json'
// SwiperCore.use([Controller])
function Database() {
+ // base path for images
+ const { basePath } = useRouter()
+
const [dashboardSwiper, setDashboardSwiper] = useState(undefined)
const [dashboardSwiperActiveIndex, setDashboardSwiperActiveIndex] = useState(0)
@@ -57,8 +70,87 @@ function Database() {
'Every supabase project has a dedicated PostgreSQL database, trusted by millions of developers, with built in row level security.',
'PostgreSQL is the industry standard database used by AWS architecture, data scientists and backend engineers. ',
]}
+ image={[
+ <img
+ className="w-full header--light block"
+ src={`${basePath}/images/product/database/header--light.png`}
+ />,
+ <img
+ className="w-full header--dark mr-0 dark:block"
+ src={`${basePath}/images/product/database/header--light.png`}
+ />,
+ ]}
/>
+ <SectionContainer>
+ <div className="grid grid-cols-12">
+ <div className="col-span-3">
+ <p className="mb-4">
+ <Space>
+ <img src={`${basePath}/images/product/auth/google-icon.svg`} width={21} />
+ <img src={`${basePath}/images/product/auth/facebook-icon.svg`} width={21} />
+ <div>
+ <svg
+ xmlns="http://www.w3.org/2000/svg"
+ viewBox="0 0 32.58 31.77"
+ width={21}
+ className="text-gray-800 dark:text-white"
+ >
+ <path
+ fill="currentColor"
+ d="M16.29,0a16.29,16.29,0,0,0-5.15,31.75c.82.15,1.11-.36,1.11-.79s0-1.41,0-2.77C7.7,29.18,6.74,26,6.74,26a4.36,4.36,0,0,0-1.81-2.39c-1.47-1,.12-1,.12-1a3.43,3.43,0,0,1,2.49,1.68,3.48,3.48,0,0,0,4.74,1.36,3.46,3.46,0,0,1,1-2.18c-3.62-.41-7.42-1.81-7.42-8a6.3,6.3,0,0,1,1.67-4.37,5.94,5.94,0,0,1,.16-4.31s1.37-.44,4.48,1.67a15.41,15.41,0,0,1,8.16,0c3.11-2.11,4.47-1.67,4.47-1.67A5.91,5.91,0,0,1,25,11.07a6.3,6.3,0,0,1,1.67,4.37c0,6.26-3.81,7.63-7.44,8a3.85,3.85,0,0,1,1.11,3c0,2.18,0,3.94,0,4.47s.29.94,1.12.78A16.29,16.29,0,0,0,16.29,0Z"
+ />
+ </svg>
+ </div>
+ <img src={`${basePath}/images/product/auth/gitlab-icon.svg`} width={21} />
+ <img src={`${basePath}/images/product/auth/bitbucket-icon.svg`} width={21} />
+ </Space>
+ </p>
+ <Typography.Title level={4}>All the social providers</Typography.Title>
+ <Typography.Text>
+ <p className="text-lg">
+ We provide all the popular social logins you expect. Google, Facebook, Github,
+ Azure, Gitlab and Bitbucket.
+ </p>
+ <Space>
+ <img src={`${basePath}/images/product/auth/twitter-icon.svg`} width={21} />
+ <p className="m-0">
+ <span className="text-gray-800 dark:text-white">Twitter</span> coming soon
+ </p>
+ </Space>
+ </Typography.Text>
+ </div>
+ <div className="col-span-3 col-start-5">
+ <p className="mb-4">
+ <IconLock />
+ </p>
+ <Typography.Title level={4}>Fully integrated</Typography.Title>
+ <Typography.Text>
+ <p className="text-lg">
+ Auth built into your project, no external services (liek auth0)ZERO setup.
+ </p>
+ <p>
+ Send authentication emails from your own custom domain.Set up once and all email
+ templates will come from your desired email address.
+ </p>
+ </Typography.Text>
+ </div>
+ <div className="col-span-3 col-start-9">
+ <p className="mb-4">
+ <IconShield />
+ </p>
+ <Typography.Title level={4}>Own your data</Typography.Title>
+ <Typography.Text>
+ <p className="text-lg">
+ Use media in your project without needing to reply on external services or learn new
+ frameworks.
+ </p>
+ <p>Supabase is GDPR / CPA Compliant</p>
+ </Typography.Text>
+ </div>
+ </div>
+ </SectionContainer>
+
{/* <SectionContainer>÷ */}
<div className="grid">
<SectionContainer className="text-center pb-8">
diff --git a/www/pages/index.tsx b/www/pages/index.tsx
index 259e3bbd0f8..2d42af41cd5 100644
--- a/www/pages/index.tsx
+++ b/www/pages/index.tsx
@@ -23,8 +23,6 @@ const Index = ({}: Props) => {
<Container>
<Hero />
<Features />
- <BuiltExamples />
- <MadeForDevelopers />
<div className="relative">
<div className="section--masked">
<div className="section--bg-masked">
@@ -39,6 +37,8 @@ const Index = ({}: Props) => {
</div>
</div>
</div>
+ <BuiltExamples />
+ <MadeForDevelopers />
<AdminAccess />
<CaseStudies />
<CTABanner />
diff --git a/www/public/images/product/auth/header--dark.png b/www/public/images/product/auth/header--dark.png
new file mode 100644
index 00000000000..9bbf5249f25
Binary files /dev/null and b/www/public/images/product/auth/header--dark.png differ
diff --git a/www/public/images/product/auth/header--light.png b/www/public/images/product/auth/header--light.png
new file mode 100644
index 00000000000..ecb08e122e1
Binary files /dev/null and b/www/public/images/product/auth/header--light.png differ
diff --git a/www/public/images/product/database/header--light.png b/www/public/images/product/database/header--light.png
new file mode 100644
index 00000000000..6429a9baa11
Binary files /dev/null and b/www/public/images/product/database/header--light.png differ