From fd579a249a41e91778c48df8a1732f82d0dfae84 Mon Sep 17 00:00:00 2001 From: Mohamed Boudra Date: Fri, 20 Nov 2026 08:43:53 +0100 Subject: [PATCH] feat(website): unify page frame, rails, section rhythm, and hairline grids across home and /hub --- packages/website/src/components/faq-item.tsx | 22 +- packages/website/src/components/hub-flow.tsx | 10 +- .../website/src/components/landing-page.tsx | 434 ++++++++++-------- .../website/src/components/page-frame.tsx | 215 +++++++++ .../website/src/components/site-footer.tsx | 150 +++--- .../website/src/components/site-shell.tsx | 19 +- .../website/src/components/sponsorship.tsx | 124 +++-- packages/website/src/i18n/resources/en.json | 25 + .../website/src/i18n/resources/zh-CN.json | 25 + .../website/src/routes/{-$locale}/hub.tsx | 286 ++++++------ packages/website/src/styles.css | 9 +- 11 files changed, 888 insertions(+), 431 deletions(-) create mode 100644 packages/website/src/components/page-frame.tsx diff --git a/packages/website/src/components/faq-item.tsx b/packages/website/src/components/faq-item.tsx index 7813f9ddbf..2c732c3ef2 100644 --- a/packages/website/src/components/faq-item.tsx +++ b/packages/website/src/components/faq-item.tsx @@ -2,15 +2,25 @@ import type { ReactNode } from "react"; export function FAQItem({ question, children }: { question: string; children: ReactNode }) { return ( -
- - + - +
+ + {question} + + - {question} -
{children}
+
+ {children} +
); } diff --git a/packages/website/src/components/hub-flow.tsx b/packages/website/src/components/hub-flow.tsx index cbe8766105..fd82a9eff4 100644 --- a/packages/website/src/components/hub-flow.tsx +++ b/packages/website/src/components/hub-flow.tsx @@ -68,12 +68,12 @@ export function HubLandingFlow() { -
+

{t("hub.shape.hub")}

-

{t("hub.shape.hubHosting")}

+

{t("hub.shape.hubHosting")}

@@ -124,7 +124,7 @@ function CompactDaemonRow({ export function HubArchitectureDiagram() { const { t } = useTranslation(); return ( -
+
{HUB_TRIGGER_SOURCES.map(({ id, Icon }) => ( @@ -134,12 +134,12 @@ export function HubArchitectureDiagram() { -
+

{t("hub.shape.hub")}

-

{t("hub.shape.hubHosting")}

+

{t("hub.shape.hubHosting")}

diff --git a/packages/website/src/components/landing-page.tsx b/packages/website/src/components/landing-page.tsx index 05457eae15..4948a8c7f7 100644 --- a/packages/website/src/components/landing-page.tsx +++ b/packages/website/src/components/landing-page.tsx @@ -89,7 +89,14 @@ import { PiIcon, } from "~/components/agent-icons"; import { HubLandingFlow } from "~/components/hub-flow"; -import { PaseoHubLockup, PaseoHubMark } from "~/components/paseo-brand"; +import { + ChapterBand, + ChapterDivider, + HairlineGrid, + PageHeaderBand, + SectionOpener, +} from "~/components/page-frame"; +import { PaseoHubLockup, PaseoHubMark, PaseoMark } from "~/components/paseo-brand"; import { MobileChat, MobileDiff, @@ -100,8 +107,7 @@ import { } from "~/components/mockup"; import { FAQItem } from "~/components/faq-item"; import { SiteFooter } from "~/components/site-footer"; -import { SponsorSection, SponsorsSection } from "~/components/sponsorship"; -import { SiteHeader } from "~/components/site-header"; +import { HomepageSponsorsSection } from "~/components/sponsorship"; import "~/styles.css"; interface LandingPageProps { @@ -113,60 +119,88 @@ interface LandingPageProps { export function LandingPage({ title, subtitle, showHubEyebrow = false }: LandingPageProps) { return ( - {/* Hero section with background image */} -
-
-
+
+ - {/* Mockup - inside hero so it's above the gradient, positioned to overflow into black section */} - -
- -
-
-
+
+ {/* Opening bookend: centered hero, interactive desktop mockup, and phone trio */} + +
+ + +
- {/* Phone showcase */} - + +
+ +
+
- {/* Content section */} -
-
-
+ + + + {/* Chapter 1: Community proof */} + - - - - + + + {/* Chapter 2: The product (Providers, Deployment, Extensibility, Automation) */} + +
+ +
+ +
+ +
+ +
+ +
+ +
+ +
+
+ + {/* Chapter 3: Paseo Hub */} + - - - + + + {/* Chapter 4: Open source philosophy and consolidated sponsorship */} + +
+ +
+ +
+ +
+
+ + {/* Chapter 5: FAQ */} + -
+ + + {/* Closing bookend: centered download CTA */} + + +
- + +
); } -function Nav({ compact = false }: { compact?: boolean }) { - return ( - - ); -} - function Hero({ title, subtitle, @@ -179,8 +213,10 @@ function Hero({ return (
{showHubEyebrow ? : null} -

{title}

-

+

+ {title} +

+

{subtitle}

@@ -334,12 +370,14 @@ function AgentBadge({ name, Icon }: (typeof FEATURED_AGENTS)[number]) { } function FeatureSection({ + eyebrow, title, description, badge, links, children, }: { + eyebrow?: string; title: string; description: string; badge?: string; @@ -353,54 +391,18 @@ function FeatureSection({ viewport={VIEWPORT_60} transition={EASE_OUT_05} > - + {children} ); } -function SectionTitle({ - title, - description, - badge, - links, -}: { - title: string; - description: string; - badge?: string; - links?: ReadonlyArray<{ href: string; label: string }>; -}) { - return ( -
-
-

{title}

- {badge && ( - - {badge} - - )} -
-

{description}

- {links ? ( -
- {links.map((link) => ( - - {link.label} - - - ))} -
- ) : null} -
- ); -} - function SocialProofWall() { const { t } = useTranslation(); return ( @@ -410,7 +412,8 @@ function SocialProofWall() { viewport={VIEWPORT_60} transition={EASE_OUT_05} > - @@ -457,7 +460,7 @@ function SocialProofCard({ tweet, inert }: { tweet: SocialProofTweet; inert?: bo target="_blank" rel="noreferrer" tabIndex={inert ? -1 : undefined} - className="group flex h-[154px] w-[320px] shrink-0 flex-col justify-between overflow-hidden rounded-2xl border border-white/10 bg-white/[0.03] p-4 transition-colors hover:border-white/20 hover:bg-white/[0.05] md:w-[420px]" + className="group flex h-[154px] w-[300px] shrink-0 flex-col justify-between overflow-hidden rounded-xl border border-white/[0.08] bg-white/[0.02] p-4 transition-colors hover:border-white/20 hover:bg-white/[0.04] md:w-[380px]" aria-label={t("landing.socialProof.readPost", { name: tweet.name })} >
@@ -486,30 +489,34 @@ function MultiProviderSection() { const localize = useLocalizePath(); return ( -
+ {FEATURED_AGENTS.map((agent) => (
- + + + + {agent.name} - {agent.name}
))} {t("common.more", { count: ADDITIONAL_AGENT_COUNT })} + -
+
); } @@ -519,16 +526,19 @@ function TurnkeySection() { const localize = useLocalizePath(); return ( -
- -
+
+
+ +
+
- - + + + {ctaIcon} + {ctaLabel} + + + ); } -/** The lead product of a section: an icon tile and title on the page background. */ +/** The lead product of a section: an icon tile and title. */ function ProductLead({ icon: Icon, title, @@ -605,13 +613,13 @@ function ProductLead({ return (
-
- +
+
-

{title}

+

{title}

{description ? ( -

{description}

+

{description}

) : null}
@@ -620,8 +628,8 @@ function ProductLead({ ); } -/** A small card: icon and title on one line, the blurb below, an optional action last. */ -function FeatureCard({ +/** A hairline grid cell: icon and title on one line, the blurb below, an optional action last. */ +function FeatureCell({ icon: Icon, title, description, @@ -633,12 +641,12 @@ function FeatureCard({ children?: React.ReactNode; }) { return ( -
-
- -

{title}

+
+
+ +

{title}

-

{description}

+

{description}

{children ?
{children}
: null}
); @@ -671,12 +679,16 @@ function AutomationSection() { return ( -
-
+
+
{AUTOMATION_OPTIONS.map((option) => ( -
- - {option.label} +
+ + + {option.label} +
-

+

{t(`landing.automation.${option.kind}Caption`)}

@@ -732,7 +749,7 @@ function AutomationDetail({ kind }: { kind: AutomationKind }) { return (
{kind === "mcp" ? : null} {kind === "cli" ? : null} @@ -892,12 +909,15 @@ function HubSection() { transition={EASE_OUT_05} aria-labelledby="hub-section-heading" > -
+
+

+ {t("landing.eyebrows.hub")} +

- + {t("hub.title")}

-

+

{t("landing.hubSection.description")}

@@ -924,32 +944,35 @@ function ExtensibleSection() { const pluginActions = React.useMemo(() => , []); return ( -
+
-
- - -
-
-

{t("landing.plugins.license")}

- - - {t("landing.plugins.fork")} - - +
+
+ + +
+
+

{t("landing.plugins.license")}

+ + + {t("landing.plugins.fork")} + + +
@@ -1015,7 +1038,7 @@ function SelfModifyDemo() { initial={reduceMotion ? "shown" : "hidden"} whileInView="shown" viewport={VIEWPORT_60} - className="grid min-h-[22rem] grid-cols-[minmax(0,1fr)] overflow-hidden rounded-xl border border-white/10 bg-black/20 md:grid-cols-[minmax(0,1fr)_17rem]" + className="grid min-h-[22rem] grid-cols-[minmax(0,1fr)] overflow-hidden rounded-xl border border-white/[0.08] bg-[#0c1110] md:grid-cols-[minmax(0,1fr)_17rem]" >
@@ -1146,43 +1169,50 @@ function PhilosophySection() { const { t } = useTranslation(); return ( -
+ {PRINCIPLES.map((principle) => ( - ))} -
+
); } +function DownloadActions() { + const platform = useVisitorPlatform(); + return ( +
+ {isMobilePlatform(platform) ? ( + + ) : ( + + )} +
+ {isMobilePlatform(platform) ? : } + +
+
+ ); +} + function GetStarted() { const { t } = useTranslation(); const localize = useLocalizePath(); - const platform = useVisitorPlatform(); return ( -
+
{/* The primary call to action owns its own row on phones so the small icon buttons never wrap and orphan one of themselves onto a line alone. It still hugs its label rather than stretching across the row. */} -
- {isMobilePlatform(platform) ? ( - - ) : ( - - )} -
- {isMobilePlatform(platform) ? : } - -
-
+
{t("landing.getStarted.supports")}
@@ -1192,7 +1222,7 @@ function GetStarted() {
{t("common.more", { count: ADDITIONAL_AGENT_COUNT })} @@ -1201,6 +1231,28 @@ function GetStarted() { ); } +function ClosingCtaSection() { + const { t } = useTranslation(); + return ( +
+
+ + + +
+ + +
+ ); +} + const PRIMARY_CTA_CLASS = "inline-flex items-center justify-center gap-2 rounded-lg bg-foreground px-4 py-2.5 text-sm font-medium text-background hover:bg-foreground/90 transition-colors"; const SECONDARY_CTA_CLASS = @@ -1344,7 +1396,7 @@ function PhoneShowcase() { const textAnimate = React.useMemo(() => (textInView ? FADE_IN : {}), [textInView]); return ( -
+
{/* Arrow + text */} -

{t("landing.faq.title")}

-
+ +
{FAQ_ENTRIES.map((entry) => ( ))}
- + ); } diff --git a/packages/website/src/components/page-frame.tsx b/packages/website/src/components/page-frame.tsx new file mode 100644 index 0000000000..73bfd00440 --- /dev/null +++ b/packages/website/src/components/page-frame.tsx @@ -0,0 +1,215 @@ +import { ExternalLink } from "lucide-react"; +import type * as React from "react"; +import { SiteHeader } from "~/components/site-header"; + +/** Shared outer rail width and vertical hairlines across marketing pages. */ +export const PAGE_RAIL_CLASS = "mx-auto w-full max-w-[1160px] md:border-x md:border-white/[0.07]"; + +/** Shared inner horizontal padding so every page element shares one left/right rail. */ +export const PAGE_INSET_CLASS = "px-5 sm:px-8 md:px-14"; + +/** Full-width header band locking logo and navigation to the same (x, y) across pages. */ +export function PageHeaderBand() { + return ( +
+
+ +
+
+ ); +} + +const BAND_PADDING = { + chapter: "py-16 md:py-24", + section: "py-14 md:py-20", + compact: "py-12 md:py-16", + hero: "pt-12 pb-14 md:pt-16 md:pb-20", + none: "", +} as const; + +/** + * A full-width architectural band separated by a 1px horizontal hairline with quiet crosshair + * ticks where the horizontal rule meets the vertical frame rails. + */ +export function ChapterBand({ + children, + spacing = "chapter", + ruled = true, + ticks = true, + tint = "none", + className = "", + id, +}: { + children: React.ReactNode; + spacing?: keyof typeof BAND_PADDING; + ruled?: boolean; + ticks?: boolean; + tint?: "none" | "subtle"; + className?: string; + id?: string; +}) { + return ( +
+
+ {ruled && ticks ? : null} + {children} +
+
+ ); +} + +/** Quiet 9px hairlines centered on the left and right vertical rail intersections. */ +function RailIntersectionTicks() { + return ( + <> +