The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.
TypeScript aialternativeauthdatabasedenoembeddingsexamplefirebasenextjsoauth2pgvectorpostgispostgrespostgresqlpostgrestrealtimesupabasevectorswebsockets
Couple of fixes from review earlier
Joshen Limef65f14f7300
diff --git a/www/components/CTABanner/index.tsx b/www/components/CTABanner/index.tsxindex d8d6cc5c7fd..b222cc38f33 100644--- a/www/components/CTABanner/index.tsx+++ b/www/components/CTABanner/index.tsx@@ -4,15 +4,16 @@ const CTABanner = () => {return (<div className="py-32 grid grid-cols-12 gap-4 items-center text-center bg-dark-700 px-16"><div className="col-span-12">- <h4 className="font-normal text-white lg:text-3xl">- <span className="block">Get started</span>+ <h4 className="flex flex-col sm:flex-row sm:justify-center font-normal text-white text-2xl lg:text-3xl">+ <span className="block">Get started.</span>+ <span className="block ml-2 text-dark-100">Build in a weekend, scale to millions.</span></h4>- <p className="font-normal mt-1 text-gray-500 dark:text-dark-100 lg:text-3xl">+ {/* <p className="font-normal mt-1 text-gray-500 dark:text-dark-100 lg:text-3xl">Build in a weekend, scale to millions.- </p>+ </p> */}</div><div className="col-span-12">- <Button text="Create a new project" url="#" />+ <Button text="Start your project" url="#" /></div></div>)diff --git a/www/components/Card.tsx b/www/components/Card.tsxindex bf807328ce2..d597027a880 100644--- a/www/components/Card.tsx+++ b/www/components/Card.tsx@@ -49,7 +49,7 @@ const Card = (props: Props) => {})return (- <a href={url} target="_blank" className="flex flex-col rounded-md shadow-lg overflow-hidden">+ <a href={url} target="_blank" className="flex flex-col rounded-md shadow-lg overflow-hidden relative transition transform hover:-translate-y-1"><div className="flex-shrink-0 dark:bg-dark-500"><imgclassName="h-64 w-full object-cover"diff --git a/www/components/CaseStudies/index.tsx b/www/components/CaseStudies/index.tsxindex 3c6affde4dd..ce38213e6aa 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-400 pb-20"><div className="absolute inset-0">- <div className="mx-auto bg-white dark:bg-dark-300 h-1/3 sm:h-3/5 xl:h-2/5 xl:w-full"></div>+ <div className="mx-auto bg-white dark:bg-dark-300 h-1/5 sm:h-3/5 xl:h-2/5 xl:w-full"></div></div><div className="container relative mx-auto px-8 sm:px-16 xl:px-20 lg:py-8"><div className="relative max-w-7xl mx-auto">diff --git a/www/components/Features/index.tsx b/www/components/Features/index.tsxindex 2af1bf8eb1b..d3a3fc111a9 100644--- a/www/components/Features/index.tsx+++ b/www/components/Features/index.tsx@@ -46,7 +46,7 @@ const Features = () => {<div className="relative pb-12 col-span-12"><div className="relative lg:grid lg:grid-cols-12 lg:gap-x-8"><div className="relative col-span-12 lg:grid lg:grid-cols-2 lg:gap-x-8">- <dl className="space-y-10 sm:space-y-0 sm:grid sm:grid-cols-2 sm:gap-x-8 sm:gap-y-10 lg:gap-x-4 lg:mt-0 lg:col-span-2 xl:grid-cols-4">+ <dl className="space-y-10 sm:space-y-0 sm:grid sm:grid-cols-2 sm:gap-x-8 sm:gap-y-10 lg:gap-x-4 lg:mt-0 lg:col-span-2 xl:grid-cols-4 xl:gap-x-12">{IconSections}</dl></div>diff --git a/www/components/Footer/index.tsx b/www/components/Footer/index.tsxindex 619f45a8110..82931a7c967 100644--- a/www/components/Footer/index.tsx+++ b/www/components/Footer/index.tsx@@ -63,7 +63,7 @@ const Footer = (props: Props) => {return (<footer className="bg-white dark:bg-dark-500" aria-labelledby="footerHeading"><h2 id="footerHeading" className="sr-only">Footer</h2>- <div className="max-w-7xl mx-auto py-12 px-4 sm:px-6 lg:py-16 lg:px-8">+ <div className="max-w-7xl mx-auto py-12 px-8 lg:py-16 lg:px-8"><div className="xl:grid xl:grid-cols-3 xl:gap-8"><div className="space-y-8 xl:col-span-1"><img className="h-10 w-auto" src={darkMode ? "images/logo-dark.png" : "images/logo-light.png"} alt="Supabase" />diff --git a/www/components/MadeForDevelopers/CodeExamples.tsx b/www/components/MadeForDevelopers/CodeExamples.tsxindex ef999d6a6c6..7378ea8d05e 100644--- a/www/components/MadeForDevelopers/CodeExamples.tsx+++ b/www/components/MadeForDevelopers/CodeExamples.tsx@@ -27,10 +27,10 @@ const CodeExamples = () => {key={id + "-button"}onClick={() => handleClick(id)}className={`- m-1 mb-4 rounded-md border border-gray-200 dark:border-dark-200 px-4 py-2 text-base font-medium text-gray transition- focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-transparent sm:w-auto sm:text-sm+ m-1 mb-4 rounded-md border border-gray-200 dark:border-dark-200 px-4 py-2 text-xs font-medium text-gray transition+ focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-transparent sm:text-sm sm:w-auto${example === id ? ' border-gray-900 bg-dark-600 dark:bg-white text-white dark:text-dark-600' : ' hover:bg-gray-200 dark:hover:text-black'}- dark:text-white xl:w-52+ dark:text-white lg:w-full`}>{@@ -42,12 +42,12 @@ const CodeExamples = () => {})return (- <div className="grid grid-cols-12 gap-2">- <div className="col-span-12 text-center xl:col-span-3">+ <div className="grid grid-cols-12 gap-2 xl:gap-8">+ <div className="col-span-12 text-center lg:col-span-3 lg:hidden">{buttons}</div>- <div className="col-span-12 xl:col-span-9">- <div className="rounded" style={{ background: '#474949' }}>+ <div className="col-span-12 lg:col-span-9">+ <div className="rounded-md rounded-b-lg" style={{ background: '#474949' }}><div className="p-2 pl-5 flex justify-between items-center"><p className="text-base text-dark-100">{@@ -104,6 +104,9 @@ const CodeExamples = () => {</SyntaxHighlighter></div></div>+ <div className="col-span-12 text-center hidden lg:col-span-3 lg:block">+ {buttons}+ </div></div>)}diff --git a/www/components/MadeForDevelopers/index.tsx b/www/components/MadeForDevelopers/index.tsxindex 1dd58129cba..7e0ce67701b 100644--- a/www/components/MadeForDevelopers/index.tsx+++ b/www/components/MadeForDevelopers/index.tsx@@ -8,17 +8,26 @@ const MadeForDevelopers = () => {<div className="py-16 bg-gray-50 dark:bg-dark-400 overflow-hidden lg:py-16"><div className="container mx-auto px-8 sm:px-16 xl:px-20">- <SectionHeader className="text-center 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="grid grid-cols-12">+ <div className="col-span-12 lg:col-span-9 xl:col-span-7">+ <SectionHeader+ 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>+ </div><div className="relative grid grid-cols-12 gap-1 sm:gap-8 lg:items-center">- <div className="mt-2 col-span-12 sm:col-span-10 sm:col-start-2">+ <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-start-1 col-span-12 sm:gap-4 md:col-span-12 lg:gap-8 lg:space-y-0 lg:col-start-2 lg:col-span-10 xl:col-start-3 xl:col-span-8">- <div className="col-span-12 mb-6 sm:mb-0 sm:col-span-6 sm:border-r-2 sm:border-gray-200 sm:pr-4 md:pr-6 dark:border-dark-200">+ <dl className="mt-12 grid-cols-12 grid col-span-12 sm:gap-4 md:col-span-12 lg:gap-8 lg:space-y-0 lg:col-span-10 xl:col-span-8">+ <div className="col-span-12 mb-10 sm:mb-0 sm:col-span-6 sm:border-r-2 sm:border-gray-200 sm:pr-4 md:pr-6 dark:border-dark-200"><div className="lg:mt-5"><dt className="text-lg leading-6 font-medium text-gray-900 dark:text-white">TypeScript supportdiff --git a/www/components/Nav/FlyOut.tsx b/www/components/Nav/FlyOut.tsxindex 00cf8287e48..86df0ea9d33 100644--- a/www/components/Nav/FlyOut.tsx+++ b/www/components/Nav/FlyOut.tsx@@ -74,7 +74,7 @@ const FlyOut = () => {<><ahref="#"- className="inline-flex items-center px-1 pt-1 border-b-2 border-transparent text-sm font-medium text-gray-500 hover:text-gray-700 hover:border-gray-300 dark:text-dark-100 dark:hover:border-dark-100"+ className="inline-flex items-center px-1 border-b-2 border-transparent text-sm font-medium text-gray-500 hover:text-gray-700 hover:border-gray-300 dark:text-dark-100 dark:hover:border-dark-100"onClick={() => handleToggle()}><span>Product</span>diff --git a/www/components/Nav/index.tsx b/www/components/Nav/index.tsxindex 9cf3df22ee1..d35f70da9d8 100644--- a/www/components/Nav/index.tsx+++ b/www/components/Nav/index.tsx@@ -151,7 +151,7 @@ const Nav = (props: Props) => {<ahref="#"className={`- inline-flex items-center px-1 pt-1 border-b-2 border-transparent text-sm font-medium+ inline-flex items-center px-1 border-b-2 border-transparent text-sm font-mediumtext-gray-500 hover:text-gray-700 hover:border-gray-500dark:text-dark-100 dark:hover:border-dark-100`}@@ -161,7 +161,7 @@ const Nav = (props: Props) => {<ahref="#"className={`- inline-flex items-center px-1 pt-1 border-b-2 border-transparent text-sm font-medium+ inline-flex items-center px-1 border-b-2 border-transparent text-sm font-mediumtext-gray-500 hover:text-gray-700 hover:border-gray-500dark:text-dark-100 dark:hover:border-dark-100`}@@ -171,7 +171,7 @@ const Nav = (props: Props) => {<ahref="#"className={`- inline-flex items-center px-1 pt-1 border-b-2 border-transparent text-sm font-medium+ inline-flex items-center px-1 border-b-2 border-transparent text-sm font-mediumtext-gray-500 hover:text-gray-700 hover:border-gray-500dark:text-dark-100 dark:hover:border-dark-100`}@@ -188,12 +188,12 @@ const Nav = (props: Props) => {rounded-md px-3 py-1 mr-5 bg-brand-600 text-white hover:bg-brand-700 hidden lg:block`}>- Start a project+ Start your project</a><ahref="#"className={`- inline-flex items-center px-1 pt-1 border-b-2 border-transparent text-sm font-medium+ inline-flex items-center px-1 border-b-2 border-transparent text-sm font-mediumtext-gray-500 hover:text-gray-700 hover:border-gray-500 hidden lg:blockdark:text-dark-100 dark:hover:border-dark-100`}diff --git a/www/components/UI/SectionHeader.tsx b/www/components/UI/SectionHeader.tsxindex e1416e463da..cdd1e88b623 100644--- a/www/components/UI/SectionHeader.tsx+++ b/www/components/UI/SectionHeader.tsx@@ -1,6 +1,6 @@const SectionHeader = (props :any) => {return (- <div className={"grid grid-cols-12 gap-8 " + props.className}>+ <div className={"grid grid-cols-12 gap-1 sm:gap-8 " + props.className}><div className="relative py-12 col-span-12"><span className="block mb-6 text-sm tracking-widest uppercase text-gray-400 font-mono">{props.subtitle}diff --git a/www/data/ProjectExamples.json b/www/data/ProjectExamples.jsonindex 593d04321d8..e901fa4f75b 100644--- a/www/data/ProjectExamples.json+++ b/www/data/ProjectExamples.json@@ -18,7 +18,7 @@"imgAlt": "stripe icon"}],- "ctaText" : "View Project"+ "ctaText" : "View project"},{"imgUrl": "images/slack-clone.jpg",@@ -35,7 +35,7 @@"imgAlt": "vercel icon"}],- "ctaText" : "View Project"+ "ctaText" : "View project"},{"imgUrl": "images/to-do-app.jpg",@@ -52,6 +52,6 @@"imgAlt": "vercel icon"}],- "ctaText" : "View Project"+ "ctaText" : "View project"}]