The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.
TypeScript aialternativeauthdatabasedenoembeddingsexamplefirebasenextjsoauth2pgvectorpostgispostgrespostgresqlpostgrestrealtimesupabasevectorswebsockets
Chore/state of startups (#38733)
Jonathan Summers-Muir0c202628a3aa
diff --git a/apps/www/components/SurveyResults/DecorativeProgressBar.tsx b/apps/www/components/SurveyResults/DecorativeProgressBar.tsxindex ef691aaa401..c228c689c18 100644--- a/apps/www/components/SurveyResults/DecorativeProgressBar.tsx+++ b/apps/www/components/SurveyResults/DecorativeProgressBar.tsx@@ -1,3 +1,48 @@+interface ProgressBarProps {+ className?: string+ backgroundClassName?: string+ foregroundClassName?: string+ animationDelay: string+ reverse?: boolean+}++export function ProgressBar({+ className = 'h-4',+ backgroundClassName = 'bg-foreground-muted/80',+ foregroundClassName = 'bg-brand',+ animationDelay,+ reverse = false,+}: ProgressBarProps) {+ return (+ <div className={`relative ${className}`}>+ {/* Background bar (static) */}+ <div+ className={`h-full w-full ${backgroundClassName}`}+ style={{+ maskImage: 'url("/images/state-of-startups/pattern-stipple.svg")',+ maskSize: '4px',+ maskRepeat: 'repeat',+ maskPosition: 'center',+ }}+ />++ {/* Animated foreground bar */}+ <div+ className={`absolute inset-0 h-full w-full ${foregroundClassName}`}+ style={{+ maskImage: 'url("/images/state-of-startups/pattern-checker.svg")',+ maskSize: '4px',+ maskRepeat: 'repeat',+ maskPosition: 'top left',+ clipPath: 'inset(0 100% 0 0)',+ animation: `terminalLine 10s steps(8, end) ${animationDelay} infinite ${reverse ? 'reverse' : ''}`,+ animationFillMode: 'both',+ }}+ />+ </div>+ )+}+interface DecorativeProgressBarProps {/** Whether to reverse the animation direction */reverse?: boolean@@ -40,30 +85,14 @@ export function DecorativeProgressBar({}}>{progressBars.map((bar, index) => (- <div key={`progress-bar-${index}`} className="relative">- {/* Background bar (static) */}- <div- className={`${bar.height} w-full ${bar.bgColor}`}- style={{- maskImage: 'url("/images/state-of-startups/pattern-stipple.svg")',- maskSize: '4px',- maskRepeat: 'repeat',- maskPosition: 'center',- }}- />-- {/* Animated foreground bar */}- <div- className={`absolute inset-0 ${bar.height} w-full ${bar.fgColor}`}- style={{- maskImage: 'url("/images/state-of-startups/pattern-checker.svg")',- maskSize: '4px',- maskRepeat: 'repeat',- maskPosition: 'top left',- animation: `terminalLine 10s steps(8, end) ${bar.animationDelay} infinite ${reverse ? 'reverse' : ''}`,- }}- />- </div>+ <ProgressBar+ key={`progress-bar-${index}`}+ className={bar.height}+ backgroundClassName={bar.bgColor}+ foregroundClassName={bar.fgColor}+ animationDelay={bar.animationDelay}+ reverse={reverse}+ />))}</div>)diff --git a/apps/www/components/SurveyResults/StateOfStartupsHeader.tsx b/apps/www/components/SurveyResults/StateOfStartupsHeader.tsxnew file mode 100644index 00000000000..197802c447d--- /dev/null+++ b/apps/www/components/SurveyResults/StateOfStartupsHeader.tsx@@ -0,0 +1,136 @@+import { useMemo } from 'react'+import { ProgressBar } from './DecorativeProgressBar'++interface StateOfStartupsHeaderProps {+ showProgressBars?: boolean+}++const DiagonalStripes = () => (+ <div+ className="flex-grow"+ style={{+ backgroundImage: `repeating-linear-gradient(+ 45deg,+ hsl(var(--border-muted)) 0px,+ hsl(var(--border-muted)) 1px,+ transparent 1px,+ transparent 8px+ )`,+ }}+ />+)++const HeaderProgressBar = ({+ delay = 0,+ progressBgColor = 'bg-foreground-muted/80',+ progressFgColor,+}: {+ delay?: number+ progressBgColor?: string+ progressFgColor?: string+}) => (+ <div className="flex-grow">+ <ProgressBar+ className="h-full"+ backgroundClassName={progressBgColor}+ foregroundClassName={progressFgColor}+ animationDelay={`${delay}s`}+ />+ </div>+)++interface TextBlockProps {+ text: string+ bgColor: string+ textColor: string+ showProgressBar?: boolean+}++const TextBlock = ({+ text,+ bgColor,+ textColor,+ showProgressBar = true,+ delay = 0,+ progressBgColor,+ progressFgColor,+}: TextBlockProps & { delay?: number; progressBgColor?: string; progressFgColor?: string }) => (+ <div className="flex w-full items-stretch">+ <div className={`inline-block ${bgColor}`}>+ <span+ className={`${textColor} text-[2rem] md:text-[4rem] px-2.5 md:px-8 py-1.5 md:py-3 inline-block leading-none tracking-tight`}+ // style={{ fontFamily: SUISSE_FONT_FAMILY }}+ >+ {text}+ </span>+ </div>+ {showProgressBar ? (+ <HeaderProgressBar+ delay={delay}+ progressBgColor={progressBgColor}+ progressFgColor={progressFgColor}+ />+ ) : (+ <DiagonalStripes />+ )}+ </div>+)++export function StateOfStartupsHeader({ showProgressBars = true }: StateOfStartupsHeaderProps) {+ // Generate stable random delays between 0.2 and 2 seconds for each TextBlock+ const randomDelays = useMemo(+ () => [+ 0.2 + Math.random() * 1.8,+ 0.2 + Math.random() * 1.8,+ 0.2 + Math.random() * 1.8,+ 0.2 + Math.random() * 1.8,+ ],+ []+ )++ return (+ <header className="mt-16 md:mt-32">+ <div className="max-w-[60rem] ml-8 md:mx-auto">+ <div className="flex flex-col gap-0.5 md:gap-1">+ <h1 className="sr-only">State of Startups 2025</h1>+ <TextBlock+ text="State"+ bgColor="bg-brand-300"+ textColor="text-brand"+ showProgressBar={showProgressBars}+ delay={randomDelays[0]}+ progressBgColor="bg-surface-400 dark:bg-surface-300"+ progressFgColor="bg-brand-300"+ />+ <TextBlock+ text="of"+ bgColor="bg-brand-300"+ textColor="text-brand"+ showProgressBar={showProgressBars}+ delay={randomDelays[1]}+ progressBgColor="bg-surface-400 dark:bg-surface-300"+ progressFgColor="bg-brand-300"+ />+ <TextBlock+ text="Startups"+ bgColor="bg-brand"+ textColor="text-background dark:text-brand-200"+ showProgressBar={showProgressBars}+ delay={randomDelays[2]}+ progressBgColor="bg-surface-400 dark:bg-surface-300"+ progressFgColor="bg-brand dark:bg-brand"+ />+ <TextBlock+ text="2025"+ bgColor="bg-brand-500"+ textColor="text-brand-300"+ showProgressBar={showProgressBars}+ delay={randomDelays[3]}+ progressBgColor="bg-surface-400 dark:bg-surface-300"+ progressFgColor="bg-brand-500"+ />+ </div>+ </div>+ </header>+ )+}diff --git a/apps/www/pages/state-of-startups.tsx b/apps/www/pages/state-of-startups.tsxindex 81b9e022105..384616d7483 100644--- a/apps/www/pages/state-of-startups.tsx+++ b/apps/www/pages/state-of-startups.tsx@@ -13,6 +13,7 @@ import { DecorativeProgressBar } from '~/components/SurveyResults/DecorativeProgimport { SurveyChapter } from '~/components/SurveyResults/SurveyChapter'import { SurveyChapterSection } from '~/components/SurveyResults/SurveyChapterSection'import { SurveySectionBreak } from '~/components/SurveyResults/SurveySectionBreak'+import { StateOfStartupsHeader } from '~/components/SurveyResults/StateOfStartupsHeader'import { useSendTelemetryEvent } from '~/lib/telemetry'@@ -206,66 +207,32 @@ function StateOfStartupsPage() {<FloatingTableOfContents />{/* Intro section */}<section ref={heroRef} className="w-full">- {/* Text contents */}- <header className="w-full flex flex-col md:flex-col">- <div className="flex flex-col md:flex-row">- {/* Intro area */}- <div- style={- {- '--left-width': 'calc((50% - 60rem / 2) + (60rem * 1/3))',- } as React.CSSProperties- }- className="md:border-r border-muted border-opacity-50 md:text-right flex-1 md:max-w-[var(--left-width)]"- >- <DecorativeProgressBar />-- <p className="text-brand-link text-sm font-mono uppercase px-8 pt-12 text-balance">- Supabase presents the 2025- </p>- </div>-- {/* Headline area */}- <div- className="px-8 pt-10 pb-16 md:pt-36 md:pb-28 flex-1"- style={{- background: `radial-gradient(ellipse at -35% 215%, hsl(var(--brand-400)), transparent 70%)`,- }}- >- <h1 className="text-7xl sm:text-8xl lg:text-9xl tracking-tight">- State of- <br /> Startups- </h1>- </div>+ <StateOfStartupsHeader />+ <SurveySectionBreak className="hidden md:block" />+ <div className="grid grid-cols-1 md:grid-cols-3 max-w-[60rem] mx-auto md:border-x border-muted">+ {/* Intro text */}+ <div className="md:col-span-2 flex flex-col gap-4 px-8 py-10 border-b md:border-b-0 md:border-r border-muted text-foreground text-xl md:text-2xl text-balance">+ <p>{pageData.heroSection.subheader}</p>+ <p>{pageData.heroSection.cta}</p></div>- <SurveySectionBreak className="hidden md:block" />-- <div className="grid grid-cols-1 md:grid-cols-3 max-w-[60rem] mx-auto md:border-x border-muted">- {/* Intro text */}- <div className="md:col-span-2 flex flex-col gap-4 px-8 py-10 border-b md:border-b-0 md:border-r border-muted text-foreground text-xl md:text-2xl text-balance">- <p>{pageData.heroSection.subheader}</p>- <p>{pageData.heroSection.cta}</p>- </div>-- {/* Table of contents */}- <ol className="flex flex-col py-5">- {pageData.pageChapters.map((chapter, chapterIndex) => (- <li key={chapterIndex + 1}>- <Link- href={`#chapter-${chapterIndex + 1}`}- className="group flex flex-row gap-5 py-3 pl-7 pr-8 font-mono uppercase tracking-wide text-sm transition-all text-foreground-light hover:text-brand-link hover:bg-brand-300/25"- >- <span className="text-xs rounded-full bg-surface-75 border border-surface-200 group-hover:border-brand-500/40 w-5 h-5 flex items-center justify-center group-hover:bg-brand-600/5">- {chapterIndex + 1}- </span>{' '}- {chapter.shortTitle}- </Link>- </li>- ))}- </ol>- </div>- </header>+ {/* Table of contents */}+ <ol className="flex flex-col py-5">+ {pageData.pageChapters.map((chapter, chapterIndex) => (+ <li key={chapterIndex + 1}>+ <Link+ href={`#chapter-${chapterIndex + 1}`}+ className="group flex flex-row gap-5 py-3 pl-7 pr-8 font-mono uppercase tracking-wide text-sm transition-all text-foreground-light hover:text-brand-link hover:bg-brand-300/25"+ >+ <span className="text-xs rounded-full bg-surface-75 border border-surface-200 group-hover:border-brand-500/40 w-5 h-5 flex items-center justify-center group-hover:bg-brand-600/5">+ {chapterIndex + 1}+ </span>{' '}+ {chapter.shortTitle}+ </Link>+ </li>+ ))}+ </ol>+ </div><SurveySectionBreak /></section>diff --git a/apps/www/public/images/state-of-startups/state-of-startups-og.png b/apps/www/public/images/state-of-startups/state-of-startups-og.pngindex 46bd99c141f..a557a66283f 100644Binary files a/apps/www/public/images/state-of-startups/state-of-startups-og.png and b/apps/www/public/images/state-of-startups/state-of-startups-og.png differ