The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.
TypeScript aialternativeauthdatabasedenoembeddingsexamplefirebasenextjsoauth2pgvectorpostgispostgrespostgresqlpostgrestrealtimesupabasevectorswebsockets
'use client'
import { useSendTelemetryEvent } from '~/lib/telemetry'
import { useIsLoggedIn } from 'common'
import Link from 'next/link'
import { Button } from 'ui'
import SectionContainer from '@/components/Layouts/SectionContainer'
import { getDashboardCtaHref } from '@/lib/dashboard-links'
export function Hero() {
const isLoggedIn = useIsLoggedIn()
const sendTelemetryEvent = useSendTelemetryEvent()
return (
<SectionContainer className="pt-12 pb-8 md:pt-40! md:pb-16">
<div className="flex flex-col gap-6 lg:gap-8">
<div className="grid grid-cols-1 lg:grid-cols-2 gap-4 items-end">
<h1 className="text-foreground text-4xl sm:text-5xl sm:leading-none">
<span className="block">Build in a weekend</span>
<span className="text-primary block">Scale to millions</span>
</h1>
<p className="text-foreground-lighter text-balance">
Start your project with a Postgres database. Add Authentication, Data APIs, Edge
Functions, Realtime Data, Storage, and Vector embeddings.
</p>
</div>
<div className="flex items-center gap-2">
<Button variant="primary" asChild size="medium">
<a
href={getDashboardCtaHref(isLoggedIn)}
onClick={() =>
sendTelemetryEvent({
action: 'start_project_button_clicked',
properties: { buttonLocation: 'Homepage Hero' },
})
}
>
Start your project
</a>
</Button>
<Button asChild size="medium">
<Link
href="/contact/sales"
onClick={() =>
sendTelemetryEvent({
action: 'request_demo_button_clicked',
properties: { buttonLocation: 'Homepage Hero' },
})
}
>
Request a demo
</Link>
</Button>
</div>
</div>
</SectionContainer>
)
}