diff --git a/site/package-lock.json b/site/package-lock.json index a31cae8..4b0c97b 100644 --- a/site/package-lock.json +++ b/site/package-lock.json @@ -18,9 +18,9 @@ } }, "node_modules/@emnapi/wasi-threads": { - "version": "1.2.1", - "resolved": "https://registry.npmjs.org/@emnapi/wasi-threads/-/wasi-threads-1.2.1.tgz", - "integrity": "sha512-uTII7OYF+/Mes/MrcIOYp5yOtSMLBWSIoLPpcgwipoiKbli6k322tcoFsxoIIxPDqW01SQGAgko4EzZi2BNv2w==", + "version": "1.2.2", + "resolved": "https://registry.npmjs.org/@emnapi/wasi-threads/-/wasi-threads-1.2.2.tgz", + "integrity": "sha512-c95qOXkHdydNKhscBTebqEC1CVAZpyqOfVfBzQ1qgzyl3gfeldUjIggDbIZgDKsHLgnsM+igH7TJ/eAasaVuMA==", "license": "MIT", "optional": true, "dependencies": { @@ -264,6 +264,37 @@ "node": "^20.19.0 || >=22.12.0" } }, + "node_modules/@rolldown/binding-wasm32-wasi/node_modules/@emnapi/core": { + "version": "1.10.0", + "resolved": "https://registry.npmjs.org/@emnapi/core/-/core-1.10.0.tgz", + "integrity": "sha512-yq6OkJ4p82CAfPl0u9mQebQHKPJkY7WrIuk205cTYnYe+k2Z8YBh11FrbRG/H6ihirqcacOgl2BIO8oyMQLeXw==", + "license": "MIT", + "optional": true, + "dependencies": { + "@emnapi/wasi-threads": "1.2.1", + "tslib": "^2.4.0" + } + }, + "node_modules/@rolldown/binding-wasm32-wasi/node_modules/@emnapi/runtime": { + "version": "1.10.0", + "resolved": "https://registry.npmjs.org/@emnapi/runtime/-/runtime-1.10.0.tgz", + "integrity": "sha512-ewvYlk86xUoGI0zQRNq/mC+16R1QeDlKQy21Ki3oSYXNgLb45GV1P6A0M+/s6nyCuNDqe5VpaY84BzXGwVbwFA==", + "license": "MIT", + "optional": true, + "dependencies": { + "tslib": "^2.4.0" + } + }, + "node_modules/@rolldown/binding-wasm32-wasi/node_modules/@emnapi/wasi-threads": { + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/@emnapi/wasi-threads/-/wasi-threads-1.2.1.tgz", + "integrity": "sha512-uTII7OYF+/Mes/MrcIOYp5yOtSMLBWSIoLPpcgwipoiKbli6k322tcoFsxoIIxPDqW01SQGAgko4EzZi2BNv2w==", + "license": "MIT", + "optional": true, + "dependencies": { + "tslib": "^2.4.0" + } + }, "node_modules/@rolldown/binding-win32-arm64-msvc": { "version": "1.0.3", "resolved": "https://registry.npmjs.org/@rolldown/binding-win32-arm64-msvc/-/binding-win32-arm64-msvc-1.0.3.tgz", diff --git a/site/src/App.tsx b/site/src/App.tsx index c2e4de3..6d9891b 100644 --- a/site/src/App.tsx +++ b/site/src/App.tsx @@ -1,8 +1,19 @@ -import { useState } from "react"; -import { motion, useReducedMotion, type MotionProps } from "motion/react"; -import issueDetail from "./assets/screenshots/02-issue-detail.png"; -import commentFocused from "./assets/screenshots/03-comment-focused.png"; -import promoVideo from "./assets/video/multica-android-promo-funk-final.mp4"; +import { useState, useEffect, useRef, useCallback, useMemo } from "react"; +import { motion, AnimatePresence, useMotionValue, useTransform, useReducedMotion } from "motion/react"; +import inboxImg from "./assets/screenshots/01-inbox.jpg"; +import issuesListImg from "./assets/screenshots/02-issues-list.jpg"; +import issuesBoardImg from "./assets/screenshots/03-issues-board.jpg"; +import issueDetailImg from "./assets/screenshots/04-issue-detail.jpg"; +import issueSubImg from "./assets/screenshots/05-issue-detail-subissues.jpg"; +import commentImg from "./assets/screenshots/06-comment-composer.jpg"; +import mentionImg from "./assets/screenshots/07-mention-picker.jpg"; +import projectsImg from "./assets/screenshots/08-projects-list.jpg"; +import projectDetailImg from "./assets/screenshots/09-project-detail.jpg"; +import agentsImg from "./assets/screenshots/10-agents-list.jpg"; +import runtimesImg from "./assets/screenshots/11-runtimes-list.jpg"; +import skillsImg from "./assets/screenshots/12-skills-list.jpg"; +import skillDetailImg from "./assets/screenshots/13-skill-detail.jpg"; +import settingsImg from "./assets/screenshots/14-settings.jpg"; const release = { packageName: "ai.multicasual.app", @@ -10,309 +21,587 @@ const release = { githubUrl: "https://github.com/park0er/multi-casual-android", releasesUrl: "https://github.com/park0er/multi-casual-android/releases/latest", multicaUrl: "https://multica.ai", - serviceUrl: "https://app.multica.ai", apiUrl: "https://api.multica.ai", }; type Locale = "en" | "zh"; -const copy = { +const copy: Record }; + workspace: { kicker: string; title: string; subtitle: string; items: Array<{ title: string; subtitle: string }> }; + download: { kicker: string; title: string; package: string; api: string; sha: string; latest: string; source: string }; + trust: { kicker: string; items: string[] }; + footer: { tagline: string; multica: string; github: string; download: string }; +}> = { en: { - nav: { - brand: "Multi-Casual Android", - download: "Download", - trust: "Trust", - relationship: "Relationship", - language: "中文", - }, + nav: { brand: "Multi-Casual Android", download: "Download", trust: "Trust", language: "中文" }, hero: { eyebrow: "Independent companion app · Built for Multica workflows", - title: "Review issues, reply faster, stay in flow on Android.", - subtitle: - "An independent Android companion app for people who already use Multica and want the core workspace loop on a phone.", + title: "Keep your Multica workspace moving from Android.", + subtitle: "Check inbox updates, browse issues, read full context, reply in threads, and keep agent workspace assets close — an independent Android companion app for Multica users.", download: "Download APK", - github: "View GitHub", + github: "GitHub", multica: "Visit Multica", - typing: "Looks good — verified on Android.", }, relationship: { kicker: "Relationship to Multica", title: "Respectful, explicit, and independent.", - body: - "Multi-Casual Android is an independent companion app for Multica users. It connects to Multica service APIs for compatibility, but it is not maintained, endorsed, or published by the Multica project maintainers, and it should not be presented as a Multica Android app from the upstream project.", + body1: "Multi-Casual Android is an independent companion app for Multica users. It connects to Multica service APIs for compatibility, but it is not maintained, endorsed, or published by the Multica project maintainers.", + body2: "This project was originally explored as a contribution path with the Multica community. The Multica maintainers later indicated that their own app direction would be led upstream, so this Android client is maintained independently, following that boundary while staying respectful of the original project.", }, - featuresKicker: "What it covers", - features: [ - { - title: "Issue workflows", - body: "Browse inbox items, open issue details, review comments, and keep task context close while away from desktop.", - }, - { - title: "Mobile replies", - body: "Tap into the comment flow, draft a response, and continue the same discussion you would normally handle on the web.", - }, - { - title: "Cloud-service compatible", - body: "The Android app is designed as a companion to the Multica backend service. It does not bundle a server, and it does not add runtime backend switching for normal users.", - }, - ], - demo: { - kicker: "Real Android flow", - title: "Open an issue. Read context. Draft a comment.", - body: - "The demo material uses emulator screenshots from a real project. Interactive moments are animated as safe overlays, so no public test comment needs to be submitted.", + journey: { + kicker: "Interactive walkthrough", + title: "Try the flow.", + subtitle: "Click each step or scroll to see the app in action.", + cta: "Start the walkthrough", + steps: [ + { title: "Inbox notifications", subtitle: "Stay on top of activity — new issues, comments, and agent progress show up as they happen." }, + { title: "Browse issues", subtitle: "See all tasks in a clean list view, ready for triage. Filter, search, and tap into any issue." }, + { title: "Switch to board view", subtitle: "Tap the view toggle to switch to a kanban board that shows status flow at a glance." }, + { title: "Open issue detail", subtitle: "Tap an issue card to see the full detail: title, status, labels, assignee, and body text." }, + { title: "Explore context", subtitle: "Context guide points zoom into focus areas — title and status, body content, then subtasks and comments — and return to the full view between each." }, + { title: "Scroll for more", subtitle: "Keep scrolling to see subtasks, subscribers, and the comment thread — all the structured context stays on one page." }, + { title: "Draft a comment", subtitle: "Tap the comment box. The keyboard appears and a comment types out character by character." }, + { title: "Mention anyone", subtitle: "Type @ and a picker appears with people, agents, and squads. Choose who to notify." }, + { title: "Workspace overview", subtitle: "Switch between Projects, Agents, Runtimes, Skills, and Settings with workspace chips." }, + ], }, - video: { - kicker: "Promo video", - title: "A quick walkthrough of the Android issue flow.", - body: - "The walkthrough shows a real emulator project, issue context, a simulated typewriter-style comment draft, and a light funk-style background track.", + workspace: { + kicker: "Workspace assets", + title: "Projects, agents, and everything in between.", + subtitle: "Switch between workspace views to see the full picture.", + items: [ + { title: "Projects", subtitle: "Browse projects with progress tracking" }, + { title: "Project detail", subtitle: "Task stats, status fields, and resources" }, + { title: "Agents", subtitle: "View agent status and recent activity" }, + { title: "Runtimes", subtitle: "Check runtime availability and versions" }, + { title: "Skills", subtitle: "Browse the workspace agent skill library" }, + { title: "Skill detail", subtitle: "Inspect skill structure and documentation" }, + { title: "Settings", subtitle: "Account, workspace, and preference controls" }, + ], }, - download: { - kicker: "GitHub APK", - title: "Install from GitHub Releases.", - package: "Package", - api: "Service API", - sha: "APK SHA256", - latest: "Latest release", - source: "Source code", - }, - trustKicker: "Trust and privacy", - trustItems: [ - "Independent companion app; no claim of Multica project ownership or maintainer endorsement.", - "Published as its own Android app for Multica users, while keeping attribution and product boundaries explicit.", - "Analytics requires user consent and is limited to an app_open event in the public Android build.", - "No chat content, file content, email address, tokens, or precise location are intentionally reported.", - ], - footer: { - tagline: "Independent Android companion app for Multica users. GitHub-distributed APK.", - multica: "Multica website", - github: "GitHub", - download: "Download APK", + download: { kicker: "GitHub APK", title: "Install from GitHub Releases.", package: "Package", api: "Service API", sha: "APK SHA256", latest: "Latest release", source: "Source code" }, + trust: { + kicker: "Trust and privacy", + items: [ + "Community-maintained independent project; not affiliated with or endorsed by Multica maintainers.", + "Published as its own Android app for Multica users, with explicit attribution and product boundaries.", + "Open source under MIT license — inspect, fork, or contribute.", + "No chat content, file content, email address, tokens, or precise location are collected.", + ], }, + footer: { tagline: "Independent Android companion app for Multica users. GitHub-distributed APK.", multica: "Multica website", github: "GitHub", download: "Download APK" }, }, zh: { - nav: { - brand: "Multi-Casual Android", - download: "下载", - trust: "信任说明", - relationship: "项目关系", - language: "English", - }, + nav: { brand: "Multi-Casual Android", download: "下载", trust: "信任说明", language: "English" }, hero: { eyebrow: "独立 companion app · 面向 Multica 工作流", - title: "在 Android 上处理 Issue。", - subtitle: "查看任务上下文、进入评论区、草拟回复,把核心 workspace 闭环带到手机上。", + title: "在 Android 上跟进你的 Multica 工作现场。", + subtitle: "查看通知、浏览 issues、阅读完整上下文、回复评论、@ 对方 —— 面向 Multica 用户的独立 Android companion app。", download: "下载 APK", - github: "查看 GitHub", + github: "GitHub", multica: "访问 Multica", - typing: "已在 Android 上验证,看起来没问题。", }, relationship: { kicker: "与 Multica 的关系", title: "礼貌、清楚、保持独立。", - body: - "Multi-Casual Android 是面向 Multica 用户的独立 companion app。它为了兼容现有工作流而连接 Multica 服务 API,但并不由 Multica 项目维护者维护、背书或发布,也不应该被表述为上游项目推出的 Multica Android App。", + body1: "Multi-Casual Android 是面向 Multica 用户的独立 companion app。它为了兼容现有工作流而连接 Multica 服务 API,但并不由 Multica 项目维护者维护、背书或发布。", + body2: "这个项目最初是作为向 Multica 社区贡献的路径来探索的。由于 Multica maintainers 后续计划推进他们自己主导的 app 体系,因此这套 Android 代码体系没有直接并入上游。我们尊重 maintainers 的边界建议,将 Multi-Casual Android 作为独立 app 继续运营和维护。", }, - featuresKicker: "覆盖能力", - features: [ - { - title: "Issue 工作流", - body: "查看 Inbox 条目、打开 Issue 详情、阅读评论,在离开桌面时也能保留任务上下文。", - }, - { - title: "手机端回复", - body: "进入评论输入流程,草拟回复,继续原本会在 Web 端处理的同一条讨论。", - }, - { - title: "兼容云服务流程", - body: "Android App 是 Multica 后端服务的 companion;不内置服务端,也不为普通用户提供运行时后端切换。", - }, - ], - demo: { - kicker: "真实 Android 流程", - title: "打开 Issue,阅读上下文,然后草拟评论。", - body: "演示素材来自真实项目里的模拟器截图;交互部分用安全的叠加动画表现,不需要真的往公开项目里提交测试评论。", + journey: { + kicker: "交互式演示", + title: "试试这个流程。", + subtitle: "点击每个步骤,或滚动页面查看 app 实际操作。", + cta: "开始演示", + steps: [ + { title: "Inbox 通知", subtitle: "新 issues、评论和 agent 进展会实时出现在收件箱,不错过任何动态。" }, + { title: "浏览 Issues", subtitle: "在列表视图中查看所有任务,快速筛选和进入任意 issue。" }, + { title: "切换看板视图", subtitle: "点击视图切换按钮,看板视图让你一眼看到任务状态流。" }, + { title: "打开 Issue 详情", subtitle: "点击 issue 卡片查看完整详情:标题、状态、标签、负责人和正文。" }, + { title: "探索上下文", subtitle: "Context 引导点依次放大标题与状态、正文内容、子任务与评论,然后缩回全貌。" }, + { title: "滚动查看更多", subtitle: "继续下滑查看子任务、订阅者和评论线程 —— 结构化上下文都在同一页。" }, + { title: "草拟评论", subtitle: "点击评论框,键盘出现,评论逐字输入。" }, + { title: "@ 提及任何人", subtitle: "输入 @ 弹出选择器,可选人、agent 或小队。" }, + { title: "Workspace 总览", subtitle: "通过 workspace chips 切换查看 Projects、Agents、Runtimes、Skills 和 Settings。" }, + ], }, - video: { - kicker: "宣传视频", - title: "快速看一遍 Android 端 Issue 流程。", - body: - "这段 walkthrough 使用真实模拟器项目截图,展示 Issue 上下文、逐字输入感的评论草稿,以及一条轻快的 funk style 背景乐。", + workspace: { + kicker: "Workspace 资产", + title: "项目、agents,以及它们之间的一切。", + subtitle: "切换 workspace 视图,掌握全貌。", + items: [ + { title: "Projects", subtitle: "浏览项目和进度追踪" }, + { title: "项目详情", subtitle: "任务统计、状态字段和资源入口" }, + { title: "Agents", subtitle: "查看 agent 状态和最近活动" }, + { title: "Runtimes", subtitle: "检查运行时可用性和版本" }, + { title: "Skills", subtitle: "浏览 workspace agent 技能库" }, + { title: "技能详情", subtitle: "查看技能结构和文档" }, + { title: "Settings", subtitle: "账号、工作区和偏好控制" }, + ], }, - download: { - kicker: "GitHub APK", - title: "从 GitHub Releases 安装。", - package: "包名", - api: "服务 API", - sha: "APK SHA256", - latest: "最新 Release", - source: "源码仓库", - }, - trustKicker: "信任与隐私", - trustItems: [ - "这是独立 companion app,不声明拥有 Multica 项目,也不暗示维护者背书。", - "作为独立 Android App 发布给 Multica 用户,同时明确署名和产品边界。", - "公开 Android 版本里的 analytics 需要用户同意,并且仅限 app_open 事件。", - "不会有意上报聊天内容、文件内容、邮箱、token 或精确位置。", - ], - footer: { - tagline: "面向 Multica 用户的独立 Android companion app,通过 GitHub 分发 APK。", - multica: "Multica 网站", - github: "GitHub", - download: "下载 APK", + download: { kicker: "GitHub APK", title: "从 GitHub Releases 安装。", package: "Package", api: "Service API", sha: "APK SHA256", latest: "最新版本", source: "源代码" }, + trust: { + kicker: "信任与隐私", + items: [ + "社区维护的独立项目;与 Multica maintainers 无隶属关系,无背书。", + "作为面向 Multica 用户的独立 Android app 发布,明确标注产品边界。", + "MIT 开源许可证 —— 可以查看、fork 或贡献。", + "不收集聊天内容、文件内容、邮箱、tokens 或精确位置信息。", + ], }, + footer: { tagline: "面向 Multica 用户的独立 Android companion app。GitHub 分发 APK。", multica: "Multica 官网", github: "GitHub", download: "下载 APK" }, }, -} satisfies Record; +}; -function fade(reducedMotion: boolean | null, delay = 0): MotionProps { - if (reducedMotion) { - return {}; - } - return { - initial: { opacity: 0, y: 24 }, - animate: { opacity: 1, y: 0 }, - transition: { duration: 0.7, delay, ease: "easeOut" }, - }; +const JOURNEY_STEPS = 9; +const TYPING_TEXT = "Looks good. I'll ask the agent to check the failing case and post a follow-up."; +const MENTION_ITEMS = [ + { name: "codex", color: "#1647ff" }, + { name: "Opus", color: "#7c3aed" }, + { name: "RollieOC", color: "#059669" }, +]; + +const WORKSPACE_SCREENSHOTS = [projectsImg, projectDetailImg, agentsImg, runtimesImg, skillsImg, skillDetailImg, settingsImg]; + +const fade = (reduced: boolean, delay = 0) => ({ + initial: reduced ? {} : { opacity: 0, y: 18 }, + whileInView: { opacity: 1, y: 0 }, + viewport: { once: true, margin: "-60px" }, + transition: { duration: 0.65, delay, ease: [0.25, 0.1, 0.25, 1] as const }, +}); + +const reveal = (reduced: boolean) => ({ + initial: reduced ? {} : { opacity: 0, y: 20 }, + whileInView: { opacity: 1, y: 0 }, + viewport: { once: true, margin: "-80px" }, + transition: { duration: 0.7, ease: [0.25, 0.1, 0.25, 1] as const }, +}); + +/* ── PhoneDemo ── */ +function PhoneDemo({ + src, + reduced, + zoomScale = 1, + zoomX = 0, + zoomY = 0, + children, +}: { + src: string; + reduced: boolean; + zoomScale?: number; + zoomX?: number; + zoomY?: number; + children?: React.ReactNode; +}) { + return ( +
+
+
+ + + + {children} +
+
+ ); } -function reveal(reducedMotion: boolean | null): MotionProps { - if (reducedMotion) { - return {}; - } - return { - initial: { opacity: 0, y: 28 }, - whileInView: { opacity: 1, y: 0 }, - viewport: { once: true, margin: "-80px" }, - transition: { duration: 0.7, ease: "easeOut" }, - }; -} +/* ── Typewriter effect ── */ +function TypewriterEffect({ active, text, reduced }: { active: boolean; text: string; reduced: boolean }) { + const charCount = useMotionValue(0); + const chars = useMemo(() => text.split(""), [text]); + const charRefs = useRef<(HTMLSpanElement | null)[]>([]); + const intervalRef = useRef | null>(null); + + // Imperatively update char opacity from motion value (no hooks in loops) + useEffect(() => { + const unsubscribe = charCount.on("change", (v) => { + const count = Math.round(v); + charRefs.current.forEach((el, i) => { + if (el) el.style.opacity = i < count ? "1" : "0"; + }); + }); + return unsubscribe; + }, [charCount]); + + useEffect(() => { + if (intervalRef.current) clearInterval(intervalRef.current); + if (!active) { charCount.set(0); charRefs.current.forEach((el) => { if (el) el.style.opacity = "0"; }); return; } + if (reduced) { + charCount.set(chars.length); + charRefs.current.forEach((el, i) => { if (el) el.style.opacity = i < chars.length ? "1" : "0"; }); + return; + } + let i = 0; + const interval = setInterval(() => { + i++; + charCount.set(i); + if (i >= chars.length) clearInterval(interval); + }, 42); + intervalRef.current = interval; + return () => clearInterval(interval); + }, [active, reduced, chars.length]); -function PhoneMockup({ typing }: { typing: string }) { - const reducedMotion = useReducedMotion(); return ( -
-
-
-
- - - {typing} - -
-
-