From 7bc370b71b200950b8349ea89012c33ffd5aa8a8 Mon Sep 17 00:00:00 2001 From: Willie Date: Thu, 17 Sep 2026 12:39:48 +0800 Subject: [PATCH] feat(website): redesign homepage as string board and add feature map The homepage now shows the product's core idea directly: one source folder strung to many AI tools. Visitors can pin and unpin tools and watch the sync output follow, instead of reading a feature list. A new /features page groups all 33 commands by the job they serve with a live filter, addressing the difficulty of finding the right command among 100+ docs pages. Command data lives in src/data/featureMap.ts so the homepage teaser and the map stay in sync. --- website/docusaurus.config.ts | 5 + website/src/css/custom.css | 2 +- website/src/data/featureMap.ts | 145 +++ website/src/pages/features.module.css | 366 ++++++ website/src/pages/features.tsx | 131 ++ website/src/pages/index.module.css | 1642 +++++++++++++------------ website/src/pages/index.tsx | 711 ++++++----- 7 files changed, 1899 insertions(+), 1103 deletions(-) create mode 100644 website/src/data/featureMap.ts create mode 100644 website/src/pages/features.module.css create mode 100644 website/src/pages/features.tsx diff --git a/website/docusaurus.config.ts b/website/docusaurus.config.ts index e686f3a27..0465396d6 100644 --- a/website/docusaurus.config.ts +++ b/website/docusaurus.config.ts @@ -175,6 +175,11 @@ const config: Config = { label: 'Reference', position: 'left', }, + { + to: '/features', + label: 'Feature map', + position: 'left', + }, { to: '/blog', label: 'Blog', diff --git a/website/src/css/custom.css b/website/src/css/custom.css index 8c8cf1280..08655a21a 100644 --- a/website/src/css/custom.css +++ b/website/src/css/custom.css @@ -5,7 +5,7 @@ * Typography: Inter (headings) + IBM Plex Sans (body) + JetBrains Mono (code) */ -@import url('https://fonts.googleapis.com/css2?family=Kalam:wght@700&family=Inter:wght@400;500;600;700&family=IBM+Plex+Sans:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500;600;700&display=swap'); +@import url('https://fonts.googleapis.com/css2?family=Kalam:wght@400;700&family=Inter:wght@400;500;600;700&family=IBM+Plex+Sans:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500;600;700&display=swap'); /* ======================================== LIGHT MODE — Paper diff --git a/website/src/data/featureMap.ts b/website/src/data/featureMap.ts new file mode 100644 index 000000000..7c8c94281 --- /dev/null +++ b/website/src/data/featureMap.ts @@ -0,0 +1,145 @@ +// Feature Map data: every command grouped by the job it serves. +// Shared by the homepage teaser and the /features page. + +export type FeatureItem = { + cmd: string; + what: string; + kw: string; + href: string; +}; + +export type FeatureGroup = { + id: string; + num: string; + title: string; + when: string; + teaser: string; + items: FeatureItem[]; + guides: {label: string; href: string}[]; +}; + +const C = '/docs/reference/commands/'; +const D = '/docs/'; + +export const COMMAND_COUNT = 33; +export const TARGET_COUNT = 66; + +export const FEATURE_GROUPS: FeatureGroup[] = [ + { + id: 'setup', + num: '01', + title: 'Get set up', + when: 'first time, a new machine, or a new AI tool', + teaser: 'init · install · sync', + items: [ + {cmd: 'init', what: 'Detect installed tools and create the source folder', kw: 'start begin setup detect config', href: C + 'init'}, + {cmd: 'install', what: 'Add skills from GitHub, any git URL or a local path', kw: 'add get download repo clone', href: C + 'install'}, + {cmd: 'sync', what: 'Symlink the source into every target', kw: 'link symlink apply', href: C + 'sync'}, + {cmd: 'doctor', what: 'Check config, targets and symlink health', kw: 'diagnose broken health fix', href: C + 'doctor'}, + {cmd: 'completion', what: 'Shell completions for zsh, bash and fish', kw: 'shell tab autocomplete', href: C + 'completion'}, + {cmd: 'upgrade', what: 'Upgrade the skillshare binary itself', kw: 'version latest self update', href: C + 'upgrade'}, + ], + guides: [ + {label: 'First sync in 5 minutes', href: D + 'getting-started/first-sync'}, + {label: 'From existing skills', href: D + 'getting-started/from-existing-skills'}, + {label: 'Windows notes', href: D + 'troubleshooting/windows'}, + ], + }, + { + id: 'sync', + num: '02', + title: 'Keep tools in sync', + when: 'daily: you changed a skill, added a tool, something drifted', + teaser: 'status · diff · collect', + items: [ + {cmd: 'status', what: 'What is linked, local or out of date, per target', kw: 'state overview drift', href: C + 'status'}, + {cmd: 'diff', what: 'Differences between source and targets', kw: 'compare changed', href: C + 'diff'}, + {cmd: 'collect', what: 'Pull skills created inside a tool back to the source', kw: 'reverse import bidirectional cursor claude', href: C + 'collect'}, + {cmd: 'check', what: 'Which tracked repos have updates upstream', kw: 'outdated remote', href: C + 'check'}, + {cmd: 'update', what: 'Update tracked repos and installed skills', kw: 'refresh pull latest', href: C + 'update'}, + {cmd: 'uninstall', what: 'Remove a skill from source and all targets', kw: 'delete remove', href: C + 'uninstall'}, + ], + guides: [ + {label: 'Daily workflow', href: D + 'how-to/daily-tasks/daily-workflow'}, + {label: 'Sync modes: merge vs symlink', href: D + 'understand/sync-modes'}, + {label: 'Source and targets', href: D + 'understand/source-and-targets'}, + ], + }, + { + id: 'find', + num: '03', + title: 'Find & install skills', + when: 'looking for something someone already wrote', + teaser: 'search · hub · list', + items: [ + {cmd: 'search', what: 'Search GitHub for skills and install from the results', kw: 'discover github lookup', href: C + 'search'}, + {cmd: 'hub', what: 'Saved hub sources for organization-wide discovery', kw: 'index catalog registry org', href: C + 'hub'}, + {cmd: 'list', what: 'What you have installed, with filters', kw: 'show installed ls', href: C + 'list'}, + {cmd: 'tui', what: 'Toggle the interactive terminal UI globally', kw: 'interactive terminal browse', href: C + 'tui'}, + {cmd: 'ui', what: 'Web dashboard on localhost:19420', kw: 'browser web dashboard gui', href: C + 'ui'}, + ], + guides: [ + {label: 'Skill discovery', href: D + 'how-to/daily-tasks/skill-discovery'}, + {label: 'Hub index', href: D + 'how-to/sharing/hub-index'}, + {label: 'URL formats', href: D + 'reference/appendix/url-formats'}, + ], + }, + { + id: 'share', + num: '04', + title: 'Share & teams', + when: 'same skills across machines, a team, or one project', + teaser: 'push · pull · --track', + items: [ + {cmd: 'push / pull', what: 'Git-sync the source folder with any remote', kw: 'git remote machine laptop desktop github gitlab', href: C + 'push'}, + {cmd: 'commit', what: 'Commit source changes locally without pushing', kw: 'git save', href: C + 'commit'}, + {cmd: 'install --track', what: 'Follow an organization repo; updates flow in with update', kw: 'team org standards tracked company', href: D + 'understand/tracked-repositories'}, + {cmd: '-p / project', what: 'Skills that ship with a repo, in .skillshare/', kw: 'project mode local repo team', href: D + 'understand/project-skills'}, + {cmd: 'target', what: 'Add, remove or configure sync targets', kw: 'custom tool path add', href: C + 'target'}, + ], + guides: [ + {label: 'Organization-wide skills', href: D + 'how-to/sharing/organization-sharing'}, + {label: 'Cross-machine sync', href: D + 'how-to/sharing/cross-machine-sync'}, + {label: 'Team onboarding recipe', href: D + 'how-to/recipes/team-onboarding-recipe'}, + ], + }, + { + id: 'safe', + num: '05', + title: 'Stay safe', + when: 'before you trust a skill, or after something went wrong', + teaser: 'audit · backup · trash', + items: [ + {cmd: 'audit', what: 'Scan for prompt injection, exfiltration and destructive commands', kw: 'security scan threat malicious', href: C + 'audit'}, + {cmd: 'audit-rules', what: 'Tune thresholds and the rules that block installs', kw: 'security configure severity', href: C + 'audit-rules'}, + {cmd: 'backup / restore', what: 'Snapshot targets and roll back', kw: 'undo snapshot recover', href: C + 'backup'}, + {cmd: 'trash', what: 'Soft-deleted skills with TTL expiry', kw: 'recover deleted restore', href: C + 'trash'}, + {cmd: 'log', what: 'Operation and audit history', kw: 'history what happened oplog', href: C + 'log'}, + ], + guides: [ + {label: 'Security guide', href: D + 'how-to/advanced/security'}, + {label: 'Audit engine', href: D + 'understand/audit-engine'}, + {label: 'Backup and restore', href: D + 'how-to/daily-tasks/backup-restore'}, + ], + }, + { + id: 'write', + num: '06', + title: 'Write & organize', + when: 'authoring your own, or keeping a big set tidy', + teaser: 'new · analyze · extras', + items: [ + {cmd: 'new', what: 'Scaffold a skill with a valid SKILL.md', kw: 'create author scaffold template', href: C + 'new'}, + {cmd: 'analyze', what: 'Context window usage and skill quality per target', kw: 'tokens size budget quality', href: C + 'analyze'}, + {cmd: 'enable / disable', what: 'Turn skills off without removing them', kw: 'toggle off pause', href: C + 'enable'}, + {cmd: 'extras', what: 'Sync rules, commands and prompts alongside skills', kw: 'rules prompts agents non-skill', href: C + 'extras'}, + {cmd: 'mcp', what: 'Portable MCP definitions synced into native agent settings', kw: 'mcp server config share', href: C + 'mcp'}, + {cmd: '.skillignore', what: 'Include, exclude and filter what gets synced', kw: 'filter ignore exclude include', href: D + 'reference/filtering'}, + ], + guides: [ + {label: 'Creating skills', href: D + 'how-to/daily-tasks/creating-skills'}, + {label: 'Organizing skills', href: D + 'how-to/daily-tasks/organizing-skills'}, + {label: 'Skill format', href: D + 'understand/skill-format'}, + ], + }, +]; diff --git a/website/src/pages/features.module.css b/website/src/pages/features.module.css new file mode 100644 index 000000000..45969e40b --- /dev/null +++ b/website/src/pages/features.module.css @@ -0,0 +1,366 @@ +/* Feature map: every command grouped by job, with a live filter. */ + +.page { + padding-bottom: 3.5rem; +} + +.header { + padding-top: 3rem; + padding-bottom: 1.5rem; + display: flex; + flex-direction: column; + gap: 1.5rem; +} + +.headRow { + display: flex; + align-items: flex-end; + justify-content: space-between; + gap: 2rem; +} + +.headText { + max-width: 760px; +} + +.title { + font-size: clamp(2.2rem, 4.5vw, 3.4rem); + line-height: 1.08; + letter-spacing: -0.015em; + margin: 0 0 0.75rem; +} + +.mark { + background: linear-gradient(transparent 58%, var(--color-postit-dark) 58%, var(--color-postit-dark) 94%, transparent 94%); + padding: 0 6px; +} + +.lead { + font-size: 1.05rem; + line-height: 1.55; + color: var(--color-pencil-light); + margin: 0; +} + +.hint { + font-family: 'Kalam', cursive; + font-size: 1.5rem; + color: var(--color-pencil-light); + max-width: 220px; + line-height: 1.1; + text-align: right; + flex-shrink: 0; +} + +.searchWrap { + position: relative; +} + +.searchIcon { + position: absolute; + left: 20px; + top: 50%; + margin-top: -12px; + color: var(--color-pencil); + pointer-events: none; +} + +.search { + width: 100%; + box-sizing: border-box; + height: 64px; + padding: 0 20px 0 56px; + background: var(--card-bg); + border: 2px solid var(--card-border); + box-shadow: 5px 5px 0 0 var(--card-border); + font-family: var(--ifm-font-family-base); + font-size: 1.1rem; + font-weight: 500; + color: var(--color-pencil); + outline: none; +} + +.search:focus { + border-color: var(--color-blue); + box-shadow: 5px 5px 0 0 var(--color-blue); +} + +.search::placeholder { + color: var(--color-muted-dark); +} + +:global([data-theme='dark']) .search { + box-shadow: var(--shadow-md); +} + +.sr { + position: absolute; + width: 1px; + height: 1px; + overflow: hidden; + clip: rect(0 0 0 0); + white-space: nowrap; +} + +.chipRow { + display: flex; + align-items: center; + justify-content: space-between; + gap: 1rem; + flex-wrap: wrap; +} + +.chips { + display: flex; + flex-wrap: wrap; + gap: 0.5rem; +} + +.chip { + display: inline-flex; + align-items: center; + height: 40px; + padding: 0 1rem; + border: 1.5px solid var(--card-border); + border-radius: var(--radius-wobbly-sm); + background: var(--card-bg); + font-family: var(--ifm-font-family-base); + font-size: 0.875rem; + font-weight: 500; + color: var(--color-pencil); + cursor: pointer; +} + +.chip:hover { + background: var(--color-postit); +} + +.chipOn, +.chipOn:hover { + background: var(--color-pencil); + color: var(--color-paper); +} + +.count { + font-family: var(--ifm-font-family-monospace); + font-size: 0.8rem; + color: var(--color-pencil-light); + white-space: nowrap; +} + +/* Groups */ +.grid { + display: grid; + grid-template-columns: repeat(2, minmax(0, 1fr)); + gap: 2rem; + align-items: start; + padding-top: 0.5rem; + padding-bottom: 2.5rem; +} + +.group { + padding: 1.6rem 1.9rem 1.5rem; + display: flex; + flex-direction: column; + gap: 0.75rem; + background: var(--card-bg); + border: 2px solid var(--card-border); + border-radius: var(--radius-wobbly); + box-shadow: 6px 6px 0 0 var(--card-border); +} + +:global([data-theme='dark']) .group { + box-shadow: var(--shadow-lg); +} + +.groupHead { + display: flex; + align-items: baseline; + gap: 0.875rem; +} + +.num { + font-family: var(--ifm-heading-font-family); + font-size: 1.9rem; + font-weight: 700; + color: var(--color-blue); +} + +.groupTitle { + font-size: 1.75rem; + margin: 0; +} + +.when { + font-family: 'Kalam', cursive; + font-size: 1.3rem; + color: var(--color-pencil-light); + margin: -0.4rem 0 0; +} + +.rows { + display: flex; + flex-direction: column; + border-top: 1.5px dashed var(--color-muted-dark); + padding-top: 0.5rem; +} + +.row { + display: grid; + grid-template-columns: 172px minmax(0, 1fr) 20px; + align-items: center; + gap: 0.875rem; + padding: 0.55rem 0.75rem; + margin: 0 -0.75rem; + text-decoration: none; + color: var(--color-pencil); + border-radius: var(--radius-wobbly-sm); +} + +.row:hover { + background: var(--color-paper-warm); + color: var(--color-pencil); + text-decoration: none; +} + +.cmd { + display: inline-block; + padding: 3px 9px; + background: var(--color-postit); + border: 1.5px solid var(--card-border); + border-radius: 0; + font-size: 0.8rem; + font-weight: 600; + color: var(--color-pencil); + white-space: nowrap; +} + +.what { + font-size: 0.95rem; + line-height: 1.4; +} + +.arrow { + opacity: 0.35; + transition: opacity 0.12s, transform 0.12s; +} + +.row:hover .arrow { + opacity: 1; + transform: translateX(2px); +} + +.guides { + display: flex; + flex-wrap: wrap; + align-items: center; + gap: 0.375rem 0.875rem; + padding-top: 0.6rem; + border-top: 1.5px dashed var(--color-muted-dark); +} + +.guidesLabel { + font-family: var(--ifm-font-family-monospace); + font-size: 0.7rem; + letter-spacing: 0.08em; + text-transform: uppercase; + color: var(--color-pencil-light); +} + +.guide { + font-size: 0.85rem; +} + +.empty { + grid-column: 1 / -1; + padding: 2.5rem; + border: 2px dashed var(--color-muted-dark); + display: flex; + flex-direction: column; + align-items: center; + gap: 0.75rem; + text-align: center; +} + +.emptyTitle { + font-family: var(--ifm-heading-font-family); + font-size: 1.75rem; + font-weight: 700; + margin: 0; +} + +/* Fallback band */ +.fallback { + padding: 2rem 2.25rem; + background: var(--color-postit); + border: 2px solid var(--card-border); + box-shadow: 6px 6px 0 0 var(--card-border); + display: grid; + grid-template-columns: minmax(0, 1fr) auto; + gap: 1.5rem; + align-items: center; + transform: rotate(-0.2deg); +} + +:global([data-theme='dark']) .fallback { + box-shadow: var(--shadow-lg); +} + +.fallbackTitle { + font-size: 1.9rem; + margin: 0 0 0.375rem; +} + +.fallbackLinks { + display: flex; + flex-wrap: wrap; + gap: 0.625rem; + justify-content: flex-end; +} + +@media (max-width: 996px) { + .grid { + grid-template-columns: 1fr; + } + + .fallback { + grid-template-columns: 1fr; + } + + .fallbackLinks { + justify-content: flex-start; + } +} + +@media (max-width: 640px) { + .header { + padding-top: 2rem; + } + + .headRow { + flex-direction: column; + align-items: flex-start; + gap: 0.75rem; + } + + .hint { + text-align: left; + } + + .search { + height: 56px; + font-size: 1rem; + } + + .group { + padding: 1.25rem 1.1rem; + } + + .row { + grid-template-columns: minmax(0, 1fr) 20px; + } + + .row > span:first-child { + grid-column: 1 / -1; + } +} diff --git a/website/src/pages/features.tsx b/website/src/pages/features.tsx new file mode 100644 index 000000000..7a6d66226 --- /dev/null +++ b/website/src/pages/features.tsx @@ -0,0 +1,131 @@ +import type {ReactNode} from 'react'; +import {useState} from 'react'; +import Link from '@docusaurus/Link'; +import Layout from '@theme/Layout'; +import Heading from '@theme/Heading'; +import {ArrowRight, Search} from 'lucide-react'; + +import {COMMAND_COUNT, FEATURE_GROUPS} from '../data/featureMap'; +import styles from './features.module.css'; + +export default function Features(): ReactNode { + const [q, setQ] = useState(''); + const [group, setGroup] = useState('all'); + const needle = q.trim().toLowerCase(); + + const groups = FEATURE_GROUPS.map((g) => { + const items = needle + ? g.items.filter((it) => `${it.cmd} ${it.what} ${it.kw} ${g.title} ${g.when}`.toLowerCase().includes(needle)) + : g.items; + const visible = (group === 'all' || group === g.id) && items.length > 0; + return {...g, items, visible}; + }); + const count = groups.reduce((n, g) => n + (g.visible ? g.items.length : 0), 0); + const chips = [{id: 'all', title: 'All'}, ...FEATURE_GROUPS]; + + return ( + +
+
+
+
+ + Find the feature you actually need. + +

