The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.
TypeScript aialternativeauthdatabasedenoembeddingsexamplefirebasenextjsoauth2pgvectorpostgispostgrespostgresqlpostgrestrealtimesupabasevectorswebsockets
more updates
Jonathan Summers-Muir39e40ff8ad09
diff --git a/www/components/BuiltWithSupabase/index.tsx b/www/components/BuiltWithSupabase/index.tsxindex 0e4a5220127..b20b0a49011 100644--- a/www/components/BuiltWithSupabase/index.tsx+++ b/www/components/BuiltWithSupabase/index.tsx@@ -14,29 +14,22 @@ const BuiltExamples = () => {return (<SectionContainer className="xl:pt-32"><div className="text-center">- <Typography.Title level={2}>What can you build with supabase?</Typography.Title>- <p>- <p className="lg:text-lg">- There are many example apps and starter projects to get going- </p>- <Space className="justify-center">- <Link href="/docs/guides/examples" as="/docs/guides/examples">- <a>- <Button type="default">View all examples</Button>- </a>- </Link>- <Link- href="https://github.com/supabase/supabase/tree/master/examples"- as="https://github.com/supabase/supabase/tree/master/examples"- >- <a>- <Button type="default" icon={<IconGitHub />}>- Official github library- </Button>- </a>- </Link>- </Space>- </p>+ <h3 className="text-3xl">What can you build with supabase?</h3>+ <p className="lg:text-lg">There are many example apps and starter projects to get going</p>+ <div className="flex gap-2 justify-center">+ <Link href="/docs/guides/examples" as="/docs/guides/examples" passHref>+ <Button type="default">View all examples</Button>+ </Link>+ <Link+ href="https://github.com/supabase/supabase/tree/master/examples"+ as="https://github.com/supabase/supabase/tree/master/examples"+ passHref+ >+ <Button type="default" icon={<IconGitHub />}>+ Official github library+ </Button>+ </Link>+ </div></div><div className="grid grid-cols-12 gap-5 mt-16">{Examples.slice(0, 6).map((example, i) => {diff --git a/www/components/ExampleCard.tsx b/www/components/ExampleCard.tsxindex 6f59ed94a9c..e0a46f04656 100644--- a/www/components/ExampleCard.tsx+++ b/www/components/ExampleCard.tsx@@ -13,27 +13,26 @@ function ExampleCard(props: any) {return (<><div- className="h-40 bg-white dark:bg-gray-700- border-t border-r border-l border-gray-100 dark:border-gray-600+ className="h-40+ bg-white dark:bg-scale-300+ border border-scale-400+ border-t border-r border-lp-5flex flex-col justify-betweenrounded rounded-b-none"><div className="mb-4">- <Typography.Title level={5} className="mb-1">- {props.title}- </Typography.Title>- <p 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>+ <h4 className="text-xl mb-3">{props.title}</h4>++ <p className="text-sm">{props.description}</p>+ <p className="text-sm 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></p></div></div>@@ -41,23 +40,27 @@ function ExampleCard(props: any) {<div><divclassName="- bg-white dark:bg-gray-800- border-b border-r border-l border-gray-100 dark:border-gray-600+ bg-scale-400+ border border-scale-400+ border-b border-r border-l border-t-0+ bg-scale-300p-5flex flex-col justify-betweenrounded rounded-t-none">- <p>- <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>- </p>- <Space className="mt-3">+ <Link href={props.repo_url} as={props.repo_url} passHref>+ <a+ className="text-sm text-scale-1100 hover:text-scale-1200 flex flex-row items-center"+ target="_blank"+ >+ <span>{props.repo_name}</span>+ <span className="ml-1 inline-block">+ <IconGitHub size={14} />+ </span>+ </a>+ </Link>++ <div className="flex gap-2 items-center mt-3">{props.vercel_deploy_url && (<a target="_blank" href={props.vercel_deploy_url}><img src="https://vercel.com/button" />@@ -81,7 +84,7 @@ function ExampleCard(props: any) {</a></Link>)}- </Space>+ </div></div></div></>diff --git a/www/components/Features/index.tsx b/www/components/Features/index.tsxindex 8b1b36906be..f662b7fa13a 100644--- a/www/components/Features/index.tsx+++ b/www/components/Features/index.tsx@@ -13,11 +13,7 @@ const Features = () => {<div key={name} className="mb-10 md:mb-0"><div className="flex items-center"><ProductIcon icon={icon} />- <dt className="flex flex-row xl:flex-col ml-4">- <Typography.Title level={4} className="m-0">- {name}- </Typography.Title>- </dt>+ <dt className="text-scale-1200 flex flex-row xl:flex-col ml-4">{name}</dt></div><div className="mt-5"><p>{description}</p>diff --git a/www/components/Nav/index.tsx b/www/components/Nav/index.tsxindex 1b06a48db0d..1ff76364d83 100644--- a/www/components/Nav/index.tsx+++ b/www/components/Nav/index.tsx@@ -182,7 +182,7 @@ const Nav = () => {<><Announcement /><div className="sticky top-0 z-50">- <div className="absolute w-full h-full bg-scale-100 top-0 opacity-80"></div>+ <div className="absolute w-full h-full bg-scale-200 top-0 opacity-80"></div><nav className="backdrop-blur-sm border-b">{/* <div className="lg:container mx-auto relative flex justify-between h-16 lg:px-10 xl:px-0"> */}<div className="lg:container mx-auto relative flex justify-between h-16 lg:px-16 xl:px-20">diff --git a/www/components/Sections/TwitterSocialProof.tsx b/www/components/Sections/TwitterSocialProof.tsxindex 1f5bcfd565c..34bc5e9f58f 100644--- a/www/components/Sections/TwitterSocialProof.tsx+++ b/www/components/Sections/TwitterSocialProof.tsx@@ -6,15 +6,7 @@ import { Swiper, SwiperSlide } from 'swiper/react'// import Swiper core and required modulesimport SwiperCore, { Navigation, Pagination } from 'swiper'-import {- Button,- Typography,- IconMessageCircle,- Space,- IconAlignLeft,- IconArrowLeft,- IconArrowRight,-} from '@supabase/ui'+import { Button, IconMessageCircle, IconArrowLeft, IconArrowRight } from '@supabase/ui'import Examples from '../../data/tweets/Tweets.json'import TweetCard from '../TweetCard'@@ -39,21 +31,41 @@ function TwitterSocialProof() {<><div className="grid grid-cols-12"><div className="col-span-12 text-center">- <Typography.Title level={2}>Join the community</Typography.Title>+ <h3 className="text-3xl">Join the community</h3><p><p className="lg:text-lg">Supported by a network of early advocates, contributors, and champions.</p>- <div className="my-4">+ <div className="my-4 flex gap-2 justify-center"><Linkhref={'https://github.com/supabase/supabase/discussions'}as={'https://github.com/supabase/supabase/discussions'}>- <a className="block text-sm text-gray-400 dark:text-gray-400 mt-3" target="_blank">- <Button size="small" iconRight={<IconMessageCircle size="tiny" />} type="default">- GitHub discussions- </Button>- </a>+ <Button+ as="a"+ // @ts-ignore+ target="_blank"+ size="small"+ iconRight={<IconMessageCircle size={14} />}+ type="secondary"+ >+ GitHub discussions+ </Button>+ </Link>+ <Link+ href={'https://github.com/supabase/supabase/discussions'}+ as={'https://github.com/supabase/supabase/discussions'}+ >+ <Button+ as="a"+ type="alternative"+ // @ts-ignore+ target="_blank"+ size="small"+ iconRight={<IconMessageCircle size={14} />}+ >+ Discord+ </Button></Link></div></p>diff --git a/www/components/TextLink.tsx b/www/components/TextLink.tsxindex df909919e39..fc615247bb7 100644--- a/www/components/TextLink.tsx+++ b/www/components/TextLink.tsx@@ -1,14 +1,14 @@-import { IconArrowRight } from '@supabase/ui'+import { IconArrowRight, IconChevronRight } from '@supabase/ui'import Link from 'next/link'function TextLink({ url, label }: any) {return (- <a href={url} className="block text-sm text-gray-400 dark:text-gray-400 mt-3">- <div className="flex items-center">+ <a href={url} className="block text-sm text-scale-1100 hover:text-scale-1200 mt-3">+ <div className="flex items-center gap-1 group"><span>{label}</span>- <span className="ml-2">- <IconArrowRight size="tiny" />- </span>+ <div className="transition-all group-hover:ml-0.5">+ <IconChevronRight size={14} strokeWidth={2} />+ </div></div></a>)diff --git a/www/components/TweetCard.tsx b/www/components/TweetCard.tsxindex 083bba4e1cb..ae29756a0b2 100644--- a/www/components/TweetCard.tsx+++ b/www/components/TweetCard.tsx@@ -9,23 +9,36 @@ interface TweetCard {function TweetCard(props: TweetCard) {return (- <div className="bg-white dark:bg-dark-800 rounded-lg border border-gray-100 dark:border-gray-600 p-6">+ <div+ className="++ bg-white dark:bg-scale-300 rounded-md++ border border-scale-300 dark:border-scale-400 p-6+ drop-shadow-sm+++ "+ ><div className="relative">- <div className="rounded-md w-12 h-12 border dark:border-gray-600 overflow-hidden">- <Image src={props.img_url} layout="responsive" width="64" height="64" />- </div>- <div- className="absolute -top-2 -left-2 w-6 h-6 flex justify-center items-center rounded-md"- style={{ background: '#00acee' }}- >- <div className="text-white">- <IconTwitter fill={'white'} size="tiny" />+ <div className="flex items-center gap-2">+ <div className="rounded-full w-10 h-10 border dark:border-gray-600 overflow-hidden">+ <Image src={props.img_url} layout="responsive" width="64" height="64" />+ </div>+ <p className="text-sm font-medium text-scale-1200 mt-3">{props.handle}</p>+ <div+ className="absolute -left-1 -top-1 w-5 h-5 flex justify-center items-center rounded-full"+ style={{ background: '#00acee' }}+ >+ <div className="text-white">+ <IconTwitter fill={'white'} size={12} />+ </div></div></div></div>- <p className="block mt-3">{props.handle}</p>+<p>- <p className="text-base mt-3 text-gray-900 dark:text-white">"{props.quote}"</p>+ <p className="text-base mt-3 text-scale-1100">"{props.quote}"</p></p></div>)diff --git a/www/components/TwitterSocialSection.tsx b/www/components/TwitterSocialSection.tsxnew file mode 100644index 00000000000..6b288242682--- /dev/null+++ b/www/components/TwitterSocialSection.tsx@@ -0,0 +1,23 @@+import SectionContainer from './Layouts/SectionContainer'+import TwitterSocialProof from './Sections/TwitterSocialProof'++const TwitterSocialSection = () => {+ return (+ <div className="relative">+ <div className="section--masked">+ <div className="section--bg-masked">+ <div className="section--bg border-t border-b"></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>+ )+}++export default TwitterSocialSectiondiff --git a/www/default-colors.js b/www/default-colors.jsindex 1c9656e8d7e..16352a83344 100644--- a/www/default-colors.js+++ b/www/default-colors.js@@ -60,31 +60,31 @@ module.exports = {scaleA12: 'var(--colors-slatea12)',},scaleDark: {- scale1: 'var(--colors-mauve1)',- scale2: 'var(--colors-mauve2)',- scale3: 'var(--colors-mauve3)',- scale4: 'var(--colors-mauve4)',- scale5: 'var(--colors-mauve5)',- scale6: 'var(--colors-mauve6)',- scale7: 'var(--colors-mauve7)',- scale8: 'var(--colors-mauve8)',- scale9: 'var(--colors-mauve9)',- scale10: 'var(--colors-mauve10)',- scale11: 'var(--colors-mauve11)',- scale12: 'var(--colors-mauve12)',+ scale1: 'var(--colors-gray1)',+ scale2: 'var(--colors-gray2)',+ scale3: 'var(--colors-gray3)',+ scale4: 'var(--colors-gray4)',+ scale5: 'var(--colors-gray5)',+ scale6: 'var(--colors-gray6)',+ scale7: 'var(--colors-gray7)',+ scale8: 'var(--colors-gray8)',+ scale9: 'var(--colors-gray9)',+ scale10: 'var(--colors-gray10)',+ scale11: 'var(--colors-gray11)',+ scale12: 'var(--colors-gray12)',},scaleADark: {- scaleA1: 'var(--colors-mauvea1)',- scaleA2: 'var(--colors-mauvea2)',- scaleA3: 'var(--colors-mauvea3)',- scaleA4: 'var(--colors-mauvea4)',- scaleA5: 'var(--colors-mauvea5)',- scaleA6: 'var(--colors-mauvea6)',- scaleA7: 'var(--colors-mauvea7)',- scaleA8: 'var(--colors-mauvea8)',- scaleA9: 'var(--colors-mauvea9)',- scaleA10: 'var(--colors-mauvea10)',- scaleA11: 'var(--colors-mauvea11)',- scaleA12: 'var(--colors-mauvea12)',+ scaleA1: 'var(--colors-graya1)',+ scaleA2: 'var(--colors-graya2)',+ scaleA3: 'var(--colors-graya3)',+ scaleA4: 'var(--colors-graya4)',+ scaleA5: 'var(--colors-graya5)',+ scaleA6: 'var(--colors-graya6)',+ scaleA7: 'var(--colors-graya7)',+ scaleA8: 'var(--colors-graya8)',+ scaleA9: 'var(--colors-graya9)',+ scaleA10: 'var(--colors-graya10)',+ scaleA11: 'var(--colors-graya11)',+ scaleA12: 'var(--colors-graya12)',},}diff --git a/www/pages/index.tsx b/www/pages/index.tsxindex 2d42af41cd5..533271b89cf 100644--- a/www/pages/index.tsx+++ b/www/pages/index.tsx@@ -9,7 +9,7 @@ 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 TwitterSocialSection from '~/components/TwitterSocialSection'// Import Swiper styles if swiper used on pageimport 'swiper/swiper.min.css'@@ -23,20 +23,7 @@ const Index = ({}: Props) => {<Container><Hero /><Features />- <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>+ <TwitterSocialSection /><BuiltExamples /><MadeForDevelopers /><AdminAccess />diff --git a/www/styles/index.css b/www/styles/index.cssindex 10a0074fe0f..ae8a6ed5723 100644--- a/www/styles/index.css+++ b/www/styles/index.css@@ -23,7 +23,7 @@ html {}body {- @apply bg-scale-100;+ @apply bg-scale-200;-webkit-font-smoothing: antialiased;-moz-osx-font-smoothing: grayscale;}@@ -42,6 +42,22 @@ h6 {margin-bottom: 16px;}+h2 {+ @apply text-3xl;+}++h3 {+ @apply text-2xl;+}++h4 {+ @apply text-xl;+}++h5 {+ @apply text-xl;+}+h1,h2 {line-height: 1.2 !important;@@ -105,7 +121,7 @@ small {}.section--bg {- @apply bg-gray-50 dark:bg-gray-800;+ @apply bg-scale-100 dark:bg-scale-200;position: relative;height: 100%;width: 100%;diff --git a/www/ui.config.js b/www/ui.config.jsindex d26e243e573..472587b392a 100644--- a/www/ui.config.js+++ b/www/ui.config.js@@ -4,9 +4,7 @@ const plugin = require('tailwindcss/plugin')const radixUiColors = require('@radix-ui/colors')const brandColors = require('./default-colors')-const {- default: flattenColorPalette,-} = require('tailwindcss/lib/util/flattenColorPalette')+const { default: flattenColorPalette } = require('tailwindcss/lib/util/flattenColorPalette')// console.log(Object.keys(radixUiColors))@@ -63,9 +61,7 @@ function generateColorClasses() {})) {// console.log(x)- mappedColors[`${x}-fixed`][- step * 100- ] = `var(--colors-fixed-${x}${step})`+ mappedColors[`${x}-fixed`][step * 100] = `var(--colors-fixed-${x}${step})`}}})@@ -127,7 +123,7 @@ function generateCssVariables() {const variables = generateCssVariables()-console.log(variables)+// console.log(variables)const uiConfig = {theme: {@@ -236,15 +232,11 @@ const uiConfig = {'fade-in': 'fadeIn 300ms','fade-out': 'fadeOut 300ms',- 'dropdown-content-show':- 'overlayContentShow 100ms cubic-bezier(0.16, 1, 0.3, 1)',- 'dropdown-content-hide':- 'overlayContentHide 100ms cubic-bezier(0.16, 1, 0.3, 1)',+ 'dropdown-content-show': 'overlayContentShow 100ms cubic-bezier(0.16, 1, 0.3, 1)',+ 'dropdown-content-hide': 'overlayContentHide 100ms cubic-bezier(0.16, 1, 0.3, 1)',- 'overlay-show':- 'overlayContentShow 300ms cubic-bezier(0.16, 1, 0.3, 1)',- 'overlay-hide':- 'overlayContentHide 300ms cubic-bezier(0.16, 1, 0.3, 1)',+ 'overlay-show': 'overlayContentShow 300ms cubic-bezier(0.16, 1, 0.3, 1)',+ 'overlay-hide': 'overlayContentHide 300ms cubic-bezier(0.16, 1, 0.3, 1)','fade-in-overlay-bg': 'fadeInOverlayBg 300ms','fade-out-overlay-bg': 'fadeOutOverlayBg 300ms',@@ -252,18 +244,13 @@ const uiConfig = {'slide-down': 'slideDown 300ms cubic-bezier(0.87, 0, 0.13, 1)','slide-up': 'slideUp 300ms cubic-bezier(0.87, 0, 0.13, 1)',- 'slide-down-normal':- 'slideDownNormal 300ms cubic-bezier(0.87, 0, 0.13, 1)',+ 'slide-down-normal': 'slideDownNormal 300ms cubic-bezier(0.87, 0, 0.13, 1)','slide-up-normal': 'slideUpNormal 300ms cubic-bezier(0.87, 0, 0.13, 1)',- 'panel-slide-left-out':- 'panelSlideLeftOut 200ms cubic-bezier(0.87, 0, 0.13, 1)',- 'panel-slide-left-in':- 'panelSlideLeftIn 250ms cubic-bezier(0.87, 0, 0.13, 1)',- 'panel-slide-right-out':- 'panelSlideRightOut 200ms cubic-bezier(0.87, 0, 0.13, 1)',- 'panel-slide-right-in':- 'panelSlideRightIn 250ms cubic-bezier(0.87, 0, 0.13, 1)',+ 'panel-slide-left-out': 'panelSlideLeftOut 200ms cubic-bezier(0.87, 0, 0.13, 1)',+ 'panel-slide-left-in': 'panelSlideLeftIn 250ms cubic-bezier(0.87, 0, 0.13, 1)',+ 'panel-slide-right-out': 'panelSlideRightOut 200ms cubic-bezier(0.87, 0, 0.13, 1)',+ 'panel-slide-right-in': 'panelSlideRightIn 250ms cubic-bezier(0.87, 0, 0.13, 1)',// tailwind class for this is `animate-dropdownFadeIn`dropdownFadeIn: 'dropdownFadeIn 0.1s ease-out',