diff --git a/packages/website/public/favicon.ico b/packages/website/public/favicon.ico index 936d6640a..045a40261 100644 Binary files a/packages/website/public/favicon.ico and b/packages/website/public/favicon.ico differ diff --git a/packages/website/public/favicon.svg b/packages/website/public/favicon.svg index 0ef308b97..06c329c81 100644 --- a/packages/website/public/favicon.svg +++ b/packages/website/public/favicon.svg @@ -1,4 +1,4 @@ - - + + diff --git a/packages/website/public/logo.svg b/packages/website/public/logo.svg index b8ca9396c..152c280e8 100644 --- a/packages/website/public/logo.svg +++ b/packages/website/public/logo.svg @@ -1,3 +1,3 @@ - - + + diff --git a/packages/website/src/components/landing-page.tsx b/packages/website/src/components/landing-page.tsx index 8afa87a3a..b84da5ec8 100644 --- a/packages/website/src/components/landing-page.tsx +++ b/packages/website/src/components/landing-page.tsx @@ -89,6 +89,7 @@ import { PiIcon, } from "~/components/agent-icons"; import { DiscordIcon, GitHubIcon, SlackIcon } from "~/components/brand-icons"; +import { PaseoHubMark } from "~/components/paseo-brand"; import { MobileChat, MobileDiff, @@ -515,6 +516,7 @@ function TurnkeySection() { description={t("landing.runAnywhere.teamsDescription")} ctaHref={localize("/hub")} ctaLabel={t("landing.runAnywhere.teamsCta")} + ctaIcon={PASEO_HUB_CTA_ICON} showIntegrationIcons /> @@ -523,12 +525,15 @@ function TurnkeySection() { ); } +const PASEO_HUB_CTA_ICON = ; + function TurnkeyExtensionCard({ icon: Icon, title, description, ctaHref, ctaLabel, + ctaIcon, showIntegrationIcons = false, }: { icon: LucideIcon; @@ -536,6 +541,7 @@ function TurnkeyExtensionCard({ description: string; ctaHref: string; ctaLabel: string; + ctaIcon?: React.ReactNode; showIntegrationIcons?: boolean; }) { return ( @@ -545,6 +551,7 @@ function TurnkeyExtensionCard({ href={ctaHref} className="inline-flex items-center gap-1.5 rounded-full bg-foreground px-2.5 py-1.5 text-xs text-background transition-colors hover:bg-foreground/90" > + {ctaIcon} {ctaLabel} diff --git a/packages/website/src/components/mockup/icons.tsx b/packages/website/src/components/mockup/icons.tsx index 260aeefd0..3e3094afc 100644 --- a/packages/website/src/components/mockup/icons.tsx +++ b/packages/website/src/components/mockup/icons.tsx @@ -1,21 +1,11 @@ // Exact SVG paths from packages/app/src/components/icons/ import { OpenCodeIcon as OpenCodeBrandIcon, PiIcon as PiBrandIcon } from "../agent-icons"; +import { PaseoMark as CanonicalPaseoMark } from "../paseo-brand"; -/** The Paseo brand swirl — public/logo.svg, drawn as a small sidebar avatar mark. */ +/** The Paseo butterfly mark, drawn as a small sidebar avatar or tool-call mark. */ export function PaseoMark({ size = 13, className }: { size?: number; className?: string }) { - return ( - - ); + return ; } /** GitHub mark for the toolbar and PR panel. */ diff --git a/packages/website/src/components/mockup/mobile/atoms.tsx b/packages/website/src/components/mockup/mobile/atoms.tsx index 175e58049..56994b45b 100644 --- a/packages/website/src/components/mockup/mobile/atoms.tsx +++ b/packages/website/src/components/mockup/mobile/atoms.tsx @@ -1,25 +1,11 @@ -// Small shared bits for the mobile mockups. The Paseo butterfly mark is the -// app icon (packages/website/public/favicon.svg) with the black plate dropped, -// so it can be tinted and placed on any tile. Tile fills are the app's identity +// Small shared bits for the mobile mockups. Tile fills are the app's identity // palette — packages/app/src/styles/identity-colors.ts — surfaced as // `--color-mock-tile-*` tokens in styles.css. -const BUTTERFLY_D = - "M291.495 91.399C333.897 104.892 379.155 135.075 416.229 173.191C453.389 211.394 484.429 259.725 495.708 311.251C497.555 319.693 498.865 328.216 499.586 336.776C509.755 326.554 519.867 317.815 529.89 311.547C540.647 304.821 553.808 299.297 568.641 299.785C584.29 300.299 597.395 307.326 607.747 317.632C632.173 341.947 629.612 372.898 619.872 397.936C610.185 422.833 591.557 447.826 572.732 469.124C553.591 490.78 532.713 510.308 516.779 524.318C508.775 531.355 501.936 537.073 497.07 541.052C494.635 543.043 492.689 544.603 491.334 545.679C490.657 546.217 490.126 546.635 489.756 546.926C489.571 547.071 489.425 547.184 489.321 547.265C489.269 547.305 489.227 547.338 489.196 547.362C489.181 547.374 489.168 547.385 489.157 547.393C489.153 547.397 489.147 547.401 489.144 547.403C489.134 547.4 488.837 547.06 473.001 528.499L489.135 547.411C478.157 555.911 462.033 554.334 453.122 543.89C444.213 533.448 445.887 518.094 456.861 509.592C456.863 509.591 456.865 509.588 456.869 509.586C456.88 509.577 456.902 509.561 456.933 509.536C456.997 509.487 457.101 509.404 457.245 509.292C457.533 509.066 457.979 508.715 458.569 508.247C459.749 507.31 461.506 505.901 463.742 504.073C468.216 500.414 474.589 495.088 482.073 488.508C497.114 475.284 516.315 457.282 533.578 437.75C551.157 417.862 565.26 398.01 571.859 381.048C578.403 364.227 575.681 356.302 570.724 351.367C568.928 349.579 567.744 348.902 567.267 348.676C566.888 348.496 566.811 348.52 566.804 348.52C566.605 348.513 563.971 348.537 557.953 352.3C545.161 360.299 528.815 377.492 506.807 403.867C494.927 418.106 481.871 434.435 467.547 451.957C463.709 457.28 459.503 462.538 454.91 467.717L454.702 467.549C420.808 508.347 380.37 553.856 332.335 593.848C301.853 619.226 262.656 622.597 228.642 614.743C194.834 606.936 162.658 587.448 142.217 561.686C108.054 518.631 100.57 469.801 108.223 427.836C115.56 387.606 137.391 351.005 166.502 331.557C161.248 315.813 156.813 299.49 153.519 283.013C142.593 228.368 143.239 167.031 174.28 119.619C186.922 100.31 205.846 89.1535 227.387 85.2773C248.1 81.5504 270.278 84.648 291.495 91.399ZM378.642 206.356C345.773 172.563 307.463 147.917 275.208 137.654C259.096 132.527 246.171 131.514 236.828 133.195C228.314 134.727 222.227 138.497 217.721 145.38C196.712 177.468 193.858 224.004 203.82 273.827C206.532 287.394 210.127 300.834 214.345 313.817C236.45 310.276 260.156 311.463 281.22 317.11C319.621 327.403 357.501 355.419 357.501 405.654C357.501 435.255 339.111 465.136 307.278 473.815C273.211 483.103 238.854 464.822 213.105 427.541C203.716 413.947 194.443 397.766 185.947 379.89C174.028 392.223 163.08 411.953 158.673 436.118C153.128 466.518 158.514 501.286 183.085 532.253C195.993 548.522 217.742 562.031 240.771 567.349C263.594 572.619 284.147 569.24 298.664 557.154C349.383 514.927 390.709 466.547 426.366 422.952C448.879 390.86 453.195 356.06 445.578 321.265C436.703 280.718 411.425 240.06 378.642 206.356ZM306.296 405.722C306.296 384.769 292.223 370.736 267.284 364.051C256.012 361.03 244.156 360.087 233.095 360.771C240.361 375.935 248.168 389.513 255.897 400.704C275.647 429.298 289.989 427.822 293.247 426.934C298.737 425.437 306.296 418.161 306.296 405.722Z"; +import { PaseoMark as CanonicalPaseoMark } from "../../paseo-brand"; export function PaseoMark({ size = 20, className }: { size?: number; className?: string }) { - return ( - - ); + return ; } /** A hashed identity tile — one letter on a muted identity fill. */ diff --git a/packages/website/src/components/paseo-brand.test.tsx b/packages/website/src/components/paseo-brand.test.tsx new file mode 100644 index 000000000..483b67606 --- /dev/null +++ b/packages/website/src/components/paseo-brand.test.tsx @@ -0,0 +1,74 @@ +import { readFileSync } from "node:fs"; +import path from "node:path"; +import { renderToStaticMarkup } from "react-dom/server"; +import { describe, expect, it } from "vitest"; +import { HubLockup, PaseoHubLockup, PaseoHubMark, PaseoLockup, PaseoMark } from "./paseo-brand"; + +const REPO_ROOT = path.resolve(import.meta.dirname, "../../../.."); +const BRAND_ROOT = path.join(REPO_ROOT, "assets/brand"); +const WEBSITE_PUBLIC = path.join(REPO_ROOT, "packages/website/public"); + +function extractPathData(svg: string): string[] { + return [...svg.matchAll(/\bd="([^"]+)"/g)].map((m) => m[1]); +} + +describe("paseo brand assets", () => { + it("renders canonical Paseo and Paseo Hub marks with currentColor", () => { + const paseoHtml = renderToStaticMarkup(); + const hubHtml = renderToStaticMarkup(); + const canonicalPaseo = readFileSync(path.join(BRAND_ROOT, "marks/paseo-white.svg"), "utf8"); + const canonicalHub = readFileSync(path.join(BRAND_ROOT, "marks/paseo-hub-white.svg"), "utf8"); + + expect(paseoHtml).toContain('viewBox="0 0 700 700"'); + expect(paseoHtml).toContain('stroke="currentColor"'); + expect(paseoHtml).toContain('stroke-width="50"'); + expect(extractPathData(paseoHtml)).toEqual(extractPathData(canonicalPaseo)); + + expect(hubHtml).toContain('viewBox="0 0 700 700"'); + expect(hubHtml).toContain('stroke="currentColor"'); + expect(hubHtml).toContain('stroke-width="50"'); + expect(extractPathData(hubHtml)).toEqual(extractPathData(canonicalHub)); + }); + + it("renders canonical Paseo, Paseo Hub, and Hub lockups at shared 144-unit height", () => { + const cases = [ + { Component: PaseoLockup, file: "lockups/paseo-white.svg", width: 580 }, + { Component: PaseoHubLockup, file: "lockups/paseo-hub-white.svg", width: 842 }, + { Component: HubLockup, file: "lockups/hub-white.svg", width: 461 }, + ]; + + for (const { Component, file, width } of cases) { + const html = renderToStaticMarkup(); + const canonical = readFileSync(path.join(BRAND_ROOT, file), "utf8"); + + expect(html).toContain(`viewBox="0 0 ${width} 144"`); + expect(html).toContain(`width="${width}"`); + expect(html).toContain('height="144"'); + expect(html).toContain('stroke="currentColor"'); + expect(html).toContain('fill="currentColor"'); + expect(extractPathData(html)).toEqual(extractPathData(canonical)); + } + }); + + it("keeps public/logo.svg and public/favicon.svg aligned with assets/brand", () => { + const canonicalPaseo = readFileSync(path.join(BRAND_ROOT, "marks/paseo-white.svg"), "utf8"); + const publicLogo = readFileSync(path.join(WEBSITE_PUBLIC, "logo.svg"), "utf8"); + const publicFavicon = readFileSync(path.join(WEBSITE_PUBLIC, "favicon.svg"), "utf8"); + + expect(publicLogo).toBe(canonicalPaseo); + expect(publicFavicon).toContain(' { + const ico = readFileSync(path.join(WEBSITE_PUBLIC, "favicon.ico")); + expect(ico.readUInt16LE(0)).toBe(0); + expect(ico.readUInt16LE(2)).toBe(1); + const count = ico.readUInt16LE(4); + const sizes: number[] = []; + for (let i = 0; i < count; i += 1) { + sizes.push(ico[6 + i * 16] || 256); + } + expect(sizes).toEqual([48, 32, 16]); + }); +}); diff --git a/packages/website/src/components/paseo-brand.tsx b/packages/website/src/components/paseo-brand.tsx new file mode 100644 index 000000000..73c620a83 --- /dev/null +++ b/packages/website/src/components/paseo-brand.tsx @@ -0,0 +1,154 @@ +// Canonical Paseo and Paseo Hub brand marks and lockups, sourced directly from +// `assets/brand/` (see `assets/brand/README.md`). + +import type * as React from "react"; +import hubLockupSvg from "../../../../assets/brand/lockups/hub-white.svg?raw"; +import paseoHubLockupSvg from "../../../../assets/brand/lockups/paseo-hub-white.svg?raw"; +import paseoLockupSvg from "../../../../assets/brand/lockups/paseo-white.svg?raw"; +import paseoHubMarkSvg from "../../../../assets/brand/marks/paseo-hub-white.svg?raw"; +import paseoMarkSvg from "../../../../assets/brand/marks/paseo-white.svg?raw"; + +interface ParsedMark { + width: number; + height: number; + viewBox: string; + path: string; + strokeWidth: number; +} + +interface ParsedLockup extends ParsedMark { + wordmarkPath: string; +} + +function readAttr(tag: string, name: string, source: string): string { + const match = tag.match(new RegExp(`${name}="([^"]+)"`)); + if (!match) { + throw new Error(`Missing ${name} attribute in canonical brand SVG (${source})`); + } + return match[1]; +} + +function parseSvgHeader(svg: string, source: string) { + const svgTag = svg.match(/]*>/)?.[0]; + if (!svgTag) { + throw new Error(`Missing root in canonical brand SVG (${source})`); + } + const paths = [...svg.matchAll(/]*\/?>/g)].map((m) => m[0]); + return { + width: Number(readAttr(svgTag, "width", source)), + height: Number(readAttr(svgTag, "height", source)), + viewBox: readAttr(svgTag, "viewBox", source), + paths, + }; +} + +function parseMark(svg: string, source: string): ParsedMark { + const { width, height, viewBox, paths } = parseSvgHeader(svg, source); + if (paths.length !== 1) { + throw new Error(`Expected 1 path in brand mark SVG (${source}), found ${paths.length}`); + } + return { + width, + height, + viewBox, + path: readAttr(paths[0], "d", source), + strokeWidth: Number(readAttr(paths[0], "stroke-width", source)), + }; +} + +function parseLockup(svg: string, source: string): ParsedLockup { + const { width, height, viewBox, paths } = parseSvgHeader(svg, source); + if (paths.length !== 2) { + throw new Error(`Expected 2 paths in brand lockup SVG (${source}), found ${paths.length}`); + } + return { + width, + height, + viewBox, + path: readAttr(paths[0], "d", source), + strokeWidth: Number(readAttr(paths[0], "stroke-width", source)), + wordmarkPath: readAttr(paths[1], "d", source), + }; +} + +const PASEO_MARK = parseMark(paseoMarkSvg, "marks/paseo-white.svg"); +const PASEO_HUB_MARK = parseMark(paseoHubMarkSvg, "marks/paseo-hub-white.svg"); +const PASEO_LOCKUP = parseLockup(paseoLockupSvg, "lockups/paseo-white.svg"); +const PASEO_HUB_LOCKUP = parseLockup(paseoHubLockupSvg, "lockups/paseo-hub-white.svg"); +const HUB_LOCKUP = parseLockup(hubLockupSvg, "lockups/hub-white.svg"); + +function BrandMark({ asset, props }: { asset: ParsedMark; props: React.SVGProps }) { + return ( + + ); +} + +function BrandLockup({ + asset, + props, +}: { + asset: ParsedLockup; + props: React.SVGProps; +}) { + return ( + + ); +} + +/** Canonical Paseo butterfly mark (700x700 viewBox, stroked with currentColor). */ +export function PaseoMark(props: React.SVGProps) { + return ; +} + +/** Canonical Paseo Hub five-petal flower mark (700x700 viewBox, stroked with currentColor). */ +export function PaseoHubMark(props: React.SVGProps) { + return ; +} + +/** Canonical Paseo lockup (butterfly mark at 94% optical scale + Plus Jakarta Sans SemiBold). */ +export function PaseoLockup(props: React.SVGProps) { + return ; +} + +/** Canonical Paseo Hub lockup (flower mark + Plus Jakarta Sans SemiBold). */ +export function PaseoHubLockup(props: React.SVGProps) { + return ; +} + +/** Canonical Hub lockup (flower mark + "Hub"), used where Paseo is already on screen. */ +export function HubLockup(props: React.SVGProps) { + return ; +} diff --git a/packages/website/src/components/site-header.tsx b/packages/website/src/components/site-header.tsx index 249b9ebd8..3925e72c1 100644 --- a/packages/website/src/components/site-header.tsx +++ b/packages/website/src/components/site-header.tsx @@ -3,6 +3,7 @@ import { PLUGINS_LINKED } from "~/plugins/launch"; import "~/styles.css"; import { DiscordIcon, GitHubIcon } from "~/components/brand-icons"; import { LanguageSelector } from "~/components/language-selector"; +import { PaseoLockup } from "~/components/paseo-brand"; import { useLocalizePath } from "~/i18n"; import { useStars } from "~/routes/__root"; @@ -14,9 +15,12 @@ export function SiteHeader() { const { stars } = useStars(); return (
- -
Paseo - Paseo + +
{PLUGINS_LINKED && ( diff --git a/packages/website/src/routes/{-$locale}/docs.tsx b/packages/website/src/routes/{-$locale}/docs.tsx index 1e6c24a51..3d454f35a 100644 --- a/packages/website/src/routes/{-$locale}/docs.tsx +++ b/packages/website/src/routes/{-$locale}/docs.tsx @@ -9,6 +9,7 @@ import { useTranslation } from "react-i18next"; import { buildDocsNavTree, getDoc, getDocs } from "~/docs"; import { splitLocalePath, useLocale, useLocalizePath } from "~/i18n"; import { LanguageSelector } from "~/components/language-selector"; +import { PaseoLockup } from "~/components/paseo-brand"; import "~/styles.css"; export const Route = createFileRoute("/{-$locale}/docs")({ @@ -35,9 +36,12 @@ function DocsLayout() { {/* Mobile header */}
- - Paseo - Paseo + +
@@ -63,9 +67,12 @@ function DocsLayout() { {/* Desktop sidebar */}