veza/apps/web/src/components/branding/Logo.stories.tsx

126 lines
3.8 KiB
TypeScript
Raw Normal View History

feat(branding): scaffold Logo component + Sumi icons + brand assets pipeline (Sprint 3) Sprint 3 = production assets (logo, icons, hero, textures). Most deliverables are physical artistic work (artist Renaud + Nikola scans). This commit lays the CODE scaffold so assets drop in without friction when delivered. New : apps/web/src/components/branding/ - Logo.tsx — single source of truth for Talas / Veza brand rendering. Replaces ad-hoc inline wordmarks (Sidebar/Navbar/Footer/landing each had their own VEZA <h2>). Variants: wordmark / symbol / lockup. Sizes xs..xl. Colors auto/ink/cyan/inverse. Optional tagline. Horizontal/vertical orient. - assets/SymbolPlaceholder.tsx — geometric ink stroke + arc + dot, monochrome, currentColor inheritance, scalable. Mirrors charte §3.1 brief. Replaced by artist's hand-drawn mark in P0.1 of BRIEF_ARTISTE. - Logo.stories.tsx — full Storybook coverage: variants, sizes, colors, orientation, Talas vs Veza, all-sizes ladder. - index.ts — barrel exports. New : apps/web/src/components/icons/sumi/ - Play.tsx — first calligraphic icon stub (programmatic approximation per charte §6.3). 9 more to come (Pause, Search, Profile, Chat, Upload, Settings, Home, Close, Volume). - index.ts — barrel + commented TODO list per priority. - Used via existing components/icons/SumiIcon.tsx wrapper which falls back to Lucide when no Sumi version exists. Brand alignment of platform metadata : - public/favicon.svg — Mizu cyan placeholder (#0098B5) replacing default vite.svg. Mirrors SymbolPlaceholder geometry. - public/manifest.json — theme_color #1a1a1a -> #0098B5 (SUMI accent), background_color #ffffff -> #0D0D0F (charte §4.4 rule 1: no pure white). - index.html — theme-color meta + msapplication-TileColor aligned to SUMI. Favicon link points to /favicon.svg. New doc : apps/web/docs/BRANDING.md - Architecture map of brand assets in apps/web. - Logo component API + usage examples. - Asset deliverables status table (P0/P1/P2 from brief artiste, all 🟡 placeholders). - Naming convention for raw scans + processed SVGs. - Step-by-step "how to integrate a delivered asset" for wordmark and Sumi icon. - Brand color guard (ESLint rule pointer). Build OK (vite 12.6s). Typecheck clean. No visual regression — Sidebar/Navbar inline wordmarks intentionally NOT migrated yet (they use fontWeight 300 which contradicts charte's Bold requirement; a per-screen migration call later). Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-04-27 15:08:17 +00:00
import type { Meta, StoryObj } from '@storybook/react-vite';
import { Logo } from './Logo';
const meta = {
title: 'Branding/Logo',
component: Logo,
parameters: {
layout: 'centered',
docs: {
description: {
component:
'Single source of truth for Talas / Veza brand rendering. Use this component everywhere a wordmark, symbol, or lockup is needed. See `CHARTE_GRAPHIQUE_TALAS.md §3` for the logo specifications. The current SVG symbol is a placeholder until the artist (Renaud, P0.1) delivers the hand-drawn calligraphic mark.',
},
},
},
argTypes: {
brand: {
control: 'inline-radio',
options: ['talas', 'veza'],
},
variant: {
control: 'inline-radio',
options: ['wordmark', 'symbol', 'lockup'],
},
size: {
control: 'inline-radio',
options: ['xs', 'sm', 'md', 'lg', 'xl'],
},
color: {
control: 'inline-radio',
options: ['auto', 'ink', 'cyan', 'inverse'],
},
orientation: {
control: 'inline-radio',
options: ['horizontal', 'vertical'],
},
},
args: {
brand: 'veza',
variant: 'wordmark',
size: 'md',
color: 'auto',
},
} satisfies Meta<typeof Logo>;
export default meta;
type Story = StoryObj<typeof meta>;
export const Default: Story = {};
export const VezaWordmark: Story = {
args: { brand: 'veza', variant: 'wordmark', size: 'lg' },
};
export const TalasWordmark: Story = {
args: { brand: 'talas', variant: 'wordmark', size: 'lg' },
};
export const Symbol: Story = {
args: { brand: 'talas', variant: 'symbol', size: 'xl' },
};
export const LockupHorizontal: Story = {
args: { brand: 'veza', variant: 'lockup', size: 'lg', tagline: 'STREAMING' },
};
export const LockupVertical: Story = {
args: { brand: 'talas', variant: 'lockup', size: 'lg', orientation: 'vertical' },
};
export const Cyan: Story = {
args: { brand: 'veza', variant: 'lockup', size: 'lg', color: 'cyan', tagline: 'BETA' },
};
export const Inverse: Story = {
args: { brand: 'talas', variant: 'wordmark', size: 'xl', color: 'inverse' },
parameters: { backgrounds: { default: 'dark' } },
};
export const AllSizes: Story = {
render: () => (
<div className="flex flex-col gap-6 items-start">
{(['xs', 'sm', 'md', 'lg', 'xl'] as const).map((size) => (
<div key={size} className="flex items-center gap-4">
<span className="text-xs text-muted-foreground tracking-widest uppercase w-8">{size}</span>
<Logo brand="veza" variant="lockup" size={size} tagline="STREAMING" />
</div>
))}
</div>
),
};
export const AllVariants: Story = {
render: () => (
<div className="grid grid-cols-3 gap-8 items-start">
<div className="flex flex-col gap-2">
<span className="text-xs text-muted-foreground uppercase">Wordmark</span>
<Logo brand="veza" variant="wordmark" size="lg" />
</div>
<div className="flex flex-col gap-2">
<span className="text-xs text-muted-foreground uppercase">Symbol</span>
<Logo brand="talas" variant="symbol" size="lg" />
</div>
<div className="flex flex-col gap-2">
<span className="text-xs text-muted-foreground uppercase">Lockup</span>
<Logo brand="veza" variant="lockup" size="lg" tagline="STREAMING" />
</div>
</div>
),
};
export const TalasVsVeza: Story = {
render: () => (
<div className="grid grid-cols-2 gap-8 items-start">
<div className="flex flex-col gap-2">
<span className="text-xs text-muted-foreground uppercase">Talas (mother brand)</span>
<Logo brand="talas" variant="lockup" size="xl" />
</div>
<div className="flex flex-col gap-2">
<span className="text-xs text-muted-foreground uppercase">Veza (sub-brand)</span>
<Logo brand="veza" variant="lockup" size="xl" tagline="STREAMING" />
</div>
</div>
),
};