Skip to content

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

9.3 KB
Raw Blame
import DefaultLayout from '~/components/Layouts/Default'
import { NextSeo } from 'next-seo'
import { useTheme } from 'next-themes'
import dynamic from 'next/dynamic'
import Image from 'next/image'
import Link from 'next/link'
import { useRouter } from 'next/router'
import React from 'react'
import ReactMarkdown from 'react-markdown'
import { ExpandableVideo } from 'ui-patterns/ExpandableVideo'

import ImageGrid from '../components/ImageGrid'
import SectionContainer from '../components/Layouts/SectionContainer'
import { data as pageData } from '../data/ga'

const ParagraphSection = dynamic(() => import('~/components/Sections/ParagraphSection'))
const CTABanner = dynamic(() => import('~/components/CTABanner'))

export default function IndexPage() {
  const router = useRouter()
  const { resolvedTheme } = useTheme()
  const isDark = resolvedTheme?.includes('dark')
  const data = pageData(isDark!)

  const meta_title = 'General Availability | Supabase'
  const meta_description = 'Supabase is officially launching into General Availability.'
  const meta_image = '/images/ga/ga-og-alt.png'

  return (
    <DefaultLayout>
      <NextSeo
        title={meta_title}
        description={meta_description}
        openGraph={{
          title: meta_title,
          description: meta_description,
          url: `https://supabase.com/${router.pathname}`,
          images: [
            {
              url: meta_image,
            },
          ],
        }}
      />
      <div className="bg-alternative border-b border-muted">
        <SectionContainer className="flex flex-col gap-4 lg:gap-8 py-8 md:py-12 lg:py-16">
          <div className="w-full grid grid-cols-1 gap-4 lg:grid-cols-3">
            <div className="flex flex-col gap-4 lg:col-span-2">
              <Image
                src="/images/launchweek/ga/ga-black.svg"
                alt="GA logo"
                className="dark:hidden w-12 md:w-16 aspect-104/57 h-auto"
                priority
                quality={100}
                width={300}
                height={300}
              />
              <Image
                src="/images/launchweek/ga/ga-white.svg"
                alt="GA logo"
                className="hidden dark:block w-12 md:w-16 aspect-104/57 h-auto"
                priority
                quality={100}
                width={300}
                height={300}
              />
              <h1 className="lg:pt-4 text-3xl md:text-5xl xl:text-7xl lg:max-w-xl xl:max-w-7xl tracking-[-1.1px] text-foreground-light font-normal">
                We are moving to
                <br />
                <span className="text-foreground">General Availability</span>
              </h1>
              {data.hero?.publishedAt && (
                <span className="text-sm text-foreground-lighter font-mono md:text-base">
                  {data.hero.publishedAt}
                </span>
              )}
            </div>
            <div className="">
              <ExpandableVideo
                videoId="bRtdk8D4X8w"
                imgUrl="/images/launchweek/11/video-cover.jpg"
                imgOverlayText="Watch announcement"
                priority
              />
            </div>
          </div>
        </SectionContainer>
        <SectionContainer className="pt-2! lg:pt-8!">
          {data.highlightsSection.highlights && (
            <div
              className="flex-wrap md:flex-nowrap w-fit md:w-full md:flex md:items-start grid lg:grid-cols-4 gap-4 md:gap-10 lg:gap-20
            "
            >
              {data.highlightsSection.highlights.map(
                (highlight: { number: string; text: string }, i: number) => {
                  return (
                    <div key={i} className="">
                      <div className="border-t border-brand-500 w-[32px]"></div>
                      <h2 className="text-xl md:text-2xl lg:text-4xl pt-1.5 lg:pt-3 tracking-[-1.5px] font-mono">
                        {highlight.number}
                      </h2>
                      <div className="text-foreground-light text-sm lg:text-base lg:mt-3">
                        <ReactMarkdown>{highlight.text}</ReactMarkdown>
                      </div>
                    </div>
                  )
                }
              )}
            </div>
          )}
          <div className="w-full border-t mt-12 lg:mt-24 flex justify-start">
            <ol className="w-full max-w-4xl pt-8 gap-4 columns-2 lg:columns-3 text-foreground-light">
              {data.hero.sections.map((section, i) => (
                <li key={section.title}>
                  <Link
                    href={section.link}
                    className="p-1 inline-flex hover:text-foreground font-mono text-sm gap-4"
                  >
                    <span className="w-3 text-right">
                      {i < 9 && '0'}
                      {i + 1}
                    </span>
                    <span>{section.title}</span>
                  </Link>
                </li>
              ))}
            </ol>
          </div>
        </SectionContainer>
      </div>
      <ParagraphSection {...data.companySection} hasStickyTitle />
      <SectionContainer className="py-0! border-b" children={null} />
      <ParagraphSection {...data.openSourceSection} hasStickyTitle />
      <SectionContainer className="pt-0!">
        {data.communityStats.highlights && (
          <div
            className="grid grid-cols-2 md:grid md:grid-cols-3 lg:grid-cols-3 xl:grid-cols-5 gap-8 md:gap-10 lg:gap-20
            "
          >
            {data.communityStats.highlights.map(
              (
                highlight: { number: string; text: string; url: string; icon: React.ReactNode },
                i: number
              ) => {
                return (
                  <div key={i} className="">
                    <Link
                      href={highlight.url}
                      target="_blank"
                      className="text-foreground-muted hover:text-foreground transition-colors"
                    >
                      {highlight.icon}
                    </Link>
                    <div className="border-t border-brand-500 w-[32px] mb-1 mt-4"></div>
                    <h2 className="text-xl md:text-2xl lg:text-4xl pt-1.5 lg:pt-3 tracking-[-1.5px] font-mono">
                      {highlight.number}
                    </h2>
                    <div className="text-foreground-light text-sm lg:text-base lg:mt-3">
                      <ReactMarkdown>{highlight.text}</ReactMarkdown>
                    </div>
                  </div>
                )
              }
            )}
          </div>
        )}
      </SectionContainer>
      <SectionContainer className="py-0! border-b" children={null} />
      <ParagraphSection {...data.scaleSection} hasStickyTitle />
      <SectionContainer className="py-0! border-b" children={null} />
      <ParagraphSection {...data.enterpriseSection} hasStickyTitle className="pb-8! lg:pb-16!" />
      <SectionContainer className="pt-0! grid! grid-cols-1 lg:grid-cols-12 gap-4 md:gap-8 xl:gap-10">
        <div className="col-span-full lg:col-start-6 lg:col-span-7">
          <ImageGrid
            smCols={2}
            mdCols={4}
            lgCols={2}
            images={data.enterpriseSection.companies}
            removeFilter
            bg={false}
          />
        </div>
      </SectionContainer>
      <SectionContainer className="pt-0!">
        {data.enterpriseSection.highlights && (
          <div
            className="grid grid-cols-2 md:grid md:grid-cols-3 lg:grid-cols-3 xl:grid-cols-6 gap-8 md:gap-10 lg:gap-20
            "
          >
            {data.enterpriseSection.highlights.map(
              (highlight: { number?: string; text: string; icon: React.ReactNode }, i: number) => {
                return (
                  <div key={i} className="">
                    {highlight.icon}
                    <div className="border-t border-brand-500 w-[32px] mb-1 mt-4"></div>
                    {highlight.number && (
                      <h2 className="text-xl md:text-2xl lg:text-4xl pt-1.5 lg:pt-3 tracking-[-1.5px] font-mono">
                        {highlight.number}
                      </h2>
                    )}
                    <div className="text-foreground-light text-sm lg:text-base lg:mt-3">
                      <ReactMarkdown>{highlight.text}</ReactMarkdown>
                    </div>
                  </div>
                )
              }
            )}
          </div>
        )}
      </SectionContainer>
      <SectionContainer className="py-0! border-b" children={null} />
      <ParagraphSection {...data.integrationsSection} hasStickyTitle className="pb-8! lg:pb-16!" />
      <SectionContainer className="pt-0! grid! grid-cols-1 lg:grid-cols-12 gap-4 md:gap-8 xl:gap-10">
        <div className="col-span-full lg:col-start-6 lg:col-span-7">
          <ImageGrid
            smCols={3}
            mdCols={3}
            lgCols={3}
            images={data.integrationsSection.partners}
            removeFilter
            bg={false}
          />
        </div>
      </SectionContainer>
      <SectionContainer className="py-0! border-b" children={null} />
      <ParagraphSection {...data['whats-new']} hasStickyTitle />
      <SectionContainer className="py-0! border-b" children={null} />
      <ParagraphSection {...data['whats-next']} hasStickyTitle />
      <CTABanner />
    </DefaultLayout>
  )
}