Skip to content

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

2.2 KB
Raw Blame
import React, { FC } from 'react'
import { cn } from 'ui'
import { TextLink } from 'ui-patterns/TextLink'

import TalkToPartnershipTeamForm from '@/components/Forms/TalkToPartnershipTeamForm'
import SectionContainer from '@/components/Layouts/SectionContainer'

interface Props {}

const UseCases: FC<Props> = () => {
  return (
    <SectionContainer
      id="talk-to-partnerships-team"
      className="text grid gap-8 lg:gap-12 md:grid-cols-2 xl:pt-20 scroll-mt-20"
    >
      <div className="md:h-full w-full flex flex-col justify-between gap-4 lg:gap-8">
        <div className="flex flex-col gap-2 md:max-w-md">
          <h1 className="h1 m-0!">
            Talk to our
            <br className="hidden md:block" /> Partnerships team
          </h1>
          <p className="md:text-lg text-foreground-lighter">
            Explore custom pricing and infrastructure options.
          </p>
        </div>
        <PlatformConnectCallout className="hidden md:flex" />
        <OAuthConnectCallout className="hidden md:flex" />
      </div>
      <PlatformConnectCallout className="md:hidden" />
      <OAuthConnectCallout className="md:hidden" />
      <TalkToPartnershipTeamForm />
    </SectionContainer>
  )
}

const PlatformConnectCallout: FC<{ className?: string }> = ({ className }) => (
  <div className={cn('border rounded-lg p-4 md:p-6 bg-surface-75 flex flex-col gap-2', className)}>
    <h5>Supabase for Platforms</h5>
    <p className="text-foreground-lighter">
      White label Supabase backends for your platform or tools.
    </p>
    <TextLink url="/docs/guides/integrations/supabase-for-platforms" label="View docs" />
  </div>
)

const OAuthConnectCallout: FC<{ className?: string }> = ({ className }) => (
  <div className={cn('border rounded-lg p-4 md:p-6 bg-surface-75 flex flex-col gap-2', className)}>
    <h5>Connect your app to your user's Supabase org now</h5>
    <p className="text-foreground-lighter">
      Set up a Supabase OAuth app so you can start interacting with your user's Supabase project.
    </p>
    <TextLink
      url="https://supabase.com/docs/guides/integrations/build-a-supabase-integration"
      label="View docs"
    />
  </div>
)

export default UseCases