Skip to content

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

3.9 KB
Raw Blame
import { ArrowDownIcon } from '@heroicons/react/outline'
import CTABanner from '~/components/CTABanner'
import DefaultLayout from '~/components/Layouts/Default'
import { MarkdownActions } from '~/components/MarkdownActions'
import PricingAddons from '~/components/Pricing/PricingAddons'
import PricingComputeSection from '~/components/Pricing/PricingComputeSection'
import PricingDiskSection from '~/components/Pricing/PricingDiskSection'
import PricingFAQs from '~/components/Pricing/PricingFAQs'
import { ArrowUpRight } from 'lucide-react'
import { Button } from 'ui'
import { InfoTooltip } from 'ui-patterns/info-tooltip'

import HashAnchorScroll from './HashAnchorScroll'
import PricingComparisonSection from './PricingComparisonSection'
import PricingPlansSection from './PricingPlansSection'

export default function PricingContent() {
  return (
    <DefaultLayout>
      <HashAnchorScroll />
      <div className="relative z-10 pt-8 pb-4 xl:py-16">
        <div className="mx-auto max-w-7xl px-8 text-center sm:px-6 lg:px-8">
          <div className="mx-auto max-w-3xl space-y-2 lg:max-w-none">
            <h1 className="h1">
              Predictable pricing,
              <br className="block lg:hidden" /> designed to scale
            </h1>
            <p className="p text-lg leading-5">
              Start building for free, collaborate with your team, then scale to millions of users
            </p>
            <MarkdownActions
              orientation="horizontal"
              className="justify-center pt-4"
              pagePath="/pricing"
              pageType="pricing"
            />
          </div>
        </div>
      </div>

      <PricingPlansSection />

      <div className="text-center mt-10 xl:mt-16 mx-auto max-w-lg flex flex-col gap-8">
        <div className="flex justify-center gap-2">
          <a href="#compare-plans">
            <Button size="tiny" variant="secondary" iconRight={<ArrowDownIcon className="w-3" />}>
              Compare Plans
            </Button>
          </a>
          <Button size="tiny" asChild iconRight={<ArrowUpRight className="w-4" />}>
            <a
              href="/docs/guides/platform/billing-on-supabase#organization-based-billing"
              target="_blank"
            >
              Learn how billing works
            </a>
          </Button>
        </div>
      </div>

      <div
        id="addon-compute"
        className="container relative mx-auto px-4 lg:px-12 pt-16 md:pt-24 lg:pt-32 lg:pb-16"
      >
        <div className="text-center mb-8 lg:mb-16">
          <h2 className="text-foreground text-3xl" id="how-compute-pricing-works">
            How compute pricing works
          </h2>
          <p className="text-foreground-light mt-4 text-lg mb-4">
            Choose a plan, add projects, and see your total cost
          </p>
          <div className="flex items-center justify-center gap-1">
            <span className="py-1 px-3 bg-surface-100 flex items-center gap-1 border rounded-full text-xs text-foreground-lighter">
              What is &ldquo;compute&rdquo;?
              <InfoTooltip side="bottom" className="max-w-[280px]" label="About compute">
                Think of compute as the computer your database runs on. As your app grows, you scale
                CPU and memory to handle more traffic and data.
              </InfoTooltip>
            </span>
          </div>
        </div>

        <PricingComputeSection />
      </div>

      <div
        id="disk"
        className="container relative mx-auto px-4 lg:px-12 pt-16 md:pt-24 lg:pt-32 lg:pb-16"
      >
        <PricingDiskSection />
      </div>

      <div id="addons" className="sm:py-18 container relative mx-auto px-4 py-16 md:py-24 lg:px-12">
        <PricingAddons />
      </div>

      <PricingComparisonSection />

      <div id="faq" className="border-t">
        <PricingFAQs />
      </div>
      <CTABanner />
    </DefaultLayout>
  )
}