The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.
TypeScript aialternativeauthdatabasedenoembeddingsexamplefirebasenextjsoauth2pgvectorpostgispostgrespostgresqlpostgrestrealtimesupabasevectorswebsockets
feat(www): add multigres alpha form to /database (#51298)
Pamela Chia81da60392e81
diff --git a/apps/www/app/(products)/database/_components/DatabaseContent.tsx b/apps/www/app/(products)/database/_components/DatabaseContent.tsxindex ec3c7ce58cd..dfd27b5ce4c 100644--- a/apps/www/app/(products)/database/_components/DatabaseContent.tsx+++ b/apps/www/app/(products)/database/_components/DatabaseContent.tsx@@ -1,6 +1,7 @@import { FeaturesSection } from './FeaturesSection'import { Hero } from './Hero'import { HighlightsSection } from './HighlightsSection'+import { MultigresAlphaSection } from './MultigresAlphaSection'import { QuoteSection } from './QuoteSection'import { SqlEditorSection } from './SqlEditorSection'import { TableEditorSection } from './TableEditorSection'@@ -40,6 +41,13 @@ export function DatabaseContent({ apiSlot }: { apiSlot: React.ReactNode }) {><BuiltWithSupabaseSection /></section>+ <section+ id="multigres"+ className="border-t border-border"+ aria-label="Multigres private alpha"+ >+ <MultigresAlphaSection />+ </section><section id="get-started" className="border-t border-border" aria-label="Get started"><CTASection /></section>diff --git a/apps/www/app/(products)/database/_components/MultigresAlphaSection.tsx b/apps/www/app/(products)/database/_components/MultigresAlphaSection.tsxnew file mode 100644index 00000000000..c14ae8326eb--- /dev/null+++ b/apps/www/app/(products)/database/_components/MultigresAlphaSection.tsx@@ -0,0 +1,53 @@+import SectionContainerWithCn from '~/components/Layouts/SectionContainerWithCn'+import { MarketingForm } from 'marketing/forms'+import { Button } from 'ui'++import { getGoPageBySlug } from '@/lib/go'++const GO_PAGE_SLUG = 'multigres-early-access'+const FORM_ID = 'form'++function getMultigresAlphaPage() {+ const page = getGoPageBySlug(GO_PAGE_SLUG)+ const form = page?.sections?.find((section) => section.id === FORM_ID)+ if (!page || form?.type !== 'form') {+ throw new Error(`Go page form "${GO_PAGE_SLUG}#${FORM_ID}" not found`)+ }++ return { hero: page.hero, form }+}++export function MultigresAlphaSection() {+ const { hero, form } = getMultigresAlphaPage()++ return (+ <SectionContainerWithCn>+ <div className="grid grid-cols-1 lg:grid-cols-2 gap-8 lg:gap-16">+ <div className="flex flex-col gap-4">+ <h3 className="text-2xl md:text-4xl text-foreground-lighter">+ {hero.subtitle}+ <br />+ <span className="text-foreground">{hero.title}</span>+ </h3>+ <p className="text-foreground-light">{hero.description}</p>+ <p className="text-foreground-lighter text-sm">{form.description}</p>+ <div>+ <Button size="small" asChild>+ <a href="https://multigres.com" target="_blank" rel="noreferrer">+ Learn about Multigres+ </a>+ </Button>+ </div>+ </div>+ <MarketingForm+ fields={form.fields}+ submitLabel={form.submitLabel}+ disclaimer={form.disclaimer}+ successMessage={form.successMessage}+ successRedirect={form.successRedirect}+ formRef={{ slug: GO_PAGE_SLUG, formId: FORM_ID }}+ />+ </div>+ </SectionContainerWithCn>+ )+}