The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.
TypeScript aialternativeauthdatabasedenoembeddingsexamplefirebasenextjsoauth2pgvectorpostgispostgrespostgresqlpostgrestrealtimesupabasevectorswebsockets
Partners page first draft
Francesco Sansalvadore9874877ba1a0
diff --git a/apps/www/components/Sections/ProductHeaderCentered.tsx b/apps/www/components/Sections/ProductHeaderCentered.tsxindex 4aedc75221b..0eac2984f91 100644--- a/apps/www/components/Sections/ProductHeaderCentered.tsx+++ b/apps/www/components/Sections/ProductHeaderCentered.tsx@@ -57,7 +57,7 @@ const ProductHeaderCentered = (props: Types) => () : null}</div><div className={[styles['appear-from-bottom']].join(' ')}>- <h1 className="h1 text-3xl md:text-4xl tracking-[-1px]" key={`h1`}>+ <h1 className="h1 text-3xl md:text-4xl xl:!text-5xl tracking-[-1px]" key={`h1`}>{props.h1}</h1><p className="p !text-scale-1000">{props.subheader}</p>@@ -65,7 +65,7 @@ const ProductHeaderCentered = (props: Types) => (<div className="flex flex-row md:flex-row pt-8 md:items-center">{props.cta && (<Link href={props.cta.link} as={props.cta.link}>- <a>+ <a tabIndex={-1}><Button size="medium" className="text-white">{props.cta.label ?? 'Start for free'}</Button>diff --git a/apps/www/data/Developers.ts b/apps/www/data/Developers.tsindex a459ec5260d..6740a91a5b7 100644--- a/apps/www/data/Developers.ts+++ b/apps/www/data/Developers.ts@@ -23,4 +23,16 @@ export const links = [url: '/open-source',icon: 'M10.7607 3.08859C15.7723 2.38592 20.0295 5.94789 20.8525 10.7642C21.5964 15.1122 19.4634 19.1692 15.8778 20.9967L14.0736 16.084C15.129 15.4346 15.8232 14.4223 16.0198 13.0819C16.3702 10.7219 14.7442 8.47426 12.3801 8.25648C10.2228 8.04047 8.33304 9.61601 7.99823 11.7702L7.99761 11.7743C7.73427 13.5096 8.47082 15.1847 9.92827 16.0841L8.12693 21C6.34571 20.1066 4.88125 18.6129 3.97963 16.7387L3.97879 16.7369C3.15872 15.0395 3.07406 13.7081 3.01524 12.783C3.01012 12.7024 3.0052 12.6249 3 12.5506C3.10941 7.30353 6.59243 3.6764 10.7607 3.08859Z',},+ {+ text: 'Partners',+ description: 'Become a Supabase Partner and enable new business opportunities.',+ url: '/partners',+ icon: 'M11.83 1.453v5.619m-2.809-2.81h5.62M1.338 1.454h5.62v5.619h-5.62V1.453Zm5.827 10.278a3.017 3.017 0 1 1-6.035 0 3.017 3.017 0 0 1 6.035 0ZM9.02 9.038h5.62v5.619H9.02V9.038Z',+ },+ {+ text: 'Integrations',+ description: 'Use your favorite tools with Supabase.',+ url: '/partners/integrations',+ icon: 'M11.83 1.453v5.619m-2.809-2.81h5.62M1.338 1.454h5.62v5.619h-5.62V1.453Zm5.827 10.278a3.017 3.017 0 1 1-6.035 0 3.017 3.017 0 0 1 6.035 0ZM9.02 9.038h5.62v5.619H9.02V9.038Z',+ },]diff --git a/apps/www/data/partners/index.tsx b/apps/www/data/partners/index.tsxnew file mode 100644index 00000000000..9773435f8f3--- /dev/null+++ b/apps/www/data/partners/index.tsx@@ -0,0 +1,41 @@+export default {+ metaTitle: 'Partner with Supabase',+ metaDescription: 'Become a Supabase Partner and enable new business opportunities.',+ heroSection: {+ // title: 'Partners',+ h1: <span className="heading-gradient">Partner with Supabase</span>,+ subheader: (+ <>+ {/* Grow your business with Supabase. Get the resources and technical support you need to build+ solutions that integrate with our services. */}+ Apply to the Partners program to list your integration <br className="hidden md:block" /> in+ our marketplace and grow your business.+ </>+ ),+ // image: '',+ cta: {+ label: 'Become a Partner',+ link: 'https://forms.supabase.com/partner',+ },+ },+ oAuthApp: {+ steps: [+ {+ title: 'Register App',+ text: 'An OAuth app first needs to be registered with Supabase',+ },+ {+ title: 'Add OAuth2 Support',+ text: 'Use the OAuth2 protocol to access a users organization or project',+ },+ {+ title: 'Receive Tokens',+ text: "You'll receive a new access and refresh token",+ },+ {+ title: 'Control Projects',+ text: 'Use Supabase REST API to control projects and other settings',+ },+ ],+ },+}diff --git a/apps/www/lib/redirects.js b/apps/www/lib/redirects.jsindex 642862ff73d..3bac4663636 100644--- a/apps/www/lib/redirects.js+++ b/apps/www/lib/redirects.js@@ -590,11 +590,6 @@ module.exports = [source: '/docs/guides/database/introduction',destination: '/docs/guides/database',},- {- permanent: false,- source: '/partners',- destination: '/partners/integrations',- },{permanent: false,source: '/learn-more',diff --git a/apps/www/pages/partners/index.tsx b/apps/www/pages/partners/index.tsxnew file mode 100644index 00000000000..7896fc2d732--- /dev/null+++ b/apps/www/pages/partners/index.tsx@@ -0,0 +1,250 @@+import React from 'react'+import { NextSeo } from 'next-seo'+import { useRouter } from 'next/router'++import DefaultLayout from '~/components/Layouts/Default'+import SectionContainer from '~/components/Layouts/SectionContainer'+import ProductHeaderCentered from '~/components/Sections/ProductHeaderCentered'++import pageData from '~/data/partners'+import {+ Badge,+ Button,+ IconArrowUpRight,+ IconAward,+ IconCode,+ IconCompass,+ IconDollarSign,+ IconFastForward,+ IconGlobe,+ IconRefreshCcw,+ TextLink,+} from 'ui'+import Link from 'next/link'++const featureBlocks = [+ {+ title: 'Technical support',+ description: 'Access technical support to back your integrations and customer projects.',+ highlightLines: '8',+ icon: <IconCompass strokeWidth={1.5} />,+ },+ {+ title: 'Awareness',+ description: 'Reach a fast growing community of users ready to use your tools.',+ highlightLines: '8',+ icon: <IconGlobe strokeWidth={1.5} />,+ },+ {+ title: 'Business Growth',+ description: 'Join forces with us to boost growth opportunities.',+ highlightLines: '8',+ icon: <IconDollarSign strokeWidth={1.5} />,+ },+ {+ title: 'Scaling',+ description: 'Invoke Edge Functions based on any event in your database',+ highlightLines: '8',+ icon: <IconAward strokeWidth={1.5} />,+ },+]++const Partners = () => {+ const router = useRouter()++ return (+ <>+ <NextSeo+ title={pageData.metaTitle}+ description={pageData.metaDescription}+ openGraph={{+ title: pageData.metaTitle,+ description: pageData.metaDescription,+ url: `https://supabase.com/partners`,+ images: [+ {+ url: `https://supabase.com${router.basePath}/images/og/integrations.png`, // TODO+ },+ ],+ }}+ />+ <DefaultLayout>+ <div className="bg-scale-300 dark:bg-scale-100">+ <SectionContainer>+ <ProductHeaderCentered {...pageData.heroSection} />+ </SectionContainer>+ <SectionContainer>+ <p className="text-scale-1000 text-xs sm:text-sm lg:text-base text-center pt-3">+ Featured apps or masonry of apps or slider here+ </p>+ </SectionContainer>+ </div>+ {/* <SectionContainer className="flex flex-col items-center gap-8"> */}+ <SectionContainer className="grid grid-cols-1 lg:grid-cols-5">+ <div className="col-span-1 lg:col-span-2">+ <h2 className="text-2xl sm:text-3xl xl:text-4xl tracking-[-.5px]">+ Explore our marketplace+ </h2>+ <p className="text-scale-1000 text-xs sm:text-sm lg:text-base py-3 sm:w-3/5 lg:max-w-sm">+ Discover how technology and consulting partners are already working with Supabase.+ </p>+ <TextLink+ url="https://supabase.com/docs/guides/platform/marketplace"+ label="Explore docs"+ />+ </div>+ <div className="col-span-1 lg:col-span-3 w-full max-w-4xl grid gap-8 rounded md:grid-cols-2">+ <div className="bg-scale-100 dark:bg-scale-300 group flex flex-col gap-4 rounded border px-8 py-6">+ <div className="bg-scale-300 dark:bg-scale-500 text-scale-1200 group-hover:text-brand-900 flex h-12 w-12 items-center justify-center rounded-md border transition-all group-hover:scale-105">+ <svg+ xmlns="http://www.w3.org/2000/svg"+ className="h-6 w-6"+ fill="none"+ viewBox="0 0 24 24"+ stroke="currentColor"+ strokeWidth="1"+ >+ <path+ strokeLinecap="round"+ strokeLinejoin="round"+ d="M21 13.255A23.931 23.931 0 0112 15c-3.183 0-6.22-.62-9-1.745M16 6V4a2 2 0 00-2-2h-4a2 2 0 00-2 2v2m4 6h.01M5 20h14a2 2 0 002-2V8a2 2 0 00-2-2H5a2 2 0 00-2 2v10a2 2 0 002 2z"+ />+ </svg>+ </div>++ <div>+ <h3 className="text-scale-1200 text-lg">Experts</h3>+ <p className="text-scale-900 text-sm">+ Find an expert to help build your next idea.+ </p>+ </div>+ </div>+ <div className="bg-scale-100 dark:bg-scale-300 group flex flex-col gap-4 rounded border px-8 py-6">+ <div className="bg-scale-300 dark:bg-scale-500 text-scale-1200 group-hover:text-brand-900 flex h-12 w-12 items-center justify-center rounded-md border transition-all group-hover:scale-105">+ <svg+ xmlns="http://www.w3.org/2000/svg"+ className="h-6 w-6"+ fill="none"+ viewBox="0 0 24 24"+ stroke="currentColor"+ stroke-width="1"+ >+ <path+ stroke-linecap="round"+ stroke-linejoin="round"+ d="M11 4a2 2 0 114 0v1a1 1 0 001 1h3a1 1 0 011 1v3a1 1 0 01-1 1h-1a2 2 0 100 4h1a1 1 0 011 1v3a1 1 0 01-1 1h-3a1 1 0 01-1-1v-1a2 2 0 10-4 0v1a1 1 0 01-1 1H7a1 1 0 01-1-1v-3a1 1 0 00-1-1H4a2 2 0 110-4h1a1 1 0 001-1V7a1 1 0 011-1h3a1 1 0 001-1V4z"+ />+ </svg>+ </div>++ <div>+ <h3 className="text-scale-1200 text-lg">Integrations</h3>+ <p className="text-scale-900 text-sm">Lorem</p>+ </div>+ </div>+ </div>+ </SectionContainer>+ <SectionContainer>+ <h2 className="text-2xl sm:text-3xl xl:text-4xl text-center tracking-[-.5px]">+ Partner benefits+ </h2>+ {/* <p className="text-scale-1000 text-xs sm:text-sm lg:text-base pt-3 sm:w-3/5 lg:max-w-sm">+ The Supabase Partner Program gives you exclusive benefits to scale your services.+ </p> */}+ <div className="grid mt-8 lg:mt-12 gap-8 rounded md:grid-cols-2 xl:grid-cols-4">+ {featureBlocks.map((item, i) => {+ return (+ <div+ className="bg-scale-100 dark:bg-scale-300 group flex flex-col gap-4 rounded border px-8 py-6"+ key={i}+ >+ <div className="bg-scale-300 dark:bg-scale-500 text-scale-1200 group-hover:text-brand-900 flex h-12 w-12 items-center justify-center rounded-md border transition-all group-hover:scale-105">+ {item.icon ? item.icon : <IconCode strokeWidth={2} />}+ </div>++ <div>+ <h3 className="text-scale-1200 text-lg">{item.title}</h3>+ <p className="text-scale-900 text-sm">{item.description}</p>+ </div>+ </div>+ )+ })}+ </div>+ </SectionContainer>+ <SectionContainer className="flex flex-col gap-8">+ <div className="flex flex-col lg:flex-row gap-8 xl:gap-10 justify-between">+ <div className="w-full lg:w-1/2 gap-2 flex flex-col items-start">+ <Badge>Beta</Badge>+ <h2 className="text-3xl xl:text-4xl mt-2 max-w-[280px] sm:max-w-xs xl:max-w-[360px] tracking-[-1px]">+ Publish an OAuth App+ </h2>+ <p className="text-scale-900 mb-4 max-w-sm">+ Supabase lets you build a third-party app that can control organizations or projects+ programmatically.+ </p>+ <Link href="https://supabase.com/docs/guides/platform/oauth-apps/publish-an-oauth-app">+ <a tabIndex={-1}>+ <Button type="default" size="small">+ Learn more+ </Button>+ </a>+ </Link>+ </div>+ <div className="relative w-full lg:w-1/2 min-h-[300px] border bg-scale-300 flex items-center justify-center aspect-video">+ diagram: - Use Supabase API to control the projects+ </div>+ </div>+ {/* <div className="w-full col-span-full flex gap-4 lg:gap-8 xl:gap-10">+ <div className="mt-16 md:ml-36 lg:flex lg:items-start lg:w-fit lg:mx-auto">+ {pageData.oAuthApp.steps.map((step: { title: string; text: string }, i: number) => {+ return (+ <div+ key={i + 1}+ className="flex lg:block items-start space-x-6 lg:space-x-0 lg:w-full"+ >+ <div className="lg:flex items-center">+ <h3 className="bg-brand-600 border-[1px] border-brand-800 text-brand-900 text-md text-center w-full max-w-[40px] px-2 py-1.5 rounded-md">+ {i + 1}+ </h3>+ <div+ className={[+ i === pageData.oAuthApp.steps.length - 1+ ? 'hidden'+ : 'h-[100px] w-[1px] sm:h-[100px] mx-auto lg:h-[1px] lg:w-full bg-brand-800 lg:pr-6',+ ].join('')}+ ></div>+ </div>+ <div className="lg:mt-6">+ <h2 className="sm:text-lg max-w-[75%] xl:max-w-none xl:w-11/12 lg:max-w-none">+ {step.title}+ </h2>+ <p className="text-scale-1100 text-xs sm:text-sm mt-1 md:w-3/4 lg:w-11/12">+ {step.text}+ </p>+ </div>+ </div>+ )+ })}+ </div>+ </div> */}+ </SectionContainer>+ <SectionContainer>+ <div className="flex flex-col text-center gap-4 py-8 items-center justify-center">+ <h2 className="heading-gradient text-2xl sm:text-3xl xl:text-4xl">+ Reach out to partner with Supabase+ </h2>+ <div className="w-full mt-4 flex items-center justify-center text-center gap-4">+ <Link href="https://forms.supabase.com/partner">+ <a tabIndex={-1}>+ <Button size="medium">Become a Partner</Button>+ </a>+ </Link>+ </div>+ </div>+ </SectionContainer>+ </DefaultLayout>+ </>+ )+}++export default Partnersdiff --git a/apps/www/pages/partners/integrations/index.tsx b/apps/www/pages/partners/integrations/index.tsxindex 2e878b0a792..dffe6ba897b 100644--- a/apps/www/pages/partners/integrations/index.tsx+++ b/apps/www/pages/partners/integrations/index.tsx@@ -94,7 +94,7 @@ function IntegrationPartnersPage(props: Props) {openGraph={{title: meta_title,description: meta_description,- url: `https://supabase.com/partners`,+ url: `https://supabase.com/partners/integrations`,images: [{url: `https://supabase.com${router.basePath}/images/og/integrations.png`, // TODO