The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.
TypeScript aialternativeauthdatabasedenoembeddingsexamplefirebasenextjsoauth2pgvectorpostgispostgrespostgresqlpostgrestrealtimesupabasevectorswebsockets
Responsiveness cover for MPB, ipad pro and ipad
Joshen Lim6c35d9259efe
diff --git a/www/components/AdminAccess/index.tsx b/www/components/AdminAccess/index.tsxindex 711baa2d4da..63389b62746 100644--- a/www/components/AdminAccess/index.tsx+++ b/www/components/AdminAccess/index.tsx@@ -7,7 +7,7 @@ const AdminAccess = () => {return (<div className="py-16 bg-gray-50 dark:bg-dark-200 overflow-hidden lg:py-24">- <div className="container mx-auto px-20">+ <div className="container mx-auto sm:px-16 xl:px-20"><div className="relative items-center"><div className="relative"><SectionHeader@@ -15,7 +15,7 @@ const AdminAccess = () => {title_alt={' without leaving the dashboard'}subtitle={'Admin Access'}/>- <div className="grid grid-cols-2 gap-28 items-center">+ <div className="grid sm:flex sm:flex-col-reverse lg:grid-cols-2 gap-28 items-center"><TabstabId={tabId}setTabId={setTabId}diff --git a/www/components/AdminAccess/tabs.tsx b/www/components/AdminAccess/tabs.tsxindex 8973481e892..69f0cd003df 100644--- a/www/components/AdminAccess/tabs.tsx+++ b/www/components/AdminAccess/tabs.tsx@@ -17,7 +17,7 @@ function Tabs(props: Props) {}return (- <div className="flex justify-between items-center w-full">+ <div className="flex justify-between items-center w-full sm:relative sm:-mt-20"><div><div className="border-b border-gray-200"><nav className="-mb-px flex" aria-label="Tabs">diff --git a/www/components/Benchmark/index.tsx b/www/components/Benchmark/index.tsxdeleted file mode 100644index 40dd60a4e7a..00000000000--- a/www/components/Benchmark/index.tsx+++ /dev/null@@ -1,28 +0,0 @@-import Button from 'components/button'--const Benchmark = () => {- return (- <div className="bg-white dark:bg-dark-200 py-16 px-4 sm:px-6 lg:px-8">- <div className="container mx-auto px-20">- <div className="bg-white grid grid-cols-12 gap-4 items-center shadow-lg rounded-md">- <div className="w-full h-full col-span-2 bg-gray-700 rounded-l-md flex items-center justify-center">- <img className="w-3/4" src="images/benchmark.svg" />- </div>- <div className="col-span-6 py-6 ml-4">- <p className="text-xl">Record breaking speed and reliability</p>- <p className="text-gray-400 mt-2">- <span className="block">Supabase is already enterprise level and we’re blown away by the speed!</span>- <span className="block">Sign up for our public benchmark release and we’ll email it to you</span>- </p>- </div>- <div className="col-span-2" />- <div className="col-span-2 rounded-r-md">- <Button text="Get notified" url="#"/>- </div>- </div>- </div>- </div>- )-}--export default Benchmark\ No newline at end of filediff --git a/www/components/BuiltWithSupabase/index.tsx b/www/components/BuiltWithSupabase/index.tsxindex 116c8240d6b..ace503dd050 100644--- a/www/components/BuiltWithSupabase/index.tsx+++ b/www/components/BuiltWithSupabase/index.tsx@@ -5,7 +5,7 @@ import ProjectExamples from "data/ProjectExamples.json"const BuiltExamples = () => {return (<div className="bg-gray-50 dark:bg-dark-200 py-16">- <div className="container mx-auto px-20 relative">+ <div className="container mx-auto sm:px-16 xl:px-20 relative"><div className="absolute inset-0"><div className="bg-white dark:bg-dark-200 h-1/3 sm:h-2/3"></div></div>diff --git a/www/components/CaseStudies/benchmark.tsx b/www/components/CaseStudies/benchmark.tsxindex 4123bd9e49a..a9fc8fd46ab 100644--- a/www/components/CaseStudies/benchmark.tsx+++ b/www/components/CaseStudies/benchmark.tsx@@ -2,14 +2,11 @@ import Button from 'components/button'const Benchmark = () => {return (- <div className="mt-6">- <div className="bg-white dark:bg-dark-200 grid grid-cols-12 gap-4 items-center shadow-lg rounded-md">- {/* <div className="w-full h-full col-span-2 bg-dark-200 rounded-l-md flex items-center justify-center">- <div className="bg-cover bg-center w-full h-full" style={{ backgroundImage: "url('images/benchmark.svg')"}} />- </div> */}- <div className="col-span-10 flex items-center">- <img className="h-44 mr-14" src="images/benchmark.svg" />- <div className="py-0">+ <div className="mt-6 max-w-lg mx-auto lg:max-w-none lg:mx-0">+ <div className="bg-white dark:bg-dark-200 grid gap-4 items-center shadow-lg rounded-md grid-cols-1 lg:grid-cols-12">+ <div className="col-span-1 lg:col-span-10 flex items-center flex-col lg:flex-row">+ <img className="mb-10 w-full lg:w-auto lg:mb-0 lg:h-44 lg:mr-14" src="images/benchmark.svg" />+ <div className="px-12 py-5 lg:px-0 lg:py-0"><p className="text-xl dark:text-white">Record breaking speed and reliability</p><p className="text-gray-400 dark:text-dark-100 mt-2"><span className="block">Supabase is already enterprise level and we’re blown away by the speed!</span>@@ -17,7 +14,7 @@ const Benchmark = () => {</p></div></div>- <div className="col-span-2 rounded-r-md">+ <div className="pb-12 px-12 col-span-1 lg:pb-0 lg:px-0 lg:col-span-2 rounded-r-md"><Button text="Get notified" url="#"/></div></div>diff --git a/www/components/CaseStudies/index.tsx b/www/components/CaseStudies/index.tsxindex a0f7cf863f1..41fef19cc1c 100644--- a/www/components/CaseStudies/index.tsx+++ b/www/components/CaseStudies/index.tsx@@ -7,7 +7,7 @@ const CaseStudies = () => {return (<div className="relative bg-gray-50 dark:bg-dark-300 pt-16 pb-20 lg:pt-24 lg:pb-28">- <div className="container relative mx-auto px-20">+ <div className="container relative mx-auto sm:px-16 xl:px-20"><div className="absolute inset-0"><div className="bg-white dark:bg-dark-300 h-1/3 sm:h-2/3"></div></div>diff --git a/www/components/Features/index.tsx b/www/components/Features/index.tsxindex 4dca4c970b8..8ed2a4204bb 100644--- a/www/components/Features/index.tsx+++ b/www/components/Features/index.tsx@@ -40,7 +40,7 @@ const Features = () => {return (<div className="bg-gray-50 dark:bg-dark-300 overflow-hidden py-12">- <div className="container mx-auto px-20">+ <div className="container mx-auto sm:px-16 xl:px-20"><div className="mx-auto max-w-7xl"><SectionHeadertitle={'Build Faster'}diff --git a/www/components/MadeForDevelopers/CodeExamples.tsx b/www/components/MadeForDevelopers/CodeExamples.tsxindex 24781bacaf4..b410f39372b 100644--- a/www/components/MadeForDevelopers/CodeExamples.tsx+++ b/www/components/MadeForDevelopers/CodeExamples.tsx@@ -46,7 +46,7 @@ const CodeExamples = () => {<div className="col-span-12 text-center">{buttons}</div>- <div className="col-span-8 col-start-3">+ <div className="sm:col-span-12 xl:col-span-8 xl:col-start-3"><div className="rounded" style={{ background: '#474949' }}><div className="p-2 pl-5 flex justify-between items-center"><p className="text-base text-gray-400 text-white">diff --git a/www/components/MadeForDevelopers/index.tsx b/www/components/MadeForDevelopers/index.tsxindex 580952c73fe..085d531c0d7 100644--- a/www/components/MadeForDevelopers/index.tsx+++ b/www/components/MadeForDevelopers/index.tsx@@ -5,9 +5,9 @@ import CodeExamples from 'components/MadeForDevelopers/CodeExamples'const MadeForDevelopers = () => {return (<div className="py-16 bg-gray-50 dark:bg-dark-300 overflow-hidden lg:py-16">- <div className="container mx-auto px-20">+ <div className="container mx-auto sm:px-16 xl:px-20">- <SectionHeader className="text-center w-2/3 mx-auto" title={'Supafast easy-to-use APIs'} title_alt={' that do the hard work for you'} subtitle={'MADE FOR DEVELOPERS'} paragraph={'We inspect your database and provide APIs instantly so you can stop building repetitive CRUD endpoints and focus on your product.'} />+ <SectionHeader className="text-center sm:w-3/4 xl:w-2/3 mx-auto" title={'Supafast easy-to-use APIs'} title_alt={' that do the hard work for you'} subtitle={'MADE FOR DEVELOPERS'} paragraph={'We inspect your database and provide APIs instantly so you can stop building repetitive CRUD endpoints and focus on your product.'} /><div className="relative lg:grid lg:grid-cols-12 lg:gap-8 lg:items-center">diff --git a/www/components/Nav/FlyOut.tsx b/www/components/Nav/FlyOut.tsxindex b0b0f6b0c71..bd00a95c09b 100644--- a/www/components/Nav/FlyOut.tsx+++ b/www/components/Nav/FlyOut.tsx@@ -26,14 +26,13 @@ const FlyOut = () => {const content = (<div className="flex md:h-full lg:flex-col"><div className="flex-shrink-0">- <div className="inline-flex items-center justify-center h-10 w-10 rounded-md bg-gray-900 text-white sm:h-12 sm:w-12">- {/* <!-- Heroicon name: chart-bar --> */}+ <div className="inline-flex items-center justify-center h-10 w-10 rounded-md bg-gray-900 dark:bg-white text-white sm:h-12 sm:w-12"><svgclassName="h-6 w-6"xmlns="http://www.w3.org/2000/svg"fill="none"viewBox="0 0 24 24"- stroke="currentColor"+ stroke="black"aria-hidden="true"><path strokeLinecap="round" strokeLinejoin="round" strokeWidth="2" d={icon} />@@ -42,10 +41,12 @@ const FlyOut = () => {</div><div className="ml-4 md:flex-1 md:flex md:flex-col md:justify-between lg:ml-0 lg:mt-4"><div>- <p className="text-base font-medium text-gray-900">+ <p className="text-base font-medium text-gray-900 dark:text-white">{name} {label && <Badge>{label}</Badge>}</p>- <p className="mt-1 text-sm text-gray-500">{description}</p>+ <p className="mt-1 text-sm text-gray-500 dark:text-dark-100">+ {description}+ </p></div>{url && (<p className="mt-2 text-sm font-medium text-brand-600 lg:mt-4">@@ -59,7 +60,7 @@ const FlyOut = () => {<akey={name}href="#"- className="-m-3 p-3 flex flex-col justify-between rounded-lg hover:bg-gray-50 transition ease-in-out duration-150"+ className="-m-3 p-3 flex flex-col justify-between rounded-lg hover:bg-gray-50 dark:hover:bg-dark-600 transition ease-in-out duration-150">{content}</a>@@ -104,7 +105,7 @@ const FlyOut = () => {><><div- className="absolute inset-x-0 transform shadow-lg border-t-2 border-gray-50"+ className="absolute inset-x-0 transform shadow-lg border-t-2 border-gray-50 dark:border-dark-600"style={{zIndex: 999,position: 'absolute',@@ -116,26 +117,26 @@ const FlyOut = () => {}}><div className="absolute inset-0 flex" aria-hidden="true">- <div className="bg-white w-1/2"></div>- <div className="bg-gray-50 w-1/2"></div>+ <div className="bg-white dark:bg-dark-300 w-1/2"></div>+ <div className="bg-gray-50 dark:bg-dark-200 w-1/2"></div></div><div className="relative max-w-7xl mx-auto grid grid-cols-1 lg:grid-cols-2"><nav- className="grid gap-y-10 px-4 py-8 bg-white sm:grid-cols-2 sm:gap-x-8 sm:py-12 sm:px-6 lg:px-8 xl:pr-12"+ className="grid gap-y-10 px-4 py-8 sm:grid-cols-2 sm:gap-x-8 sm:py-12 sm:px-6 lg:px-8 xl:pr-12"aria-labelledby="solutionsHeading">{iconSections}</nav>- <div className="bg-gray-50 px-4 py-8 sm:py-12 sm:px-6 lg:px-8 xl:pl-12">+ <div className="px-4 py-8 sm:py-12 sm:px-6 lg:px-8 xl:pl-12"><div>- <h3 className="text-sm font-medium tracking-wide text-gray-500 uppercase">+ <h3 className="text-sm font-medium tracking-wide text-gray-500 dark:text-dark-100 uppercase">Latest news</h3><ul className="mt-6 space-y-6"><li className="flow-root"><ahref="#"- className="-m-3 p-3 flex rounded-lg hover:bg-gray-100 transition ease-in-out duration-150"+ className="-m-3 p-3 flex rounded-lg hover:bg-gray-100 dark:hover:bg-dark-600 transition ease-in-out duration-150"><div className="hidden sm:block flex-shrink-0"><img@@ -145,10 +146,10 @@ const FlyOut = () => {/></div><div className="min-w-0 flex-1 sm:ml-8">- <h4 className="text-base font-medium text-gray-900 truncate">+ <h4 className="text-base font-medium text-gray-900 dark:text-white truncate">Supabase launch news</h4>- <p className="mt-1 text-sm text-gray-500">+ <p className="mt-1 text-sm text-gray-500 dark:text-dark-100">Eget ullamcorper ac ut vulputate fames nec mattis pellentesqueelementum. Viverra tempor id mus.</p>@@ -158,7 +159,7 @@ const FlyOut = () => {<li className="flow-root"><ahref="#"- className="-m-3 p-3 flex rounded-lg hover:bg-gray-100 transition ease-in-out duration-150"+ className="-m-3 p-3 flex rounded-lg hover:bg-gray-100 dark:hover:bg-dark-600 transition ease-in-out duration-150"><div className="hidden sm:block flex-shrink-0"><img@@ -168,10 +169,10 @@ const FlyOut = () => {/></div><div className="min-w-0 flex-1 sm:ml-8">- <h4 className="text-base font-medium text-gray-900 truncate">+ <h4 className="text-base font-medium text-gray-900 dark:text-white truncate">New project example released</h4>- <p className="mt-1 text-sm text-gray-500">+ <p className="mt-1 text-sm text-gray-500 dark:text-dark-100">Eget ullamcorper ac ut vulputate fames nec mattis pellentesqueelementum. Viverra tempor id mus.</p>@@ -183,7 +184,7 @@ const FlyOut = () => {<div className="mt-6 text-sm font-medium"><ahref="#"- className="text-gray-600 hover:text-gray-500 transition ease-in-out duration-150"+ className="text-gray-600 hover:text-gray-500 dark:text-brand-600 dark:hover:text-brand-700 transition ease-in-out duration-150">View all posts <span aria-hidden="true">→</span></a>diff --git a/www/components/Nav/index.tsx b/www/components/Nav/index.tsxindex 833c47e2577..12d86db8fb3 100644--- a/www/components/Nav/index.tsx+++ b/www/components/Nav/index.tsx@@ -123,11 +123,11 @@ const Nav = () => {return (<nav className="bg-white dark:bg-dark-400 z-50 shadow-lg sticky">- <div className="container mx-auto relative flex justify-between h-16">+ <div className="container mx-auto relative flex justify-between h-16 lg:px-10 xl:px-16"><HamburgerButton toggleFlyOut={() => setOpen(true)} />- <div className="flex-1 flex items-center justify-center sm:items-stretch sm:justify-start">+ <div className="flex-1 flex items-center justify-center sm:px-10 sm:items-stretch sm:justify-start"><div className="flex-shrink-0 flex items-center">{/* Mobile - remove if not needed */}<img@@ -176,7 +176,7 @@ const Nav = () => {</a></div></div>- <div className="absolute inset-y-0 right-0 flex items-center pr-2 sm:static sm:inset-auto sm:ml-6 sm:pr-0"></div>+ {/* <div className="absolute inset-y-0 right-0 flex items-center pr-2 sm:static sm:inset-auto sm:ml-6 sm:pr-0"></div> */}</div><Transitiondiff --git a/www/components/hero.tsx b/www/components/hero.tsxindex dc77696a8e6..91b02dd2ac3 100644--- a/www/components/hero.tsx+++ b/www/components/hero.tsx@@ -3,8 +3,8 @@ import Button from 'components/button'const Hero = () => {return (- <div className="relative bg-dark-400 overflow-hidden px-16">- <div className="container mx-auto px-20">+ <div className="relative bg-dark-400 overflow-hidden">+ <div className="container mx-auto sm:px-16 xl:px-20"><div className="hidden sm:block sm:absolute sm:inset-0" aria-hidden="true"><svgclassName="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"@@ -35,7 +35,7 @@ const Hero = () => {<div className="lg:grid lg:grid-cols-12 lg:gap-8"><div className="sm:text-center md:max-w-2xl md:mx-auto lg:col-span-6 lg:text-left lg:flex lg:items-center">- <div>+ <div className="sm:w-3/4 mx-auto"><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="md:block">The Open Source</span><span className="text-brand-400 md:block">Firebase Alternative</span>@@ -53,7 +53,7 @@ const Hero = () => {backed by</p><div className="mt-5 w-full sm:mx-auto sm:max-w-lg lg:ml-0">- <div className="flex flex-wrap items-center">+ <div className="flex flex-wrap items-center sm:justify-center"><img className="h-9 sm:h-10 pr-10" src="images/logos/yc--grey.png" alt="Y Combinator" /><img className="relative -top-1 h-7 pr-10" src="images/logos/mozilla--grey.png" alt="Mozilla" /><img className="h-5 pr-10" src="images/logos/coatue.png" alt="Coatue" />diff --git a/www/data/Solutions.json b/www/data/Solutions.jsonindex 990d0bad8fb..3c1ede54e90 100644--- a/www/data/Solutions.json+++ b/www/data/Solutions.json@@ -10,7 +10,7 @@"authentication": {"name": "Authentication","icon" : "M15 7a2 2 0 012 2m4 0a6 6 0 01-7.743 5.743L11 17H9v2H7v2H4a1 1 0 01-1-1v-2.586a1 1 0 01.293-.707l5.964-5.964A6 6 0 1121 9z",- "description": "Manage your users easily, leverage on PostgreSQL’s Row Level Security, and even write policies which fit your unique needs.",+ "description": "Manage your users easily, leverage on PostgreSQL’s Row Level Security, and write policies which fit your unique needs.","description_short": "","label": "","url" : "https://supabase.io/docs"