diff --git a/website/AGENTS.md b/website/AGENTS.md index fc335cefd..d4419afca 100644 --- a/website/AGENTS.md +++ b/website/AGENTS.md @@ -37,7 +37,7 @@ docs/ ~100 Markdown pages, English only troubleshooting/ Errors, FAQ, Windows blog/ Blog posts (enabled, /blog) src/ - pages/index.tsx Homepage: interactive "string board" hero, install tabs, + pages/index.tsx Homepage: product demo video, desktop installation, four-moves diagram, feature-map teaser, CTA pages/index.module.css Homepage styles (hand-drawn tokens from custom.css) pages/features.tsx /features — Feature Map: all commands grouped by job, live filter @@ -45,7 +45,8 @@ src/ data/featureMap.ts Command groups shared by the homepage teaser and /features components/ AsciinemaPlayer css/custom.css Design system (tokens, typography, dark/light) -static/img/ Screenshots, logo, social card +static/img/ Screenshots, logo, video poster, social card +static/video/ Homepage demo MP4 and captions plugins/llms-txt.ts Local plugin: writes build/llms.txt and llms-full.txt ``` @@ -69,7 +70,8 @@ plugins/llms-txt.ts Local plugin: writes build/llms.txt and llms-full.t ## Homepage / Feature Map Notes -- Boards are laid out at a fixed design width (1168px) and scaled with a `ResizeObserver`; below 640px the hero board becomes a pin-chip list with the same state +- The hero places a floating framed logo beside the copy and a responsive MP4 below it; the logo stacks below the copy on mobile. The video has native controls and a poster; both floating motion and autoplay respect `prefers-reduced-motion` +- The four-moves board is laid out at a fixed design width (1168px) and scaled with a `ResizeObserver`; below 640px it becomes a list - Interactive state is local React state only (no persistence) - Counts (`COMMAND_COUNT`, `TARGET_COUNT`) live in `src/data/featureMap.ts`; update them when commands or targets change - Every `href` in `featureMap.ts` must map to an existing page under `docs/` (the build's broken-link check covers them) diff --git a/website/i18n/ja/code.json b/website/i18n/ja/code.json index 6ec5d179c..329e52a87 100644 --- a/website/i18n/ja/code.json +++ b/website/i18n/ja/code.json @@ -48,19 +48,7 @@ "description": "Homepage product positioning" }, "home.hero.tools": { - "message": "Claude Code、Codex、Cursor、OpenCode などで使えます。", - "description": "Homepage product positioning" - }, - "home.board.source": { - "message": "あなたの skills をひとつの場所で管理", - "description": "Homepage product positioning" - }, - "home.board.edit": { - "message": "skill を一度編集", - "description": "Homepage product positioning" - }, - "home.board.use": { - "message": "各ツールで使う", + "message": "Claude Code、Codex、Pi、OpenCode などで使えます。", "description": "Homepage product positioning" }, "home.board.preview": { @@ -98,5 +86,13 @@ "home.meta.description": { "message": "あなたの AI コーディング環境を、どこでも。デスクトップアプリまたは CLI で skills、agents、rules、MCP 接続、hooks をひとつの場所で管理。", "description": "Homepage product positioning" + }, + "home.demo.label": { + "message": "Skillshare デモ:一度編集して、AI コーディングツール間で同期", + "description": "Homepage product demo" + }, + "home.demo.download": { + "message": "デモ動画をダウンロード", + "description": "Homepage product demo" } } diff --git a/website/i18n/ko/code.json b/website/i18n/ko/code.json index 4864081bc..1c421b168 100644 --- a/website/i18n/ko/code.json +++ b/website/i18n/ko/code.json @@ -48,19 +48,7 @@ "description": "Homepage product positioning" }, "home.hero.tools": { - "message": "Claude Code, Codex, Cursor, OpenCode 등에서 사용할 수 있습니다.", - "description": "Homepage product positioning" - }, - "home.board.source": { - "message": "내 skills를 한곳에서 관리", - "description": "Homepage product positioning" - }, - "home.board.edit": { - "message": "skill을 한 번 수정", - "description": "Homepage product positioning" - }, - "home.board.use": { - "message": "각 도구에서 사용", + "message": "Claude Code, Codex, Pi, OpenCode 등에서 사용할 수 있습니다.", "description": "Homepage product positioning" }, "home.board.preview": { @@ -98,5 +86,13 @@ "home.meta.description": { "message": "나의 AI 코딩 환경을, 어디서나. 데스크톱 앱이나 CLI로 skills, agents, rules, MCP 연결과 hooks를 한곳에서 관리하세요.", "description": "Homepage product positioning" + }, + "home.demo.label": { + "message": "Skillshare 데모: 한 번 수정하고 AI 코딩 도구 간에 동기화", + "description": "Homepage product demo" + }, + "home.demo.download": { + "message": "데모 영상 다운로드", + "description": "Homepage product demo" } } diff --git a/website/i18n/zh-Hans/code.json b/website/i18n/zh-Hans/code.json index 45b64fe78..bad0f4762 100644 --- a/website/i18n/zh-Hans/code.json +++ b/website/i18n/zh-Hans/code.json @@ -48,19 +48,7 @@ "description": "Homepage product positioning" }, "home.hero.tools": { - "message": "适用于 Claude Code、Codex、Cursor、OpenCode 等工具。", - "description": "Homepage product positioning" - }, - "home.board.source": { - "message": "你的 skills · 集中管理", - "description": "Homepage product positioning" - }, - "home.board.edit": { - "message": "修改一次 skill", - "description": "Homepage product positioning" - }, - "home.board.use": { - "message": "在各工具中使用", + "message": "适用于 Claude Code、Codex、Pi、OpenCode 等工具。", "description": "Homepage product positioning" }, "home.board.preview": { @@ -98,5 +86,13 @@ "home.meta.description": { "message": "你的 AI 编程环境,随处可用。通过桌面 App 或 CLI,在同一个地方管理 skills、agents、rules、MCP 连接与 hooks。", "description": "Homepage product positioning" + }, + "home.demo.label": { + "message": "Skillshare 演示:修改一次,在 AI coding 工具之间同步", + "description": "Homepage product demo" + }, + "home.demo.download": { + "message": "下载演示影片", + "description": "Homepage product demo" } } diff --git a/website/i18n/zh-Hant/code.json b/website/i18n/zh-Hant/code.json index 72d841e11..badfca8a4 100644 --- a/website/i18n/zh-Hant/code.json +++ b/website/i18n/zh-Hant/code.json @@ -52,19 +52,7 @@ "description": "Homepage product positioning" }, "home.hero.tools": { - "message": "適用於 Claude Code、Codex、Cursor、OpenCode 等工具。", - "description": "Homepage product positioning" - }, - "home.board.source": { - "message": "你的 skills · 集中管理", - "description": "Homepage product positioning" - }, - "home.board.edit": { - "message": "修改一次 skill", - "description": "Homepage product positioning" - }, - "home.board.use": { - "message": "在各工具中使用", + "message": "適用於 Claude Code、Codex、Pi、OpenCode 等工具。", "description": "Homepage product positioning" }, "home.board.preview": { @@ -102,5 +90,13 @@ "home.meta.description": { "message": "你的 AI coding 環境,隨處可用。透過桌面 App 或 CLI,在同一個地方管理 skills、agents、rules、MCP 連線與 hooks。", "description": "Homepage product positioning" + }, + "home.demo.label": { + "message": "Skillshare 示範:修改一次,在 AI coding 工具之間同步", + "description": "Homepage product demo" + }, + "home.demo.download": { + "message": "下載示範影片", + "description": "Homepage product demo" } } diff --git a/website/src/pages/index.module.css b/website/src/pages/index.module.css index 6ecd211de..45dd4f806 100644 --- a/website/src/pages/index.module.css +++ b/website/src/pages/index.module.css @@ -1,4 +1,4 @@ -/* Homepage: the string board. Hand-drawn tokens come from custom.css. */ +/* Homepage: video hero and hand-drawn boards. Tokens come from custom.css. */ .homePage { --board-bg: #f6eedb; @@ -121,13 +121,41 @@ } .heroHead { - display: flex; - align-items: flex-end; - justify-content: space-between; + display: grid; + grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); + align-items: start; gap: 2.5rem; margin-bottom: 1.75rem; } +.heroLogo { + width: clamp(240px, 28vw, 360px); + height: auto; + justify-self: center; + margin-top: 1.5rem; + border-radius: var(--radius-wobbly); + animation: logoFloat 4s ease-in-out infinite; + transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1); +} + +.heroLogo:hover { + animation: none; + transform: rotate(-3deg) scale(1.06); +} + +@keyframes logoFloat { + 0%, + 100% { + transform: translateY(0) rotate(0deg); + } + 25% { + transform: translateY(-4px) rotate(0.5deg); + } + 75% { + transform: translateY(3px) rotate(-0.5deg); + } +} + .heroTitle { font-family: 'Kalam', cursive; font-size: clamp(2.4rem, 5vw, 3.75rem); @@ -145,13 +173,14 @@ 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; +.heroVideo { + display: block; + width: 100%; + aspect-ratio: 16 / 9; + background: var(--board-bg); + border: 2px solid var(--card-border); + border-radius: var(--radius-wobbly); + box-shadow: var(--shadow-lg); } @keyframes titleSlideIn { @@ -205,12 +234,6 @@ 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; @@ -289,311 +312,6 @@ 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; -} - -.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; -} - -.logoRing { - position: absolute; - inset: -18px; - border: 3px dashed var(--color-muted-dark); - 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']) .logoRing { - background: rgba(26, 24, 22, 0.7); -} - -.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.9; - border-color: var(--color-blue); - transform: rotate(3deg); -} - -.logoWrap:hover .logoShadow { - inset: -24px; - transform: translate(3px, 3px); -} - -.sparkle { - position: absolute; - font-size: 22px; - line-height: 1; - color: var(--color-muted-dark); - pointer-events: none; - opacity: 0; - animation: sparkleFadeIn 0.8s ease forwards; -} - -.sparkle:nth-of-type(1) { - top: -10px; - right: -8px; - animation-delay: 0.4s; -} - -.sparkle:nth-of-type(2) { - bottom: 8px; - left: -14px; - animation-delay: 0.6s; - font-size: 17px; -} - -.sparkle:nth-of-type(3) { - top: 12px; - left: -10px; - animation-delay: 0.8s; - font-size: 15px; -} - -.logoWrap:hover .sparkle { - animation: sparkleWiggle 0.4s ease-in-out; - opacity: 1; -} - -.logoImg { - position: relative; - width: 220px; - 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; -} - -.logoWrap:hover .logoImg { - animation: none; - transform: rotate(-3deg) scale(1.06); -} - -@keyframes logoEntrance { - 0% { - opacity: 0; - transform: scale(0.3) rotate(-8deg); - } - 100% { - opacity: 1; - transform: scale(1) rotate(0deg); - } -} - -@keyframes sparkleFadeIn { - 0% { - opacity: 0; - transform: scale(0) rotate(-20deg); - } - 100% { - opacity: 1; - transform: scale(1) rotate(0deg); - } -} - -@keyframes sparkleWiggle { - 0% { - transform: rotate(0deg); - } - 25% { - transform: rotate(12deg); - } - 50% { - transform: rotate(-10deg); - } - 75% { - transform: rotate(6deg); - } - 100% { - transform: rotate(0deg); - } -} - -@keyframes logoFloat { - 0%, - 100% { - transform: translateY(0) rotate(0deg); - } - 25% { - transform: translateY(-4px) rotate(0.5deg); - } - 75% { - transform: translateY(3px) rotate(-0.5deg); - } -} - -/* Small screens: pin list instead of the board */ -.pinList { - display: flex; - flex-wrap: wrap; - gap: 0.6rem; -} - -.pinChip { - position: relative; - 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); - font-size: 0.9rem; - font-weight: 500; - cursor: pointer; -} - -.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; @@ -1013,13 +731,16 @@ } .heroHead { + display: flex; flex-direction: column; align-items: flex-start; gap: 0.75rem; } - .heroHint { - text-align: left; + .heroLogo { + width: min(100%, 280px); + align-self: center; + margin-top: 0; } .heroBottom { @@ -1050,16 +771,15 @@ stroke-dashoffset: 0; } - .logoWrap, - .logoImg, - .sparkle, .heroTitle { animation: none; opacity: 1; } - .logoWrap:hover .logoImg, - .logoWrap:hover .logoRing { + .heroLogo, + .heroLogo:hover { + animation: none; transform: none; + transition: none; } } diff --git a/website/src/pages/index.tsx b/website/src/pages/index.tsx index 0803d89c2..f5abc6818 100644 --- a/website/src/pages/index.tsx +++ b/website/src/pages/index.tsx @@ -53,132 +53,57 @@ function ScaledBoard({ } // --------------------------------------------------------------------------- -// Hero board: source logo strung to 8 of the 67 targets. +// Product demo and CLI preview. // --------------------------------------------------------------------------- -type Tool = { - id: string; - name: string; - path: string; - local: number; - left: number; - top: number; - rotate: number; - string: string; - defaultOn: boolean; -}; +function HeroVideo() { + const ref = useRef(null); + useEffect(() => { + const video = ref.current; + if (!video) return undefined; + const motion = window.matchMedia('(prefers-reduced-motion: reduce)'); + const update = () => { + if (motion.matches) { + video.pause(); + } else { + // Native controls remain available if the browser blocks autoplay. + void video.play().catch(() => {}); + } + }; + update(); + motion.addEventListener('change', update); + return () => motion.removeEventListener('change', update); + }, []); -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: '~/.agents/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}, + return ( + + ); +} + +const SYNC_TARGETS = [ + {id: 'claude', local: 3}, + {id: 'cursor', local: 1}, + {id: 'codex', local: 2}, + {id: 'gemini', local: 0}, + {id: 'opencode', local: 0}, ]; - 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 ( -
-