+ {COMMAND_COUNT} commands and 100+ docs pages, grouped by the job you're trying to do. Type a task, a command, + or a word you remember from the error. +

+
+ start from the job,
not the command list
+
+ +
+ +
+ +
+
+ {chips.map((c) => ( + + ))} +
+ + {count} of {COMMAND_COUNT} commands + +
+
+ +
+ {groups.filter((g) => g.visible).map((g) => ( +
+
+ {g.num} + {g.title} +
+

{g.when}

+
+ {g.items.map((it) => ( + + {it.cmd} + {it.what} +
+
+ Guides + {g.guides.map((d) => ( + {d.label} + ))} +
+
+ ))} + + {count === 0 && ( +
+

Nothing matches “{q}”.

+

Try a shorter word, or browse the full reference below.

+ +
+ )} +
+ +
+
+
+ Still can't find it? +

Everything is indexed in the reference, and the FAQ covers the questions people actually ask.

+
+
+ Full command reference + FAQ + Troubleshooting + Ask on GitHub +
+
+
+
+
+ ); +} diff --git a/website/src/pages/index.module.css b/website/src/pages/index.module.css index bb474a91f..f3b6ee711 100644 --- a/website/src/pages/index.module.css +++ b/website/src/pages/index.module.css @@ -1,131 +1,470 @@ -/* ======================================== - Homepage — Dot grid background (moved from body) - ======================================== */ +/* Homepage: the string board. Hand-drawn tokens come from custom.css. */ + .homePage { - background-image: radial-gradient(var(--color-muted) 1px, transparent 1px); - background-size: 24px 24px; + --board-bg: #f6eedb; + --board-dot: #e0d4b8; + --sticker-bg: #ffffff; + --ink: var(--color-pencil); + overflow-x: hidden; } :global([data-theme='dark']) .homePage { - background-image: radial-gradient(rgba(61, 56, 53, 0.6) 1px, transparent 1px); + --board-bg: #26221f; + --board-dot: #3a3430; + --sticker-bg: #2e2926; +} + +.hand { + font-family: 'Kalam', cursive; +} + +.mark { + background: linear-gradient(transparent 58%, var(--color-postit-dark) 58%, var(--color-postit-dark) 94%, transparent 94%); + padding: 0 6px; +} + +.cmd { + display: inline-block; + padding: 2px 8px; + background: var(--color-postit); + border: 1.5px solid var(--card-border); + border-radius: 0; + font-family: var(--ifm-font-family-monospace); + font-size: 0.8em; + font-weight: 600; + color: var(--color-pencil); + white-space: nowrap; +} + +.h2 { + font-size: 1.9rem; + line-height: 1.15; + margin: 0 0 0.75rem; +} + +.h2Big { + font-size: 2.5rem; + margin: 0; +} + +.lead { + font-size: 1rem; + line-height: 1.6; + color: var(--color-pencil-light); + margin: 0 0 1.25rem; +} + +.buttons { + display: flex; + gap: 0.875rem; + flex-wrap: wrap; +} + +.onlyWide { + display: block; +} + +.onlyNarrow { + display: none; +} + +@media (max-width: 640px) { + .onlyWide { + display: none; + } + + .onlyNarrow { + display: block; + } + + .moveList { + display: flex; + } } /* ======================================== - Hero Section — Hand-drawn + Hero ======================================== */ .hero { - padding: 6rem 0 4rem; - text-align: center; - position: relative; - overflow: hidden; + padding: 3rem 0 3.5rem; } -/* Shared group: logo + connector + title + underline act as one visual unit */ -.heroGroup { +.heroHead { + display: flex; + align-items: flex-end; + justify-content: space-between; + gap: 2.5rem; + margin-bottom: 1.75rem; +} + +.heroTitle { + font-family: 'Kalam', cursive; + font-size: clamp(2.4rem, 5vw, 3.75rem); + line-height: 1.12; + font-weight: 700; + margin: 0 0 0.875rem; + animation: titleSlideIn 0.6s ease-out 0.2s both; +} + +.heroSubtitle { + font-size: 1.15rem; + line-height: 1.6; + color: var(--color-pencil-light); + max-width: 620px; + margin: 0; +} + +.heroHint { + font-size: 1.35rem; + color: var(--color-pencil-light); + text-align: right; + line-height: 1.1; + flex-shrink: 0; + padding-bottom: 6px; +} + +@keyframes titleSlideIn { + from { + opacity: 0; + transform: translateY(12px); + } + to { + opacity: 1; + transform: none; + } +} + +/* ======================================== + Boards (fixed design size, scaled to fit) + ======================================== */ +.scaleWrap { + width: 100%; + position: relative; +} + +.board { + position: relative; + box-sizing: border-box; + transform-origin: top left; + background-color: var(--board-bg); + background-image: radial-gradient(var(--board-dot) 1.2px, transparent 1.2px); + background-size: 18px 18px; + border: 2px solid var(--card-border); + border-radius: var(--radius-wobbly); + box-shadow: var(--shadow-lg); +} + +.strings { + position: absolute; + left: 0; + top: 0; +} + +.str { + fill: none; + stroke: var(--color-blue); + stroke-width: 2.4; + stroke-linecap: round; + filter: drop-shadow(1px 2px 0 rgba(45, 45, 45, 0.18)); +} + +.strOn { + stroke-dasharray: 760; + stroke-dashoffset: 760; + animation: draw 0.9s ease-out forwards; +} + +.strOff { + stroke: var(--color-muted-dark); + stroke-dasharray: 5 7; + opacity: 0.35; +} + +@keyframes draw { + to { + stroke-dashoffset: 0; + } +} + +.arrowCollect, +.arrowGit, +.arrowInstall { + fill: none; + stroke-width: 2.2; + stroke-linecap: round; + stroke-linejoin: round; +} + +.arrowCollect { + stroke: var(--color-danger); +} + +.arrowGit { + stroke: var(--color-pencil); +} + +.arrowInstall { + stroke: var(--color-success); + stroke-width: 2.4; +} + +.pin { + position: absolute; + width: 16px; + height: 16px; + box-sizing: border-box; + border-radius: 50%; + background: var(--color-accent); + border: 2px solid #2d2d2d; + box-shadow: 2px 3px 0 0 rgba(45, 45, 45, 0.35); + z-index: 2; +} + +.pin::after { + content: ''; + position: absolute; + left: 3px; + top: 2px; + width: 4px; + height: 4px; + border-radius: 50%; + background: rgba(255, 255, 255, 0.8); +} + +.pinBlue { + background: var(--color-blue); +} + +.note { + position: absolute; + font-family: 'Kalam', cursive; + color: var(--color-pencil-light); + font-size: 19px; + line-height: 1.15; +} + +.noteCmd { + font-family: var(--ifm-font-family-monospace); + font-size: 11px; + color: var(--color-pencil-light); +} + +.tape { + position: absolute; + width: 110px; + height: 28px; + background: rgba(255, 243, 160, 0.85); + border: 1px dashed rgba(45, 45, 45, 0.35); + z-index: 3; +} + +/* Tool stickers */ +.tool { + position: absolute; + width: 156px; + height: 66px; + box-sizing: border-box; + padding: 12px 12px 8px 14px; + background: var(--sticker-bg); + border: 2px solid var(--card-border); + box-shadow: var(--shadow-md); + text-align: left; + cursor: pointer; + font-family: var(--ifm-font-family-base); + display: flex; + flex-direction: column; + gap: 1px; + color: var(--color-pencil); + transition: box-shadow 0.12s, opacity 0.2s, filter 0.12s; +} + +.tool:hover { + box-shadow: var(--shadow-hover); + filter: brightness(0.98); +} + +.tool:focus-visible { + outline: 3px solid var(--color-blue); + outline-offset: 2px; +} + +.toolOff { + background: transparent; + border-style: dashed; + box-shadow: none; + opacity: 0.6; +} + +.toolOff .pin { + opacity: 0.4; +} + +.tool .pin { + top: -8px; + left: 70px; +} + +.toolName { + font-weight: 600; + font-size: 14.5px; + line-height: 1.2; +} + +.toolPath { + font-family: var(--ifm-font-family-monospace); + font-size: 10.5px; + color: var(--color-pencil-light); + white-space: nowrap; + overflow: hidden; + text-overflow: ellipsis; +} + +.sourceCaption { + position: absolute; + left: 424px; + top: 470px; + width: 320px; + text-align: center; + font-family: var(--ifm-font-family-monospace); + font-size: 11.5px; + color: var(--color-pencil-light); + white-space: nowrap; +} + +.boardLink { + position: absolute; + right: 22px; + bottom: 16px; + font-family: 'Kalam', cursive; + font-size: 20px; + color: var(--color-blue); +} + +.counter { + position: absolute; + left: 24px; + top: 300px; + width: 118px; + padding: 10px 12px; + background: var(--sticker-bg); + border: 2px solid var(--card-border); + box-shadow: 3px 3px 0 0 var(--card-border); + transform: rotate(-2deg); display: flex; flex-direction: column; align-items: center; - margin-bottom: 0.25rem; } -/* Logo wrapper: sketchy dashed circle frame */ -.heroLogoWrapper { - position: relative; - display: inline-block; - margin-bottom: 0; +.counterNum { + font-family: 'Kalam', cursive; + font-size: 44px; + line-height: 1; + font-weight: 700; +} + +.counterLabel { + font-family: var(--ifm-font-family-monospace); + font-size: 10.5px; + color: var(--color-pencil-light); + letter-spacing: 0.06em; + text-transform: uppercase; +} + +/* Source logo (same animation as before) */ +.logoWrap { + position: absolute; + left: 474px; + top: 218px; + width: 220px; + height: 220px; animation: logoEntrance 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) both; } -/* The dashed ring behind the logo */ -.heroLogoRing { +.logoRing { position: absolute; inset: -18px; border: 3px dashed var(--color-muted-dark); - border-radius: 255px 15px 225px 15px / 15px 225px 15px 255px; - opacity: 0.5; + border-radius: var(--radius-wobbly); + opacity: 0.6; + background: rgba(253, 251, 247, 0.7); transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1); pointer-events: none; } -:global([data-theme='dark']) .heroLogoRing { - border-color: rgba(232, 168, 76, 0.35); +:global([data-theme='dark']) .logoRing { + background: rgba(26, 24, 22, 0.7); } -.heroLogoWrapper:hover .heroLogoRing { +.logoShadow { + position: absolute; + inset: -18px; + border-radius: var(--radius-wobbly); + background: rgba(45, 45, 45, 0.06); + transform: translate(4px, 4px); + pointer-events: none; + transition: transform 0.3s ease; +} + +.logoWrap:hover .logoRing { inset: -24px; - opacity: 0.8; + opacity: 0.9; border-color: var(--color-blue); transform: rotate(3deg); } -:global([data-theme='dark']) .heroLogoWrapper:hover .heroLogoRing { - border-color: var(--color-blue); +.logoWrap:hover .logoShadow { + inset: -24px; + transform: translate(3px, 3px); } -/* Decorative pen marks / sparkles around the logo */ -.heroLogoSparkle { +.sparkle { position: absolute; - font-size: 1.2rem; + font-size: 22px; + line-height: 1; color: var(--color-muted-dark); pointer-events: none; opacity: 0; animation: sparkleFadeIn 0.8s ease forwards; } -:global([data-theme='dark']) .heroLogoSparkle { - color: rgba(232, 168, 76, 0.5); -} - -.heroLogoSparkle:nth-child(2) { +.sparkle:nth-of-type(1) { top: -10px; right: -8px; animation-delay: 0.4s; } -.heroLogoSparkle:nth-child(3) { +.sparkle:nth-of-type(2) { bottom: 8px; left: -14px; animation-delay: 0.6s; - font-size: 0.9rem; + font-size: 17px; } -.heroLogoSparkle:nth-child(4) { +.sparkle:nth-of-type(3) { top: 12px; left: -10px; animation-delay: 0.8s; - font-size: 0.8rem; + font-size: 15px; } -@keyframes sparkleFadeIn { - 0% { opacity: 0; transform: scale(0) rotate(-20deg); } - 100% { opacity: 1; transform: scale(1) rotate(0deg); } -} - -.heroLogoWrapper:hover .heroLogoSparkle { +.logoWrap:hover .sparkle { animation: sparkleWiggle 0.4s ease-in-out; + opacity: 1; } -@keyframes sparkleWiggle { - 0% { transform: rotate(0deg); } - 25% { transform: rotate(12deg); } - 50% { transform: rotate(-10deg); } - 75% { transform: rotate(6deg); } - 100% { transform: rotate(0deg); } -} - -/* The actual logo image */ -.heroLogo { +.logoImg { + position: relative; width: 220px; - height: auto; + height: 220px; + object-fit: contain; display: block; transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1); animation: logoFloat 4s ease-in-out infinite; } -@keyframes logoFloat { - 0%, 100% { transform: translateY(0) rotate(0deg); } - 25% { transform: translateY(-4px) rotate(0.5deg); } - 75% { transform: translateY(3px) rotate(-0.5deg); } +.logoWrap:hover .logoImg { + animation: none; + transform: rotate(-3deg) scale(1.06); } @keyframes logoEntrance { @@ -139,183 +478,182 @@ } } -.heroLogoWrapper:hover .heroLogo { - animation: none; - transform: rotate(-3deg) scale(1.06); -} - -/* Hard offset shadow for the dashed ring — consistent with design system */ -.heroLogoShadow { - position: absolute; - inset: -18px; - border-radius: 255px 15px 225px 15px / 15px 225px 15px 255px; - border: 3px dashed transparent; - background: rgba(45, 45, 45, 0.05); - transform: translate(4px, 4px); - z-index: -1; - pointer-events: none; - transition: transform 0.3s ease; -} - -:global([data-theme='dark']) .heroLogoShadow { - background: rgba(0, 0, 0, 0.18); -} - -.heroLogoWrapper:hover .heroLogoShadow { - inset: -24px; - transform: translate(3px, 3px); -} - -/* Hide sparkles and connector on small screens */ -@media (max-width: 640px) { - .heroLogoSparkle { - display: none; +@keyframes sparkleFadeIn { + 0% { + opacity: 0; + transform: scale(0) rotate(-20deg); } - - .heroLogoRing { - inset: -12px; - border-width: 2px; - } - - .heroLogo { - width: 180px; - } - - .heroConnector { - display: none; + 100% { + opacity: 1; + transform: scale(1) rotate(0deg); } } -/* Hand-drawn drop connector between logo and title */ -.heroConnector { - width: 32px; - height: 16px; - color: var(--color-muted-dark); - opacity: 0; - animation: connectorFadeIn 0.4s ease 0.5s forwards; - flex-shrink: 0; +@keyframes sparkleWiggle { + 0% { + transform: rotate(0deg); + } + 25% { + transform: rotate(12deg); + } + 50% { + transform: rotate(-10deg); + } + 75% { + transform: rotate(6deg); + } + 100% { + transform: rotate(0deg); + } } -:global([data-theme='dark']) .heroConnector { - color: rgba(232, 168, 76, 0.4); +@keyframes logoFloat { + 0%, + 100% { + transform: translateY(0) rotate(0deg); + } + 25% { + transform: translateY(-4px) rotate(0.5deg); + } + 75% { + transform: translateY(3px) rotate(-0.5deg); + } } -@keyframes connectorFadeIn { - 0% { opacity: 0; transform: scaleY(0); } - 100% { opacity: 0.6; transform: scaleY(1); } +/* Small screens: pin list instead of the board */ +.pinList { + display: flex; + flex-wrap: wrap; + gap: 0.6rem; } -.heroTitle { - font-family: 'Kalam', cursive; - font-size: 3rem; - font-weight: 700; - margin-bottom: 0; - color: var(--color-pencil); - letter-spacing: -0.01em; - opacity: 0; - animation: titleSlideIn 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) 0.3s forwards; -} - -/* Chalk white in dark mode — no gradient text */ -:global([data-theme='dark']) .heroTitle { - color: var(--color-pencil); -} - -/* Accent highlight on "AI CLI skills" — post-it yellow background */ -.heroTitleAccent { +.pinChip { position: relative; - white-space: nowrap; -} - -.heroTitleAccent::before { - content: ''; - position: absolute; - left: -4px; - right: -4px; - bottom: 2px; - height: 40%; - background: var(--color-postit); - border-radius: 3px; - z-index: -1; - transform: rotate(-0.5deg); -} - -:global([data-theme='dark']) .heroTitleAccent::before { - background: rgba(232, 168, 76, 0.22); -} - -@keyframes titleSlideIn { - 0% { - opacity: 0; - transform: translateY(12px); - } - 100% { - opacity: 1; - transform: translateY(0); - } -} - -/* Hand-drawn wavy underline below the title */ -.heroUnderline { - width: min(320px, 70%); - height: 12px; - color: var(--color-blue); - opacity: 0; - animation: underlineDraw 0.6s ease 0.65s forwards; - margin-top: 2px; - margin-bottom: 0.75rem; -} - -:global([data-theme='dark']) .heroUnderline { - color: var(--color-blue); -} - -@keyframes underlineDraw { - 0% { - opacity: 0; - clip-path: inset(0 100% 0 0); - } - 100% { - opacity: 0.7; - clip-path: inset(0 0 0 0); - } -} - -.heroSubtitle { - font-size: 1.25rem; + display: inline-flex; + align-items: center; + gap: 0.5rem; + padding: 0.55rem 0.9rem 0.55rem 1.6rem; + background: transparent; + border: 2px dashed var(--color-muted-dark); + border-radius: var(--radius-wobbly-sm); color: var(--color-pencil-light); - margin-bottom: 2rem; - max-width: 600px; - margin-left: auto; - margin-right: auto; - line-height: 1.6; - opacity: 0; - animation: subtitleFadeIn 0.5s ease 0.7s forwards; + font-size: 0.9rem; + font-weight: 500; + cursor: pointer; } -@keyframes subtitleFadeIn { - 0% { - opacity: 0; - transform: translateY(8px); - } - 100% { - opacity: 1; - transform: translateY(0); - } +.pinChip .pin { + left: 6px; + top: 50%; + margin-top: -8px; + width: 14px; + height: 14px; + opacity: 0.35; +} + +.pinChipOn { + background: var(--sticker-bg); + border: 2px solid var(--card-border); + box-shadow: var(--shadow-hover); + color: var(--color-pencil); + font-weight: 600; +} + +.pinChipOn .pin { + opacity: 1; +} + +/* Terminal + install */ +.heroBottom { + display: grid; + grid-template-columns: minmax(0, 620px) minmax(0, 1fr); + gap: 3rem; + align-items: start; + margin-top: 2.75rem; +} + +.termWrap { + position: relative; + transform: rotate(0.6deg); +} + +.term { + background: var(--install-bg); + border: 2px solid #101827; + box-shadow: 6px 6px 0 0 #101827; + display: flex; + flex-direction: column; +} + +:global([data-theme='dark']) .term { + border-color: var(--install-border); + box-shadow: var(--shadow-lg); +} + +.termBar { + height: 36px; + display: flex; + align-items: center; + gap: 8px; + padding: 0 14px; + border-bottom: 1px dashed #334155; +} + +.termBar > span:not(.termBarText) { + width: 11px; + height: 11px; + border-radius: 50%; + border: 1px solid #2d2d2d; +} + +.termBarText { + font-family: var(--ifm-font-family-monospace); + font-size: 12px; + color: #94a3b8; + margin-left: 6px; +} + +.termBody { + min-width: 0; + margin: 0; + padding: 18px 22px 20px; + background: none; + border: none; + box-shadow: none; + border-radius: 0; + font-size: 13px; + line-height: 1.75; + min-height: 214px; + color: #e2e8f0; + white-space: pre-wrap; +} + +.termHead { + color: #ffffff; + font-weight: 600; +} + +.ok { + color: #7bd88f; +} + +.dim { + color: #94a3b8; +} + +.installCol { + padding-top: 6px; } -/* ======================================== - Install Section with Tabs - ======================================== */ .installSection { - margin-bottom: 2rem; + margin-bottom: 1.5rem; } .installTabs { display: flex; - justify-content: center; gap: 0.5rem; margin-bottom: 0.75rem; + flex-wrap: wrap; } .installTab { @@ -346,45 +684,28 @@ font-weight: 600; } -:global([data-theme='dark']) .installTab { - border-color: rgba(240, 236, 225, 0.25); - color: var(--color-pencil-light); -} - -:global([data-theme='dark']) .installTab:hover { - background: rgba(232, 168, 76, 0.12); - border-color: var(--color-blue); - color: var(--color-pencil); -} - :global([data-theme='dark']) .installTabActive { background: rgba(232, 168, 76, 0.18); - border: 2px solid var(--color-blue); - color: var(--color-pencil); + border-color: var(--color-blue); } -/* ======================================== - Install Command — Terminal style - ======================================== */ .installCommand { - display: inline-flex; + display: flex; align-items: center; gap: 1rem; - background: rgba(15, 23, 42, 0.95); + background: var(--install-bg); border: 2px solid #101827; border-radius: var(--radius-wobbly-sm); - padding: 0.875rem 1.5rem; + padding: 0.75rem 0.875rem 0.75rem 1.25rem; font-family: var(--ifm-font-family-monospace); - font-size: 0.875rem; + font-size: 0.8rem; max-width: 100%; - overflow-x: auto; - box-shadow: 4px 4px 0px 0px #101827; + box-shadow: 4px 4px 0 0 #101827; } :global([data-theme='dark']) .installCommand { - background: rgba(20, 18, 16, 0.95); - border: 2px solid rgba(240, 236, 225, 0.25); - box-shadow: 4px 4px 0px 0px rgba(0, 0, 0, 0.55); + border-color: var(--install-border); + box-shadow: var(--shadow-md); } .installCommand code { @@ -392,8 +713,12 @@ padding: 0; color: #e2e8f0; white-space: nowrap; + overflow: hidden; + text-overflow: ellipsis; border: none; box-shadow: none; + flex-grow: 1; + min-width: 0; } .prompt { @@ -403,602 +728,357 @@ } .copyButton { - background: rgba(255, 255, 255, 0.05); - border: 1px dashed rgba(255, 255, 255, 0.2); - color: #94a3b8; - padding: 0.5rem 0.75rem; - border-radius: 6px; - cursor: pointer; - transition: all 0.2s ease; - font-size: 0.75rem; - white-space: nowrap; - display: flex; + flex-shrink: 0; + width: 44px; + height: 44px; + display: inline-flex; align-items: center; justify-content: center; + background: rgba(255, 255, 255, 0.06); + border: 1px solid #334155; + border-radius: 8px; + color: #e2e8f0; + cursor: pointer; + transition: all 0.2s ease; } .copyButton:hover { background: rgba(232, 168, 76, 0.2); border-color: rgba(232, 168, 76, 0.5); - color: #f8fafc; -} - -.heroButtons { - display: flex; - gap: 1rem; - justify-content: center; - flex-wrap: wrap; } /* ======================================== - Scenario Section — "Where would you like to start?" + Sections ======================================== */ -.scenarioSection { - padding: 4rem 0 2rem; +.section { + padding: 3rem 0 3.5rem; + border-top: 2px dashed var(--card-border); } -.scenarioGrid { - display: grid; - grid-template-columns: repeat(5, 1fr); - gap: 1rem; - max-width: 1100px; - margin: 0 auto; +.sectionHead { + display: flex; + align-items: baseline; + gap: 1.25rem; + flex-wrap: wrap; + margin-bottom: 1.75rem; } -.scenarioCard { +.aside { + font-size: 1.45rem; + color: var(--color-pencil-light); +} + +/* Four moves: diagram cards */ +.card { + position: absolute; + box-sizing: border-box; + padding: 10px 14px; + background: var(--sticker-bg); + border: 2px solid var(--card-border); + border-radius: var(--radius-wobbly-sm); + box-shadow: 5px 5px 0 0 var(--card-border); + display: flex; + flex-direction: column; + gap: 2px; + color: var(--color-pencil); +} + +:global([data-theme='dark']) .card { + box-shadow: var(--shadow-md); +} + +.cardTitle { + font-weight: 600; + font-size: 14px; +} + +.cardSub { + font-family: var(--ifm-font-family-monospace); + font-size: 10.5px; + color: var(--color-pencil-light); + white-space: nowrap; +} + +.cardKicker { + font-family: var(--ifm-font-family-monospace); + font-size: 10.5px; + letter-spacing: 0.08em; + text-transform: uppercase; + color: var(--color-pencil-light); +} + +.cardCode { + white-space: nowrap; + font-family: var(--ifm-font-family-monospace); + font-size: 12.5px; + font-weight: 600; + color: var(--color-pencil); +} + +.cardText { + font-size: 13.5px; + line-height: 1.45; + color: var(--color-pencil-light); +} + +.stamp { + position: absolute; + left: 296px; + top: 258px; + width: 96px; + height: 84px; + box-sizing: border-box; + border: 2.5px solid var(--color-success); + border-radius: 50% 48% 52% 50% / 52% 50% 50% 48%; + transform: rotate(-8deg); display: flex; flex-direction: column; align-items: center; - text-align: center; - text-decoration: none; - color: inherit; - background: var(--card-bg); - border: 2px solid var(--color-pencil); - border-radius: var(--radius-wobbly-md); - padding: 1.5rem 1rem; - transition: all 0.15s ease; - box-shadow: var(--shadow-sm); -} - -.scenarioCard:hover { - box-shadow: var(--shadow-hover); - transform: translate(1px, 1px) rotate(-0.5deg) !important; - text-decoration: none; - color: inherit; -} - -:global([data-theme='dark']) .scenarioCard { - background: var(--card-bg); - border-color: rgba(240, 236, 225, 0.2); -} - -:global([data-theme='dark']) .scenarioCard:hover { - background: var(--card-bg-hover); - border-color: var(--color-blue); -} - -.scenarioIcon { - display: flex; - align-items: center; justify-content: center; - width: 52px; - height: 52px; - border-radius: 10px; - margin-bottom: 0.75rem; - border: 1px solid var(--color-pencil); - background: #d6e4f0; - color: #2d5da1; + color: var(--color-success); + background: rgba(255, 255, 255, 0.6); } -.scenarioCard:nth-child(2) .scenarioIcon { - background: #d4edda; - color: #2e8b57; +:global([data-theme='dark']) .stamp { + background: rgba(26, 24, 22, 0.6); } -.scenarioCard:nth-child(3) .scenarioIcon { - background: #fff3cd; - color: #d4870e; -} - -.scenarioCard:nth-child(4) .scenarioIcon { - background: #e8dff0; - color: #6b3fa0; -} - -.scenarioCard:nth-child(5) .scenarioIcon { - background: #f8d7da; - color: #c0392b; -} - -:global([data-theme='dark']) .scenarioIcon { - border-color: var(--card-border); -} - -:global([data-theme='dark']) .scenarioCard:nth-child(1) .scenarioIcon { - background: rgba(107, 163, 214, 0.18); - color: #7db8e8; -} - -:global([data-theme='dark']) .scenarioCard:nth-child(2) .scenarioIcon { - background: rgba(92, 184, 122, 0.18); - color: #6dca8e; -} - -:global([data-theme='dark']) .scenarioCard:nth-child(3) .scenarioIcon { - background: rgba(232, 168, 64, 0.18); - color: #e8a840; -} - -:global([data-theme='dark']) .scenarioCard:nth-child(4) .scenarioIcon { - background: rgba(160, 100, 220, 0.18); - color: #b088d0; -} - -:global([data-theme='dark']) .scenarioCard:nth-child(5) .scenarioIcon { - background: rgba(224, 90, 79, 0.18); - color: #e05a4f; -} - -.scenarioCard h3 { - font-family: 'Inter', sans-serif; - font-size: 0.95rem; - font-weight: 700; - margin: 0 0 0.35rem; - color: var(--color-pencil); -} - -.scenarioCard p { - font-size: 0.82rem; - color: var(--color-pencil-light); - line-height: 1.5; - margin: 0; -} - -@media (max-width: 996px) { - .scenarioGrid { - grid-template-columns: repeat(3, 1fr); - } -} - -@media (max-width: 640px) { - .scenarioGrid { - grid-template-columns: 1fr; - } -} - -/* ======================================== - Wavy Divider - ======================================== */ -.wavyDivider { - display: block; - width: 100%; - height: 40px; - overflow: hidden; -} - -.wavyDivider svg { - width: 100%; - height: 100%; -} - -/* ======================================== - Why Section - ======================================== */ -.why { - padding: 5rem 0; - background: var(--color-paper-warm); -} - -:global([data-theme='dark']) .why { - background: var(--color-paper-warm); -} - -.sectionTitle { - text-align: center; - font-family: 'Inter', sans-serif; - font-size: 2rem; - margin-bottom: 0.75rem; - color: var(--color-pencil); -} - -.sectionSubtitle { - text-align: center; - color: var(--color-pencil-light); - font-size: 1.1rem; - margin-bottom: 2.5rem; - line-height: 1.7; -} - -.whyGrid { - display: grid; - grid-template-columns: repeat(3, 1fr); - gap: 1.25rem; - max-width: 1100px; - margin: 0 auto; -} - -.whyCard { - background: var(--card-bg); - border: 2px solid var(--color-pencil); - border-radius: var(--radius-wobbly-md); - padding: 1.5rem; - transition: all 0.15s ease; - box-shadow: var(--shadow-sm); -} - -:global([data-theme='dark']) .whyCard { - background: var(--card-bg); - border-color: rgba(240, 236, 225, 0.2); -} - -.whyCard:hover { - box-shadow: var(--shadow-hover); - transform: translate(1px, 1px) rotate(-0.5deg); -} - -:global([data-theme='dark']) .whyCard:hover { - background: var(--card-bg-hover); - border-color: var(--color-blue); -} - -/* Post-it colored icon backgrounds */ -.whyIconWrapper { - display: flex; - align-items: center; - justify-content: center; - width: 44px; - height: 44px; - border-radius: 8px; - margin-bottom: 1rem; - border: 1px solid var(--color-pencil); -} - -/* Icon color palette (post-it / accent tones) */ -.whyCard:nth-child(1) .whyIconWrapper { - background: #d6e4f0; - color: #2d5da1; -} - -.whyCard:nth-child(2) .whyIconWrapper { - background: #d4edda; - color: #2e8b57; -} - -.whyCard:nth-child(3) .whyIconWrapper { - background: #fff3cd; - color: #d4870e; -} - -.whyCard:nth-child(4) .whyIconWrapper { - background: #f8d7da; - color: #c0392b; -} - -.whyCard:nth-child(5) .whyIconWrapper { - background: #fff9c4; - color: #5a5a5a; -} - -.whyCard:nth-child(6) .whyIconWrapper { - background: #e8dff0; - color: #6b3fa0; -} - -:global([data-theme='dark']) .whyIconWrapper { - border-color: var(--card-border); -} - -:global([data-theme='dark']) .whyCard:nth-child(1) .whyIconWrapper { - background: rgba(107, 163, 214, 0.18); - color: #7db8e8; -} - -:global([data-theme='dark']) .whyCard:nth-child(2) .whyIconWrapper { - background: rgba(92, 184, 122, 0.18); - color: #6dca8e; -} - -:global([data-theme='dark']) .whyCard:nth-child(3) .whyIconWrapper { - background: rgba(232, 168, 64, 0.18); - color: #e8a840; -} - -:global([data-theme='dark']) .whyCard:nth-child(4) .whyIconWrapper { - background: rgba(224, 90, 79, 0.18); - color: #e05a4f; -} - -:global([data-theme='dark']) .whyCard:nth-child(5) .whyIconWrapper { - background: rgba(232, 168, 76, 0.12); - color: #c4b8a0; -} - -:global([data-theme='dark']) .whyCard:nth-child(6) .whyIconWrapper { - background: rgba(160, 100, 220, 0.18); - color: #b088d0; -} - -.whyCardTitle { - font-family: 'Inter', sans-serif; - font-size: 1rem; - font-weight: 700; - margin-bottom: 0.5rem; - color: var(--color-pencil); -} - -.whyCardDescription { - font-size: 0.875rem; - color: var(--color-pencil-light); - line-height: 1.6; - margin: 0; -} - -@media (max-width: 996px) { - .whyGrid { - grid-template-columns: repeat(2, 1fr); - } -} - -@media (max-width: 640px) { - .whyGrid { - grid-template-columns: 1fr; - } -} - -/* ======================================== - Demo Section - ======================================== */ -.demo { - padding: 5rem 0; -} - -.demoContainer { - max-width: 960px; - margin: 0 auto; - border-radius: var(--radius-wobbly-md); - overflow: hidden; - border: 2px solid var(--color-pencil); - box-shadow: var(--shadow-lg); - transition: all 0.2s ease; - position: relative; -} - -.demoContainer:hover { - box-shadow: var(--shadow-md); - transform: translate(4px, 4px); -} - -:global([data-theme='dark']) .demoContainer { - border-color: rgba(240, 236, 225, 0.2); -} - -.demoContainer img { - width: 100%; - height: auto; - display: block; -} - -/* Tape decoration on demo */ -.tapeDecoration { - position: absolute; - top: -6px; - left: 50%; - transform: translateX(-50%) rotate(-2deg); - width: 80px; - height: 24px; - background: rgba(255, 249, 196, 0.85); - border: 1px solid rgba(45, 45, 45, 0.15); - z-index: 2; -} - -:global([data-theme='dark']) .tapeDecoration { - background: rgba(232, 168, 76, 0.25); - border-color: rgba(232, 228, 217, 0.12); -} - -/* ======================================== - Web UI Highlights - ======================================== */ -.uiHighlights { - padding: 5rem 0; - background: var(--color-paper-warm); -} - -:global([data-theme='dark']) .uiHighlights { - background: var(--color-paper-warm); -} - -.uiHighlightsGrid { - display: grid; - grid-template-columns: repeat(2, minmax(0, 1fr)); - gap: 1.25rem; - margin-top: 2rem; -} - -.uiHighlightCard { - border: 2px solid var(--color-pencil); - border-radius: var(--radius-wobbly-md); - overflow: hidden; - background: var(--card-bg); - transition: all 0.15s ease; - box-shadow: var(--shadow-sm); -} - -:global([data-theme='dark']) .uiHighlightCard { - background: var(--card-bg); - border-color: rgba(240, 236, 225, 0.2); -} - -.uiHighlightCard:hover { - box-shadow: var(--shadow-hover); - transform: translate(1px, 1px); -} - -:global([data-theme='dark']) .uiHighlightCard:hover { - border-color: var(--color-blue); -} - -.uiHighlightCard img { - width: 100%; - height: auto; - display: block; -} - -.uiHighlightContent { - padding: 1rem 1.1rem 1.15rem; -} - -.uiHighlightTitle { - font-family: 'Inter', sans-serif; - font-size: 1rem; - font-weight: 700; - margin-bottom: 0.35rem; - color: var(--color-pencil); -} - -.uiHighlightDescription { - margin: 0; - font-size: 0.88rem; - color: var(--color-pencil-light); - line-height: 1.55; -} - -.uiHighlightsAction { - margin-top: 2rem; - display: flex; - justify-content: center; -} - -/* ======================================== - Supported CLIs — Badge style - ======================================== */ -.supported { - padding: 4rem 0 5rem; - text-align: center; -} - -.supportedTitle { - color: var(--color-pencil-light); - font-family: 'Inter', sans-serif; - font-size: 0.9rem; - text-transform: uppercase; - letter-spacing: 0.12em; - margin-bottom: 1.5rem; +.stamp span { + font-family: var(--ifm-font-family-monospace); + font-size: 9.5px; + letter-spacing: 0.1em; font-weight: 600; } -.cliLogos { +.moveList { + list-style: none; + padding: 0; + margin: 0; + flex-direction: column; + gap: 0.875rem; +} + +.moveItem { display: flex; - flex-wrap: wrap; - justify-content: center; - gap: 1rem; + flex-direction: column; + gap: 0.35rem; + padding: 0.875rem 1rem; + background: var(--card-bg); + border: 2px solid var(--card-border); + border-radius: var(--radius-wobbly-sm); + box-shadow: var(--shadow-md); + font-size: 0.95rem; + color: var(--color-pencil-light); +} + +.moveItem .cmd { + align-self: flex-start; + border-width: 2px; +} + +/* Feature map teaser */ +.teaser { + display: grid; + grid-template-columns: 460px minmax(0, 1fr); + gap: 2.5rem; align-items: center; } -.cliLogos span { - font-size: 0.88rem; - color: var(--color-pencil-light); - transition: all 0.15s ease; - padding: 0.4rem 0.8rem; +.teaserText { + display: flex; + flex-direction: column; + gap: 0.6rem; + align-items: flex-start; +} + +.bigNum { + font-size: clamp(7rem, 14vw, 11.5rem); + line-height: 0.9; + font-weight: 700; + letter-spacing: -0.03em; +} + +.teaserTitle { + font-family: var(--ifm-heading-font-family); + font-size: 1.6rem; + font-weight: 700; + line-height: 1.2; +} + +.teaserBoard { + display: block; + height: 400px; + text-decoration: none; + color: var(--color-pencil); +} + +.teaserBoard:hover { + text-decoration: none; + color: var(--color-pencil); +} + +.idx { + position: absolute; + width: 150px; + height: 96px; + box-sizing: border-box; + padding: 12px 14px; + background: var(--sticker-bg); + border: 2px solid var(--card-border); border-radius: var(--radius-wobbly-sm); - border: 1px dashed var(--color-muted-dark); - font-weight: 500; + box-shadow: var(--shadow-md); + display: flex; + flex-direction: column; + gap: 4px; + transition: box-shadow 0.12s; } -.cliLogos span:hover { - color: var(--color-pencil); - border-color: var(--color-pencil); - background: var(--color-paper-warm); - transform: rotate(-1deg); +.teaserBoard:hover .idx { + box-shadow: var(--shadow-hover); } -:global([data-theme='dark']) .cliLogos span { - border-color: var(--color-muted); +.idxTitle { + font-family: var(--ifm-heading-font-family); + font-weight: 600; + font-size: 14px; } -:global([data-theme='dark']) .cliLogos span:hover { - color: var(--color-pencil); - border-color: var(--color-pencil-light); - background: rgba(232, 168, 76, 0.08); +.idxCmds { + font-family: var(--ifm-font-family-monospace); + font-size: 10.5px; + color: var(--color-pencil-light); +} + +.teaserNote { + right: 24px; + bottom: 18px; + color: var(--color-blue); +} + +/* CTA */ +.ctaSection { + padding: 0.5rem 0 3rem; +} + +.cta { + position: relative; + padding: 2.75rem 3.5rem; + background: var(--color-postit); + border: 2px solid var(--card-border); + border-radius: var(--radius-wobbly); + box-shadow: var(--shadow-lg); + display: flex; + align-items: center; + justify-content: space-between; + gap: 2.5rem; + transform: rotate(-0.3deg); +} + +.cta .lead { + margin-bottom: 0; +} + +.ctaTitle { + font-size: 2.6rem; + font-weight: 700; + line-height: 1.05; + margin: 0 0 0.5rem; } /* ======================================== Responsive ======================================== */ -@media screen and (max-width: 996px) { - .hero { - padding: 4rem 1rem 3rem; +@media (max-width: 996px) { + .heroBottom, + .teaser { + grid-template-columns: minmax(0, 1fr); } - .heroTitle { + .teaserBoard { + height: auto; + padding: 1.25rem; + display: flex; + flex-wrap: wrap; + gap: 1rem; + } + + .idx { + position: static; + transform: none !important; + width: calc(50% - 0.5rem); + height: auto; + } + + .idx .pin { + display: none; + } + + .teaserNote { + position: static; + width: 100%; + text-align: right; + } + + .cta { + flex-direction: column; + align-items: flex-start; + padding: 2rem 1.5rem; + } +} + +@media (max-width: 640px) { + .hero { + padding-top: 2rem; + } + + .heroHead { + flex-direction: column; + align-items: flex-start; + gap: 0.75rem; + } + + .heroHint { + text-align: left; + } + + .heroBottom { + margin-top: 2rem; + } + + .termWrap { + transform: none; + } + + .termBody { + min-height: 0; + font-size: 12px; + } + + .h2Big { + font-size: 1.9rem; + } + + .ctaTitle { font-size: 2rem; } - - .heroSubtitle { - font-size: 1rem; - } - - .installCommand { - flex-direction: column; - gap: 0.75rem; - padding: 1rem; - } - - .uiHighlightsGrid { - grid-template-columns: 1fr; - } } -/* ======================================== - Accessibility - ======================================== */ @media (prefers-reduced-motion: reduce) { - .heroLogo, - .heroLogoSparkle { + .strOn { animation: none; + stroke-dashoffset: 0; } - .heroLogoWrapper { - animation: none; - } - - .heroLogoSparkle { - opacity: 1; - } - - /* Disable staggered entrance animations — show immediately */ - .heroTitle, - .heroSubtitle, - .heroConnector, - .heroUnderline { + .logoWrap, + .logoImg, + .sparkle, + .heroTitle { animation: none; opacity: 1; } - .heroConnector { - opacity: 0.6; - } - - .heroUnderline { - opacity: 0.7; - clip-path: none; - } - - .whyCard:hover, - .demoContainer:hover, - .cliLogos span:hover { + .logoWrap:hover .logoImg, + .logoWrap:hover .logoRing { transform: none; } - - .heroLogoWrapper:hover .heroLogo { - transform: none; - } - - .heroLogoWrapper:hover .heroLogoRing { - transform: none; - } - - .heroLogoWrapper:hover .heroLogoSparkle { - animation: none; - } } diff --git a/website/src/pages/index.tsx b/website/src/pages/index.tsx index 0b04c638c..b670673b8 100644 --- a/website/src/pages/index.tsx +++ b/website/src/pages/index.tsx @@ -1,13 +1,214 @@ -import type {ReactNode} from 'react'; -import {useState} from 'react'; +import type {ReactNode, RefObject} from 'react'; +import {useEffect, useRef, useState} from 'react'; import Link from '@docusaurus/Link'; import useDocusaurusContext from '@docusaurus/useDocusaurusContext'; import Layout from '@theme/Layout'; import Heading from '@theme/Heading'; -import {Copy, Check, Apple, Terminal, GitBranch, FolderSync, ArrowLeftRight, Globe, ShieldCheck, LayoutDashboard, Compass, Users, PenTool} from 'lucide-react'; +import {Copy, Check, Apple, Terminal, ShieldCheck} from 'lucide-react'; +import {COMMAND_COUNT, FEATURE_GROUPS, TARGET_COUNT} from '../data/featureMap'; import styles from './index.module.css'; +// --------------------------------------------------------------------------- +// Board scaling: boards are laid out at a fixed design size and scaled to fit. +// --------------------------------------------------------------------------- + +function useBoardScale(ref: RefObject, baseWidth: number): number { + const [scale, setScale] = useState(1); + useEffect(() => { + const el = ref.current; + if (!el) return undefined; + const ro = new ResizeObserver(([entry]) => { + setScale(Math.min(1, entry.contentRect.width / baseWidth)); + }); + ro.observe(el); + return () => ro.disconnect(); + }, [ref, baseWidth]); + return scale; +} + +function ScaledBoard({ + width, + height, + className, + children, +}: { + width: number; + height: number; + className?: string; + children: ReactNode; +}) { + const ref = useRef(null); + const scale = useBoardScale(ref, width); + return ( +
+
+ {children} +
+
+ ); +} + +// --------------------------------------------------------------------------- +// Hero board: source logo strung to 8 of the 66 targets. +// --------------------------------------------------------------------------- + +type Tool = { + id: string; + name: string; + path: string; + local: number; + left: number; + top: number; + rotate: number; + string: string; + defaultOn: boolean; +}; + +const TOOLS: Tool[] = [ + {id: 'claude', name: 'Claude Code', path: '~/.claude/skills', local: 3, left: 110, top: 60, rotate: -1.5, string: 'M584 200 Q384 177 185 74', defaultOn: true}, + {id: 'cursor', name: 'Cursor', path: '~/.cursor/skills', local: 1, left: 390, top: 30, rotate: 1, string: 'M584 200 Q524 162 465 44', defaultOn: true}, + {id: 'codex', name: 'Codex', path: '~/.codex/skills', local: 2, left: 760, top: 30, rotate: -0.8, string: 'M584 200 Q710 162 835 44', defaultOn: true}, + {id: 'gemini', name: 'Gemini CLI', path: '~/.gemini/skills', local: 0, left: 1010, top: 80, rotate: 1.6, string: 'M584 200 Q834 187 1085 94', defaultOn: true}, + {id: 'opencode', name: 'OpenCode', path: '~/.config/opencode/skills', local: 0, left: 90, top: 430, rotate: 1.2, string: 'M584 456 Q374 490 165 444', defaultOn: true}, + {id: 'copilot', name: 'GitHub Copilot', path: '~/.copilot/skills', local: 0, left: 380, top: 530, rotate: -1, string: 'M584 456 Q520 540 455 544', defaultOn: false}, + {id: 'windsurf', name: 'Windsurf', path: '~/.codeium/windsurf/skills', local: 1, left: 740, top: 530, rotate: 0.9, string: 'M584 456 Q700 540 815 544', defaultOn: false}, + {id: 'zed', name: 'Zed', path: '~/.agents/skills', local: 0, left: 1020, top: 440, rotate: -1.4, string: 'M584 456 Q840 495 1095 454', defaultOn: false}, +]; + +const SKILL_COUNT = 14; + +function usePinned() { + const [on, setOn] = useState>(() => + Object.fromEntries(TOOLS.map((t) => [t.id, t.defaultOn])), + ); + const toggle = (id: string) => setOn((prev) => ({...prev, [id]: !prev[id]})); + const pinned = TOOLS.filter((t) => on[t.id]); + return {on, toggle, pinned}; +} + +function SourceLogo() { + return ( +
+