Skip to content

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

feat: update more text, sections. added examples.

Jonathan Summers-Muir42eb18fafa34
diff --git a/www/components/AdminAccess/index.tsx b/www/components/AdminAccess/index.tsx
index a88730bb378..4a5b95e8471 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-800 overflow-hidden lg:py-24">
+ <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">
diff --git a/www/components/Carousels/ImageCarousel.tsx b/www/components/Carousels/ImageCarousel.tsx
index 555a86e7dd8..4a7a0050302 100644
--- a/www/components/Carousels/ImageCarousel.tsx
+++ b/www/components/Carousels/ImageCarousel.tsx
@@ -1,5 +1,5 @@
import { useRouter } from 'next/router'
-import { Tabs, Typography, Button } from '@supabase/ui'
+import { Tabs, Typography, Button, IconCornerRightUp, IconArrowUpRight } from '@supabase/ui'
import { useState } from 'react'
// Import Swiper React components
@@ -59,17 +59,20 @@ function ImageCarousel(props: ImageCaoursel) {
</p>
</Typography.Text>
<Typography.Text>
- <Button type="outline">View documentation</Button>
+ <Button type="outline" size="small" icon={<IconCornerRightUp />}>
+ View documentation
+ </Button>
</Typography.Text>
</div>
)
return (
<div className="grid grid-cols-12">
- <div className="col-span-6 w-full">
- <div className="col-span-12 lg:col-span-7">
+ <div className="col-span-12 lg:col-span-6 w-full">
+ <div className="col-span-12 lg:col-span-7 sbui-tabs--alt">
<Tabs
scrollable
+ type="pills"
// @ts-ignore
activeId={imageSwiperActiveIndex.toString()}
// @ts-ignore
@@ -108,7 +111,7 @@ function ImageCarousel(props: ImageCaoursel) {
</div>
</div>
</div>
- <div className="col-span-4 col-start-9">
+ <div className="mt-8 lg:mt-0 col-span-12 lg:col-span-5 lg:col-start-8 xl:col-span-4 xl:col-start-9">
<Swiper
// @ts-ignore
onSwiper={setSwiperDetails}
@@ -129,7 +132,14 @@ function ImageCarousel(props: ImageCaoursel) {
<Typography.Title level={4}>{content.title}</Typography.Title>
<Typography.Text>
<p className="text-base">{content.text}</p>
- <Button className="mb-8">See documentation</Button>
+ <Button
+ className="mb-8"
+ type="outline"
+ size="small"
+ icon={<IconArrowUpRight />}
+ >
+ View documentation
+ </Button>
</Typography.Text>
</div>
</SwiperSlide>
diff --git a/www/components/Carousels/SplitCodeBlockCarousel.tsx b/www/components/Carousels/SplitCodeBlockCarousel.tsx
index ca31c4e1b61..6ead414e92a 100644
--- a/www/components/Carousels/SplitCodeBlockCarousel.tsx
+++ b/www/components/Carousels/SplitCodeBlockCarousel.tsx
@@ -46,8 +46,9 @@ function SplitCodeBlockCarousel(props: SplitCodeBlockCarousel) {
)
return (
- <div className="col-span-12 lg:col-span-6 lg:col-start-7">
+ <div className="col-span-12 lg:col-span-6 lg:col-start-7 sbui-tabs--alt">
<Tabs
+ className="alt-tabs"
scrollable
// @ts-ignore
activeId={apiSwiperActiveIndex.toString()}
diff --git a/www/components/ExampleCard.tsx b/www/components/ExampleCard.tsx
index 54dd6863752..f87969e0705 100644
--- a/www/components/ExampleCard.tsx
+++ b/www/components/ExampleCard.tsx
@@ -1,37 +1,99 @@
-import { IconGitHub, Typography } from '@supabase/ui'
+import {
+ Button,
+ Divider,
+ IconArrowUpRight,
+ IconGitHub,
+ IconTriangle,
+ Space,
+ Typography,
+} from '@supabase/ui'
+import Link from 'next/link'
function ExampleCard(props: any) {
return (
- <div
- className="
- mr-3 ml-3 my-8
+ <div className="my-8 mr-3 ml-3">
+ <div
+ className="
bg-white dark:bg-gray-700
- border border-gray-100 dark:border-gray-600
- p-5 h-52
+ border-t border-r border-l border-gray-100 dark:border-gray-600
+ p-5
flex flex-col justify-between
- rounded shadow-light-small dark:shadow-override"
- >
- <div>
- <Typography.Title level={5} className="mb-1">
- Supabase Auth x NextJS
- </Typography.Title>
- <Typography.Text>
- NextJS based Auth example, with support for Server side rendering
- </Typography.Text>
+ rounded rounded-b-none"
+ >
+ <div className="mb-4">
+ <Typography.Title level={5} className="mb-1">
+ {props.title}
+ </Typography.Title>
+ <Typography.Text className="block">
+ <p>{props.description}</p>
+ <div className="flex flex-row items-center mb-2">
+ Created by:
+ <img
+ src={props.author_img}
+ className="ml-2 inline w-6 rounded-full border dark:border-gray-500"
+ />
+ <span className="ml-2">{props.author}</span>
+ </div>
+ </Typography.Text>
+ </div>
</div>
+ <Divider light />
<div>
- <Typography.Text>
- <div className="flex flex-row items-center mb-2">
- Created by <img src={props.author_img} className="ml-2 inline w-5 rounded-full" />
- <span className="ml-1">{props.author}</span>
- </div>
- <a className="flex flex-row items-center">
- <span>{props.repo_name}</span>
- <span className="ml-1 inline-block">
- <IconGitHub size="small" />
- </span>
- </a>
- </Typography.Text>
+ <div
+ className="
+
+ bg-white dark:bg-gray-800
+ border-b border-r border-l border-gray-100 dark:border-gray-600
+ p-5
+ flex flex-col justify-between
+ rounded rounded-t-none"
+ >
+ <Typography.Text>
+ <Link href={props.repo_url} as={props.repo_url}>
+ <a className="flex flex-row items-center" target="_blank">
+ <span>{props.repo_name}</span>
+ <span className="ml-1 inline-block">
+ <IconGitHub size="small" />
+ </span>
+ </a>
+ </Link>
+ </Typography.Text>
+ <Space className="mt-3">
+ {props.vercel_deploy_url && (
+ <Link href={props.vercel_deploy_url} as={props.vercel_deploy_url}>
+ <a target="_blank">
+ <Button
+ size="tiny"
+ type="outline"
+ icon={<IconTriangle />}
+ style={{ background: '#1F6FF0', color: 'white', borderColor: '#1F6FF0' }}
+ >
+ Deploy
+ </Button>
+ </a>
+ </Link>
+ )}
+ {props.demo_url && (
+ <Link href={props.demo_url} as={props.demo_url}>
+ <a target="_blank">
+ <Button size="tiny" type="default" iconRight={<IconArrowUpRight />}>
+ Launch Demo
+ </Button>
+ </a>
+ </Link>
+ )}
+ {/* <Link href={props.demo_url} as={props.demo_url}>
+ <a target="_blank">
+ <Button size="tiny" type="text" iconRight={<IconGitHub />}>
+ Github
+ </Button>
+ </a>
+ </Link> */}
+ {/* <Button size="tiny" type="default">
+ Github
+ </Button> */}
+ </Space>
+ </div>
</div>
</div>
)
diff --git a/www/components/MadeForDevelopers/index.tsx b/www/components/MadeForDevelopers/index.tsx
index 2a86d83c326..6d616721558 100644
--- a/www/components/MadeForDevelopers/index.tsx
+++ b/www/components/MadeForDevelopers/index.tsx
@@ -30,7 +30,7 @@ const MadeForDevelopers = () => {
{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-2 dark:border-dark-500 even:rotate-45'
+ ? '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 (
diff --git a/www/components/Sections/APISection.tsx b/www/components/Sections/APISection.tsx
index f6a24729bf2..cd9ee23743d 100644
--- a/www/components/Sections/APISection.tsx
+++ b/www/components/Sections/APISection.tsx
@@ -1,6 +1,6 @@
import { useState } from 'react'
// Import Swiper React components
-import { Button, Tabs, Typography } from '@supabase/ui'
+import { Button, IconArrowUpRight, Tabs, Typography } from '@supabase/ui'
import { Swiper, SwiperSlide } from 'swiper/react'
import CodeBlock from '../CodeBlock/CodeBlock'
@@ -14,6 +14,7 @@ interface Props {
content?: APIExample
title: string
footer?: React.ReactNode
+ text?: React.ReactNode
}
function APISection(props: Props) {
@@ -29,22 +30,15 @@ function APISection(props: Props) {
return (
<div className="grid grid-cols-12 lg:gap-16">
- <div className="col-span-12 lg:col-span-5 pb-8">
+ <div className="col-span-12 lg:col-span-12 xl: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.
- </p>
- <p className="text-lg">
- With powerful library clients coming soon that allow for asset optimasation and image
- transformation
- </p>
- <Button size="small" className="mt-4">
+ {props.text}
+ <Button size="small" className="mt-4" type="default" icon={<IconArrowUpRight />}>
Expore documentation
</Button>
{props.footer && <div className="py-8">{props.footer}</div>}
</div>
- <div className="col-span-12 lg:col-span-6 lg:col-start-7">
+ <div className="col-span-12 xl:col-span-6 xl:col-start-7 sbui-tabs--alt">
<Tabs
scrollable
// @ts-ignore
diff --git a/www/data/Examples.json b/www/data/Examples.json
index b8ac59ed20a..70c46dbe007 100644
--- a/www/data/Examples.json
+++ b/www/data/Examples.json
@@ -1,66 +1,158 @@
[
{
- "name": "Supabase Auth x NextJS",
- "description": "NextJS based Auth example, with support for Server side rendering",
- "author": "Supabase",
- "author_img": "https://avatars.githubusercontent.com/u/54469796",
- "repo_name": "with-supabase-auth-realtime-db",
- "repo_link": "https://github.com/vercel/next.js/tree/canary/examples/with-supabase-auth-realtime-db"
+ "type": "example",
+ "products": ["database"],
+ "title": "Svelte kanban board",
+ "description": "A Trello clone using Supabase as the storage system.",
+ "author": "joshnuss",
+ "author_url": "https://github.com/joshnuss",
+ "author_img": "https://avatars.githubusercontent.com/u/4437",
+ "repo_name": "supabase-kanban",
+ "repo_url": "https://github.com/joshnuss/supabase-kanban",
+ "vercel_deploy_url": "",
+ "demo_url": "https://supabase-kanban.vercel.app/"
},
{
- "name": "Supabase Auth x NextJS",
- "description": "NextJS based Auth example, with support for Server side rendering",
- "author": "Supabase",
+ "type": "example",
+ "products": ["database"],
+ "title": "NextJS Realtime chat app",
+ "description": "NextJS Slack clone app using Supabase realtime subscriptions",
+ "author": "supabase",
+ "author_url": "https://github.com/supabase",
"author_img": "https://avatars.githubusercontent.com/u/54469796",
- "repo_name": "with-supabase-auth-realtime-db",
- "repo_link": "https://github.com/vercel/next.js/tree/canary/examples/with-supabase-auth-realtime-db"
+ "repo_name": "nextjs-slack-clone",
+ "repo_url": "https://github.com/supabase/supabase/tree/master/examples/nextjs-slack-clone",
+ "vercel_deploy_url": "",
+ "demo_url": "https://supabase-slack-clone-supabase.vercel.app/"
+ },
+ {
+ "type": "example",
+ "products": ["database", "auth"],
+ "title": "Next.js Subscription and Auth",
+ "description": "The all-in-one starter kit for high-performance SaaS applications.",
+ "author": "Vercel",
+ "author_url": "https://github.com/vercel",
+ "author_img": "https://avatars.githubusercontent.com/u/14985020",
+ "repo_name": "nextjs-subscription-payments",
+ "repo_url": "https://github.com/vercel/nextjs-subscription-payments",
+ "vercel_deploy_url": "https://vercel.com/new/git/external?repository-url=https%3A%2F%2Fgithub.com%2Fvercel%2Fnextjs-subscription-payments&project-name=nextjs-subscription-payments&repo-name=nextjs-subscription-payments&demo-title=Next.js%20Subscription%20Payments%20Starter&demo-description=Demo%20project%20on%20Vercel&demo-url=https%3A%2F%2Fsubscription-payments.vercel.app&demo-image=https%3A%2F%2Fsubscription-payments.vercel.app%2Fdemo.png&integration-ids=oac_pb1dqJT8Ry2D99Q0o9qXWIhJ,oac_jUduyjQgOyzev1fjrW83NYOv&external-id=nextjs-subscription-payments",
+ "demo_url": "https://subscription-payments.vercel.app/"
+ },
+ {
+ "type": "example",
+ "products": ["database"],
+ "title": "Expo Starter",
+ "description": "Template bottom tabs with auth flow (Typescript)",
+ "author": "codingki",
+ "author_url": "https://github.com/codingki",
+ "author_img": "https://avatars.githubusercontent.com/u/39829726",
+ "repo_name": "react-native-expo-template",
+ "repo_url": "https://github.com/codingki/react-native-expo-template/tree/master/template-typescript-bottom-tabs-supabase-auth-flow",
+ "vercel_deploy_url": "",
+ "demo_url": ""
+ },
+ {
+ "type": "example",
+ "products": ["database", "auth"],
+ "title": "NextJS example",
+ "description": "NextJS example using Supabase Auth",
+ "author": "hiro1107",
+ "author_url": "https://github.com/hiro1107",
+ "author_img": "https://avatars.githubusercontent.com/u/1423067",
+ "repo_name": "nestjs-supabase-auth",
+ "repo_url": "https://github.com/hiro1107/nestjs-supabase-auth",
+ "vercel_deploy_url": "",
+ "demo_url": ""
+ },
+ {
+ "type": "example",
+ "products": ["database"],
+ "title": "ReactJS realtime chat app",
+ "description": "Example app of real-time chat using supabase realtime api",
+ "author": "shwosner",
+ "author_url": "https://github.com/shwosner",
+ "author_img": "https://avatars.githubusercontent.com/u/1423067",
+ "repo_name": "realtime-chat-supabase-react",
+ "repo_url": "https://github.com/shwosner/realtime-chat-supabase-react",
+ "vercel_deploy_url": "",
+ "demo_url": "https://random-chat.netlify.app/"
},
{
- "name": "Supabase Auth x NextJS",
- "description": "NextJS based Auth example, with support for Server side rendering",
- "author": "Supabase",
+ "type": "example",
+ "products": ["database", "auth"],
+ "title": "Vanilla-js Auth app",
+ "description": "How to sign up and login using supabase and supabase-js using HTML and JavaScript only",
+ "author": "supabase",
+ "author_url": "https://github.com/supabase",
"author_img": "https://avatars.githubusercontent.com/u/54469796",
- "repo_name": "with-supabase-auth-realtime-db",
- "repo_link": "https://github.com/vercel/next.js/tree/canary/examples/with-supabase-auth-realtime-db"
+ "repo_name": "javascript-auth",
+ "repo_url": "https://github.com/supabase/supabase/tree/master/examples/javascript-auth",
+ "vercel_deploy_url": "",
+ "demo_url": "https://auth-vanilla-js.vercel.app/"
},
{
- "name": "Supabase Auth x NextJS",
- "description": "NextJS based Auth example, with support for Server side rendering",
- "author": "Supabase",
+ "type": "example",
+ "products": ["database"],
+ "title": "React Native todo list app",
+ "description": "React Native Todo List example with Expo",
+ "author": "supabase",
+ "author_url": "https://github.com/supabase",
"author_img": "https://avatars.githubusercontent.com/u/54469796",
- "repo_name": "with-supabase-auth-realtime-db",
- "repo_link": "https://github.com/vercel/next.js/tree/canary/examples/with-supabase-auth-realtime-db"
+ "repo_name": "expo-todo-list",
+ "repo_url": "https://github.com/supabase/supabase/tree/master/examples/expo-todo-list",
+ "vercel_deploy_url": "",
+ "demo_url": ""
},
{
- "name": "Supabase Auth x NextJS",
- "description": "NextJS based Auth example, with support for Server side rendering",
- "author": "Supabase",
+ "type": "example",
+ "products": ["database"],
+ "title": "NextJS todo list app",
+ "description": "React Native todo List example with Expo",
+ "author": "supabase",
+ "author_url": "https://github.com/supabase",
"author_img": "https://avatars.githubusercontent.com/u/54469796",
- "repo_name": "with-supabase-auth-realtime-db",
- "repo_link": "https://github.com/vercel/next.js/tree/canary/examples/with-supabase-auth-realtime-db"
+ "repo_name": "nextjs-todo-list",
+ "repo_url": "https://github.com/supabase/supabase/tree/master/examples/nextjs-todo-list",
+ "vercel_deploy_url": "",
+ "demo_url": "https://supabase-nextjs-todo-list.vercel.app/"
},
{
- "name": "Supabase Auth x NextJS",
- "description": "NextJS based Auth example, with support for Server side rendering",
- "author": "Supabase",
+ "type": "example",
+ "products": ["database"],
+ "title": "React todo list app",
+ "description": "React todo List example",
+ "author": "supabase",
+ "author_url": "https://github.com/supabase",
"author_img": "https://avatars.githubusercontent.com/u/54469796",
- "repo_name": "with-supabase-auth-realtime-db",
- "repo_link": "https://github.com/vercel/next.js/tree/canary/examples/with-supabase-auth-realtime-db"
+ "repo_name": "react-todo-list",
+ "repo_url": "https://github.com/supabase/supabase/tree/master/examples/react-todo-list",
+ "vercel_deploy_url": "",
+ "demo_url": ""
},
{
- "name": "Supabase Auth x NextJS",
- "description": "NextJS based Auth example, with support for Server side rendering",
- "author": "Supabase",
+ "type": "example",
+ "products": ["database"],
+ "title": "Svelte todo list app",
+ "description": "Sveltejs todo with TailwindCSS and Snowpack",
+ "author": "supabase",
+ "author_url": "https://github.com/supabase",
"author_img": "https://avatars.githubusercontent.com/u/54469796",
- "repo_name": "with-supabase-auth-realtime-db",
- "repo_link": "https://github.com/vercel/next.js/tree/canary/examples/with-supabase-auth-realtime-db"
+ "repo_name": "sveltejs-todo-list",
+ "repo_url": "https://github.com/supabase/supabase/tree/master/examples/sveltejs-todo-list",
+ "vercel_deploy_url": "",
+ "demo_url": ""
},
{
- "name": "Supabase Auth x NextJS",
- "description": "NextJS based Auth example, with support for Server side rendering",
- "author": "Supabase",
+ "type": "example",
+ "products": ["database"],
+ "title": "Vue.js todo list app",
+ "description": "Vue.js todo app using TypeScript",
+ "author": "supabase",
+ "author_url": "https://github.com/supabase",
"author_img": "https://avatars.githubusercontent.com/u/54469796",
- "repo_name": "with-supabase-auth-realtime-db",
- "repo_link": "https://github.com/vercel/next.js/tree/canary/examples/with-supabase-auth-realtime-db"
+ "repo_name": "vue3-ts-todo-list",
+ "repo_url": "https://github.com/supabase/supabase/tree/master/examples/vue3-ts-todo-list",
+ "vercel_deploy_url": "",
+ "demo_url": ""
}
]
diff --git a/www/data/products/database/extensions-examples.js b/www/data/products/database/extensions-examples.js
index 5d8965b71dc..b974eeb111f 100644
--- a/www/data/products/database/extensions-examples.js
+++ b/www/data/products/database/extensions-examples.js
@@ -27,7 +27,7 @@ $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_title: '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:',
diff --git a/www/data/tweets/Tweets.json b/www/data/tweets/Tweets.json
index e9e93093526..e00b2d5505d 100644
--- a/www/data/tweets/Tweets.json
+++ b/www/data/tweets/Tweets.json
@@ -33,7 +33,7 @@
"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": ""
+ "img_url": "https://pbs.twimg.com/profile_images/1238375573388275713/mZAIoZM1_400x400.jpg"
},
{
"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.",
diff --git a/www/package-lock.json b/www/package-lock.json
index e3819372140..c147116a286 100644
--- a/www/package-lock.json
+++ b/www/package-lock.json
@@ -1720,9 +1720,9 @@
}
},
"@supabase/ui": {
- "version": "0.21.3",
- "resolved": "https://registry.npmjs.org/@supabase/ui/-/ui-0.21.3.tgz",
- "integrity": "sha512-RXQQ6V6lFmQc6qsJ4ZD1NHGMgwbcmwx+7HM1J5xewXIPK9Pa7sFc8SqI4gPno2nDU7WD3NREYCP9CZDWFx/DSA==",
+ "version": "0.21.4",
+ "resolved": "https://registry.npmjs.org/@supabase/ui/-/ui-0.21.4.tgz",
+ "integrity": "sha512-NbsPBWiTCWHjzJpQKNOrt+hR0t4bOiw3b9Gb0mCt6UJ0YuOV7kemEo29Ufz3PVkw54AdJz87KxLQ6V6+rUpdZg==",
"requires": {
"lodash": "^4.17.20",
"prop-types": "^15.7.2",
diff --git a/www/package.json b/www/package.json
index 159e7a2c0a8..bb18500d127 100644
--- a/www/package.json
+++ b/www/package.json
@@ -16,7 +16,7 @@
"@mdx-js/react": "^1.6.22",
"@next/mdx": "^10.0.7",
"@supabase/supabase-js": "^1.6.0",
- "@supabase/ui": "^0.21.3",
+ "@supabase/ui": "^0.21.4",
"classnames": "2.2.6",
"date-fns": "2.10.0",
"gray-matter": "^4.0.2",
diff --git a/www/pages/database/Database.tsx b/www/pages/database/Database.tsx
index 3e568ee1ec6..a5b42059daa 100644
--- a/www/pages/database/Database.tsx
+++ b/www/pages/database/Database.tsx
@@ -4,7 +4,7 @@ import DefaultLayout from '~/components/Layouts/Default'
import SectionContainer from '~/components/Layouts/SectionContainer'
import ProductHeader from '~/components/Sections/ProductHeader'
-import { Button, Tabs, Typography } from '@supabase/ui'
+import { Badge, Button, IconArrowUpRight, Space, Tabs, Typography } from '@supabase/ui'
import { Swiper, SwiperSlide } from 'swiper/react'
import SwiperCore, { Controller } from 'swiper'
@@ -45,13 +45,13 @@ function Database() {
<ProductHeader
h1={[
<span>
- A Database ready for millions
- <br /> and the weekend project
+ Open source SQL Database
+ <br /> (without the hassle)
</span>,
]}
subheader={[
- 'A postgres SQL database, trusted by 100,000s of developers, with built in row level security hosted on a dedicated instance.',
- 'It is the industry standard database used by AWS architecture, data scientists and backend engineers.',
+ '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. ',
]}
/>
@@ -60,18 +60,17 @@ function Database() {
<SectionContainer className="text-center pb-8">
<div className="grid grid-cols-12">
<div className="col-span-8 col-start-3">
- <Typography.Title level={2}>Easy to update, maintain and grow </Typography.Title>
+ <Typography.Title level={2}>Easy to use dashboard</Typography.Title>
<Typography.Text>
<p className="text-lg">
- Let your international customers pay with their preferred payment method, and
- improve conversion. Stripe supports 135+ currencies and offers a unified API for
- cards, wallets, bank debits, and more.
+ Use your database the way you want, with an interactive dashboard for both
+ spreadsheet style tables and also a full SQL editor.
</p>
</Typography.Text>
</div>
</div>
</SectionContainer>
- <div className={'dashboard-tabs'}>
+ <div className={'dashboard-tabs sbui-tabs--underline-alt'}>
<Tabs
size="xlarge"
activeId={dashboardSwiperActiveIndex.toString()}
@@ -141,14 +140,43 @@ function Database() {
<APISection
content={ApiExamplesData}
title="Never write an API again"
+ text={[
+ <p>
+ We inspect your database and provide APIs instantly so you can stop building
+ repetitive CRUD endpoints and focus on your product.
+ </p>,
+ ]}
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
+ <div className="grid grid-cols-12">
+ <div className="mt-0 col-span-12 lg:col-span-6 xl:col-span-12 xl:mb-8">
+ <Space>
+ <Typography.Text type="secondary">
+ <p className="m-0">Libraries coming soon:</p>{' '}
+ </Typography.Text>
+ <Badge dot={false} color="blue">
+ Python
+ </Badge>
+ <Badge dot={false} color="blue">
+ Dart
+ </Badge>
+ <Badge dot={false} color="blue">
+ C#
+ </Badge>
+ <Badge dot={false} color="blue">
+ Kotlin
+ </Badge>
+ </Space>
+ </div>
+ <div className="col-span-12 lg:col-span-6 xl:col-span-10 hidden xl:block">
+ <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."
- />,
+ />
+ </div>
+ </div>,
]}
/>
</SectionContainer>
@@ -169,11 +197,11 @@ function Database() {
</div>
</div>
- <SectionContainer>
+ <SectionContainer className="lg:py-48">
<div className="grid grid-cols-12 lg:gap-16">
- <div className="col-span-12 lg:col-span-5 mb-8">
+ <div className="col-span-12 lg:col-span-6 xl:col-span-5 mb-8">
<Typography.Title level={2}>Extend your database</Typography.Title>
- <Typography.Text>
+ <Typography.Text className="block mb-8">
<p className="text-lg">
Your PostgreSQL database can be extended with any PostgreSQL extension.
</p>
@@ -186,11 +214,11 @@ function Database() {
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">
+ <Button size="small" className="mt-4" type="default" icon={<IconArrowUpRight />}>
Expore documentation
</Button>
</div>
- <div className="col-span-12 lg:col-span-6 lg:col-start-7">
+ <div className="mt-8 lg:mt-0 col-span-12 lg:col-span-6 lg:col-start-7">
<SplitCodeBlockCarousel content={ExtensionsExamplesData} />
</div>
</div>
diff --git a/www/styles/index.css b/www/styles/index.css
index c660c55a636..a5204d7334e 100644
--- a/www/styles/index.css
+++ b/www/styles/index.css
@@ -42,6 +42,11 @@ h6 {
margin-bottom: 16px;
}
+h1,
+h2 {
+ line-height: 1.2 !important;
+}
+
p {
@apply text-gray-light dark:text-gray-dark;
margin-bottom: 16px;
@@ -94,11 +99,29 @@ body {
/* Database page */
+.dashboard-tabs div[role='seperator'] {
+ @apply border border-gray-50 dark:border-gray-700;
+}
+
+a {
+ @apply hover:text-black dark:hover:text-white;
+}
+
+.sbui-tabs--alt div[role='tablist'] .sbui-btn-primary {
+ @apply bg-gray-800 text-white dark:bg-gray-600 dark:text-white;
+ text-shadow: none;
+ font-weight: 400;
+}
+.sbui-tabs--alt div[role='tablist'] .sbui-btn-text {
+ @apply dark:text-gray-400;
+ font-weight: 400;
+ shadow: none;
+}
+
+.sbui-tabs--underline-alt div[role='tablist'] .sbui-tab-button-underline--active {
+ @apply border-gray-900 dark:border-white;
+}
/* override position of tabs */
.dashboard-tabs > div > div > div > div {
justify-content: center;
}
-
-.dashboard-tabs div[role='seperator'] {
- @apply border border-gray-50 dark:border-gray-600;
-}