Files
supabase/apps/www/pages/aws-reinvent-2025.tsx
Danny White ec53175b8a refactor(ui): rename text-brand to text-primary (#50564)
## What kind of change does this PR introduce?

Refactor. Follow-up to #49871.

## What is the current behavior?

Branded (green) text still uses the `text-brand` classname while the
colour comes from `--primary`.

## What is the new behavior?

**Rename-only:** `text-brand` → `text-primary` across callsites and
docs. Leftover `bg-brand` / `border-brand` alias to `brand-default`. No
intentional colour changes in this PR.

This better matches how we treat our green in other components and
props, like `variant="primary"` for green buttons.

## To test

On light mode: smoke-test that branded text still looks like #49871
(readable green, not the bright fill).

-
[Homepage](https://zone-www-dot-com-git-dnywh-depr-316-text-brand-de2380-supabase.vercel.app/):
“Scale to millions” uses `text-primary`
- [Docs
homepage](https://docs-git-dnywh-depr-316-text-brand-to-primary-supabase.vercel.app/docs):
branded links like “More on self-hosting” are still readable
- [Typography
docs](https://design-system-git-dnywh-depr-316-text-brand-to-primary-supabase.vercel.app/design-system/docs/typography):
documents `text-primary`
- [Colour
usage](https://design-system-git-dnywh-depr-316-text-brand-to-primary-supabase.vercel.app/design-system/docs/color-usage):
`text-primary` is visibly darker than `bg-brand-default` _on light mode_
- [Studio auth
providers](https://studio-staging-git-dnywh-depr-316-text-brand-to-60fa6c-supabase.vercel.app/dashboard/project/_/auth/providers):
enabled provider badge text readable; status dot stays bright green

<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
## Summary by CodeRabbit

* **Style**
* Updated branded text, link hover states, icons, badges, indicators,
and highlighted content across the Design System, Docs, Studio, Learn,
UI Library, and marketing experiences to use the primary theme color.
* Updated syntax highlighting and table-of-contents styling for
consistent primary-color presentation.
  * Refined brand color fallback behavior for bright fills and borders.

* **Documentation**
* Updated color-usage and typography guidance to recommend the primary
text utility.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->
2026-09-22 16:19:03 +10:00

186 lines
7.4 KiB
TypeScript

import Layout from 'components/Layouts/Default'
import SectionContainer from 'components/Layouts/SectionContainer'
import data from 'data/aws-reinvent-2025'
import { Calendar, CheckCircle, ChevronRight, Clock, MapPin, Users } from 'lucide-react'
import { NextPage } from 'next'
import { NextSeo } from 'next-seo'
import dynamic from 'next/dynamic'
import Link from 'next/link'
import { Badge, Button } from 'ui'
const ProductHeader = dynamic(() => import('components/Sections/ProductHeader2'))
const PlatformSection = dynamic(() => import('components/Solutions/PlatformSection'))
const AWSReInvent2025: NextPage = () => {
return (
<>
<NextSeo
title={data.metadata.metaTitle}
description={data.metadata.metaDescription}
openGraph={{
title: data.metadata.metaTitle,
description: data.metadata.metaDescription,
images: [
{
url: data.metadata.ogImage,
width: 1280,
height: 685,
alt: 'Supabase AWS Re:Invent 2025',
},
],
}}
/>
<Layout className="overflow-visible">
<ProductHeader {...data.heroSection} />
{/* Free Consultation Section */}
<section id={data.consultationSection.id} className="relative py-16 md:py-24">
<SectionContainer>
<div className="max-w-4xl mx-auto">
<div className="bg-surface-100 rounded-2xl p-8 border border-muted">
<Badge className="mb-4">Free Consultation</Badge>
<h2 className="text-3xl md:text-4xl font-medium mb-6">
{data.consultationSection.title}
</h2>
<p className="text-foreground-light text-lg mb-8">
{data.consultationSection.description}
</p>
<ul className="space-y-3 mb-8">
{data.consultationSection.features.map((feature, idx) => (
<li key={idx} className="flex items-start gap-3">
<CheckCircle className="size-4 lg:size-5 text-primary mt-1 lg:mt-0.5 shrink-0" />
<span className="text-foreground-light">{feature}</span>
</li>
))}
</ul>
<Button
variant="primary"
size="large"
iconRight={<ChevronRight className="size-3" />}
asChild
>
<Link href={data.consultationSection.cta.href} target="_blank">
{data.consultationSection.cta.label}
</Link>
</Button>
</div>
</div>
</SectionContainer>
</section>
{/* Schedule Section */}
<section id={data.scheduleSection.id} className="relative py-16 md:py-24">
<SectionContainer className="lg:py-0!">
<div className="lg:text-center mb-12">
<h2 className="text-3xl md:text-4xl font-medium mb-4">
{data.scheduleSection.title}
</h2>
<p className="text-foreground-light text-lg max-w-2xl mx-auto">
{data.scheduleSection.subtitle}
</p>
</div>
<div className="max-w-4xl mx-auto">
{/* Group events by date */}
{['December 01', 'December 02', 'December 03', 'December 04'].map((date) => {
const dayEvents = data.scheduleSection.schedule.filter(
(event) => event.date === date
)
return (
<div key={date} className="mb-8">
<div className="flex items-center gap-2 mb-4">
<h3 className="text-xl font-medium">{date}</h3>
</div>
<div className="space-y-4">
{dayEvents.map((event, idx) => (
<div
key={idx}
className="bg-surface-100 rounded-lg p-5 border border-muted"
>
<div className="flex flex-col md:flex-row md:items-start md:justify-between gap-4">
<div className="flex-1">
<div className="flex items-center gap-3 mb-2">
<div className="flex items-center gap-2 text-sm text-foreground-light">
<Clock className="w-4 h-4" />
<span className="font-mono">{event.time}</span>
</div>
{event.type === 'keynote' && (
<Badge variant="success">Keynote</Badge>
)}
{event.type === 'networking' && (
<Badge variant="default">Networking</Badge>
)}
</div>
<h4 className="text-lg font-medium mb-1">{event.title}</h4>
{event.description && (
<p className="text-foreground-light mb-4">{event.description}</p>
)}
{event.location && (
<div className="flex items-center gap-2 text-sm text-foreground-light">
<MapPin className="w-4 h-4" />
<span>{event.location}</span>
</div>
)}
</div>
{event.cta && (
<Button
size="small"
iconRight={<ChevronRight className="w-3 h-3" />}
asChild
>
<Link href={event.cta.href} target="_blank">
{event.cta.label}
</Link>
</Button>
)}
</div>
</div>
))}
</div>
</div>
)
})}
</div>
</SectionContainer>
</section>
{/* Platform Section */}
<PlatformSection
id={data.platform.id}
title={data.platform.title}
subheading={data.platform.subheading}
features={data.platform.features}
/>
{/* Footer Info Section */}
<section className="relative py-16">
<SectionContainer>
<div className="text-center max-w-3xl mx-auto">
<h3 className="text-2xl md:text-4xl font-medium mb-4">
Talk to our team and see how Supabase can help you build faster.
</h3>
<p className="text-foreground-light text-lg mb-8">
Accelerate your business growth and app development using Supabase scale.
</p>
<Button size="large" asChild>
<Link href={data.consultationSection.cta.href} target="_blank">
Book a meeting
</Link>
</Button>
</div>
</SectionContainer>
</section>
</Layout>
</>
)
}
export default AWSReInvent2025