The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.
TypeScript aialternativeauthdatabasedenoembeddingsexamplefirebasenextjsoauth2pgvectorpostgispostgrespostgresqlpostgrestrealtimesupabasevectorswebsockets
www: standardize container width (#47226)
Francesco Sansalvadore90ef7ea874a2
diff --git a/apps/www/app/blog/authors/[author]/AuthorClient.tsx b/apps/www/app/blog/authors/[author]/AuthorClient.tsxindex e86fc59ba49..b14a97d0215 100644--- a/apps/www/app/blog/authors/[author]/AuthorClient.tsx+++ b/apps/www/app/blog/authors/[author]/AuthorClient.tsx@@ -11,6 +11,8 @@ import { useMemo, useState } from 'react'import type PostTypes from 'types/post'import { Button, cn, InputGroup, InputGroupAddon, InputGroupInput } from 'ui'+import SectionContainerWithCn from '@/components/Layouts/SectionContainerWithCn'+export type BlogView = 'list' | 'grid'interface Author {@@ -54,8 +56,8 @@ export default function AuthorClient({ author, authorId, blogs }: AuthorClientPrreturn (<DefaultLayout>- <div className="container mx-auto px-4 py-4 md:py-8 xl:py-10 sm:px-16 xl:px-20">- <div className="text-foreground-lighter flex space-x-1 mb-8">+ <SectionContainerWithCn height="narrow" className="space-y-6">+ <div className="text-foreground-lighter flex space-x-1"><h1 className="cursor-pointer"><Link href="/blog">Blog</Link><span className="px-2">/</span>@@ -64,7 +66,7 @@ export default function AuthorClient({ author, authorId, blogs }: AuthorClientPr</div>{author && (- <div className="flex items-center gap-6 pb-8">+ <div className="flex items-center gap-6">{author.author_image_url && (<Imagesrc={author.author_image_url}@@ -96,10 +98,10 @@ export default function AuthorClient({ author, authorId, blogs }: AuthorClientPr</div></div>)}- </div>+ </SectionContainerWithCn><div className="border-default border-t">- <div className="container mx-auto px-4 py-4 md:py-8 xl:py-10 sm:px-16 xl:px-20">+ <SectionContainerWithCn height="narrow"><div className="flex flex-row items-center justify-between gap-2 mb-6"><div className="flex-1 max-w-[280px]"><InputGroup className="w-full">@@ -162,7 +164,7 @@ export default function AuthorClient({ author, authorId, blogs }: AuthorClientPr: 'No posts found by this author.'}</p>)}- </div>+ </SectionContainerWithCn></div></DefaultLayout>)diff --git a/apps/www/app/blog/categories/[category]/page.tsx b/apps/www/app/blog/categories/[category]/page.tsxindex 991c68f5515..46ec30651c0 100644--- a/apps/www/app/blog/categories/[category]/page.tsx+++ b/apps/www/app/blog/categories/[category]/page.tsx@@ -3,6 +3,7 @@ import Link from 'next/link'import BlogGridItem from '@/components/Blog/BlogGridItem'import DefaultLayout from '@/components/Layouts/Default'+import SectionContainer from '@/components/Layouts/SectionContainer'import { capitalize } from '@/lib/helpers'import { getAllCategories, getSortedPosts } from '@/lib/posts'import type PostTypes from '@/types/post'@@ -49,7 +50,7 @@ export default async function CategoriesPage({return (<><DefaultLayout>- <div className="container mx-auto px-8 py-16 sm:px-16 xl:px-20">+ <SectionContainer><div className="text-foreground-lighter flex space-x-1"><h1 className="cursor-pointer"><Link href="/blog">Blog</Link>@@ -67,7 +68,7 @@ export default async function CategoriesPage({</div>))}</ol>- </div>+ </SectionContainer></DefaultLayout></>)diff --git a/apps/www/app/blog/page.tsx b/apps/www/app/blog/page.tsxindex 9861380afe7..90dfa267e2a 100644--- a/apps/www/app/blog/page.tsx+++ b/apps/www/app/blog/page.tsx@@ -4,6 +4,7 @@ import type { Metadata } from 'next'import type PostTypes from 'types/post'import BlogClient from './BlogClient'+import SectionContainer from '@/components/Layouts/SectionContainer'import { breadcrumbs } from '@/lib/breadcrumbs'import { breadcrumbListSchema, serializeJsonLd } from '@/lib/json-ld'import { getSortedPosts } from '@/lib/posts'@@ -50,16 +51,16 @@ export default async function BlogPage() {/><DefaultLayout><h1 className="sr-only">Supabase blog</h1>- <div className="container relative mx-auto px-4 py-4 md:py-8 xl:py-10 sm:px-16 xl:px-20">+ <SectionContainer className="py-4 md:py-8 xl:py-10!">{featuredPost && (<FeaturedThumb key={featuredPost.slug} {...(featuredPost as PostTypes)} />)}- </div>+ </SectionContainer><div className="border-default border-t">- <div className="container mx-auto px-4 py-4 md:py-8 xl:py-10 sm:px-16 xl:px-20">+ <SectionContainer className="py-4 md:py-8 xl:py-10"><BlogClient initialBlogs={listPosts} totalPosts={totalListPosts} />- </div>+ </SectionContainer></div></DefaultLayout></>diff --git a/apps/www/app/blog/tags/[tag]/page.tsx b/apps/www/app/blog/tags/[tag]/page.tsxindex 54449d967c4..96a665730b3 100644--- a/apps/www/app/blog/tags/[tag]/page.tsx+++ b/apps/www/app/blog/tags/[tag]/page.tsx@@ -3,6 +3,7 @@ import Link from 'next/link'import BlogGridItem from '@/components/Blog/BlogGridItem'import DefaultLayout from '@/components/Layouts/Default'+import SectionContainer from '@/components/Layouts/SectionContainer'import { capitalize } from '@/lib/helpers'import { getAllTags, getSortedPosts } from '@/lib/posts'import type PostTypes from '@/types/post'@@ -41,7 +42,7 @@ export default async function TagPage({ params: paramsPromise }: { params: Promireturn (<><DefaultLayout>- <div className="container mx-auto px-8 py-16 sm:px-16 xl:px-20">+ <SectionContainer><div className="text-foreground-lighter flex space-x-1"><h1 className="cursor-pointer"><Link href="/blog">Blog</Link>@@ -59,7 +60,7 @@ export default async function TagPage({ params: paramsPromise }: { params: Promi</div>))}</ol>- </div>+ </SectionContainer></DefaultLayout></>)diff --git a/apps/www/components/Blog/BlogPostRenderer.tsx b/apps/www/components/Blog/BlogPostRenderer.tsxindex a1f07e6e222..afb3374010c 100644--- a/apps/www/components/Blog/BlogPostRenderer.tsx+++ b/apps/www/components/Blog/BlogPostRenderer.tsx@@ -6,6 +6,7 @@ import ReactMarkdown from 'react-markdown'import type { PostReturnType, ProcessedBlogData, StaticAuthor, Tag } from 'types/post'import { Badge } from 'ui'+import SectionContainerWithCn from '../Layouts/SectionContainerWithCn'import DraftModeBanner from '@/components/Blog/DraftModeBanner'import ShareArticleActions from '@/components/Blog/ShareArticleActions'import CTABanner from '@/components/CTABanner'@@ -103,12 +104,7 @@ const BlogPostRenderer = async ({<>{isDraftMode && <DraftModeBanner />}<DefaultLayout className="overflow-x-hidden">- <div- className="- container mx-auto px-4 py-4 md:py-8 xl:py-10 sm:px-16- xl:px-20- "- >+ <SectionContainerWithCn height="narrow"><div className="grid grid-cols-12 gap-4"><div className="hidden col-span-12 xl:block lg:col-span-2">{/* Back button */}@@ -277,7 +273,7 @@ const BlogPostRenderer = async ({</div></div></div>- </div>+ </SectionContainerWithCn><CTABanner /></DefaultLayout>diff --git a/apps/www/components/BuiltWithSupabase/index.tsx b/apps/www/components/BuiltWithSupabase/index.tsxindex 8a857255cb5..a420ec38104 100644--- a/apps/www/components/BuiltWithSupabase/index.tsx+++ b/apps/www/components/BuiltWithSupabase/index.tsx@@ -9,7 +9,7 @@ import ExamplesMobile from './ExamplesMobile'const BuiltWithSupabase = () => {return (<>- <SectionContainer id="examples" className="xl:pt-32 pb-0!">+ <SectionContainer id="examples" className="pb-0!"><div className="text-center flex flex-col items-center"><h3 className="h2">Start building in seconds</h3><p className="p max-w-[300px] md:max-w-none">@@ -32,7 +32,7 @@ const BuiltWithSupabase = () => {</div></div></SectionContainer>- <SectionContainer className="relative w-full px-0! lg:px-16! xl:px-20! pb-0! mb-16 md:mb-12 lg:mb-12 pt-6! max-w-[1400px]">+ <SectionContainer className="relative w-full px-0! lg:px-12! xl:px-24! pb-0! mb-16 md:mb-12 lg:mb-12 pt-6!"><ExamplesMobile examples={Examples.slice(0, 6)} className="lg:hidden" /><div className="hidden lg:grid grid-cols-12 gap-5 mt-4">{Examples.slice(0, 6).map((example, i) => {diff --git a/apps/www/components/Events/new/EventClientRenderer.tsx b/apps/www/components/Events/new/EventClientRenderer.tsxindex 708632b9f63..13f50bf3bfd 100644--- a/apps/www/components/Events/new/EventClientRenderer.tsx+++ b/apps/www/components/Events/new/EventClientRenderer.tsx@@ -48,7 +48,7 @@ export function EventClientRenderer({onDemandMdxEvents={onDemandMdxEvents}><DefaultLayout className="flex flex-col">- <EventsContainer className="border-x border-b py-8">+ <EventsContainer className="border-x border-b"><h1 className="h3 p-0! m-0!"><span className="sr-only">Supabase</span> Events</h1>@@ -57,7 +57,7 @@ export function EventClientRenderer({<EventBannerSection />- <EventsContainer className="border-x flex-1 py-8">+ <EventsContainer className="border-x flex-1"><EventGallery /></EventsContainer></DefaultLayout>diff --git a/apps/www/components/Events/new/EventsContainer.tsx b/apps/www/components/Events/new/EventsContainer.tsxindex 3d779ecbc93..229919c4565 100644--- a/apps/www/components/Events/new/EventsContainer.tsx+++ b/apps/www/components/Events/new/EventsContainer.tsx@@ -1,5 +1,7 @@import { cn } from 'ui'+import SectionContainer from '../../Layouts/SectionContainer'+interface EventsContainerProps {children: React.ReactNodeclassName?: string@@ -7,8 +9,8 @@ interface EventsContainerProps {export function EventsContainer({ children, className }: EventsContainerProps) {return (- <div className={cn('relative mx-auto w-full max-w-5xl px-4 lg:px-10 xl:px-14', className)}>+ <SectionContainer className={cn('w-full max-w-5xl py-8! px-4 lg:px-10 xl:px-14', className)}>{children}- </div>+ </SectionContainer>)}diff --git a/apps/www/components/Layouts/SectionContainer.tsx b/apps/www/components/Layouts/SectionContainer.tsxindex e92c210aa5c..f71306521b3 100644--- a/apps/www/components/Layouts/SectionContainer.tsx+++ b/apps/www/components/Layouts/SectionContainer.tsx@@ -1,7 +1,7 @@'use client'import classNames from 'classnames'-import { Ref, forwardRef } from 'react'+import { forwardRef, Ref } from 'react'interface Props {children: React.ReactNode@@ -9,19 +9,12 @@ interface Props {id?: string}-/**- * This component doesn't use cn so parent tailwind classes aren't applied correctly- * At this point it's dangerous to fix it because it could break the layout at many places- */const SectionContainer = forwardRef(({ children, className, id }: Props, ref: Ref<HTMLDivElement>) => (<divref={ref}id={id}- className={classNames(- `sm:py-18 container relative mx-auto px-6 py-16 md:py-24 lg:px-16 lg:py-24 xl:px-20`,- className- )}+ className={classNames(`section-container relative py-16 sm:py-18 md:py-24`, className)}>{children}</div>diff --git a/apps/www/components/Layouts/SectionContainerWithCn.tsx b/apps/www/components/Layouts/SectionContainerWithCn.tsxindex 39db50dbbf8..037db66e255 100644--- a/apps/www/components/Layouts/SectionContainerWithCn.tsx+++ b/apps/www/components/Layouts/SectionContainerWithCn.tsx@@ -1,16 +1,16 @@-import { Ref, forwardRef } from 'react'-import { cn } from 'ui'import { cva, type VariantProps } from 'class-variance-authority'+import { forwardRef, Ref } from 'react'+import { cn } from 'ui'-const sectionContainerVariants = cva('max-w-7xl relative mx-auto px-6', {+const sectionContainerVariants = cva('section-container relative', {variants: {width: {- normal: 'lg:px-16 xl:px-20',+ normal: '',smallScreenFull: 'max-w-full lg:container px-0',},height: {- normal: 'py-16 md:py-24 lg:py-24',- narrow: 'py-6 md:py-8',+ normal: 'py-16 md:py-18 lg:py-24',+ narrow: 'py-6 md:py-8 lg:py-8 xl:py-10',none: '',},},diff --git a/apps/www/components/Modules/ModulesNav.tsx b/apps/www/components/Modules/ModulesNav.tsxindex b090a932341..ffc70394298 100644--- a/apps/www/components/Modules/ModulesNav.tsx+++ b/apps/www/components/Modules/ModulesNav.tsx@@ -1,10 +1,9 @@-import React from 'react'-import { cn, IconDocumentation } from 'ui'-import Link from 'next/link'-import { PRODUCT_MODULES_NAMES } from 'shared-data/products'-import SectionContainer from '~/components/Layouts/SectionContainer'import ProductModules from '~/data/ProductModules'+import Link from 'next/link'+import React from 'react'+import { PRODUCT_MODULES_NAMES } from 'shared-data/products'+import { cn, IconDocumentation } from 'ui'interface Props {activePage: PRODUCT_MODULES_NAMES@@ -14,7 +13,7 @@ interface Props {function ModulesNav({ activePage, docsUrl }: Props) {return (<nav className="sticky top-0 mb-4 z-30 flex flex-nowrap items-center bg-alternative/90 backdrop-blur-md w-full border-b border-muted">- <SectionContainer className="py-0! flex gap-3 items-center justify-between">+ <SectionContainer className="w-full py-0! flex gap-3 items-center justify-between"><div className="w-max flex gap-3 items-center">{Object.entries(ProductModules).map((obj) => {const currentModule = obj[1]diff --git a/apps/www/components/Nav/HamburgerMenu.tsx b/apps/www/components/Nav/HamburgerMenu.tsxindex d23e475fa07..e5808bf3670 100644--- a/apps/www/components/Nav/HamburgerMenu.tsx+++ b/apps/www/components/Nav/HamburgerMenu.tsx@@ -7,10 +7,7 @@ type HamburgerButtonProps = {}const HamburgerButton = (props: HamburgerButtonProps) => (- <div- className="inset-y-0 flex mr-2 items-center px-4 lg:hidden"- onClick={() => props.toggleFlyOut()}- >+ <div className="inset-y-0 flex items-center lg:hidden" onClick={() => props.toggleFlyOut()}><buttonclassName={cn('text-foreground-lighter focus:ring-brand bg-transparent hover:text-foreground-light transition-colors hover:bg-overlay inline-flex items-center justify-center rounded-md p-2 focus:outline-hidden focus:ring-2 focus:ring-inset'diff --git a/apps/www/components/Nav/index.tsx b/apps/www/components/Nav/index.tsxindex 827d373bdaa..f826385f011 100644--- a/apps/www/components/Nav/index.tsx+++ b/apps/www/components/Nav/index.tsx@@ -112,8 +112,8 @@ const Nav = ({ hideNavbar, stickyNavbar = true }: Props) => {isTransparent && 'border-transparent backdrop-blur-none')}>- <div className="relative flex justify-between h-16 mx-auto lg:container lg:px-16 xl:px-20">- <div className="flex items-center px-6 lg:px-0 flex-1 sm:items-stretch justify-between">+ <div className="section-container relative flex justify-between h-16">+ <div className="flex items-center flex-1 sm:items-stretch justify-between"><div className="flex items-center"><div className="flex items-center shrink-0"><RightClickBrandLogo />diff --git a/apps/www/components/Products/ProductsNav.tsx b/apps/www/components/Products/ProductsNav.tsxindex 5669bedaeaa..ae533e46bf2 100644--- a/apps/www/components/Products/ProductsNav.tsx+++ b/apps/www/components/Products/ProductsNav.tsx@@ -1,9 +1,8 @@-import React from 'react'-import { cn } from 'ui'+import SectionContainer from '~/components/Layouts/SectionContainer'import Link from 'next/link'+import React from 'react'import { PRODUCT_NAMES, products } from 'shared-data/products'--import SectionContainer from '~/components/Layouts/SectionContainer'+import { cn } from 'ui'interface Props {activePage: PRODUCT_NAMES@@ -12,7 +11,7 @@ interface Props {function ProductsNav({ activePage }: Props) {return (<nav className="relative z-30 hidden md:flex items-center bg-background w-full border-b">- <SectionContainer className="py-0! flex gap-3 items-center">+ <SectionContainer className="w-full py-0! flex gap-3 items-center">{Object.entries(products).map((obj: any) => {const product = obj[1]const isAuth = product.name === PRODUCT_NAMES.AUTHENTICATIONdiff --git a/apps/www/components/Sections/PageHeader.tsx b/apps/www/components/Sections/PageHeader.tsxindex f35f0b09d39..1728ef47923 100644--- a/apps/www/components/Sections/PageHeader.tsx+++ b/apps/www/components/Sections/PageHeader.tsx@@ -1,7 +1,7 @@import type { ReactNode } from 'react'import { cn } from 'ui'-import SectionContainer from '../Layouts/SectionContainer'+import SectionContainerWithCn from '../Layouts/SectionContainerWithCn'interface Props {breadcrumb?: ReactNode@@ -12,8 +12,8 @@ interface Props {}const PageHeader = ({ breadcrumb, title, h1, subheader, className }: Props) => (- <div className={cn('w-full border-b bg-alternative py-8 lg:py-12', className)}>- <SectionContainer className="py-0!">+ <div className={cn('w-full border-b bg-alternative', className)}>+ <SectionContainerWithCn height="narrow">{breadcrumb && <div className="mb-6">{breadcrumb}</div>}{title && (<p className="mb-3 font-mono text-sm uppercase tracking-widest text-brand">{title}</p>@@ -24,7 +24,7 @@ const PageHeader = ({ breadcrumb, title, h1, subheader, className }: Props) => ({subheader && (<p className="mt-3 max-w-2xl text-base text-foreground-light lg:text-lg">{subheader}</p>)}- </SectionContainer>+ </SectionContainerWithCn></div>)diff --git a/apps/www/components/Sections/ProductHeader.tsx b/apps/www/components/Sections/ProductHeader.tsxindex c9df322aabc..897c6033823 100644--- a/apps/www/components/Sections/ProductHeader.tsx+++ b/apps/www/components/Sections/ProductHeader.tsx@@ -1,8 +1,9 @@+import { useSendTelemetryEvent } from '~/lib/telemetry'+import { BookOpen } from 'lucide-react'import Link from 'next/link'import { Button } from 'ui'+import ProductIcon from '../ProductIcon'-import { BookOpen } from 'lucide-react'-import { useSendTelemetryEvent } from '~/lib/telemetry'type subheader = stringinterface Types {@@ -19,7 +20,7 @@ interface Types {const ProductHeader = (props: Types) => {const sendTelemetryEvent = useSendTelemetryEvent()return (- <div className="container relative mx-auto px-6 pt-16 pb-0 sm:px-16 lg:pt-28 xl:px-20">+ <div className="section-container relative pt-16 pb-0 lg:pt-28"><div className="grid grid-cols-12"><div className="col-span-12 space-y-8 lg:col-span-5">{props.callout && props.callout}diff --git a/apps/www/components/Sections/ProductHeader2.tsx b/apps/www/components/Sections/ProductHeader2.tsxindex 2a7325e54a2..0776557ad1b 100644--- a/apps/www/components/Sections/ProductHeader2.tsx+++ b/apps/www/components/Sections/ProductHeader2.tsx@@ -3,7 +3,7 @@ import Link from 'next/link'import React, { Children, type ReactNode } from 'react'import { Button, cn } from 'ui'-import SectionContainer from '../Layouts/SectionContainer'+import SectionContainerWithCn from '../Layouts/SectionContainerWithCn'import ProductIcon from '../ProductIcon'// to do: move types to be global@@ -29,12 +29,16 @@ const ProductHeader = ({ footerPosition = 'left', ...props }: Props) => (props.className)}>- <SectionContainer className={cn('py-0! grid grid-cols-12', props.sectionContainerClassName)}>+ <SectionContainerWithCn+ height="none"+ className={cn('grid grid-cols-12', props.sectionContainerClassName)}+ ><divclassName={cn('relative z-10 col-span-12 lg:col-span-5',// if not image is present, center the content- !props.image && 'lg:col-start-4 lg:col-end-10 text-center flex flex-col items-center'+ !props.image &&+ 'lg:col-span-12 lg:mx-auto lg:max-w-2xl text-center flex flex-col items-center')}>{(props.icon || props.title) && (@@ -50,14 +54,14 @@ const ProductHeader = ({ footerPosition = 'left', ...props }: Props) => ()}</div>)}- <h1 className="h1 text-3xl md:text-4xl! lg:text-4xl! 2xl:text-6xl! tracking-[-.15px]">+ <h1 className="h1 text-3xl md:text-4xl! lg:text-4xl! 2xl:text-6xl! tracking-[-.15px] text-balance">{props.h1}</h1>{props.subheader && (<div className="">{Children.map(props.subheader, (subheader, i) => {return (- <p className="p lg:text-lg max-w-lg lg:max-w-none" key={i}>+ <p className="p lg:text-lg max-w-lg lg:max-w-none text-pretty" key={i}>{subheader}</p>)@@ -93,7 +97,7 @@ const ProductHeader = ({ footerPosition = 'left', ...props }: Props) => ({props.footer}</div>)}- </SectionContainer>+ </SectionContainerWithCn></div>)diff --git a/apps/www/components/SolutionsStickyNav.tsx b/apps/www/components/SolutionsStickyNav.tsxindex a7d21e26306..08a84cfff86 100644--- a/apps/www/components/SolutionsStickyNav.tsx+++ b/apps/www/components/SolutionsStickyNav.tsx@@ -79,7 +79,7 @@ function SolutionsStickyNav({ type, activeItem, className }: Props) {</DropdownMenu></SectionContainer>{/* desktop */}- <SectionContainer className="py-0! hidden md:flex gap-3 items-center">+ <SectionContainer className="w-full py-0! hidden md:flex gap-3 items-center">{items.map((item: any) => {const isActive = item.id === activeItemdiff --git a/apps/www/components/TwitterSocialSection.tsx b/apps/www/components/TwitterSocialSection.tsxindex 8bc7ef44d8f..1a728a94cdb 100644--- a/apps/www/components/TwitterSocialSection.tsx+++ b/apps/www/components/TwitterSocialSection.tsx@@ -16,7 +16,7 @@ const TwitterSocialSection = (props: TwitterSocialSectionProps) => (<p className="p max-w-[300px] md:max-w-none">{props.subheading}</p>{props.ctas && <div className="my-4 flex justify-center gap-2">{props.ctas}</div>}</SectionContainer>- <SectionContainer className="relative w-full px-0! lg:px-16! xl:px-0! pb-0! mb-16 md:mb-12 lg:mb-12 pt-6! max-w-[1400px]">+ <SectionContainer className="w-full px-0! lg:px-16! xl:px-0! pb-0! mb-16 md:mb-12 lg:mb-12 pt-6! max-w-[1400px]"><TwitterSocialProofMobile className="lg:hidden -mb-32" tweets={props.tweets} /><TwitterSocialProof className="hidden lg:flex" /></SectionContainer>diff --git a/apps/www/pages/auth.tsx b/apps/www/pages/auth.tsxindex a7e16bbdd67..0d5edcbdaa4 100644--- a/apps/www/pages/auth.tsx+++ b/apps/www/pages/auth.tsx@@ -237,7 +237,7 @@ function AuthPage() {<div className="section--bg-masked"><div className="section--bg border-t border-b border-control"></div></div>- <div className="section-container pt-12 pb-0">+ <div className="relative pt-12 pb-0"><div className="overflow-x-hidden"><SectionContainer className="mb-0 pb-8"><GithubExamples />diff --git a/apps/www/pages/careers.tsx b/apps/www/pages/careers.tsxindex d615435477b..a5b3cc73f8d 100644--- a/apps/www/pages/careers.tsx+++ b/apps/www/pages/careers.tsx@@ -121,19 +121,21 @@ const CareerPage = ({ jobs, placeholderJob, contributors }: CareersPageProps) =>/></Head><DefaultLayout>- <header className="container relative mx-auto px-6 pt-12 pb-8 lg:pt-24 lg:px-16 xl:px-20 text-center space-y-4">- <h1 className="text-sm text-brand md:text-base">- <span className="sr-only">Supabase </span>Careers- </h1>- <h2 className="text-3xl md:text-4xl xl:text-5xl lg:max-w-2xl xl:max-w-3xl lg:mx-auto tracking-[-1px]">- We're on a mission to build the best developer platform- </h2>- <p className="text-sm md:text-base text-foreground-lighter max-w-sm sm:max-w-md md:max-w-lg mx-auto">- Explore remote opportunities and join our team to help us achieve it.- </p>- <Button asChild variant="primary" className="mt-4">- <Link href="#positions">Open positions</Link>- </Button>+ <header>+ <SectionContainer className="pt-12 pb-8! lg:pt-24 py-0 text-center space-y-4">+ <h1 className="text-sm text-brand md:text-base">+ <span className="sr-only">Supabase </span>Careers+ </h1>+ <h2 className="text-3xl md:text-4xl xl:text-5xl lg:max-w-2xl xl:max-w-3xl lg:mx-auto tracking-[-1px]">+ We're on a mission to build the best developer platform+ </h2>+ <p className="text-sm md:text-base text-foreground-lighter max-w-sm sm:max-w-md md:max-w-lg mx-auto">+ Explore remote opportunities and join our team to help us achieve it.+ </p>+ <Button asChild variant="primary" className="mt-4">+ <Link href="#positions">Open positions</Link>+ </Button>+ </SectionContainer></header><SectionContainer className="pt-8!">diff --git a/apps/www/pages/changelog.tsx b/apps/www/pages/changelog.tsxindex 02ffc1535d2..7482a2d60e8 100644--- a/apps/www/pages/changelog.tsx+++ b/apps/www/pages/changelog.tsx@@ -200,7 +200,7 @@ function ChangelogIndex({ featured, restIndex, allIndex }: PageProps) {}}/><DefaultLayout>- <div className="container mx-auto max-w-5xl flex flex-col gap-8 px-4 py-10 sm:px-16 xl:px-20">+ <div className="container mx-auto max-w-6xl flex flex-col gap-8 px-4 py-10 sm:px-16 xl:px-24"><div className="pb-4"><h1 className="h1">Changelog</h1><div className="flex flex-wrap items-center justify-between gap-2">diff --git a/apps/www/pages/company.tsx b/apps/www/pages/company.tsxindex 7f87245b8f7..fc298d1d9bf 100644--- a/apps/www/pages/company.tsx+++ b/apps/www/pages/company.tsx@@ -67,12 +67,7 @@ export default Indexconst Header = () => {return (<>- <div- className="- sm:py-18- container relative mx-auto px-6 py-16 text-center md:py-24 lg:px-16 lg:py-24- xl:px-20"- >+ <div className="section-container text-center py-16 sm:py-18 md:py-24"><h1 className="text-foreground text-5xl">Join one of the world's fastest growing open source communities.</h1>diff --git a/apps/www/pages/customers.tsx b/apps/www/pages/customers.tsxindex 0a8963b2e4e..96b4933890d 100644--- a/apps/www/pages/customers.tsx+++ b/apps/www/pages/customers.tsx@@ -14,6 +14,7 @@ import { Button, cn } from 'ui'import { GlassPanel } from 'ui-patterns/GlassPanel'import CustomersFilters from '../components/CustomerStories/CustomersFilters'+import SectionContainer from '../components/Layouts/SectionContainer'import { breadcrumbs } from '@/lib/breadcrumbs'import { breadcrumbListSchema, serializeJsonLd } from '@/lib/json-ld'@@ -122,7 +123,7 @@ function CustomerStoriesPage(props: any) {/><DefaultLayout><div className="relative z-0 bg-background overflow-hidden">- <div className="container mx-auto mt-28 sm:mt-44 px-4 xl:px-20">+ <SectionContainer className="pt-0! pb-0! mt-28 sm:mt-44"><div className="mx-auto relative z-10"><motion.divclassName="mx-auto sm:max-w-2xl text-center flex flex-col items-center mb-12"@@ -177,13 +178,13 @@ function CustomerStoriesPage(props: any) {)}</div></div>- <div- className={cn(- 'absolute inset-0 h-[150px] sm:h-[300px] bg-background z-0 after:bg-background!',- styles['bg-visual']- )}- />- </div>+ </SectionContainer>+ <div+ className={cn(+ 'absolute inset-0 h-[150px] sm:h-[300px] bg-background z-0 after:bg-background!',+ styles['bg-visual']+ )}+ /></div></DefaultLayout></>diff --git a/apps/www/pages/customers/[slug].tsx b/apps/www/pages/customers/[slug].tsxindex f090e03a39a..4f6e26eff3a 100644--- a/apps/www/pages/customers/[slug].tsx+++ b/apps/www/pages/customers/[slug].tsx@@ -15,6 +15,8 @@ import Image from 'next/image'import Link from 'next/link'import { Button } from 'ui'+import SectionContainer from '@/components/Layouts/SectionContainer'+// table of contents extractorconst toc = require('markdown-toc')@@ -128,12 +130,7 @@ function CaseStudyPage(props: any) {/></Head><DefaultLayout>- <div- className="- container mx-auto p-8 sm:py-16 sm:px-16- xl:px-20- "- >+ <SectionContainer className="py-8 sm:py-16!"><div className="grid grid-cols-12 gap-4"><div className="hidden xl:block col-span-12 mb-2 xl:col-span-2">{/* Back button */}@@ -235,7 +232,7 @@ function CaseStudyPage(props: any) {</div></div></div>- </div>+ </SectionContainer><CTABanner /></DefaultLayout>diff --git a/apps/www/pages/database.tsx b/apps/www/pages/database.tsxindex 8a140553c58..35302fcb3a3 100644--- a/apps/www/pages/database.tsx+++ b/apps/www/pages/database.tsx@@ -366,7 +366,7 @@ function Database() {<div className="section--bg-masked"><div className="section--bg border-t border-b border-control"></div></div>- <div className="section-container pt-12 pb-0">+ <div className="relative pt-12 pb-0"><div className="overflow-x-hidden"><SectionContainer className="mb-0 pb-8 lg:pt-32"><GithubExamples />diff --git a/apps/www/pages/partners/integrations/[slug].tsx b/apps/www/pages/partners/integrations/[slug].tsxindex 62b9f5b893d..9bb71aeb7b0 100644--- a/apps/www/pages/partners/integrations/[slug].tsx+++ b/apps/www/pages/partners/integrations/[slug].tsx@@ -94,7 +94,7 @@ function Partner({ partner, overview }: PartnerData) {) : null}<DefaultLayout><SectionContainer>- <div className="col-span-12 mx-auto mb-2 max-w-5xl space-y-10 lg:col-span-2">+ <div className="col-span-12 mx-auto mb-2 space-y-10 lg:col-span-2">{/* Back button */}<Linkhref="/partners/integrations"diff --git a/apps/www/pages/security.mdx b/apps/www/pages/security.mdxindex 8ef5ca825c1..802905dd165 100644--- a/apps/www/pages/security.mdx+++ b/apps/www/pages/security.mdx@@ -30,7 +30,7 @@ export const Section = ({ children, icon, img }) => (</div>)-<div className="container mx-auto px-8 sm:px-16 xl:px-20 grid grid-cols-12 items-center my-8">+<div className="section-container grid grid-cols-12 items-center my-8"><div className="col-span-12 lg:col-span-6"><h1 className="xl:text-5xl mb-4 [&_p]:m-0">Security at Supabase</h1><h2 className="text-xl text-foreground-light max-w-xl m-0 [&_p]:m-0">@@ -44,7 +44,7 @@ export const Section = ({ children, icon, img }) => (</div></div>-<div className="container mx-auto px-8 sm:px-16 xl:px-20 mb-16">+<div className="section-container mb-16"><div className="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 gap-8 lg:gap-16">@@ -157,7 +157,7 @@ In addition to protection at the CDN level via Cloudflare, we employ [fail2ban](</div>-<div className="container mx-auto px-8 sm:px-16 xl:px-20 mb-16">+<div className="section-container mb-16"><SecurityNewsletterForm /></div>diff --git a/apps/www/pages/storage.tsx b/apps/www/pages/storage.tsxindex 7b429ed557e..4b597c27aff 100644--- a/apps/www/pages/storage.tsx+++ b/apps/www/pages/storage.tsx@@ -339,7 +339,7 @@ function StoragePage() {<div className="section--bg-masked"><div className="section--bg border-t border-control"></div></div>- <div className="section-container pt-12 pb-0">+ <div className="relative pt-12 pb-0"><div className="overflow-x-hidden"><SectionContainer><div className="grid grid-cols-12 lg:gap-16">diff --git a/apps/www/pages/support.tsx b/apps/www/pages/support.tsxindex 1663b623927..c1447e5c160 100644--- a/apps/www/pages/support.tsx+++ b/apps/www/pages/support.tsx@@ -1,5 +1,5 @@import DefaultLayout from '~/components/Layouts/Default'-import SectionContainer from '~/components/Layouts/SectionContainer'+import SectionContainerWithCn from '~/components/Layouts/SectionContainerWithCn'import Panel from '~/components/Panel'import data from '~/data/support'import { Command, Search } from 'lucide-react'@@ -48,7 +48,7 @@ const Index = () => {/><DefaultLayout className="min-h-fit!"><div className="bg-alternative">- <SectionContainer className="space-y-2 text-center">+ <SectionContainerWithCn className="space-y-2 text-center"><h1 className="text-brand font-mono text-base uppercase tracking-widest">{data.hero.h1}</h1>@@ -87,9 +87,12 @@ const Index = () => {</div></button></CommandMenuTrigger>- </SectionContainer>+ </SectionContainerWithCn></div>- <SectionContainer className="text grid gap-5 md:grid-cols-2 xl:grid-cols-3 max-w-7xl pb-8!">+ <SectionContainerWithCn+ height="narrow"+ className="text grid gap-5 md:grid-cols-2 xl:grid-cols-3"+ >{data.cards.map((card) => (<Panelkey={card.title}@@ -118,9 +121,7 @@ const Index = () => {</div></Panel>))}- </SectionContainer>- <SectionContainer className="pt-0! max-w-7xl">- <div className="mx-auto bg-alternative border rounded-xl p-6 lg:p-10">+ <div className="col-span-full bg-alternative border rounded-xl p-6 lg:p-10"><div className="grid grid-cols-1 lg:grid-cols-2 gap-2 xl:gap-16 justify-between"><div className="gap-2 flex flex-col"><h2 className="text-xl lg:text-2xl tracking-tight">{data.banner.title}</h2>@@ -149,7 +150,7 @@ const Index = () => {</div></div></div>- </SectionContainer>+ </SectionContainerWithCn></DefaultLayout></>)diff --git a/apps/www/styles/globals.css b/apps/www/styles/globals.cssindex 7aebcbf84df..530de50d6f1 100644--- a/apps/www/styles/globals.css+++ b/apps/www/styles/globals.css@@ -12,6 +12,10 @@@source './../../../packages/ui-patterns/src/**/*.{tsx,ts,js}';@source './../../../packages/marketing/src/**/*.{tsx,ts,js}';+@utility section-container {+ @apply mx-auto max-w-7xl px-6 lg:px-12 xl:px-24;+}+@theme {--color-purple-sos-100: hsl(293 80% 97%);--color-purple-sos-200: hsl(293 85% 91%);@@ -293,10 +297,6 @@ h6:not(.overwrite) {overflow: hidden;}-.section-container {- position: relative;-}-.stroke-text {-webkit-text-fill-color: transparent; /* Will override color (regardless of order) */-webkit-text-stroke-width: 1px;