Skip to content

Shared task board where people and AI coding agents work as teammates. Source-available, self-hostable.

Go

MUL-8165: launch the new homepage, with one URL per language (#10266)

Jiayuan Zhang632445ec4e36
diff --git a/apps/web/app/(landing)/about/page.tsx b/apps/web/app/(landing)/about/page.tsx
index b46da08a38..661cc86023 100644
--- a/apps/web/app/(landing)/about/page.tsx
+++ b/apps/web/app/(landing)/about/page.tsx
@@ -1,20 +1,10 @@
import type { Metadata } from "next";
+import { pageMetadata } from "@/features/landing/utils/page-metadata";
import { AboutPageClient } from "@/features/landing/components/about-page-client";
-export const metadata: Metadata = {
- title: "About",
- description:
- "Learn about Multica — multiplexed information and computing agent. A source-available project management platform for human + agent teams.",
- openGraph: {
- title: "About Multica",
- description:
- "The story behind Multica and why we're building project management for human + agent teams.",
- url: "/about",
- },
- alternates: {
- canonical: "/about",
- },
-};
+export function generateMetadata(): Promise<Metadata> {
+ return pageMetadata("about", "/about");
+}
export default function AboutPage() {
return <AboutPageClient />;
diff --git a/apps/web/app/(landing)/blog/page.tsx b/apps/web/app/(landing)/blog/page.tsx
new file mode 100644
index 0000000000..f20543359a
--- /dev/null
+++ b/apps/web/app/(landing)/blog/page.tsx
@@ -0,0 +1,17 @@
+import type { Metadata } from "next";
+import { PlaceholderPage } from "@/features/landing/site/site-page";
+import { PLACEHOLDER_PAGES, liveMetadata, requireLiveRoute } from "@/features/landing/site/sitemap";
+
+const page = PLACEHOLDER_PAGES.blog;
+
+export const metadata: Metadata = liveMetadata("/blog", {
+ title: page.title,
+ description: page.summary,
+ alternates: { canonical: "/blog" },
+ robots: { index: false, follow: true },
+});
+
+export default function Page() {
+ requireLiveRoute("/blog");
+ return <PlaceholderPage eyebrow="Multica" page={page} />;
+}
diff --git a/apps/web/app/(landing)/careers/page.tsx b/apps/web/app/(landing)/careers/page.tsx
new file mode 100644
index 0000000000..55066a4751
--- /dev/null
+++ b/apps/web/app/(landing)/careers/page.tsx
@@ -0,0 +1,17 @@
+import type { Metadata } from "next";
+import { PlaceholderPage } from "@/features/landing/site/site-page";
+import { PLACEHOLDER_PAGES, liveMetadata, requireLiveRoute } from "@/features/landing/site/sitemap";
+
+const page = PLACEHOLDER_PAGES.careers;
+
+export const metadata: Metadata = liveMetadata("/careers", {
+ title: page.title,
+ description: page.summary,
+ alternates: { canonical: "/careers" },
+ robots: { index: false, follow: true },
+});
+
+export default function Page() {
+ requireLiveRoute("/careers");
+ return <PlaceholderPage eyebrow="Multica" page={page} />;
+}
diff --git a/apps/web/app/(landing)/changelog/page.tsx b/apps/web/app/(landing)/changelog/page.tsx
index ac28db2142..b7769748d7 100644
--- a/apps/web/app/(landing)/changelog/page.tsx
+++ b/apps/web/app/(landing)/changelog/page.tsx
@@ -1,19 +1,10 @@
import type { Metadata } from "next";
+import { pageMetadata } from "@/features/landing/utils/page-metadata";
import { ChangelogPageClient } from "@/features/landing/components/changelog-page-client";
-export const metadata: Metadata = {
- title: "Changelog",
- description:
- "See what's new in Multica — latest features, improvements, and fixes.",
- openGraph: {
- title: "Changelog | Multica",
- description: "Latest updates and releases from Multica.",
- url: "/changelog",
- },
- alternates: {
- canonical: "/changelog",
- },
-};
+export function generateMetadata(): Promise<Metadata> {
+ return pageMetadata("changelog", "/changelog");
+}
export default function ChangelogPage() {
return <ChangelogPageClient />;
diff --git a/apps/web/app/(landing)/contact-sales/page.tsx b/apps/web/app/(landing)/contact-sales/page.tsx
index 93397e2746..e4db26c006 100644
--- a/apps/web/app/(landing)/contact-sales/page.tsx
+++ b/apps/web/app/(landing)/contact-sales/page.tsx
@@ -1,20 +1,10 @@
import type { Metadata } from "next";
+import { pageMetadata } from "@/features/landing/utils/page-metadata";
import { ContactSalesPageClient } from "@/features/landing/components/contact-sales-page-client";
-export const metadata: Metadata = {
- title: "Contact Sales",
- description:
- "Talk to the Multica team about rolling out human + agent workflows at your company.",
- openGraph: {
- title: "Contact Sales — Multica",
- description:
- "Tell us about your team. We’ll respond within three business days.",
- url: "/contact-sales",
- },
- alternates: {
- canonical: "/contact-sales",
- },
-};
+export function generateMetadata(): Promise<Metadata> {
+ return pageMetadata("contactSales", "/contact-sales");
+}
export default function ContactSalesPage() {
return <ContactSalesPageClient />;
diff --git a/apps/web/app/(landing)/customers/page.tsx b/apps/web/app/(landing)/customers/page.tsx
new file mode 100644
index 0000000000..0003926091
--- /dev/null
+++ b/apps/web/app/(landing)/customers/page.tsx
@@ -0,0 +1,17 @@
+import type { Metadata } from "next";
+import { PlaceholderPage } from "@/features/landing/site/site-page";
+import { PLACEHOLDER_PAGES, liveMetadata, requireLiveRoute } from "@/features/landing/site/sitemap";
+
+const page = PLACEHOLDER_PAGES.customers;
+
+export const metadata: Metadata = liveMetadata("/customers", {
+ title: page.title,
+ description: page.summary,
+ alternates: { canonical: "/customers" },
+ robots: { index: false, follow: true },
+});
+
+export default function Page() {
+ requireLiveRoute("/customers");
+ return <PlaceholderPage eyebrow="Multica" page={page} />;
+}
diff --git a/apps/web/app/(landing)/download/download-client.tsx b/apps/web/app/(landing)/download/download-client.tsx
index 763b89bfa8..ff02175434 100644
--- a/apps/web/app/(landing)/download/download-client.tsx
+++ b/apps/web/app/(landing)/download/download-client.tsx
@@ -1,122 +1,60 @@
"use client";
import { useEffect, useState } from "react";
-import Link from "next/link";
-import { LandingHeader } from "@/features/landing/components/landing-header";
-import { LandingFooter } from "@/features/landing/components/landing-footer";
+import { useRouter } from "next/navigation";
+import { useLocale } from "@/features/landing/i18n";
+import { SitePage } from "@/features/landing/site/site-page";
+import { localizeHref } from "@/lib/landing-locale-path";
import { DownloadHero } from "@/features/landing/components/download/hero";
-import { AllPlatforms } from "@/features/landing/components/download/all-platforms";
import { CliSection } from "@/features/landing/components/download/cli-section";
-import { CloudSection } from "@/features/landing/components/download/cloud-section";
-import { useLocale } from "@/features/landing/i18n";
-import {
- detectOS,
- type DetectResult,
-} from "@/features/landing/utils/os-detect";
+import { DownloadStarted } from "@/features/landing/components/download/started";
+import { useDetectedPlatform } from "@/features/landing/components/download/use-detected-platform";
+import { takePendingDownload } from "@/features/landing/utils/download-target";
import type { LatestRelease } from "@/features/landing/utils/github-release";
+import type { DetectResult } from "@/features/landing/utils/os-detect";
+import type { DownloadKey } from "@/features/landing/utils/parse-release-assets";
-const ALL_RELEASES_URL =
- "https://github.com/multica-ai/multica/releases";
-
-export function DownloadClient({ release }: { release: LatestRelease }) {
- const [detected, setDetected] = useState<DetectResult | null>(null);
- const versionUnavailable = release.version === null;
-
- useEffect(() => {
- let cancelled = false;
- detectOS().then((result) => {
- if (cancelled) return;
- setDetected(result);
- });
- return () => {
- cancelled = true;
- };
- }, []);
-
- const releaseHtmlUrl = release.htmlUrl ?? ALL_RELEASES_URL;
-
- return (
- <>
- {/* Positioning context for the dark-variant LandingHeader —
- mirrors multica-landing.tsx. The header is `absolute top-0
- inset-x-0`, so it anchors to this `relative` wrapper and
- scrolls off together with the dark hero below. Without the
- wrapper, `absolute` would escape to the initial containing
- block and read as fixed. */}
- <div className="relative">
- <LandingHeader variant="dark" />
- <DownloadHero
- detected={detected}
- assets={release.assets}
- versionUnavailable={versionUnavailable}
- />
- </div>
-
- <AllPlatforms
- assets={release.assets}
- fallbackHref={ALL_RELEASES_URL}
- />
- <CliSection />
- <CloudSection />
- <VersionInfoFooter
- version={release.version}
- releaseHtmlUrl={releaseHtmlUrl}
- />
- <LandingFooter />
- </>
- );
-}
-
-function VersionInfoFooter({
- version,
- releaseHtmlUrl,
+export function DownloadClient({
+ release,
+ platform,
+ started: startedFromUrl,
}: {
- version: string | null;
- releaseHtmlUrl: string;
+ release: LatestRelease;
+ platform: DetectResult;
+ /** Set when a homepage download button sent the visitor here. */
+ started: DownloadKey | null;
}) {
- const { t } = useLocale();
- const d = t.download.footer;
+ const router = useRouter();
+ const { locale } = useLocale();
+ const detected = useDetectedPlatform(platform);
+ const [started, setStarted] = useState(startedFromUrl);
+ const startedHref = started ? release.assets[started] : undefined;
+
+ // The homepage click left a pending flag; start that file once. A reload
+ // or a shared link shows the same page without downloading again.
+ useEffect(() => {
+ const href = startedFromUrl ? release.assets[startedFromUrl] : undefined;
+ if (startedFromUrl && href && takePendingDownload(startedFromUrl)) window.location.assign(href);
+ }, [startedFromUrl, release.assets]);
return (
- <section className="bg-white pb-16 text-[#0a0d12] sm:pb-20">
- <div className="mx-auto flex max-w-[920px] flex-wrap items-center gap-x-6 gap-y-2 border-t border-[#0a0d12]/8 px-4 pt-8 text-label text-[#0a0d12]/60 sm:px-6 lg:px-8">
- {version ? (
- <>
- <span>
- {d.currentVersion.replace("{version}", version)}
- </span>
- <span aria-hidden className="text-[#0a0d12]/25">
- ·
- </span>
- <Link
- href={releaseHtmlUrl}
- className="underline decoration-[#0a0d12]/30 underline-offset-4 hover:text-[#0a0d12] hover:decoration-[#0a0d12]/70"
- target="_blank"
- rel="noreferrer"
- >
- {d.releaseNotes.replace("{version}", version)}
- </Link>
- <span aria-hidden className="text-[#0a0d12]/25">
- ·
- </span>
- </>
- ) : (
- <>
- <span>{d.versionUnavailable}</span>
- <span aria-hidden className="text-[#0a0d12]/25">
- ·
- </span>
- </>
- )}
- <Link
- href={ALL_RELEASES_URL}
- className="underline decoration-[#0a0d12]/30 underline-offset-4 hover:text-[#0a0d12] hover:decoration-[#0a0d12]/70"
- target="_blank"
- rel="noreferrer"
- >
- {d.allReleases}
- </Link>
- </div>
- </section>
+ <SitePage>
+ {started && startedHref ? (
+ <DownloadStarted
+ downloadKey={started}
+ href={startedHref}
+ size={release.sizes[started]}
+ onBack={() => {
+ setStarted(null);
+ if (startedFromUrl) router.replace(localizeHref(locale, "/download"), { scroll: false });
+ }}
+ />
+ ) : (
+ <>
+ <DownloadHero detected={detected} release={release} onStart={setStarted} />
+ <CliSection />
+ </>
+ )}
+ </SitePage>
);
}
diff --git a/apps/web/app/(landing)/download/page.tsx b/apps/web/app/(landing)/download/page.tsx
index fb353c4135..fc631da4fb 100644
--- a/apps/web/app/(landing)/download/page.tsx
+++ b/apps/web/app/(landing)/download/page.tsx
@@ -1,29 +1,23 @@
import type { Metadata } from "next";
+import { pageMetadata } from "@/features/landing/utils/page-metadata";
import { fetchLatestRelease } from "@/features/landing/utils/github-release";
+import { getRequestPlatform } from "@/features/landing/utils/request-platform";
+import { isDownloadKey } from "@/features/landing/utils/download-target";
import { DownloadClient } from "./download-client";
-// Vercel ISR: the server fetch inside fetchLatestRelease carries
-// `next: { revalidate: 300 }`, which makes GitHub API cost at most
-// one request per region per 5 minutes. Page-level revalidate mirrors
-// that window so the first paint also refreshes every 5 minutes.
-export const revalidate = 300;
-
-export const metadata: Metadata = {
- title: "Download Multica",
- description:
- "Download Multica for macOS, Windows, or Linux — or install the CLI for servers and remote dev boxes.",
- openGraph: {
- title: "Download Multica",
- description:
- "Get the Multica desktop app with a bundled daemon, or install the CLI for servers and remote dev boxes.",
- url: "/download",
- },
- alternates: {
- canonical: "/download",
- },
-};
+export function generateMetadata(): Promise<Metadata> {
+ return pageMetadata("download", "/download");
+}
-export default async function DownloadPage() {
- const release = await fetchLatestRelease();
- return <DownloadClient release={release} />;
+// The page renders per request so its first paint names the visitor's
+// platform. The release itself comes from the fetch cache, refreshed at
+// most every 5 minutes (see fetchLatestRelease).
+export default async function DownloadPage({
+ searchParams,
+}: {
+ searchParams: Promise<{ started?: string | string[] }>;
+}) {
+ const [release, platform, params] = await Promise.all([fetchLatestRelease(), getRequestPlatform(), searchParams]);
+ const started = isDownloadKey(params.started) ? params.started : null;
+ return <DownloadClient release={release} platform={platform} started={started} />;
}
diff --git a/apps/web/app/(landing)/homepage/page.tsx b/apps/web/app/(landing)/homepage/page.tsx
index 7c56d82006..3227778d71 100644
--- a/apps/web/app/(landing)/homepage/page.tsx
+++ b/apps/web/app/(landing)/homepage/page.tsx
@@ -1,21 +1,12 @@
import type { Metadata } from "next";
-import { MulticaLanding } from "@/features/landing/components/multica-landing";
+import { pageMetadata } from "@/features/landing/utils/page-metadata";
+import { HomePage } from "@/features/landing/site/home-page";
+import { getHomeDownload } from "@/features/landing/utils/home-download";
-export const metadata: Metadata = {
- title: "Homepage",
- description:
- "Multica — source-available platform that turns coding agents into real teammates. Assign tasks, track progress, compound skills.",
- openGraph: {
- title: "Multica — Project Management for Human + Agent Teams",
- description:
- "Manage your human + agent workforce in one place.",
- url: "/homepage",
- },
- alternates: {
- canonical: "/homepage",
- },
-};
+export function generateMetadata(): Promise<Metadata> {
+ return pageMetadata("home", "/homepage");
+}
-export default function HomepagePage() {
- return <MulticaLanding />;
+export default async function HomepagePage() {
+ return <HomePage download={await getHomeDownload()} />;
}
diff --git a/apps/web/app/(landing)/layout.tsx b/apps/web/app/(landing)/layout.tsx
index ada22161ff..7ea9d82ef3 100644
--- a/apps/web/app/(landing)/layout.tsx
+++ b/apps/web/app/(landing)/layout.tsx
@@ -1,19 +1,7 @@
-import { Instrument_Serif } from "next/font/google";
import { LocaleProvider } from "@/features/landing/i18n";
+import { LocaleSuggestion } from "@/features/landing/site/locale-suggestion";
import { getRequestLocale } from "@/lib/request-locale";
-// Instrument Serif is the landing display face and is Latin-only. The full
-// `--font-serif` stack (Instrument Serif + the per-locale CJK serif tail) is
-// composed in static CSS in app/custom.css, not here — same reasoning as
-// `--font-sans` in app/globals.css: the CJK tail must be overridable per
-// `<html lang>`, and a hashed next/font family can only be referenced from CSS
-// through its variable.
-const instrumentSerif = Instrument_Serif({
- subsets: ["latin"],
- weight: "400",
- variable: "--font-instrument-serif",
-});
-
const jsonLd = {
"@context": "https://schema.org",
"@graph": [
@@ -52,8 +40,11 @@ export default async function LandingLayout({
type="application/ld+json"
dangerouslySetInnerHTML={{ __html: JSON.stringify(jsonLd) }}
/>
- <div className={`${instrumentSerif.variable} landing-light h-full overflow-x-hidden overflow-y-auto bg-white`}>
- <LocaleProvider initialLocale={initialLocale}>{children}</LocaleProvider>
+ <div className="landing-light h-full overflow-x-hidden overflow-y-auto bg-white">
+ <LocaleProvider initialLocale={initialLocale}>
+ <LocaleSuggestion />
+ {children}
+ </LocaleProvider>
</div>
</>
);
diff --git a/apps/web/app/(landing)/licensing/page.tsx b/apps/web/app/(landing)/licensing/page.tsx
index d25e2dfcb0..fa5820d685 100644
--- a/apps/web/app/(landing)/licensing/page.tsx
+++ b/apps/web/app/(landing)/licensing/page.tsx
@@ -1,20 +1,10 @@
import type { Metadata } from "next";
+import { pageMetadata } from "@/features/landing/utils/page-metadata";
import { LicensingPageClient } from "@/features/landing/components/licensing-page-client";
-export const metadata: Metadata = {
- title: "Licensing",
- description:
- "When you can use Multica for free and when you need a commercial license, explained with common scenarios.",
- openGraph: {
- title: "Licensing — Multica",
- description:
- "Free to self-host inside your organization. Offering Multica to others as a hosted service needs a commercial license.",
- url: "/licensing",
- },
- alternates: {
- canonical: "/licensing",
- },
-};
+export function generateMetadata(): Promise<Metadata> {
+ return pageMetadata("licensing", "/licensing");
+}
export default function LicensingPage() {
return <LicensingPageClient />;
diff --git a/apps/web/app/(landing)/page.tsx b/apps/web/app/(landing)/page.tsx
index 649aeab2e5..f4a258a95f 100644
--- a/apps/web/app/(landing)/page.tsx
+++ b/apps/web/app/(landing)/page.tsx
@@ -1,29 +1,18 @@
import type { Metadata } from "next";
-import { MulticaLanding } from "@/features/landing/components/multica-landing";
+import { pageMetadata } from "@/features/landing/utils/page-metadata";
+import { HomePage } from "@/features/landing/site/home-page";
+import { getHomeDownload } from "@/features/landing/utils/home-download";
import { RedirectIfAuthenticated } from "@/features/landing/components/redirect-if-authenticated";
-export const metadata: Metadata = {
- title: {
- absolute: "Multica — Project Management for Human + Agent Teams",
- },
- description:
- "Source-available platform that turns coding agents into real teammates. Assign tasks, track progress, compound skills.",
- openGraph: {
- title: "Multica — Project Management for Human + Agent Teams",
- description:
- "Manage your human + agent workforce in one place.",
- url: "/",
- },
- alternates: {
- canonical: "/",
- },
-};
+export function generateMetadata(): Promise<Metadata> {
+ return pageMetadata("home", "/");
+}
-export default function LandingPage() {
+export default async function LandingPage() {
return (
<>
<RedirectIfAuthenticated />
- <MulticaLanding />
+ <HomePage download={await getHomeDownload()} />
</>
);
}
diff --git a/apps/web/app/(landing)/press/page.tsx b/apps/web/app/(landing)/press/page.tsx
new file mode 100644
index 0000000000..59c606e5b8
--- /dev/null
+++ b/apps/web/app/(landing)/press/page.tsx
@@ -0,0 +1,17 @@
+import type { Metadata } from "next";
+import { PlaceholderPage } from "@/features/landing/site/site-page";
+import { PLACEHOLDER_PAGES, liveMetadata, requireLiveRoute } from "@/features/landing/site/sitemap";
+
+const page = PLACEHOLDER_PAGES.press;
+
+export const metadata: Metadata = liveMetadata("/press", {
+ title: page.title,
+ description: page.summary,
+ alternates: { canonical: "/press" },
+ robots: { index: false, follow: true },
+});
+
+export default function Page() {
+ requireLiveRoute("/press");
+ return <PlaceholderPage eyebrow="Multica" page={page} />;
+}
diff --git a/apps/web/app/(landing)/pricing/page.tsx b/apps/web/app/(landing)/pricing/page.tsx
new file mode 100644
index 0000000000..b72274f852
--- /dev/null
+++ b/apps/web/app/(landing)/pricing/page.tsx
@@ -0,0 +1,15 @@
+import type { Metadata } from "next";
+import { PricingPage } from "@/features/landing/site/pricing-page";
+import { PLACEHOLDER_PAGES, liveMetadata, requireLiveRoute } from "@/features/landing/site/sitemap";
+
+export const metadata: Metadata = liveMetadata("/pricing", {
+ title: PLACEHOLDER_PAGES.pricing.title,
+ description: PLACEHOLDER_PAGES.pricing.summary,
+ alternates: { canonical: "/pricing" },
+ robots: { index: false, follow: true },
+});
+
+export default function Page() {
+ requireLiveRoute("/pricing");
+ return <PricingPage />;
+}
diff --git a/apps/web/app/(landing)/privacy/page.tsx b/apps/web/app/(landing)/privacy/page.tsx
index 14c4571c64..b70e846b0d 100644
--- a/apps/web/app/(landing)/privacy/page.tsx
+++ b/apps/web/app/(landing)/privacy/page.tsx
@@ -1,20 +1,10 @@
import type { Metadata } from "next";
+import { pageMetadata } from "@/features/landing/utils/page-metadata";
import { PrivacyPageClient } from "@/features/landing/components/privacy-page-client";
-export const metadata: Metadata = {
- title: "Privacy Policy",
- description:
- "How Multica collects, uses, and protects personal information on multica.ai and Multica Cloud.",
- openGraph: {
- title: "Privacy Policy — Multica",
- description:
- "How Multica collects, uses, and protects personal information.",
- url: "/privacy",
- },
- alternates: {
- canonical: "/privacy",
- },
-};
+export function generateMetadata(): Promise<Metadata> {
+ return pageMetadata("privacy", "/privacy");
+}
export default function PrivacyPage() {
return <PrivacyPageClient />;
diff --git a/apps/web/app/(landing)/product/[slug]/page.tsx b/apps/web/app/(landing)/product/[slug]/page.tsx
new file mode 100644
index 0000000000..a2aeaf45bd
--- /dev/null
+++ b/apps/web/app/(landing)/product/[slug]/page.tsx
@@ -0,0 +1,49 @@
+import type { Metadata } from "next";
+import { notFound } from "next/navigation";
+import type { ComponentType } from "react";
+import { ChatPage } from "@/features/landing/site/chat-page";
+import { CliPage } from "@/features/landing/site/cli-page";
+import { CloudPage } from "@/features/landing/site/cloud-page";
+import { DesktopPage } from "@/features/landing/site/desktop-page";
+import { MobilePage } from "@/features/landing/site/mobile-page";
+import { PlaceholderPage } from "@/features/landing/site/site-page";
+import { PRODUCT_GROUPS, findPage, productHref, liveMetadata, requireLiveRoute } from "@/features/landing/site/sitemap";
+
+type Params = { slug: string };
+
+const BUILT_PAGES: Record<string, ComponentType> = {
+ cloud: CloudPage,
+ desktop: DesktopPage,
+ cli: CliPage,
+ chat: ChatPage,
+ mobile: MobilePage,
+};
+
+export const dynamicParams = false;
+
+export function generateStaticParams(): Params[] {
+ return PRODUCT_GROUPS.flatMap((group) => group.pages.map((page) => ({ slug: page.slug })));
+}
+
+export async function generateMetadata(props: { params: Promise<Params> }): Promise<Metadata> {
+ const { slug } = await props.params;
+ const page = findPage(PRODUCT_GROUPS, slug);
+ if (!page) return {};
+ return liveMetadata(productHref(page.slug), {
+ title: page.title,
+ description: page.summary,
+ alternates: { canonical: productHref(page.slug) },
+ robots: { index: false, follow: true },
+ });
+}
+
+export default async function Page(props: { params: Promise<Params> }) {
+ const { slug } = await props.params;
+ const group = PRODUCT_GROUPS.find((g) => g.pages.some((page) => page.slug === slug));
+ const page = findPage(PRODUCT_GROUPS, slug);
+ if (!group || !page) notFound();
+ requireLiveRoute(productHref(page.slug));
+ const Built = BUILT_PAGES[page.slug];
+ if (Built) return <Built />;
+ return <PlaceholderPage eyebrow={group.title} page={page} />;
+}
diff --git a/apps/web/app/(landing)/product/page.tsx b/apps/web/app/(landing)/product/page.tsx
new file mode 100644
index 0000000000..1bf98d5734
--- /dev/null
+++ b/apps/web/app/(landing)/product/page.tsx
@@ -0,0 +1,21 @@
+import type { Metadata } from "next";
+import { DirectoryPage } from "@/features/landing/site/site-page";
+import { PRODUCT_GROUPS, productHref, liveMetadata, requireLiveRoute } from "@/features/landing/site/sitemap";
+
+export const metadata: Metadata = liveMetadata("/product", {
+ title: "Product",
+ alternates: { canonical: "/product" },
+ robots: { index: false, follow: true },
+});
+
+export default function Page() {
+ requireLiveRoute("/product");
+ return (
+ <DirectoryPage
+ title="Product"
+ lead="Placeholder: everything your human and agent team needs, in one workspace."
+ groups={PRODUCT_GROUPS}
+ href={productHref}
+ />
+ );
+}
diff --git a/apps/web/app/(landing)/security/page.tsx b/apps/web/app/(landing)/security/page.tsx
new file mode 100644
index 0000000000..a5c5ea6509
--- /dev/null
+++ b/apps/web/app/(landing)/security/page.tsx
@@ -0,0 +1,17 @@
+import type { Metadata } from "next";
+import { PlaceholderPage } from "@/features/landing/site/site-page";
+import { PLACEHOLDER_PAGES, liveMetadata, requireLiveRoute } from "@/features/landing/site/sitemap";
+
+const page = PLACEHOLDER_PAGES.security;
+
+export const metadata: Metadata = liveMetadata("/security", {
+ title: page.title,
+ description: page.summary,
+ alternates: { canonical: "/security" },
+ robots: { index: false, follow: true },
+});
+
+export default function Page() {
+ requireLiveRoute("/security");
+ return <PlaceholderPage eyebrow="Multica" page={page} />;
+}
diff --git a/apps/web/app/(landing)/solutions/[slug]/page.tsx b/apps/web/app/(landing)/solutions/[slug]/page.tsx
new file mode 100644
index 0000000000..1bb706765c
--- /dev/null
+++ b/apps/web/app/(landing)/solutions/[slug]/page.tsx
@@ -0,0 +1,33 @@
+import type { Metadata } from "next";
+import { notFound } from "next/navigation";
+import { PlaceholderPage } from "@/features/landing/site/site-page";
+import { SOLUTION_GROUPS, findPage, solutionHref, liveMetadata, requireLiveRoute } from "@/features/landing/site/sitemap";
+
+type Params = { slug: string };
+
+export const dynamicParams = false;
+
+export function generateStaticParams(): Params[] {
+ return SOLUTION_GROUPS.flatMap((group) => group.pages.map((page) => ({ slug: page.slug })));
+}
+
+export async function generateMetadata(props: { params: Promise<Params> }): Promise<Metadata> {
+ const { slug } = await props.params;
+ const page = findPage(SOLUTION_GROUPS, slug);
+ if (!page) return {};
+ return liveMetadata(solutionHref(page.slug), {
+ title: page.title,
+ description: page.summary,
+ alternates: { canonical: solutionHref(page.slug) },
+ robots: { index: false, follow: true },
+ });
+}
+
+export default async function Page(props: { params: Promise<Params> }) {
+ const { slug } = await props.params;
+ const group = SOLUTION_GROUPS.find((g) => g.pages.some((page) => page.slug === slug));
+ const page = findPage(SOLUTION_GROUPS, slug);
+ if (!group || !page) notFound();
+ requireLiveRoute(solutionHref(page.slug));
+ return <PlaceholderPage eyebrow={group.title} page={page} />;
+}
diff --git a/apps/web/app/(landing)/solutions/page.tsx b/apps/web/app/(landing)/solutions/page.tsx
new file mode 100644
index 0000000000..951b081877
--- /dev/null
+++ b/apps/web/app/(landing)/solutions/page.tsx
@@ -0,0 +1,21 @@
+import type { Metadata } from "next";
+import { DirectoryPage } from "@/features/landing/site/site-page";
+import { SOLUTION_GROUPS, solutionHref, liveMetadata, requireLiveRoute } from "@/features/landing/site/sitemap";
+
+export const metadata: Metadata = liveMetadata("/solutions", {
+ title: "Solutions",
+ alternates: { canonical: "/solutions" },
+ robots: { index: false, follow: true },
+});
+
+export default function Page() {
+ requireLiveRoute("/solutions");
+ return (
+ <DirectoryPage
+ title="Solutions"
+ lead="Placeholder: how teams put Multica to work."
+ groups={SOLUTION_GROUPS}
+ href={solutionHref}
+ />
+ );
+}
diff --git a/apps/web/app/(landing)/usecases/[slug]/page.tsx b/apps/web/app/(landing)/usecases/[slug]/page.tsx
index c0b02df3ce..02e4f75674 100644
--- a/apps/web/app/(landing)/usecases/[slug]/page.tsx
+++ b/apps/web/app/(landing)/usecases/[slug]/page.tsx
@@ -1,10 +1,10 @@
import type { Metadata } from "next";
import type { ComponentPropsWithoutRef, ReactNode } from "react";
-import Link from "next/link";
+import Link from "@/features/landing/components/landing-link";
import { notFound } from "next/navigation";
import { cn } from "@multica/ui/lib/utils";
-import { LandingHeader } from "@/features/landing/components/landing-header";
-import { LandingFooter } from "@/features/landing/components/landing-footer";
+import { SiteHeader } from "@/features/landing/site/site-header";
+import { SiteFooter } from "@/features/landing/site/site-footer";
import { Screenshot } from "@/features/landing/components/mdx/screenshot";
import { getUseCasePageForLocale } from "@/lib/use-cases-source";
import {
@@ -13,6 +13,9 @@ import {
useCaseText,
} from "@/lib/use-cases-i18n";
import type { SupportedLocale } from "@multica/core/i18n";
+import { SHARE_IMAGE } from "@/features/landing/share-image";
+import { landingAlternates, localizeHref } from "@/lib/landing-locale-path";
+import { liveMetadata, requireLiveRoute } from "@/features/landing/site/sitemap";
type Params = { slug: string };
@@ -26,18 +29,21 @@ export async function generateMetadata(props: {
const page = getUseCasePageForLocale([slug], locale);
if (!page) return {};
- return {
+ const path = `/usecases/${slug}`;
+ return liveMetadata("/usecases", {
title: page.data.title,
description: page.data.description,
openGraph: {
+ images: [SHARE_IMAGE],
title: page.data.title,
description: page.data.description,
- url: `/usecases/${slug}`,
+ url: localizeHref(locale, path),
},
alternates: {
- canonical: `/usecases/${slug}`,
+ canonical: localizeHref(locale, path),
+ languages: landingAlternates(path),
},
- };
+ });
}
function nodeToString(node: ReactNode): string {
@@ -205,6 +211,7 @@ function createMdxComponents(locale: SupportedLocale) {
}
export default async function UseCasePage(props: { params: Promise<Params> }) {
+ requireLiveRoute("/usecases");
const { slug } = await props.params;
const locale = await getUseCaseLocale();
const text = useCaseText[locale];
@@ -219,9 +226,7 @@ export default async function UseCasePage(props: { params: Promise<Params> }) {
return (
<>
- <div className="sticky top-0 z-40 bg-white">
- <LandingHeader variant="light" />
- </div>
+ <SiteHeader />
<main className="bg-white text-[#0a0d12]">
<div
className={cn(
@@ -231,7 +236,7 @@ export default async function UseCasePage(props: { params: Promise<Params> }) {
)}
>
<article>
- <h1 className="landing-serif text-[2.6rem] leading-[1.05] tracking-[-0.03em] sm:text-[3.4rem]">
+ <h1 className="font-site-display text-site-heading">
{page.data.title}
</h1>
<div className="mt-10 text-title-sm leading-[1.85] text-[#0a0d12]/72 [&>:first-child]:mt-0 [&>p]:my-5 sm:text-title">
@@ -268,7 +273,7 @@ export default async function UseCasePage(props: { params: Promise<Params> }) {
) : null}
</div>
</main>
- <LandingFooter />
+ <SiteFooter />
</>
);
}
diff --git a/apps/web/app/(landing)/usecases/page.tsx b/apps/web/app/(landing)/usecases/page.tsx
index 80aab542b3..b523d765a3 100644
--- a/apps/web/app/(landing)/usecases/page.tsx
+++ b/apps/web/app/(landing)/usecases/page.tsx
@@ -1,10 +1,13 @@
import type { Metadata } from "next";
-import Link from "next/link";
+import Link from "@/features/landing/components/landing-link";
import Image from "next/image";
-import { LandingHeader } from "@/features/landing/components/landing-header";
-import { LandingFooter } from "@/features/landing/components/landing-footer";
+import { SiteHeader } from "@/features/landing/site/site-header";
+import { SiteFooter } from "@/features/landing/site/site-footer";
import { getUseCasePagesForLocale } from "@/lib/use-cases-source";
import { getUseCaseLocale, useCaseText } from "@/lib/use-cases-i18n";
+import { SHARE_IMAGE } from "@/features/landing/share-image";
+import { landingAlternates, localizeHref } from "@/lib/landing-locale-path";
+import { liveMetadata, requireLiveRoute } from "@/features/landing/site/sitemap";
type ExtraFrontmatter = {
category?: string;
@@ -15,21 +18,24 @@ type ExtraFrontmatter = {
export async function generateMetadata(): Promise<Metadata> {
const locale = await getUseCaseLocale();
const text = useCaseText[locale];
- return {
+ return liveMetadata("/usecases", {
title: text.indexMetadataTitle,
description: text.indexMetadataDescription,
openGraph: {
+ images: [SHARE_IMAGE],
title: text.indexMetadataTitle,
description: text.indexMetadataDescription,
- url: "/usecases",
+ url: localizeHref(locale, "/usecases"),
},
alternates: {
- canonical: "/usecases",
+ canonical: localizeHref(locale, "/usecases"),
+ languages: landingAlternates("/usecases"),
},
- };
+ });
}
export default async function UseCasesIndexPage() {
+ requireLiveRoute("/usecases");
const locale = await getUseCaseLocale();
const text = useCaseText[locale];
const pages = getUseCasePagesForLocale(locale)
@@ -45,11 +51,11 @@ export default async function UseCasesIndexPage() {
return (
<>
+ <SiteHeader />
<div className="relative">
- <LandingHeader variant="dark" />
<section className="relative overflow-hidden bg-[#05070b] text-white">
<div className="relative z-10 mx-auto max-w-[1120px] px-4 pb-20 pt-32 text-center sm:px-6 sm:pt-40 lg:px-8 lg:pb-24">
- <h1 className="mx-auto max-w-[880px] landing-serif text-[3rem] leading-[1.02] tracking-[-0.035em] drop-shadow-[0_10px_34px_rgba(0,0,0,0.32)] sm:text-[4rem] lg:text-[5rem]">
+ <h1 className="mx-auto max-w-[880px] font-site-display text-site-display drop-shadow-[0_10px_34px_rgba(0,0,0,0.32)]">
{text.indexTitle}
</h1>
<p className="mx-auto mt-6 max-w-[620px] text-body-lg leading-7 text-white/84 sm:text-title">
@@ -107,7 +113,7 @@ export default async function UseCasesIndexPage() {
</div>
</section>
- <LandingFooter />
+ <SiteFooter />
</>
);
}
diff --git a/apps/web/app/brand-variant-cascade.test.ts b/apps/web/app/brand-variant-cascade.test.ts
index dd7a133e18..775553e891 100644
--- a/apps/web/app/brand-variant-cascade.test.ts
+++ b/apps/web/app/brand-variant-cascade.test.ts
@@ -12,7 +12,7 @@ import { beforeAll, describe, expect, it } from "vitest";
*
* This lives in apps/web because it tests the COMPILED STYLESHEET, not React
* behaviour: `globals.css` is the app's artifact, and the `dark` variant is
- * defined there (`@custom-variant dark (&:is(.dark *))`) — that definition is
+ * defined there (`@custom-variant dark (&:is(.dark *):where(...))`) — that definition is
* what decides the outcome below. It follows the same pattern as
* font-fallback-order.test.ts, which also asserts on the app's CSS.
*
@@ -45,6 +45,8 @@ interface ElementState {
hover?: boolean;
active?: boolean;
expanded?: boolean;
+ /** Inside the light-only marketing site (`.landing-light`). */
+ landing?: boolean;
}
const repoRoot = resolve(process.cwd(), "../..");
@@ -81,12 +83,15 @@ async function compileStylesheet(entry: string): Promise<FlatRule[]> {
return rules;
}
+// The `dark` variant skips the marketing site; `:where()` adds no specificity.
+const LIGHT_ONLY = ":where(:not(.landing-light, .landing-light *))";
+
/** Selector specificity's `b` column — classes, attributes, pseudo-classes.
* `:is()` contributes its most specific argument. Nothing here reaches for
* ids or elements, so the other two columns are always 0. */
function specificity(selector: string): number {
let count = 0;
- const withoutIs = selector.replace(/:is\(([^()]*)\)/g, (_, inner: string) => {
+ const withoutIs = selector.replace(LIGHT_ONLY, "").replace(/:is\(([^()]*)\)/g, (_, inner: string) => {
count += Math.max(
...inner.split(",").map((part) => (part.match(/\.[^.\s>+~:[]+/g) ?? []).length),
);
@@ -112,11 +117,12 @@ function matches(selector: string, classes: string[], state: ElementState) {
if (!classes.includes(cls)) return false;
const rest = selector.slice(m[0].length);
if (rest.includes(":is(.dark *)") && !state.dark) return false;
+ if (rest.includes(LIGHT_ONLY) && state.landing) return false;
if (rest.includes(":hover") && !state.hover) return false;
if (rest.includes(":active") && !state.active) return false;
if (rest.includes('[aria-expanded="true"]') && !state.expanded) return false;
// Ignore any rule whose selector we do not model, rather than guessing.
- const unmodelled = rest.replace(
+ const unmodelled = rest.replace(LIGHT_ONLY, "").replace(
/:is\(\.dark \*\)|:hover|:active|\[aria-expanded="true"\]/g,
"",
);
@@ -216,6 +222,13 @@ describe("brand Button variants resolve to brand colour in the real stylesheet",
"dark:aria-expanded:bg-brand/18",
);
});
+
+ it("stays on the light notches inside the light-only marketing site", () => {
+ expect(bg(brandSubtle, { dark: true, landing: true })).toBe("bg-brand/7");
+ expect(bg(brandSubtle, { dark: true, landing: true, hover: true })).toBe(
+ "hover:bg-brand/12",
+ );
+ });
});
// The two ways the brand colour has actually been lost. Both are asserted
diff --git a/apps/web/app/custom.css b/apps/web/app/custom.css
index 2855287804..9c50519624 100644
--- a/apps/web/app/custom.css
+++ b/apps/web/app/custom.css
@@ -72,79 +72,3 @@
--scrollbar-thumb-hover: oklch(0 0 0 / 18%);
--scrollbar-track: transparent;
}
-
-/* -----------------------------------------------------------------------------
- * Landing editorial serif
- *
- * The landing tree swaps the app's `--font-serif` (Source Serif 4, composed in
- * app/globals.css) for Instrument Serif, loaded by app/(landing)/layout.tsx as
- * `--font-instrument-serif`. The stack is composed here in static CSS rather
- * than in next/font's `fallback` for the same reasons `--font-sans` is composed
- * in app/globals.css: it has to be overridable per `<html lang>`, and it stays
- * CSP-safe (no inline <style>). Keep the CJK ordering here in sync with the
- * `--font-sans` chain in app/globals.css.
- *
- * Instrument Serif ships Latin only, so CJK headlines used to fall out of the
- * stack entirely and land on the browser's default face — a sans, next to Latin
- * set in a high-contrast display serif. The tail hands Han and Hangul to a
- * platform Songti/Mincho/Myeongjo instead of shipping a multi-megabyte CJK
- * webfont (an earlier `Noto_Serif_SC` next/font entry was never referenced by
- * any rule and requested `subsets: ["latin"]`, so it downloaded no CJK glyphs).
- *
- * Default (en / zh / ko): Latin renders with Instrument Serif; Han falls through
- * to the Chinese serifs, then Hangul to the Korean ones. Chinese MUST stay
- * before Korean so zh users never get Korean Hanja glyph shapes (Hangul is a
- * separate Unicode block, so ko users still get Korean fonts for Hangul). */
-.landing-light {
- --font-serif: var(--font-instrument-serif), "Songti SC", "SimSun",
- "Noto Serif CJK SC", "Nanum Myeongjo", "AppleMyungjo", "Batang",
- "Noto Serif CJK KR", ui-serif, serif;
-}
-
-/* Japanese: Kanji are Han ideographs sharing the same Unicode block as Chinese,
- and CSS font-fallback order is NOT affected by `<html lang>` — so the
- Chinese-first default above would hand Japanese users Chinese glyph shapes for
- shared ideographs. Promote a Mincho-first chain only for Japanese. Instrument
- Serif still leads for Latin; zh/ko remain as a deep fallback. */
-html[lang|="ja"] .landing-light {
- --font-serif: var(--font-instrument-serif), "Hiragino Mincho ProN",
- "Yu Mincho", "MS Mincho", "Noto Serif CJK JP", "Songti SC", "SimSun",
- "Noto Serif CJK SC", "Nanum Myeongjo", "AppleMyungjo", "Batang",
- "Noto Serif CJK KR", ui-serif, serif;
-}
-
-/* Single hook for every landing surface set in the editorial serif. Declared
- outside Tailwind's layers so the per-locale resets below outrank the inline
- `tracking-*` / `leading-*` utilities they have to correct. */
-.landing-serif {
- font-family: var(--font-serif);
-}
-
-/* The landing display sizes are tuned for Latin: negative tracking and sub-1
- leading, down to `tracking-[-0.038em] leading-[0.93]` at 6.4rem on the hero.
- Both are wrong for CJK — Han and Hangul already fill their em box, so negative
- tracking jams the glyphs together and a 0.93 line-height collides the two
- lines of a `<br />`-split headline. Reset them for CJK locales only; Latin
- locales keep the original treatment untouched.
-
- `[lang|="zh"]` is the BCP-47 language-range selector: it matches exactly `zh`
- or `zh-<region>` (app/layout.tsx emits `zh-CN`, `ja-JP`, `ko-KR`), never an
- unrelated subtag such as `zha`. Scoped to headings, the only `.landing-serif`
- text that carries CJK. */
-html[lang|="zh"] :is(h1, h2).landing-serif,
-html[lang|="ja"] :is(h1, h2).landing-serif,
-html[lang|="ko"] :is(h1, h2).landing-serif {
- letter-spacing: 0;
- line-height: 1.25;
-}
-
-/* Korean only: Hangul is written with spaces between words, but the default
- line-break rules treat every syllable as a break opportunity, so a wrapped
- headline splits mid-word (모릅니 / 다). `keep-all` restores word-boundary
- breaking; `break-word` is the escape hatch so a word wider than the column
- still breaks instead of overflowing at narrow viewports. Chinese and Japanese
- are written without spaces and break per character correctly by default. */
-html[lang|="ko"] :is(h1, h2).landing-serif {
- word-break: keep-all;
- overflow-wrap: break-word;
-}
diff --git a/apps/web/app/globals.css b/apps/web/app/globals.css
index 3fd440c1e0..65a1625cae 100644
--- a/apps/web/app/globals.css
+++ b/apps/web/app/globals.css
@@ -6,8 +6,12 @@
@import "../../../packages/ui/styles/appearance.css";
@import "../../../packages/ui/styles/base.css";
@import "./custom.css";
+@import "./landing.css";
-@custom-variant dark (&:is(.dark *));
+/* The marketing site is light-only: `.landing-light` re-declares the tokens
+ (custom.css), and `dark:` utilities inside it must not fire either. The
+ exclusion sits in `:where()` so `dark:` keeps its (0,2,0) specificity. */
+@custom-variant dark (&:is(.dark *):where(:not(.landing-light, .landing-light *)));
@source "../../../packages/ui/**/*.{ts,tsx}";
@source "../../../packages/core/**/*.{ts,tsx}";
@@ -72,7 +76,3 @@ html[lang="zh-TW"] {
"Microsoft YaHei", "Noto Sans CJK SC", "Apple SD Gothic Neo", "Malgun Gothic",
"Noto Sans CJK KR", sans-serif;
}
-
-/* The landing tree overrides `--font-serif` with its own Instrument Serif +
- per-locale CJK chain, built on the same structure; see "Landing editorial
- serif" in ./custom.css and keep the two CJK orderings in sync. */
diff --git a/apps/web/app/landing.css b/apps/web/app/landing.css
new file mode 100644
index 0000000000..76d894b8d7
--- /dev/null
+++ b/apps/web/app/landing.css
@@ -0,0 +1,346 @@
+/* =============================================================================
+ * Marketing site design language
+ *
+ * Every landing surface draws from this file: colour roles, typefaces, the
+ * type ramp, radii, layout spacing, and the placeholder visual. Components
+ * reference the roles (`bg-site-canvas`, `text-site-heading`, `py-site-section`),
+ * never raw values, so the whole site can be re-tuned here without touching
+ * markup.
+ *
+ * Small gaps inside a component use the stock 4px spacing scale; the
+ * `site-*` spacing roles cover the structural rhythm that must match across
+ * pages (gutters, section padding, header height, heading-to-content gaps).
+ *
+ * Colour follows the brand: black and white only, with the zinc greys for
+ * interface. Ink and paper carry the page, the greys the rest. Text hierarchy
+ * is expressed by the four solid ink roles. Do not dim text with opacity —
+ * `site-muted` is the floor for readable copy on `site-canvas` and
+ * `site-surface`; `site-faint` is for decoration (dividers in text, disabled
+ * glyphs) only. Focus rings are ink. Product mockups keep the product's own
+ * colours, since they show the app as it is.
+ * ============================================================================= */
+
+@theme inline {
+ --color-site-canvas: var(--site-canvas);
+ --color-site-surface: var(--site-surface);
+ --color-site-sunken: var(--site-sunken);
+ --color-site-hover: var(--site-hover);
+ --color-site-ink: var(--site-ink);
+ --color-site-ink-secondary: var(--site-ink-secondary);
+ --color-site-muted: var(--site-muted);
+ --color-site-faint: var(--site-faint);
+ --color-site-line: var(--site-line);
+ --color-site-line-strong: var(--site-line-strong);
+ --color-site-rule: var(--site-rule);
+ --color-site-inverse: var(--site-inverse);
+ --color-site-inverse-ink: var(--site-inverse-ink);
+ --color-site-inverse-muted: var(--site-inverse-muted);
+
+ --radius-site-control: var(--site-radius-control);
+ --radius-site-inner: var(--site-radius-inner);
+ --radius-site-card: var(--site-radius-card);
+ --radius-site-panel: var(--site-radius-panel);
+
+ --container-site: var(--site-container);
+ --container-site-wide: var(--site-container-wide);
+ --spacing-site-gutter: var(--site-gutter);
+ --spacing-site-header: var(--site-header);
+ --spacing-site-hero: var(--site-hero);
+ --spacing-site-section: var(--site-section);
+ --spacing-site-block: var(--site-block);
+ --spacing-site-stack: var(--site-stack);
+ --spacing-site-grid-row: var(--site-grid-row);
+ --spacing-site-grid-col: var(--site-grid-col);
+ --spacing-site-step: var(--site-step);
+ --spacing-site-control-sm: var(--site-control-sm);
+ --spacing-site-control: var(--site-control);
+
+ --shadow-site-float: var(--site-shadow-float);
+ --shadow-site-menu: var(--site-shadow-menu);
+
+ --font-site-sans: var(--site-font-sans);
+ --font-site-display: var(--site-font-display);
+ --font-site-mono: var(--site-font-mono);
+}
+
+/* Type ramp. One regular weight carries every step; hierarchy comes from size,
+ leading, and tracking alone. Fluid steps run from a 375px phone to the
+ desktop width. */
+@theme {
+ --text-site-display: clamp(2.5rem, 1.9rem + 2.6vw, 4rem);
+ --text-site-display--line-height: 1;
+ --text-site-display--letter-spacing: -0.03em;
+
+ --text-site-heading: clamp(2rem, 1.8rem + 0.9vw, 2.5rem);
+ --text-site-heading--line-height: 1.05;
+ --text-site-heading--letter-spacing: -0.03em;
+
+ --text-site-title: clamp(1.5rem, 1.3rem + 0.9vw, 2rem);
+ --text-site-title--line-height: 1.2;
+ --text-site-title--letter-spacing: -0.02em;
+
+ --text-site-card: 1.25rem;
+ --text-site-card--line-height: 1.2;
+ --text-site-card--letter-spacing: -0.01em;
+
+ --text-site-body: 1rem;
+ --text-site-body--line-height: 1.4;
+
+ --text-site-small: 0.875rem;
+ --text-site-small--line-height: 1.4;
+
+ /* Mono label: eyebrows, numbering, tags. Set uppercase in markup. */
+ --text-site-label: 0.75rem;
+ --text-site-label--line-height: 1rem;
+ --text-site-label--letter-spacing: 0.08em;
+}
+
+/* Typefaces. One sans family carries the whole site: Inter's optical-size axis
+ switches headings to its Display cut (tighter spacing, finer joins) and keeps
+ copy on the text cut, and it is the face the product itself renders in, so
+ screenshots and page copy match. `site-display` is the single switch if the
+ headings ever get their own face. The CJK fallback chain comes with
+ `--font-sans`, per <html lang>. */
+.landing-light {
+ --site-font-sans: var(--font-sans);
+ --site-font-display: var(--font-sans);
+ --site-font-mono: var(--font-mono);
+
+ font-family: var(--site-font-sans);
+}
+
+.landing-light {
+ --site-canvas: oklch(0.988 0 0);
+ --site-surface: oklch(1 0 0);
+ --site-sunken: oklch(0.964 0.0013 286.4);
+ --site-hover: oklch(0.945 0.003 286.3);
+ --site-ink: oklch(0.141 0.005 285.823);
+ --site-ink-secondary: oklch(0.37 0.013 285.805);
+ --site-muted: oklch(0.505 0.016 285.938);
+ --site-faint: oklch(0.606 0.016 285.938);
+ --site-line: oklch(0.925 0.004 286.32);
+ --site-line-strong: oklch(0.871 0.006 286.286);
+ --site-rule: oklch(0.953 0.003 286.32);
+ --site-inverse: oklch(0.141 0.005 285.823);
+ --site-inverse-ink: oklch(0.985 0 0);
+ --site-inverse-muted: oklch(0.705 0.015 286.067);
+
+ /* Controls are pills; containers step 6 → 12 → 16 with size. */
+ --site-radius-control: 9999px;
+ --site-radius-inner: 6px;
+ --site-radius-card: 12px;
+ --site-radius-panel: 16px;
+
+ /* On desktop the page body sits in a narrower frame than the header and
+ hero, which keep the wide one. */
+ --site-container: 87.5rem;
+ --site-container-wide: 87.5rem;
+ --site-gutter: 1.25rem;
+ --site-header: 3.25rem;
+ --site-hero: 3rem;
+ --site-section: 4.5rem;
+ --site-block: 2.5rem;
+ --site-stack: 0.5rem;
+ --site-grid-row: 3rem;
+ --site-grid-col: 1.25rem;
+ --site-step: 4rem;
+ --site-control-sm: 1.75rem;
+ --site-control: 2.625rem;
+
+ --site-shadow-float: 0 1px 2px rgb(15 23 42 / 0.04), 0 6px 16px -6px rgb(15 23 42 / 0.08);
+ --site-shadow-menu: 0 2px 6px -2px rgb(15 23 42 / 0.06), 0 16px 40px -12px rgb(15 23 42 / 0.16);
+}
+
+@media (min-width: 64rem) {
+ .landing-light {
+ --site-container: min(80rem, 100% - 10vw);
+ --site-gutter: 3.75rem;
+ --site-hero: 4rem;
+ --site-section: 7rem;
+ --site-grid-row: 3.75rem;
+ --site-grid-col: 2rem;
+ --site-step: 7.5rem;
+ }
+}
+
+/* Frame for a product visual: a plain sunken grey, so the mockup inside is
+ the only thing on it. */
+.site-visual {
+ position: relative;
+ overflow: hidden;
+ background-color: var(--site-sunken);
+}
+
+/* Code blocks scroll sideways on narrow screens; keep their bar thin. */
+.site-code {
+ scrollbar-width: thin;
+ scrollbar-color: color-mix(in oklab, var(--site-ink) 20%, transparent) transparent;
+}
+
+/* Page frame: on wide screens two hairline rails run down the page halfway
+ into the gutter, and a dot marks each place a section's top hairline
+ crosses them. `100%` resolves against each full-bleed box, so the rails
+ and dots land on the same x. The 1px border sits just above the padding
+ box the dots are placed in. */
+@media (min-width: 64rem) {
+ .site-rails {
+ --site-rail: calc((100% - min(100%, var(--site-container))) / 2 + var(--site-gutter) / 2);
+ position: relative;
+ }
+
+ .site-rails::before {
+ content: "";
+ position: absolute;
+ inset-block: 0;
+ inset-inline: var(--site-rail);
+ border-inline: 1px solid var(--site-rule);
+ pointer-events: none;
+ }
+
+ .site-rails > section {
+ position: relative;
+ }
+
+ .site-rails > section::before,
+ .site-rails > section::after {
+ content: "";
+ position: absolute;
+ top: -3px;
+ width: 5px;
+ height: 5px;
+ background-color: var(--site-line-strong);
+ pointer-events: none;
+ }
+
+ .site-rails > section::before {
+ left: calc(var(--site-rail) - 2px);
+ }
+
+ .site-rails > section::after {
+ right: calc(var(--site-rail) - 2px);
+ }
+}
+
+/* Feature and story cards: a frosted field per card — a pale grey wash, so
+ the product screen inside stays the focus — with film grain blended over it. The grain tile
+ is drawn at 1:1 device pixels and never smoothed, so it stays fine. Content
+ inside must be positioned to paint above the grain. */
+.site-frost {
+ position: relative;
+ overflow: hidden;
+ background-color: var(--site-sunken);
+ background-image: var(--frost-image);
+ background-position: center;
+ background-size: cover;
+}
+
+.site-frost::before {
+ content: "";
+ position: absolute;
+ inset: 0;
+ background-image: url("/images/frost/noise.webp");
+ background-size: 256px 256px;
+ image-rendering: pixelated;
+ mix-blend-mode: overlay;
+ opacity: 0.35;
+ pointer-events: none;
+}
+
+@media (min-resolution: 2dppx) {
+ .site-frost::before {
+ background-size: 128px 128px;
+ }
+}
+
+.site-frost[data-frost="runtimes"] {
+ --frost-image: url("/images/frost/runtimes.webp");
+}
+
+.site-frost[data-frost="workflows"] {
+ --frost-image: url("/images/frost/workflows.webp");
+}
+
+.site-frost[data-frost="chat"] {
+ --frost-image: url("/images/frost/chat.webp");
+}
+
+.site-frost[data-frost="autopilots"] {
+ --frost-image: url("/images/frost/autopilots.webp");
+}
+
+.site-frost[data-frost="skills"] {
+ --frost-image: url("/images/frost/skills.webp");
+}
+
+.site-frost[data-frost="changelog"] {
+ --frost-image: url("/images/frost/changelog.webp");
+}
+
+.site-frost[data-frost="cloud"] {
+ --frost-image: url("/images/frost/cloud.webp");
+}
+
+.site-frost[data-frost="desktop"] {
+ --frost-image: url("/images/frost/desktop.webp");
+}
+
+.site-frost[data-frost="cli"] {
+ --frost-image: url("/images/frost/cli.webp");
+}
+
+.site-frost[data-frost="chat-page"] {
+ --frost-image: url("/images/frost/chat-page.webp");
+}
+
+.site-frost[data-frost="mobile"] {
+ --frost-image: url("/images/frost/mobile.webp");
+}
+
+/* Charts in the hero's issue peek: bars grow and lines draw in once, staggered
+ by an inline animation-delay. */
+@theme {
+ --animate-site-grow-x: site-grow-x 700ms cubic-bezier(0.22, 1, 0.36, 1) both;
+ --animate-site-grow-y: site-grow-y 600ms cubic-bezier(0.22, 1, 0.36, 1) both;
+ --animate-site-draw: site-draw 1200ms cubic-bezier(0.45, 0, 0.25, 1) both;
+
+ @keyframes site-grow-x {
+ from {
+ scale: 0 1;
+ }
+ }
+
+ @keyframes site-grow-y {
+ from {
+ scale: 1 0;
+ }
+ }
+
+ @keyframes site-draw {
+ from {
+ stroke-dashoffset: 1;
+ }
+ }
+}
+
+/* Auto-advancing tabs: the active tab's rule fills, and its animationend
+ brings up the next tab. Set inline with a per-section duration. */
+@keyframes site-advance {
+ from {
+ scale: 0 1;
+ }
+ to {
+ scale: 1 1;
+ }
+}
+
+/* Logo wall: the track holds the list twice, so sliding it by half loops
+ seamlessly. */
+@theme {
+ --animate-site-marquee: site-marquee 50s linear infinite;
+
+ @keyframes site-marquee {
+ to {
+ transform: translateX(-50%);
+ }
+ }
+}
diff --git a/apps/web/app/sitemap.ts b/apps/web/app/sitemap.ts
index bdfe45d565..f3be7ead45 100644
--- a/apps/web/app/sitemap.ts
+++ b/apps/web/app/sitemap.ts
@@ -1,9 +1,10 @@
import type { MetadataRoute } from "next";
+import { landingAlternates } from "@/lib/landing-locale-path";
export default function sitemap(): MetadataRoute.Sitemap {
const baseUrl = "https://www.multica.ai";
- return [
+ const pages: MetadataRoute.Sitemap = [
{
url: baseUrl,
lastModified: new Date("2026-04-01"),
@@ -41,4 +42,9 @@ export default function sitemap(): MetadataRoute.Sitemap {
priority: 0.3,
},
];
+
+ return pages.map((page) => ({
+ ...page,
+ alternates: { languages: landingAlternates(page.url.slice(baseUrl.length) || "/", baseUrl) },
+ }));
}
diff --git a/apps/web/features/landing/components/about-page-client.tsx b/apps/web/features/landing/components/about-page-client.tsx
index 6854255d03..b7878ab05a 100644
--- a/apps/web/features/landing/components/about-page-client.tsx
+++ b/apps/web/features/landing/components/about-page-client.tsx
@@ -1,8 +1,8 @@
"use client";
-import Link from "next/link";
-import { LandingHeader } from "./landing-header";
-import { LandingFooter } from "./landing-footer";
+import Link from "@/features/landing/components/landing-link";
+import { SiteHeader } from "../site/site-header";
+import { SiteFooter } from "../site/site-footer";
import { GitHubMark, githubUrl } from "./shared";
import { InlineLinks } from "./inline-links";
import { useLocale } from "../i18n";
@@ -14,10 +14,10 @@ export function AboutPageClient() {
return (
<>
- <LandingHeader variant="light" />
+ <SiteHeader />
<main className="bg-white text-[#0a0d12]">
<div className="mx-auto max-w-[720px] px-4 py-16 sm:px-6 sm:py-20 lg:py-24">
- <h1 className="landing-serif text-[2.6rem] leading-[1.05] tracking-[-0.03em] sm:text-[3.4rem]">
+ <h1 className="font-site-display text-site-heading">
{t.about.title}
</h1>
<div className="mt-8 space-y-6 text-body-lg leading-[1.8] text-[#0a0d12]/70 sm:text-title-sm">
@@ -58,7 +58,7 @@ export function AboutPageClient() {
</div>
<section className="mt-16 border-t border-[#0a0d12]/10 pt-12 sm:mt-20 sm:pt-16">
- <h2 className="landing-serif text-[2rem] leading-[1.1] tracking-[-0.02em] sm:text-[2.4rem]">
+ <h2 className="font-site-display text-site-title">
{team.title}
</h2>
<div className="mt-6 space-y-6 text-body-lg leading-[1.8] text-[#0a0d12]/70 sm:text-title-sm">
@@ -94,7 +94,7 @@ export function AboutPageClient() {
</section>
</div>
</main>
- <LandingFooter />
+ <SiteFooter />
</>
);
}
diff --git a/apps/web/features/landing/components/changelog-page-client.tsx b/apps/web/features/landing/components/changelog-page-client.tsx
index 583c966b79..6209591dbf 100644
--- a/apps/web/features/landing/components/changelog-page-client.tsx
+++ b/apps/web/features/landing/components/changelog-page-client.tsx
@@ -7,8 +7,9 @@ import {
useRef,
useState,
} from "react";
-import { LandingHeader } from "./landing-header";
-import { LandingFooter } from "./landing-footer";
+import { cn } from "@multica/ui/lib/utils";
+import { Container, Eyebrow } from "../site/primitives";
+import { PageHero, SitePage } from "../site/site-page";
import { useLocale } from "../i18n";
import type { Locale } from "../i18n/types";
@@ -89,19 +90,16 @@ function groupByMonth(entries: readonly Release[]): MonthGroup[] {
return groups;
}
-function anchorId(version: string) {
+export function anchorId(version: string) {
return `release-${version.replace(/\./g, "-")}`;
}
function ChangeList({ items }: { items: string[] }) {
return (
- <ul className="mt-2 space-y-2">
+ <ul className="mt-3 flex flex-col gap-2.5">
{items.map((change) => (
- <li
- key={change}
- className="flex items-start gap-2.5 text-body leading-[1.7] text-[#0a0d12]/60 sm:text-body-lg"
- >
- <span className="mt-2.5 h-1 w-1 shrink-0 rounded-full bg-[#0a0d12]/30" />
+ <li key={change} className="flex items-start gap-3 text-site-body text-site-ink-secondary">
+ <span aria-hidden className="mt-[0.6em] size-1 shrink-0 rounded-full bg-site-line-strong" />
{change}
</li>
))}
@@ -109,6 +107,16 @@ function ChangeList({ items }: { items: string[] }) {
);
}
+function ChangeGroup({ label, items }: { label: string; items?: string[] }) {
+ if (!items || items.length === 0) return null;
+ return (
+ <div>
+ <Eyebrow>{label}</Eyebrow>
+ <ChangeList items={items} />
+ </div>
+ );
+}
+
export function ChangelogPageClient() {
const { t, locale } = useLocale();
const categoryLabels = t.changelog.categories;
@@ -180,156 +188,78 @@ export function ChangelogPageClient() {
};
return (
- <>
- <LandingHeader variant="light" />
- <main className="bg-white text-[#0a0d12]">
- <div className="mx-auto max-w-[1080px] px-4 py-16 sm:px-6 sm:py-20 lg:py-24">
- <div className="lg:grid lg:grid-cols-[200px_minmax(0,1fr)] lg:gap-16">
- <aside className="hidden lg:block">
- <nav
- aria-label={t.changelog.toc}
- className="sticky top-28 max-h-[calc(100vh-8rem)] overflow-y-auto pl-2 pb-8 pr-2"
- >
- <h3 className="text-micro font-semibold uppercase tracking-[0.14em] text-[#0a0d12]/50">
- {t.changelog.toc}
- </h3>
-
- <div className="relative mt-5">
- <span
- aria-hidden="true"
- className="pointer-events-none absolute left-[4px] top-7 bottom-2 w-px bg-[#0a0d12]/10"
- />
-
- <ol className="space-y-5">
- {groups.map((group) => (
- <li key={group.key}>
- <p className="ml-6 text-micro font-semibold uppercase tracking-[0.12em] text-[#0a0d12]/45">
- {monthYearLabel(group.year, group.month, locale)}
- </p>
-
- <ol className="mt-1.5">
- {group.entries.map((release) => {
- const isActive =
- release.version === activeVersion;
- const { day } = parseDate(release.date);
- return (
- <li key={release.version}>
- <a
- href={`#${anchorId(release.version)}`}
- onClick={jumpTo(release.version)}
- aria-current={isActive ? "true" : undefined}
- className={[
- "group relative flex items-center gap-3 rounded-md py-1 pr-2 text-label transition-colors",
- isActive
- ? "text-[#0a0d12]"
- : "text-[#0a0d12]/55 hover:text-[#0a0d12]/80",
- ].join(" ")}
- >
- <span
- aria-hidden="true"
- className={[
- "relative z-10 block size-[9px] shrink-0 rounded-full border transition-all duration-200",
- isActive
- ? "border-[#0a0d12] bg-[#0a0d12] ring-4 ring-[#0a0d12]/8"
- : "border-[#0a0d12]/25 bg-white group-hover:border-[#0a0d12]/60",
- ].join(" ")}
- />
- <span
- className={[
- "w-[1.25rem] shrink-0 text-right tabular-nums",
- isActive
- ? "font-semibold"
- : "font-medium",
- ].join(" ")}
- >
- {day}
- </span>
- <span className="tabular-nums text-micro text-[#0a0d12]/35">
- v{release.version}
- </span>
- </a>
- </li>
- );
- })}
- </ol>
- </li>
- ))}
+ <SitePage>
+ <PageHero title={t.changelog.title} lead={t.changelog.subtitle} />
+ <Container className="pb-site-section lg:grid lg:grid-cols-[10rem_minmax(0,1fr)] lg:gap-16 xl:gap-24">
+ <aside className="hidden lg:block">
+ <nav aria-label={t.changelog.toc} className="sticky top-28 max-h-[calc(100vh-8rem)] overflow-y-auto pb-8 [scrollbar-width:none] [&::-webkit-scrollbar]:hidden">
+ <Eyebrow>{t.changelog.toc}</Eyebrow>
+ <ol className="mt-5 flex flex-col gap-5 border-l border-site-line">
+ {groups.map((group) => (
+ <li key={group.key}>
+ <p className="pl-5 text-site-small text-site-muted">{monthYearLabel(group.year, group.month, locale)}</p>
+ <ol className="mt-1.5">
+ {group.entries.map((release) => {
+ const isActive = release.version === activeVersion;
+ return (
+ <li key={release.version}>
+ <a
+ href={`#${anchorId(release.version)}`}
+ onClick={jumpTo(release.version)}
+ aria-current={isActive ? "true" : undefined}
+ className={cn(
+ "relative -ml-px flex items-baseline gap-3 border-l py-1 pl-5 text-site-small tabular-nums transition-colors",
+ isActive
+ ? "border-site-ink text-site-ink"
+ : "border-transparent text-site-muted hover:text-site-ink",
+ )}
+ >
+ <span className="w-5 text-right">{parseDate(release.date).day}</span>
+ <span>v{release.version}</span>
+ </a>
+ </li>
+ );
+ })}
</ol>
- </div>
- </nav>
- </aside>
-
- <div className="mx-auto min-w-0 max-w-[720px] lg:mx-0">
- <h1 className="landing-serif text-[2.6rem] leading-[1.05] tracking-[-0.03em] sm:text-[3.4rem]">
- {t.changelog.title}
- </h1>
- <p className="mt-4 text-body-lg leading-7 text-[#0a0d12]/60 sm:text-title-sm">
- {t.changelog.subtitle}
- </p>
+ </li>
+ ))}
+ </ol>
+ </nav>
+ </aside>
- <div className="mt-16 space-y-16">
- {entries.map((release) => {
- const hasCategorized =
- release.features || release.improvements || release.fixes;
- return (
- <section
- key={release.version}
- id={anchorId(release.version)}
- data-version={release.version}
- className="relative scroll-mt-28"
- >
- <div className="flex items-baseline gap-3">
- <span className="text-label font-semibold tabular-nums">
- v{release.version}
- </span>
- <span className="text-label text-[#0a0d12]/40">
- {fullDateLabel(release.date, locale)}
- </span>
- </div>
- <h2 className="mt-2 text-title-lg font-semibold leading-snug sm:text-display-sm">
- {release.title}
- </h2>
-
- {hasCategorized ? (
- <div className="mt-4 space-y-5">
- {release.features && release.features.length > 0 && (
- <div>
- <h3 className="text-label font-semibold uppercase tracking-wide text-[#0a0d12]/50">
- {categoryLabels.features}
- </h3>
- <ChangeList items={release.features} />
- </div>
- )}
- {release.improvements &&
- release.improvements.length > 0 && (
- <div>
- <h3 className="text-label font-semibold uppercase tracking-wide text-[#0a0d12]/50">
- {categoryLabels.improvements}
- </h3>
- <ChangeList items={release.improvements} />
- </div>
- )}
- {release.fixes && release.fixes.length > 0 && (
- <div>
- <h3 className="text-label font-semibold uppercase tracking-wide text-[#0a0d12]/50">
- {categoryLabels.fixes}
- </h3>
- <ChangeList items={release.fixes} />
- </div>
- )}
- </div>
- ) : (
- <ChangeList items={release.changes} />
- )}
- </section>
- );
- })}
- </div>
- </div>
- </div>
+ <div className="min-w-0 border-t border-site-line">
+ {entries.map((release) => {
+ const hasCategorized = release.features || release.improvements || release.fixes;
+ return (
+ <section
+ key={release.version}
+ id={anchorId(release.version)}
+ data-version={release.version}
+ className="scroll-mt-28 border-b border-site-line py-site-block"
+ >
+ <p className="flex items-baseline gap-3 text-site-small tabular-nums">
+ <span className="text-site-ink">v{release.version}</span>
+ <span className="text-site-muted">{fullDateLabel(release.date, locale)}</span>
+ </p>
+ <h2 className="mt-3 max-w-[46rem] font-site-display text-site-title text-site-ink text-balance">
+ {release.title}
+ </h2>
+ {hasCategorized ? (
+ <div className="mt-6 flex max-w-[46rem] flex-col gap-6">
+ <ChangeGroup label={categoryLabels.features} items={release.features} />
+ <ChangeGroup label={categoryLabels.improvements} items={release.improvements} />
+ <ChangeGroup label={categoryLabels.fixes} items={release.fixes} />
+ </div>
+ ) : (
+ <div className="mt-6 max-w-[46rem]">
+ <ChangeList items={release.changes} />
+ </div>
+ )}
+ </section>
+ );
+ })}
</div>
- </main>
- <LandingFooter />
- </>
+ </Container>
+ </SitePage>
);
}
diff --git a/apps/web/features/landing/components/contact-sales-page-client.tsx b/apps/web/features/landing/components/contact-sales-page-client.tsx
index 41c6427962..68acd5cdbc 100644
--- a/apps/web/features/landing/components/contact-sales-page-client.tsx
+++ b/apps/web/features/landing/components/contact-sales-page-client.tsx
@@ -1,9 +1,9 @@
"use client";
-import Link from "next/link";
+import Link from "@/features/landing/components/landing-link";
import { useEffect, useId, useMemo, useRef, useState } from "react";
-import { LandingHeader } from "./landing-header";
-import { LandingFooter } from "./landing-footer";
+import { SiteHeader } from "../site/site-header";
+import { SiteFooter } from "../site/site-footer";
import { useLocale } from "../i18n";
type SubmitState =
@@ -153,7 +153,7 @@ export function ContactSalesPageClient() {
return (
<>
- <LandingHeader variant="light" />
+ <SiteHeader />
<main className="bg-[#f7f8fa] text-[#0a0d12]">
<div
ref={successAnchorRef}
@@ -163,7 +163,7 @@ export function ContactSalesPageClient() {
<p className="text-caption font-semibold uppercase tracking-[0.12em] text-[#0a0d12]/45">
{c.eyebrow}
</p>
- <h1 className="mt-2 landing-serif text-[2.4rem] leading-[1.1] tracking-[-0.02em] sm:text-[2.8rem]">
+ <h1 className="mt-2 font-site-display text-site-heading">
{c.title}
</h1>
</div>
@@ -187,7 +187,7 @@ export function ContactSalesPageClient() {
)}
</div>
</main>
- <LandingFooter />
+ <SiteFooter />
</>
);
}
@@ -203,7 +203,7 @@ function SuccessCard({
}) {
return (
<div className="rounded-(--landing-radius-card) border border-[#0a0d12]/8 bg-white p-8 shadow-[0_1px_2px_rgba(10,13,18,0.04)] sm:p-10">
- <h2 className="landing-serif text-[1.8rem] leading-[1.15] tracking-[-0.02em]">
+ <h2 className="font-site-display text-site-title">
{title}
</h2>
<p className="mt-3 text-body-lg leading-[1.7] text-[#0a0d12]/70">
diff --git a/apps/web/features/landing/components/document-page.tsx b/apps/web/features/landing/components/document-page.tsx
index 3e375d1adc..862f8c7f24 100644
--- a/apps/web/features/landing/components/document-page.tsx
+++ b/apps/web/features/landing/components/document-page.tsx
@@ -1,8 +1,8 @@
"use client";
import type { ReactNode } from "react";
-import { LandingHeader } from "./landing-header";
-import { LandingFooter } from "./landing-footer";
+import { SiteHeader } from "../site/site-header";
+import { SiteFooter } from "../site/site-footer";
import { InlineLinks } from "./inline-links";
import type { DocumentSection } from "../i18n";
@@ -21,10 +21,10 @@ export function DocumentPage({
}) {
return (
<>
- <LandingHeader variant="light" />
+ <SiteHeader />
<main className="bg-white text-[#0a0d12]">
<article className="mx-auto max-w-[720px] px-4 py-16 sm:px-6 sm:py-20 lg:py-24">
- <h1 className="landing-serif text-[2.6rem] leading-[1.05] tracking-[-0.03em] sm:text-[3.4rem]">
+ <h1 className="font-site-display text-site-heading">
{title}
</h1>
{meta && (
@@ -40,7 +40,7 @@ export function DocumentPage({
{children}
</article>
</main>
- <LandingFooter />
+ <SiteFooter />
</>
);
}
diff --git a/apps/web/features/landing/components/download/all-platforms.test.tsx b/apps/web/features/landing/components/download/all-platforms.test.tsx
index 6d75480a7b..acb3d6f4da 100644
--- a/apps/web/features/landing/components/download/all-platforms.test.tsx
+++ b/apps/web/features/landing/components/download/all-platforms.test.tsx
@@ -1,57 +1,37 @@
import { render, screen, within } from "@testing-library/react";
import { describe, expect, it, vi } from "vitest";
+import { createEnDict } from "../../i18n/en";
import { AllPlatforms } from "./all-platforms";
-vi.mock("../../i18n", () => ({
- useLocale: () => ({
- t: {
- download: {
- allPlatforms: {
- title: "All platforms",
- macArm64Label: "macOS · Apple Silicon",
- macX64Label: "macOS · Intel",
- winX64Label: "Windows · x64",
- winArm64Label: "Windows · ARM64",
- linuxX64Label: "Linux · x64",
- linuxArm64Label: "Linux · ARM64",
- formatDmg: ".dmg",
- formatZip: ".zip",
- formatExe: ".exe",
- formatAppImage: ".AppImage",
- formatDeb: ".deb",
- formatRpm: ".rpm",
- unavailable: "Not available",
- },
- footer: { allReleases: "View all releases" },
- },
- },
- }),
-}));
+vi.mock("next/navigation", () => ({ useRouter: () => ({ push: vi.fn() }) }));
+vi.mock("../../i18n", () => ({ useLocale: () => ({ t: { download: createEnDict().download } }) }));
+
+const ASSETS = {
+ macArm64Dmg: "https://downloads.test/mac-arm64.dmg",
+ macArm64Zip: "https://downloads.test/mac-arm64.zip",
+ macX64Dmg: "https://downloads.test/mac-x64.dmg",
+ macX64Zip: "https://downloads.test/mac-x64.zip",
+};
+
+function row(arch: string) {
+ return screen.getByText(arch).closest("li")!;
+}
describe("AllPlatforms", () => {
it("lists Intel macOS downloads separately from Apple Silicon", () => {
- render(
- <AllPlatforms
- assets={{
- macArm64Dmg: "https://downloads.test/mac-arm64.dmg",
- macArm64Zip: "https://downloads.test/mac-arm64.zip",
- macX64Dmg: "https://downloads.test/mac-x64.dmg",
- macX64Zip: "https://downloads.test/mac-x64.zip",
- }}
- fallbackHref="https://github.test/releases"
- />,
- );
+ render(<AllPlatforms assets={ASSETS} />);
+
+ const intel = within(row("Intel"));
+ expect(intel.getByRole("link", { name: ".dmg" })).toHaveAttribute("href", ASSETS.macX64Dmg);
+ expect(intel.getByRole("link", { name: ".zip" })).toHaveAttribute("href", ASSETS.macX64Zip);
+ });
+
+ it("marks the visitor's platform and disables formats the release lacks", () => {
+ render(<AllPlatforms assets={ASSETS} current="macArm64Dmg" />);
- const intelLabel = screen.getByText("macOS · Intel");
- const intelRow = intelLabel.parentElement?.parentElement;
- expect(intelRow).not.toBeNull();
- expect(within(intelRow!).getByRole("link", { name: ".dmg" })).toHaveAttribute(
- "href",
- "https://downloads.test/mac-x64.dmg",
- );
- expect(within(intelRow!).getByRole("link", { name: ".zip" })).toHaveAttribute(
- "href",
- "https://downloads.test/mac-x64.zip",
- );
+ expect(within(row("Apple Silicon")).getByText("This computer")).toBeInTheDocument();
+ expect(within(row("Intel")).queryByText("This computer")).toBeNull();
+ const windows = screen.getAllByText("Windows")[0]!.closest("li")!;
+ expect(within(windows).queryByRole("link")).toBeNull();
});
});
diff --git a/apps/web/features/landing/components/download/all-platforms.tsx b/apps/web/features/landing/components/download/all-platforms.tsx
index 8c8f7f6ca2..e5f6ca1570 100644
--- a/apps/web/features/landing/components/download/all-platforms.tsx
+++ b/apps/web/features/landing/components/download/all-platforms.tsx
@@ -1,199 +1,122 @@
-import Link from "next/link";
+"use client";
+
+import { cn } from "@multica/ui/lib/utils";
import { useLocale } from "../../i18n";
-import {
- hasCompleteAssetSet,
- type DownloadAssets,
-} from "../../utils/parse-release-assets";
-import { AppleIcon, LinuxIcon, WindowsIcon } from "./os-icons";
+import { SiteTextLink, focusRing } from "../../site/primitives";
+import { osOf, platformOf, type PlatformKey } from "../../utils/download-target";
+import type { DownloadAssets, DownloadKey } from "../../utils/parse-release-assets";
+import { DownloadLink } from "./download-link";
+import { OSIcon } from "./os-icons";
-interface Props {
- assets: DownloadAssets;
- /** Link to GitHub releases page, used when individual asset URLs
- * couldn't be resolved (API down / parse failure). */
- fallbackHref: string;
-}
+export const ALL_RELEASES_URL = "https://github.com/multica-ai/multica/releases";
+
+type FormatLabel = "formatDmg" | "formatZip" | "formatExe" | "formatAppImage" | "formatDeb" | "formatRpm";
+
+const ROWS: { platform: PlatformKey; formats: [DownloadKey, FormatLabel][] }[] = [
+ { platform: "macArm64", formats: [["macArm64Dmg", "formatDmg"], ["macArm64Zip", "formatZip"]] },
+ { platform: "macX64", formats: [["macX64Dmg", "formatDmg"], ["macX64Zip", "formatZip"]] },
+ { platform: "winX64", formats: [["winX64Exe", "formatExe"]] },
+ { platform: "winArm64", formats: [["winArm64Exe", "formatExe"]] },
+ {
+ platform: "linuxX64",
+ formats: [["linuxAmd64AppImage", "formatAppImage"], ["linuxAmd64Deb", "formatDeb"], ["linuxAmd64Rpm", "formatRpm"]],
+ },
+ {
+ platform: "linuxArm64",
+ formats: [["linuxArm64AppImage", "formatAppImage"], ["linuxArm64Deb", "formatDeb"], ["linuxArm64Rpm", "formatRpm"]],
+ },
+];
+
+const FORMAT_CHIP =
+ "inline-flex h-7 items-center rounded-site-inner border px-2.5 font-site-mono text-[0.75rem] transition-colors";
/**
- * Full matrix of platform + arch + format links. Always visible
- * regardless of which platform the Hero resolved to — lets power
- * users grab any build directly.
+ * Every build of the release, one row per OS and architecture. The
+ * visitor's own platform is marked, and each format downloads directly.
*/
export function AllPlatforms({
assets,
- fallbackHref,
-}: Props) {
+ current,
+ onStart,
+}: {
+ assets: DownloadAssets;
+ /** The installer offered as this visitor's main download. */
+ current?: DownloadKey;
+ onStart?: (key: DownloadKey) => void;
+}) {
const { t } = useLocale();
const d = t.download.allPlatforms;
+ const currentPlatform = current ? platformOf(current) : undefined;
return (
<section
id="all-platforms"
- className="bg-white py-20 text-[#0a0d12] sm:py-24"
+ aria-labelledby="all-platforms-title"
+ className="overflow-hidden rounded-site-panel border border-site-line bg-site-surface"
>
- <div className="mx-auto max-w-[920px] px-4 sm:px-6 lg:px-8">
- <h2 className="landing-serif text-[2.2rem] leading-[1.1] tracking-[-0.03em] sm:text-[2.6rem]">
+ <div className="flex items-center justify-between gap-4 border-b border-site-line px-4 py-3">
+ <h2 id="all-platforms-title" className="text-site-small text-site-ink">
{d.title}
</h2>
-
- <div className="mt-10 overflow-hidden rounded-2xl border border-[#0a0d12]/10">
- <Row
- icon={<AppleIcon className="text-[#0a0d12]" />}
- label={d.macArm64Label}
- formats={[
- {
- label: d.formatDmg,
- href: assets.macArm64Dmg,
- },
- {
- label: d.formatZip,
- href: assets.macArm64Zip,
- },
- ]}
- unavailable={d.unavailable}
- />
- <Row
- icon={<AppleIcon className="text-[#0a0d12]" />}
- label={d.macX64Label}
- formats={[
- {
- label: d.formatDmg,
- href: assets.macX64Dmg,
- },
- {
- label: d.formatZip,
- href: assets.macX64Zip,
- },
- ]}
- unavailable={d.unavailable}
- />
- <Row
- icon={<WindowsIcon className="text-[#0a0d12]" />}
- label={d.winX64Label}
- formats={[
- {
- label: d.formatExe,
- href: assets.winX64Exe,
- },
- ]}
- unavailable={d.unavailable}
- />
- <Row
- icon={<WindowsIcon className="text-[#0a0d12]" />}
- label={d.winArm64Label}
- formats={[
- {
- label: d.formatExe,
- href: assets.winArm64Exe,
- },
- ]}
- unavailable={d.unavailable}
- />
- <Row
- icon={<LinuxIcon className="text-[#0a0d12]" />}
- label={d.linuxX64Label}
- formats={[
- {
- label: d.formatAppImage,
- href: assets.linuxAmd64AppImage,
- },
- {
- label: d.formatDeb,
- href: assets.linuxAmd64Deb,
- },
- {
- label: d.formatRpm,
- href: assets.linuxAmd64Rpm,
- },
- ]}
- unavailable={d.unavailable}
- />
- <Row
- icon={<LinuxIcon className="text-[#0a0d12]" />}
- label={d.linuxArm64Label}
- formats={[
- {
- label: d.formatAppImage,
- href: assets.linuxArm64AppImage,
- },
- {
- label: d.formatDeb,
- href: assets.linuxArm64Deb,
- },
- {
- label: d.formatRpm,
- href: assets.linuxArm64Rpm,
- },
- ]}
- unavailable={d.unavailable}
- isLast
- />
- </div>
-
- {/* Some row is missing its link — surface the GitHub fallback so
- users on an orphaned row still have a way out. */}
- {!hasCompleteAssetSet(assets) ? (
- <p className="mt-6 text-label text-[#0a0d12]/60">
- <Link
- href={fallbackHref}
- className="underline decoration-[#0a0d12]/30 underline-offset-4 hover:text-[#0a0d12] hover:decoration-[#0a0d12]/70"
- target="_blank"
- rel="noreferrer"
- >
- {t.download.footer.allReleases}
- </Link>
- </p>
- ) : null}
+ <SiteTextLink href={ALL_RELEASES_URL} external className="text-site-small text-site-muted hover:text-site-ink">
+ {d.allReleases}
+ </SiteTextLink>
</div>
- </section>
- );
-}
-
-// Row
-
-interface RowProps {
- icon: React.ReactNode;
- label: string;
- formats: {
- label: string;
- href: string | undefined;
- }[];
- unavailable: string;
- isLast?: boolean;
-}
-
-function Row({ icon, label, formats, unavailable, isLast }: RowProps) {
- return (
- <div
- className={`flex flex-wrap items-center gap-x-6 gap-y-3 px-6 py-5 ${isLast ? "" : "border-b border-[#0a0d12]/8"}`}
- >
- <div className="flex min-w-[220px] items-center gap-3">
- <span className="flex h-8 w-8 items-center justify-center rounded-lg bg-[#0a0d12]/5">
- {icon}
- </span>
- <span className="text-body font-medium">{label}</span>
- </div>
- <div className="flex flex-wrap items-center gap-2">
- {formats.map((f) =>
- f.href ? (
- <a
- key={f.label}
- href={f.href}
- className="inline-flex items-center gap-1.5 rounded-lg border border-[#0a0d12]/12 bg-white px-3 py-1.5 text-label font-medium transition-colors hover:border-[#0a0d12]/30 hover:bg-[#0a0d12]/5"
- >
- {f.label}
- </a>
- ) : (
- <span
- key={f.label}
- aria-disabled="true"
- className="inline-flex cursor-not-allowed items-center gap-1.5 rounded-lg border border-[#0a0d12]/8 bg-[#0a0d12]/5 px-3 py-1.5 text-label text-[#0a0d12]/40"
- title={unavailable}
+ <ul>
+ {ROWS.map(({ platform, formats }) => {
+ const [osName, arch] = t.download.platforms[platform].split(" · ");
+ const isCurrent = platform === currentPlatform;
+ return (
+ <li
+ key={platform}
+ className={cn(
+ "flex flex-wrap items-center gap-x-3 gap-y-2 border-t border-site-rule px-4 py-3 first:border-t-0",
+ isCurrent && "bg-site-sunken",
+ )}
>
- {f.label}
- </span>
- ),
- )}
- </div>
- </div>
+ <OSIcon os={osOf(formats[0]![0])} size={16} className="shrink-0 text-site-ink-secondary" aria-hidden />
+ <span className="flex min-w-fit flex-1 items-center gap-1.5 text-site-small">
+ <span className="text-site-ink">{osName}</span>
+ <span className="text-site-muted">{arch}</span>
+ {isCurrent ? (
+ <span className="ml-1 rounded-site-inner border border-site-line bg-site-surface px-1.5 py-0.5 text-[0.75rem] text-site-ink-secondary">
+ {d.thisDevice}
+ </span>
+ ) : null}
+ </span>
+ <span className="flex gap-1.5">
+ {formats.map(([key, label]) => {
+ const href = assets[key];
+ return href ? (
+ <DownloadLink
+ key={key}
+ downloadKey={key}
+ href={href}
+ onStart={onStart}
+ className={cn(
+ FORMAT_CHIP,
+ "border-site-line bg-site-surface text-site-ink-secondary hover:border-site-line-strong hover:text-site-ink",
+ focusRing,
+ )}
+ >
+ {d[label]}
+ </DownloadLink>
+ ) : (
+ <span
+ key={key}
+ aria-disabled="true"
+ title={d.unavailable}
+ className={cn(FORMAT_CHIP, "cursor-not-allowed border-site-rule text-site-faint")}
+ >
+ {d[label]}
+ </span>
+ );
+ })}
+ </span>
+ </li>
+ );
+ })}
+ </ul>
+ </section>
);
}
diff --git a/apps/web/features/landing/components/download/cli-section.test.tsx b/apps/web/features/landing/components/download/cli-section.test.tsx
index cda24e8a05..158535b2f3 100644
--- a/apps/web/features/landing/components/download/cli-section.test.tsx
+++ b/apps/web/features/landing/components/download/cli-section.test.tsx
@@ -15,7 +15,6 @@ vi.mock("../../i18n", () => ({
platformMacosLinux: "macOS / Linux",
platformWindows: "Windows",
startLabel: "Start daemon",
- sshNote: "Already on a server?",
copyLabel: "Copy",
copiedLabel: "Copied",
},
diff --git a/apps/web/features/landing/components/download/cli-section.tsx b/apps/web/features/landing/components/download/cli-section.tsx
index 7eb0bd021f..a3a2d6a7a2 100644
--- a/apps/web/features/landing/components/download/cli-section.tsx
+++ b/apps/web/features/landing/components/download/cli-section.tsx
@@ -1,10 +1,12 @@
"use client";
-import { useState, type ReactNode } from "react";
-import { Check, Copy, Terminal } from "@multica/ui/icons";
+import { useState } from "react";
+import { Check, Copy } from "@multica/ui/icons";
import { CliInstallCommand } from "@multica/views/common/cli-install-command";
import { copyText } from "@multica/ui/lib/clipboard";
+import { cn } from "@multica/ui/lib/utils";
import { useLocale } from "../../i18n";
+import { Container, Eyebrow, focusRing } from "../../site/primitives";
const SETUP_CMD = "multica setup";
@@ -13,84 +15,44 @@ const SETUP_CMD = "multica setup";
* switch takes its list and trigger colours from here.
*/
const PLATFORM_TABS = {
- list: "border border-[#0a0d12]/10 bg-white",
+ list: "border border-white/10 bg-white/5",
trigger:
- "text-[#0a0d12]/60 hover:text-[#0a0d12] data-active:bg-[#0a0d12]/5 data-active:text-[#0a0d12]",
+ "text-site-inverse-muted hover:text-site-inverse-ink data-active:bg-white/10 data-active:text-site-inverse-ink",
};
/**
- * Scenario-first CLI section. Copy leans into servers / remote dev
- * boxes / headless setups rather than positioning CLI as a
- * lightweight Desktop. Two copy-and-paste command blocks; the install one
- * carries the platform switch, since install.sh and install.ps1 differ.
+ * For servers and remote dev boxes: the CLI runs the same daemon as the
+ * desktop app. The install command carries the platform switch, since
+ * install.sh and install.ps1 differ.
*/
export function CliSection() {
const { t } = useLocale();
const d = t.download.cli;
return (
- <section id="cli" className="bg-[#f7f7f5] py-20 text-[#0a0d12] sm:py-24">
- <div className="mx-auto max-w-[820px] px-4 sm:px-6 lg:px-8">
- <h2 className="landing-serif text-[2.2rem] leading-[1.1] tracking-[-0.03em] sm:text-[2.6rem]">
- {d.title}
- </h2>
- <p className="mt-4 max-w-[620px] text-body-lg leading-7 text-[#0a0d12]/72">
- {d.sub}
- </p>
-
- <div className="mt-10 flex flex-col gap-5">
- <div>
- <CommandLabel>{d.installLabel}</CommandLabel>
- <CliInstallCommand
- labels={{
- group: d.platformGroup,
- macosLinux: d.platformMacosLinux,
- windows: d.platformWindows,
- }}
- classNames={PLATFORM_TABS}
- >
- {(cmd) => (
- <CommandRow
- cmd={cmd}
- copyLabel={d.copyLabel}
- copiedLabel={d.copiedLabel}
- />
- )}
- </CliInstallCommand>
- </div>
- <div>
- <CommandLabel>{d.startLabel}</CommandLabel>
- <CommandRow
- cmd={SETUP_CMD}
- copyLabel={d.copyLabel}
- copiedLabel={d.copiedLabel}
- />
- </div>
+ <section id="cli" className="border-t border-site-rule py-site-section">
+ <Container className="grid gap-8 lg:grid-cols-[5fr_7fr] lg:items-center lg:gap-16">
+ <div>
+ <Eyebrow>CLI</Eyebrow>
+ <h2 className="mt-3 font-site-display text-site-title text-site-ink text-balance">{d.title}</h2>
+ <p className="mt-3 max-w-[30rem] text-site-body text-site-muted text-pretty">{d.sub}</p>
</div>
-
- <p className="mt-6 text-label text-[#0a0d12]/60">{d.sshNote}</p>
- </div>
+ <div className="min-w-0 rounded-site-panel bg-site-inverse p-5 text-site-inverse-ink">
+ <CliInstallCommand
+ labels={{ group: d.platformGroup, macosLinux: d.platformMacosLinux, windows: d.platformWindows }}
+ classNames={PLATFORM_TABS}
+ >
+ {(cmd) => <CommandRow label={d.installLabel} cmd={cmd} />}
+ </CliInstallCommand>
+ <CommandRow label={d.startLabel} cmd={SETUP_CMD} />
+ </div>
+ </Container>
</section>
);
}
-function CommandLabel({ children }: { children: ReactNode }) {
- return (
- <p className="mb-2 text-caption font-medium uppercase tracking-[0.08em] text-[#0a0d12]/55">
- {children}
- </p>
- );
-}
-
-function CommandRow({
- cmd,
- copyLabel,
- copiedLabel,
-}: {
- cmd: string;
- copyLabel: string;
- copiedLabel: string;
-}) {
+function CommandRow({ label, cmd }: { label: string; cmd: string }) {
+ const { copyLabel, copiedLabel } = useLocale().t.download.cli;
const [copied, setCopied] = useState(false);
const onCopy = async () => {
@@ -101,32 +63,26 @@ function CommandRow({
};
return (
- <div className="flex items-start gap-3 rounded-xl border border-[#0a0d12]/10 bg-white px-4 py-3 font-mono text-label">
- <Terminal
- className="mt-0.5 size-4 shrink-0 text-[#0a0d12]/55"
- aria-hidden
- />
- <code className="min-w-0 flex-1 whitespace-pre-wrap break-all">
- {cmd}
- </code>
- <button
- type="button"
- onClick={onCopy}
- aria-label={copied ? copiedLabel : copyLabel}
- className="inline-flex shrink-0 items-center gap-1.5 rounded-md px-2 py-1 text-caption font-medium text-[#0a0d12]/70 transition-colors hover:bg-[#0a0d12]/5 hover:text-[#0a0d12]"
- >
- {copied ? (
- <>
- <Check className="size-3.5" />
- {copiedLabel}
- </>
- ) : (
- <>
- <Copy className="size-3.5" />
- {copyLabel}
- </>
- )}
- </button>
+ <div className="mt-4">
+ <p className="font-site-mono text-[0.75rem] text-site-inverse-muted"># {label}</p>
+ <div className="mt-1 flex items-start gap-3 font-site-mono text-[0.8125rem] leading-6">
+ <span aria-hidden className="text-site-inverse-muted">
+ $
+ </span>
+ <code className="min-w-0 flex-1 break-all">{cmd}</code>
+ <button
+ type="button"
+ onClick={onCopy}
+ aria-label={copied ? copiedLabel : copyLabel}
+ className={cn(
+ "flex size-6 shrink-0 items-center justify-center rounded-site-inner text-site-inverse-muted transition-colors hover:bg-white/10 hover:text-site-inverse-ink",
+ focusRing,
+ "focus-visible:outline-site-inverse-ink",
+ )}
+ >
+ {copied ? <Check className="size-3.5" /> : <Copy className="size-3.5" />}
+ </button>
+ </div>
</div>
);
}
diff --git a/apps/web/features/landing/components/download/cloud-section.tsx b/apps/web/features/landing/components/download/cloud-section.tsx
deleted file mode 100644
index 1ac6c4da1f..0000000000
--- a/apps/web/features/landing/components/download/cloud-section.tsx
+++ /dev/null
@@ -1,38 +0,0 @@
-"use client";
-
-import { useState } from "react";
-import { CloudWaitlistExpand } from "@multica/views/onboarding";
-import { useLocale } from "../../i18n";
-
-/**
- * Cloud runtime waitlist — thin wrapper around the shared
- * CloudWaitlistExpand form with a download-page-appropriate title
- * and subtitle. Submission persists via `joinCloudWaitlist` inside
- * the child; the submitted flag here only prevents double-submits
- * for the lifetime of the page.
- */
-export function CloudSection() {
- const { t } = useLocale();
- const d = t.download.cloud;
- const [submitted, setSubmitted] = useState(false);
-
- return (
- <section className="bg-white py-20 text-[#0a0d12] sm:py-24">
- <div className="mx-auto max-w-[720px] px-4 sm:px-6 lg:px-8">
- <h2 className="landing-serif text-[2.2rem] leading-[1.1] tracking-[-0.03em] sm:text-[2.6rem]">
- {d.title}
- </h2>
- <p className="mt-4 max-w-[560px] text-body-lg leading-7 text-[#0a0d12]/72">
- {d.sub}
- </p>
-
- <div className="mt-10">
- <CloudWaitlistExpand
- submitted={submitted}
- onSubmitted={() => setSubmitted(true)}
- />
- </div>
- </div>
- </section>
- );
-}
diff --git a/apps/web/features/landing/components/download/download-link.tsx b/apps/web/features/landing/components/download/download-link.tsx
new file mode 100644
index 0000000000..0758993b5c
--- /dev/null
+++ b/apps/web/features/landing/components/download/download-link.tsx
@@ -0,0 +1,54 @@
+"use client";
+
+import type { ComponentProps, MouseEvent } from "react";
+import { useRouter } from "next/navigation";
+import { localizeHref } from "@/lib/landing-locale-path";
+import { useOptionalLocale } from "../../i18n/context";
+import { markPendingDownload } from "../../utils/download-target";
+import type { DownloadKey } from "../../utils/parse-release-assets";
+
+function isModifiedClick(event: MouseEvent) {
+ return event.button !== 0 || event.metaKey || event.ctrlKey || event.shiftKey || event.altKey;
+}
+
+/**
+ * A link to a desktop installer. On the download page the browser fetches
+ * the file natively and `onStart` switches the page to its post-download
+ * state. With `handoff` (the homepage), a plain click goes to the download
+ * page instead, which starts the file and shows what to do next. Modified
+ * clicks always keep the browser's own behaviour.
+ */
+export function DownloadLink({
+ downloadKey,
+ href,
+ handoff,
+ onStart,
+ onClick,
+ ...props
+}: Omit<ComponentProps<"a">, "href"> & {
+ downloadKey: DownloadKey;
+ href: string;
+ handoff?: boolean;
+ onStart?: (key: DownloadKey) => void;
+}) {
+ const router = useRouter();
+ const locale = useOptionalLocale() ?? "en";
+ return (
+ <a
+ href={href}
+ onClick={(event) => {
+ onClick?.(event);
+ if (event.defaultPrevented || isModifiedClick(event)) return;
+ if (handoff) {
+ event.preventDefault();
+ markPendingDownload(downloadKey);
+ router.push(localizeHref(locale, `/download?started=${downloadKey}`));
+ return;
+ }
+ // After the click's default action, so the link is still in place when the download begins.
+ if (onStart) setTimeout(() => onStart(downloadKey), 0);
+ }}
+ {...props}
+ />
+ );
+}
diff --git a/apps/web/features/landing/components/download/hero.test.ts b/apps/web/features/landing/components/download/hero.test.ts
deleted file mode 100644
index 87205a115d..0000000000
--- a/apps/web/features/landing/components/download/hero.test.ts
+++ /dev/null
@@ -1,29 +0,0 @@
-import { describe, expect, it } from "vitest";
-import { createEnDict } from "../../i18n/en";
-import { resolveContent } from "./hero";
-
-describe("resolveContent", () => {
- it("links confidently detected Intel Macs to the x64 installers", () => {
- const content = resolveContent(
- { os: "mac", arch: "x64", archConfident: true },
- {
- macArm64Dmg: "https://downloads.test/mac-arm64.dmg",
- macArm64Zip: "https://downloads.test/mac-arm64.zip",
- macX64Dmg: "https://downloads.test/mac-x64.dmg",
- macX64Zip: "https://downloads.test/mac-x64.zip",
- },
- false,
- createEnDict(true, "/docs").download.hero,
- );
-
- expect(content.primary).toEqual({
- href: "https://downloads.test/mac-x64.dmg",
- label: "Download (.dmg)",
- disabled: false,
- });
- expect(content.alt).toEqual({
- href: "https://downloads.test/mac-x64.zip",
- label: "or download .zip",
- });
- });
-});
diff --git a/apps/web/features/landing/components/download/hero.tsx b/apps/web/features/landing/components/download/hero.tsx
index c920edbeb7..6142c126bf 100644
--- a/apps/web/features/landing/components/download/hero.tsx
+++ b/apps/web/features/landing/components/download/hero.tsx
@@ -1,247 +1,108 @@
-import Link from "next/link";
-import { ArrowRight, Download } from "@multica/ui/icons";
+"use client";
+
import { useLocale } from "../../i18n";
+import { Container, Eyebrow, SiteTextLink, actionClassName } from "../../site/primitives";
+import { alternateKey, formatSize, osOf, resolvePrimary } from "../../utils/download-target";
+import type { LatestRelease } from "../../utils/github-release";
import type { DetectResult } from "../../utils/os-detect";
-import type { DownloadAssets } from "../../utils/parse-release-assets";
-import { heroButtonClassName } from "../shared";
-
-interface Props {
- detected: DetectResult | null;
- assets: DownloadAssets;
- /** True when the GitHub API fetch failed; disables all CTAs and
- * surfaces a "version unavailable" line. */
- versionUnavailable: boolean;
-}
+import type { DownloadKey } from "../../utils/parse-release-assets";
+import { ALL_RELEASES_URL, AllPlatforms } from "./all-platforms";
+import { DownloadLink } from "./download-link";
+import { OSIcon } from "./os-icons";
/**
- * Top CTA section. Server-renders a generic "Choose your platform"
- * placeholder (SEO + flash-before-hydration), then swaps to a
- * platform-specific CTA once the client detection resolves.
+ * The download page's first screen: the visitor's installer on the left,
+ * every other build beside it. The platform comes from the server, so the
+ * first paint already offers the right file.
*/
export function DownloadHero({
detected,
- assets,
- versionUnavailable,
-}: Props) {
- const { t } = useLocale();
+ release,
+ onStart,
+}: {
+ detected: DetectResult;
+ release: LatestRelease;
+ onStart: (key: DownloadKey) => void;
+}) {
+ const { t, locale } = useLocale();
const d = t.download.hero;
-
- const content = resolveContent(detected, assets, versionUnavailable, d);
+ const primary = resolvePrimary(detected, release.assets);
+ const os = primary ? osOf(primary.key) : null;
+ // Only a guessed architecture needs the other one offered beside it.
+ const alternate = primary && !detected.archConfident ? alternateKey(primary.key) : null;
+ const alternateHref = alternate ? release.assets[alternate] : undefined;
+ const size = primary ? release.sizes[primary.key] : undefined;
+ const lead = detected.os === "mobile" ? d.mobileNote : primary ? d.lead : d.leadOther;
return (
- <section className="relative overflow-hidden bg-[#05070b] text-white">
- <BackdropGradient />
- <div className="relative z-10 mx-auto max-w-[1120px] px-4 pb-24 pt-32 text-center sm:px-6 sm:pt-40 lg:px-8 lg:pb-28">
- <h1 className="mx-auto max-w-[880px] landing-serif text-[3rem] leading-[1.02] tracking-[-0.035em] drop-shadow-[0_10px_34px_rgba(0,0,0,0.32)] sm:text-[4rem] lg:text-[5rem]">
- {content.title}
+ <Container className="grid gap-10 pt-site-hero pb-site-section lg:grid-cols-2 lg:items-center lg:gap-16">
+ <div>
+ <Eyebrow>{d.eyebrow}</Eyebrow>
+ <h1 className="mt-3 font-site-display text-site-heading text-site-ink text-balance">
+ {os ? d.title[os] : d.title.other}
</h1>
- <p className="mx-auto mt-6 max-w-[620px] text-body-lg leading-7 text-white/84 sm:text-title">
- {content.sub}
- </p>
-
- <div className="mt-10 flex flex-wrap items-center justify-center gap-3">
- {content.primary ? (
- <PrimaryCta
- href={content.primary.href}
- disabled={content.primary.disabled}
+ <p className="mt-4 max-w-[34rem] text-site-body text-site-muted text-pretty">{lead}</p>
+ {primary && os ? (
+ <div className="mt-7 flex flex-wrap gap-2.5">
+ <DownloadLink
+ downloadKey={primary.key}
+ href={primary.href}
+ onStart={onStart}
+ className={actionClassName("primary", "lg")}
>
- <Download className="size-4" aria-hidden />
- {content.primary.label}
- {!content.primary.disabled && (
- <ArrowRight className="size-4" aria-hidden />
- )}
- </PrimaryCta>
- ) : null}
- {content.alt ? (
- <Link
- href={content.alt.href}
- className={heroButtonClassName("ghost")}
- >
- {content.alt.label}
- </Link>
- ) : null}
- </div>
-
- {content.hint ? (
- <p className="mx-auto mt-5 max-w-[520px] text-label text-white/64">
- {content.hint}
- </p>
- ) : null}
-
- {versionUnavailable ? (
- <p className="mx-auto mt-6 max-w-[520px] text-caption uppercase tracking-[0.14em] text-white/50">
- {t.download.footer.versionUnavailable}
- </p>
+ <OSIcon os={os} size={16} aria-hidden />
+ {d.primary[primary.key]}
+ </DownloadLink>
+ {alternate && alternateHref ? (
+ <DownloadLink
+ downloadKey={alternate}
+ href={alternateHref}
+ onStart={onStart}
+ className={actionClassName("secondary", "lg")}
+ >
+ {d.alternate[alternate]}
+ </DownloadLink>
+ ) : null}
+ </div>
) : null}
+ <p className="mt-4 flex flex-wrap items-center gap-x-3 gap-y-1 text-site-small text-site-muted">
+ {release.version ? (
+ <>
+ <span>{release.version}</span>
+ {size ? <Dot>{formatSize(size)}</Dot> : null}
+ {release.publishedAt ? <Dot>{d.released.replace("{date}", formatDate(release.publishedAt, locale))}</Dot> : null}
+ <Dot>
+ <SiteTextLink
+ href={release.htmlUrl ?? ALL_RELEASES_URL}
+ external
+ className="text-site-ink underline decoration-site-line-strong underline-offset-4"
+ >
+ {d.whatsNew}
+ </SiteTextLink>
+ </Dot>
+ </>
+ ) : (
+ <span>{d.versionUnavailable}</span>
+ )}
+ </p>
</div>
- </section>
+ <AllPlatforms assets={release.assets} current={primary?.key} onStart={onStart} />
+ </Container>
);
}
-// Content resolver — maps (detect, assets) → CTA props
-
-interface HeroContent {
- title: string;
- sub: string;
- primary?: {
- href: string;
- label: string;
- disabled: boolean;
- };
- alt?: { href: string; label: string };
- hint?: string;
-}
-
-type HeroDict = ReturnType<typeof useLocale>["t"]["download"]["hero"];
-
-export function resolveContent(
- detected: DetectResult | null,
- assets: DownloadAssets,
- versionUnavailable: boolean,
- d: HeroDict,
-): HeroContent {
- // Before hydration resolves, render a neutral prompt. Same copy
- // also catches `os === "unknown"`.
- if (!detected || detected.os === "unknown") {
- return { title: d.unknown.title, sub: d.unknown.sub };
- }
-
- if (detected.os === "mac") {
- // Only Chromium high-entropy returns arch confidently. Safari
- // always reports Intel even on Apple Silicon, so we treat
- // "non-confident" as arm64 + point Intel users to the matrix below.
- if (detected.arch === "x64" && detected.archConfident) {
- const dmg = assets.macX64Dmg;
- const zip = assets.macX64Zip;
- return {
- title: d.macIntel.title,
- sub: d.macIntel.sub,
- primary: dmg
- ? {
- href: dmg,
- label: d.macIntel.primary,
- disabled: false,
- }
- : versionUnavailable
- ? { href: "#", label: d.macIntel.primary, disabled: true }
- : undefined,
- alt: zip
- ? {
- href: zip,
- label: d.macIntel.altZip,
- }
- : undefined,
- };
- }
- const dmg = assets.macArm64Dmg;
- const zip = assets.macArm64Zip;
- return {
- title: d.macArm64.title,
- sub: d.macArm64.sub,
- primary: dmg
- ? {
- href: dmg,
- label: d.macArm64.primary,
- disabled: false,
- }
- : versionUnavailable
- ? { href: "#", label: d.macArm64.primary, disabled: true }
- : undefined,
- alt: zip
- ? {
- href: zip,
- label: d.macArm64.altZip,
- }
- : undefined,
- hint: detected.archConfident ? undefined : d.safariMacHint,
- };
- }
-
- if (detected.os === "windows") {
- // Trust arch whenever the UA hints at it (even non-confident);
- // Windows-on-ARM can still run x64 via emulation so this is low
- // risk either way. Surface the arch-fallback hint when we're
- // guessing so users on uncommon setups know to scroll down.
- const isArm = detected.arch === "arm64";
- const copy = isArm ? d.winArm64 : d.winX64;
- const url = isArm ? assets.winArm64Exe : assets.winX64Exe;
- return {
- title: copy.title,
- sub: copy.sub,
- primary: url
- ? {
- href: url,
- label: copy.primary,
- disabled: false,
- }
- : versionUnavailable
- ? { href: "#", label: copy.primary, disabled: true }
- : undefined,
- hint: detected.archConfident ? undefined : d.archFallbackHint,
- };
- }
-
- // Linux — same principle: trust the arm64 signal, surface a hint
- // when we're not confident. Linux ARM has no binary emulation so
- // the hint matters more here than on Windows.
- const isArmLinux = detected.arch === "arm64";
- const primaryUrl = isArmLinux
- ? assets.linuxArm64AppImage
- : assets.linuxAmd64AppImage;
- return {
- title: d.linux.title,
- sub: d.linux.sub,
- primary: primaryUrl
- ? {
- href: primaryUrl,
- label: d.linux.primary,
- disabled: false,
- }
- : versionUnavailable
- ? { href: "#", label: d.linux.primary, disabled: true }
- : undefined,
- alt: { href: "#all-platforms", label: d.linux.altFormats },
- hint: detected.archConfident ? undefined : d.archFallbackHint,
- };
-}
-
-// Pieces
-
-function PrimaryCta({
- href,
- disabled,
- children,
-}: {
- href: string;
- disabled: boolean;
- children: React.ReactNode;
-}) {
- if (disabled) {
- return (
- <span
- aria-disabled="true"
- className="inline-flex cursor-not-allowed items-center justify-center gap-2 rounded-(--landing-radius-action) border border-white/15 bg-white/8 px-5 py-3 text-body font-semibold text-white/60"
- >
- {children}
- </span>
- );
- }
+function Dot({ children }: { children: React.ReactNode }) {
return (
- <a href={href} className={heroButtonClassName("solid")}>
- {children}
- </a>
+ <>
+ <span aria-hidden className="text-site-faint">
+ ·
+ </span>
+ <span>{children}</span>
+ </>
);
}
-function BackdropGradient() {
- return (
- <div
- aria-hidden
- className="pointer-events-none absolute inset-0"
- style={{
- background:
- "radial-gradient(ellipse 70% 50% at 50% 0%, rgba(80,120,255,0.18), transparent 60%), radial-gradient(ellipse 50% 40% at 50% 80%, rgba(255,90,90,0.08), transparent 60%)",
- }}
- />
- );
+/** In UTC, so the server's render and the browser's agree. */
+function formatDate(iso: string, locale: string) {
+ return new Intl.DateTimeFormat(locale, { dateStyle: "medium", timeZone: "UTC" }).format(new Date(iso));
}
diff --git a/apps/web/features/landing/components/download/os-icons.tsx b/apps/web/features/landing/components/download/os-icons.tsx
index 0f02e00a7a..9e6c3b454f 100644
--- a/apps/web/features/landing/components/download/os-icons.tsx
+++ b/apps/web/features/landing/components/download/os-icons.tsx
@@ -5,8 +5,17 @@
* minimal monochrome outlines so they inherit currentColor.
*/
+import type { DesktopOS } from "../../utils/download-target";
+
type IconProps = React.SVGProps<SVGSVGElement> & { size?: number };
+export function OSIcon({ os, ...props }: IconProps & { os: DesktopOS }) {
+ const Icon = os === "mac" ? AppleIcon : os === "windows" ? WindowsIcon : LinuxIcon;
+ return <Icon {...props} />;
+}
+
+export const OS_NAMES: Record<DesktopOS, string> = { mac: "macOS", windows: "Windows", linux: "Linux" };
+
export function AppleIcon({ size = 18, ...props }: IconProps) {
return (
<svg
diff --git a/apps/web/features/landing/components/download/other-downloads.tsx b/apps/web/features/landing/components/download/other-downloads.tsx
new file mode 100644
index 0000000000..ed11dfd73f
--- /dev/null
+++ b/apps/web/features/landing/components/download/other-downloads.tsx
@@ -0,0 +1,112 @@
+"use client";
+
+import Link from "@/features/landing/components/landing-link";
+import { ChevronDown, ChevronRight } from "@multica/ui/icons";
+import { cn } from "@multica/ui/lib/utils";
+import {
+ DropdownMenu,
+ DropdownMenuContent,
+ DropdownMenuItem,
+ DropdownMenuSeparator,
+ DropdownMenuTrigger,
+} from "@multica/ui/components/ui/dropdown-menu";
+import { useLocale } from "../../i18n";
+import { focusRing } from "../../site/primitives";
+import { formatSize, osOf, platformOf, type PrimaryDownloadKey } from "../../utils/download-target";
+import type { DownloadAssets, DownloadSizes } from "../../utils/parse-release-assets";
+import { DownloadLink } from "./download-link";
+import { OSIcon, OS_NAMES } from "./os-icons";
+
+/** One installer per platform, in menu order. ARM builds and other formats live on /download. */
+const MENU_KEYS: PrimaryDownloadKey[] = ["macArm64Dmg", "macX64Dmg", "winX64Exe", "linuxAmd64AppImage"];
+
+const FORMAT: Record<PrimaryDownloadKey, string> = {
+ macArm64Dmg: ".dmg",
+ macX64Dmg: ".dmg",
+ winX64Exe: ".exe",
+ winArm64Exe: ".exe",
+ linuxAmd64AppImage: ".AppImage",
+ linuxArm64AppImage: ".AppImage",
+};
+
+const ITEM = "gap-3 rounded-site-inner px-2.5 py-2 text-site-ink focus:bg-site-hover focus:text-site-ink";
+
+/**
+ * Under the homepage download button: the other platforms' installers,
+ * one click each, and a way to every build.
+ */
+export function OtherDownloads({
+ primary,
+ assets,
+ sizes,
+ version,
+}: {
+ primary: PrimaryDownloadKey;
+ assets: DownloadAssets;
+ sizes: DownloadSizes;
+ version: string | null;
+}) {
+ const { t } = useLocale();
+ const items = MENU_KEYS.filter((key) => key !== primary && assets[key]);
+ if (items.length === 0) return null;
+
+ // The visitor's own OS reads as its other architecture, the rest by name: "Intel · Windows · Linux".
+ const names = [
+ ...new Set(
+ items.map((key) => {
+ if (osOf(key) !== osOf(primary)) return OS_NAMES[osOf(key)];
+ return t.download.platforms[platformOf(key)].split(" · ")[1]!;
+ }),
+ ),
+ ];
+
+ return (
+ <DropdownMenu>
+ <DropdownMenuTrigger
+ className={cn(
+ "group mt-3 inline-flex items-center gap-1 rounded-sm text-site-small text-site-muted transition-colors hover:text-site-ink data-popup-open:text-site-ink",
+ focusRing,
+ )}
+ >
+ {t.home.hero.alsoFor.replace("{platforms}", names.join(" · "))}
+ <ChevronDown className="size-3.5 transition-transform duration-200 group-data-popup-open:rotate-180" aria-hidden />
+ </DropdownMenuTrigger>
+ <DropdownMenuContent
+ align="start"
+ sideOffset={8}
+ className="landing-light w-72 rounded-site-card bg-site-surface p-1.5 text-site-ink shadow-site-menu ring-site-line"
+ >
+ {items.map((key) => {
+ const [osName, arch] = t.download.platforms[platformOf(key)].split(" · ");
+ const size = sizes[key];
+ return (
+ <DropdownMenuItem
+ key={key}
+ className={ITEM}
+ render={<DownloadLink downloadKey={key} href={assets[key]!} handoff />}
+ >
+ <span className="flex size-8 shrink-0 items-center justify-center rounded-site-inner bg-site-sunken text-site-ink-secondary">
+ <OSIcon os={osOf(key)} size={16} aria-hidden />
+ </span>
+ <span className="min-w-0">
+ <span className="block text-site-small">
+ {osName} <span className="text-site-muted">{arch}</span>
+ </span>
+ <span className="block text-[0.8125rem] text-site-muted">
+ {FORMAT[key]}
+ {size ? ` · ${formatSize(size)}` : null}
+ </span>
+ </span>
+ </DropdownMenuItem>
+ );
+ })}
+ <DropdownMenuSeparator className="mx-1 my-1 bg-site-rule" />
+ <DropdownMenuItem className={cn(ITEM, "py-1.5 text-site-small")} render={<Link href="/download" />}>
+ <span className="flex-1">{t.download.allPlatforms.title}</span>
+ {version ? <span className="text-site-muted">{version}</span> : null}
+ <ChevronRight className="size-3.5 text-site-muted" aria-hidden />
+ </DropdownMenuItem>
+ </DropdownMenuContent>
+ </DropdownMenu>
+ );
+}
diff --git a/apps/web/features/landing/components/download/started.tsx b/apps/web/features/landing/components/download/started.tsx
new file mode 100644
index 0000000000..369aa69626
--- /dev/null
+++ b/apps/web/features/landing/components/download/started.tsx
@@ -0,0 +1,203 @@
+"use client";
+
+import type { ComponentType, ReactNode } from "react";
+import { ArrowUpRight, Check, Star } from "@multica/ui/icons";
+import { cn } from "@multica/ui/lib/utils";
+import { useLocale } from "../../i18n";
+import { PROVIDER_MARKS } from "../../site/demo/mock-kit";
+import { ActionLink, Container, Eyebrow, actionClassName, focusRing } from "../../site/primitives";
+import { fileName, formatSize } from "../../utils/download-target";
+import { formatStarCount, useGithubStars } from "../../utils/use-github-stars";
+import type { DownloadKey } from "../../utils/parse-release-assets";
+import { DiscordMark, GitHubMark, XMark, discordUrl, githubUrl, twitterUrl } from "../shared";
+
+const AGENTS = ["Claude Code", "Codex", "OpenCode"] as const;
+
+/** Opens the installed desktop app, or does nothing when it is not installed yet. */
+const OPEN_APP_URL = "multica://open";
+
+type InstallStep = "dmg" | "zip" | "exe" | "appImage" | "deb" | "rpm";
+
+function installStep(key: DownloadKey): InstallStep {
+ if (key.endsWith("Dmg")) return "dmg";
+ if (key.endsWith("Zip")) return "zip";
+ if (key.endsWith("Exe")) return "exe";
+ if (key.endsWith("Deb")) return "deb";
+ if (key.endsWith("Rpm")) return "rpm";
+ return "appImage";
+}
+
+/**
+ * What the download page becomes once a file is on its way: confirmation
+ * with a retry, the three steps to a working setup, and the places to
+ * follow the project while the file downloads.
+ */
+export function DownloadStarted({
+ downloadKey,
+ href,
+ size,
+ onBack,
+}: {
+ downloadKey: DownloadKey;
+ href: string;
+ size?: number;
+ onBack: () => void;
+}) {
+ const { t } = useLocale();
+ const d = t.download.started;
+ const stars = useGithubStars();
+
+ const steps: { title: string; body: ReactNode; extra?: ReactNode }[] = [
+ { title: d.install.title, body: d.install[installStep(downloadKey)] },
+ {
+ title: d.signIn.title,
+ body: `${d.signIn.body} ${d.signIn.installed}`,
+ extra: (
+ <a href={OPEN_APP_URL} className={cn(actionClassName("secondary"), "mt-3")}>
+ {d.signIn.open}
+ <ArrowUpRight className="size-3.5" aria-hidden />
+ </a>
+ ),
+ },
+ {
+ title: d.agents.title,
+ body: d.agents.body,
+ extra: (
+ <ul className="mt-3 flex flex-wrap gap-1.5">
+ {AGENTS.map((name) => {
+ const Mark = PROVIDER_MARKS.get(name);
+ return (
+ <li
+ key={name}
+ className="inline-flex h-7 items-center gap-1.5 rounded-site-inner bg-site-sunken px-2.5 text-[0.8125rem] text-site-ink-secondary"
+ >
+ {Mark ? <Mark className="size-3.5" /> : null}
+ {name}
+ </li>
+ );
+ })}
+ </ul>
+ ),
+ },
+ ];
+
+ return (
+ <>
+ <Container className="pt-site-hero pb-site-block">
+ <div className="flex items-start gap-4">
+ <span className="mt-1 flex size-10 shrink-0 items-center justify-center rounded-full bg-site-inverse text-site-inverse-ink">
+ <Check className="size-5" aria-hidden />
+ </span>
+ <div className="min-w-0">
+ <h1 className="font-site-display text-site-heading text-site-ink text-balance">{d.title}</h1>
+ <p className="mt-2 flex flex-wrap items-center gap-x-3 gap-y-1 text-site-small text-site-muted">
+ <span className="break-all">
+ {fileName(href)}
+ {size ? ` · ${formatSize(size)}` : null}
+ </span>
+ <span aria-hidden className="text-site-faint">
+ ·
+ </span>
+ <a href={href} className={cn("rounded-sm text-site-ink underline decoration-site-line-strong underline-offset-4", focusRing)}>
+ {d.retry}
+ </a>
+ <span aria-hidden className="text-site-faint">
+ ·
+ </span>
+ <button
+ type="button"
+ onClick={onBack}
+ className={cn("rounded-sm text-site-ink underline decoration-site-line-strong underline-offset-4", focusRing)}
+ >
+ {d.allDownloads}
+ </button>
+ </p>
+ </div>
+ </div>
+
+ <ol className="mt-10 grid border-t border-site-line md:grid-cols-3">
+ {steps.map((step, index) => (
+ <li
+ key={step.title}
+ className={cn(
+ "relative border-b border-site-rule py-5 md:border-b-0 md:pr-8",
+ index === 0 && "before:absolute before:-top-px before:left-0 before:h-px before:w-2/5 before:bg-site-ink",
+ )}
+ >
+ <span className="font-site-mono text-site-label text-site-muted">0{index + 1}</span>
+ <h2 className="mt-2 text-site-card text-site-ink">{step.title}</h2>
+ <p className="mt-1.5 max-w-[22rem] text-site-small text-site-muted text-pretty">{step.body}</p>
+ {step.extra}
+ </li>
+ ))}
+ </ol>
+ </Container>
+
+ <Container className="pb-site-section">
+ <Eyebrow>{d.community.label}</Eyebrow>
+ <div className="mt-4 grid gap-4 lg:grid-cols-[7fr_5fr]">
+ <div className="relative flex flex-col justify-between gap-8 overflow-hidden rounded-site-panel bg-site-sunken p-7 sm:flex-row sm:items-end">
+ <GitHubMark className="pointer-events-none absolute -top-10 -right-8 size-56 text-site-line" />
+ <div className="relative">
+ <p className="flex items-center gap-2 font-site-mono text-[0.8125rem] text-site-ink-secondary">
+ <GitHubMark className="size-4 text-site-ink" />
+ multica-ai/multica
+ </p>
+ <h2 className="mt-4 font-site-display text-site-title text-site-ink text-balance">{d.community.githubTitle}</h2>
+ <p className="mt-2 max-w-[28rem] text-site-small text-site-muted text-pretty">{d.community.githubBody}</p>
+ {stars != null ? (
+ <p className="mt-4 flex items-center gap-1.5 text-site-small text-site-muted">
+ <Star className="size-3.5" aria-hidden />
+ {d.community.stars.replace("{count}", formatStarCount(stars))}
+ </p>
+ ) : null}
+ </div>
+ <ActionLink href={githubUrl} size="lg" className="relative self-start sm:self-auto">
+ <Star className="size-4" aria-hidden />
+ {d.community.star}
+ </ActionLink>
+ </div>
+ <div className="grid gap-4">
+ <CommunityRow
+ icon={DiscordMark}
+ title={d.community.discordTitle}
+ body={d.community.discordBody}
+ href={discordUrl}
+ action={d.community.join}
+ />
+ <CommunityRow icon={XMark} title={d.community.xTitle} body={d.community.xBody} href={twitterUrl} action={d.community.follow} />
+ </div>
+ </div>
+ </Container>
+ </>
+ );
+}
+
+function CommunityRow({
+ icon: Icon,
+ title,
+ body,
+ href,
+ action,
+}: {
+ icon: ComponentType<{ className?: string }>;
+ title: string;
+ body: string;
+ href: string;
+ action: string;
+}) {
+ return (
+ <div className="grid grid-cols-[2.25rem_1fr_auto] items-center gap-4 rounded-site-panel border border-site-line bg-site-surface p-5">
+ <span className="flex size-9 items-center justify-center rounded-site-card bg-site-sunken text-site-ink">
+ <Icon className="size-[18px]" />
+ </span>
+ <div className="min-w-0">
+ <h2 className="text-site-body text-site-ink">{title}</h2>
+ <p className="mt-0.5 text-site-small text-site-muted text-pretty">{body}</p>
+ </div>
+ <ActionLink href={href} tone="secondary">
+ {action}
+ </ActionLink>
+ </div>
+ );
+}
diff --git a/apps/web/features/landing/components/download/use-detected-platform.ts b/apps/web/features/landing/components/download/use-detected-platform.ts
new file mode 100644
index 0000000000..ded00f4c09
--- /dev/null
+++ b/apps/web/features/landing/components/download/use-detected-platform.ts
@@ -0,0 +1,25 @@
+"use client";
+
+import { useEffect, useState } from "react";
+import { detectOS, type DetectResult } from "../../utils/os-detect";
+
+/**
+ * The server's platform guess, refined once the browser can say more: a
+ * confident CPU architecture on Chromium, or an iPad posing as a Mac.
+ */
+export function useDetectedPlatform(initial: DetectResult): DetectResult {
+ const [detected, setDetected] = useState(initial);
+ const initialOS = initial.os;
+
+ useEffect(() => {
+ let active = true;
+ void detectOS().then((result) => {
+ if (active && (result.archConfident || result.os !== initialOS)) setDetected(result);
+ });
+ return () => {
+ active = false;
+ };
+ }, [initialOS]);
+
+ return detected;
+}
diff --git a/apps/web/features/landing/components/faq-section.tsx b/apps/web/features/landing/components/faq-section.tsx
index cb543bc5cd..5268bdf2e1 100644
--- a/apps/web/features/landing/components/faq-section.tsx
+++ b/apps/web/features/landing/components/faq-section.tsx
@@ -1,73 +1,85 @@
"use client";
-import { useState } from "react";
+import { useId, useState } from "react";
+import { Plus } from "@multica/ui/icons";
import { cn } from "@multica/ui/lib/utils";
+import { Container, Section, SectionHeader, focusRing } from "../site/primitives";
import { InlineLinks } from "./inline-links";
import { useLocale } from "../i18n";
-export function FAQSection() {
- const { t } = useLocale();
- const [openIndex, setOpenIndex] = useState<number | null>(null);
+const EASE = "ease-[cubic-bezier(0.32,0.72,0,1)]";
+
+function FAQItem({ question, answer }: { question: string; answer: string }) {
+ const [open, setOpen] = useState(false);
+ const id = useId();
+ const panelId = `${id}-panel`;
+ const buttonId = `${id}-button`;
return (
- <section id="faq" className="bg-[#f8f8f8] text-[#0a0d12]">
- <div className="mx-auto max-w-[860px] px-4 py-24 sm:px-6 sm:py-32 lg:py-40">
- <div className="text-center">
- <p className="text-micro font-semibold uppercase tracking-[0.16em] text-[#0a0d12]/40">
- {t.faq.label}
+ <div
+ className={cn(
+ "rounded-site-card border bg-site-surface transition-colors duration-300",
+ open ? "border-site-line-strong" : "border-site-line",
+ )}
+ >
+ <h3>
+ <button
+ type="button"
+ id={buttonId}
+ aria-expanded={open}
+ aria-controls={panelId}
+ onClick={() => setOpen((current) => !current)}
+ className={cn(
+ "group flex w-full items-center justify-between gap-6 rounded-site-card px-5 py-4 text-left text-site-body text-site-ink",
+ focusRing,
+ )}
+ >
+ {question}
+ <span className="flex size-7 shrink-0 items-center justify-center rounded-full border border-site-line text-site-muted transition-colors group-hover:text-site-ink">
+ <Plus
+ aria-hidden
+ className={cn("size-3.5 transition-transform duration-300 motion-reduce:transition-none", EASE, open && "rotate-45")}
+ />
+ </span>
+ </button>
+ </h3>
+ <div
+ id={panelId}
+ role="region"
+ aria-labelledby={buttonId}
+ inert={!open}
+ className={cn(
+ "grid transition-[grid-template-rows,opacity] duration-300 motion-reduce:transition-none",
+ EASE,
+ open ? "grid-rows-[1fr] opacity-100" : "grid-rows-[0fr] opacity-0",
+ )}
+ >
+ <div className="overflow-hidden">
+ <p className="-mt-1 px-5 pb-5 text-site-body text-site-muted">
+ <InlineLinks
+ text={answer}
+ linkClassName="text-site-ink underline decoration-site-line-strong underline-offset-4 hover:decoration-site-ink"
+ />
</p>
- <h2 className="mt-4 landing-serif text-[2.6rem] leading-[1.05] tracking-[-0.03em] sm:text-[3.4rem] lg:text-[4.2rem]">
- {t.faq.headline}
- </h2>
</div>
+ </div>
+ </div>
+ );
+}
- <div className="mt-14 divide-y divide-[#0a0d12]/10 sm:mt-16">
- {t.faq.items.map((faq, i) => (
- <div key={i}>
- <button
- type="button"
- onClick={() => setOpenIndex(openIndex === i ? null : i)}
- className="flex w-full items-start justify-between gap-4 py-6 text-left"
- >
- <span className="text-title-sm font-semibold leading-snug text-[#0a0d12] sm:text-title">
- {faq.question}
- </span>
- <span
- className={cn(
- "mt-0.5 flex size-6 shrink-0 items-center justify-center rounded-full border border-[#0a0d12]/12 text-[#0a0d12]/40 transition-transform",
- openIndex === i && "rotate-45",
- )}
- >
- <svg
- width="12"
- height="12"
- viewBox="0 0 12 12"
- fill="none"
- stroke="currentColor"
- strokeWidth="1.5"
- strokeLinecap="round"
- >
- <path d="M6 1v10M1 6h10" />
- </svg>
- </span>
- </button>
- <div
- className={cn(
- "grid transition-[grid-template-rows] duration-200 ease-out",
- openIndex === i ? "grid-rows-[1fr]" : "grid-rows-[0fr]",
- )}
- >
- {/* inert keeps links in a collapsed answer out of the tab order. */}
- <div className="overflow-hidden" inert={openIndex !== i}>
- <p className="pb-6 pr-12 text-body leading-[1.7] text-[#0a0d12]/56 sm:text-body-lg">
- <InlineLinks text={faq.answer} />
- </p>
- </div>
- </div>
- </div>
+export function FAQSection() {
+ const { t } = useLocale();
+
+ return (
+ <Section id="faq">
+ <Container className="flex flex-col items-center">
+ <SectionHeader eyebrow={t.faq.label} title={t.faq.headline} className="text-center" />
+ <div className="mt-site-block flex w-full max-w-[48rem] flex-col gap-2">
+ {t.faq.items.map((faq) => (
+ <FAQItem key={faq.question} question={faq.question} answer={faq.answer} />
))}
</div>
- </div>
- </section>
+ </Container>
+ </Section>
);
}
diff --git a/apps/web/features/landing/components/features-section.tsx b/apps/web/features/landing/components/features-section.tsx
deleted file mode 100644
index 33da376406..0000000000
--- a/apps/web/features/landing/components/features-section.tsx
+++ /dev/null
@@ -1,1119 +0,0 @@
-"use client";
-
-import { useEffect, useRef, useState } from "react";
-import Image from "next/image";
-import {
- Bot,
- Brain,
- Check,
- CheckCircle2,
- ChevronRight,
- Cloud,
- File,
- FileText,
- Folder,
- FolderOpen,
- Loader2,
- Monitor,
- Sparkles,
- UserMinus,
-} from "@multica/ui/icons";
-import { cn } from "@multica/ui/lib/utils";
-import { ImageIcon } from "./shared";
-import { useLocale } from "../i18n";
-import type { LandingDict } from "../i18n";
-import { StatusIcon, PriorityIcon } from "@multica/views/issues/components";
-import { BUILT_IN_STATUS_LABEL } from "@multica/core/issues/config/status";
-import { PRIORITY_CONFIG } from "@multica/core/issues/config/priority";
-import type { BuiltInIssueStatus, IssuePriority } from "@multica/core/types";
-
-/* ------------------------------------------------------------------ */
-/* Mock ActorAvatar — mirrors the real ActorAvatar styling exactly */
-/* but uses hardcoded data instead of the workspace store */
-/* ------------------------------------------------------------------ */
-
-function MockAvatar({
- type,
- initials,
- size = 20,
-}: {
- type: "member" | "agent";
- initials?: string;
- size?: number;
-}) {
- return (
- <div
- className="inline-flex shrink-0 items-center justify-center rounded-full font-medium overflow-hidden bg-muted text-muted-foreground"
- style={{ width: size, height: size, fontSize: size * 0.45 }}
- >
- {type === "agent" ? (
- <Bot style={{ width: size * 0.55, height: size * 0.55 }} />
- ) : (
- initials
- )}
- </div>
- );
-}
-
-/* ------------------------------------------------------------------ */
-/* Mock PropRow — mirrors the real PropRow from issue-detail */
-/* ------------------------------------------------------------------ */
-
-function PropRow({ label, children }: { label: string; children: React.ReactNode }) {
- return (
- <div className="flex min-h-8 items-center gap-2 rounded-md px-2 -mx-2">
- <span className="w-16 shrink-0 text-caption text-muted-foreground">{label}</span>
- <div className="flex min-w-0 flex-1 items-center gap-1.5 text-caption truncate">
- {children}
- </div>
- </div>
- );
-}
-
-/* ------------------------------------------------------------------ */
-/* Teammates feature visual */
-/* ------------------------------------------------------------------ */
-
-const mockTimeline = [
- {
- type: "activity" as const,
- actorType: "member" as const,
- initials: "AR",
- name: "Alex Rivera",
- action: "assigned to Claude",
- time: "3:02 PM",
- statusIcon: null,
- },
- {
- type: "activity" as const,
- actorType: "agent" as const,
- initials: "",
- name: "Claude",
- action: "changed status from Todo to In Progress",
- time: "3:02 PM",
- statusIcon: "in_progress" as const,
- },
- {
- type: "comment" as const,
- actorType: "member" as const,
- initials: "AR",
- name: "Alex Rivera",
- time: "10 min",
- content:
- "The current error responses are inconsistent across handlers — need a unified format with error codes.",
- },
- {
- type: "comment" as const,
- actorType: "agent" as const,
- initials: "",
- name: "Claude",
- time: "6 min",
- content:
- "I've standardized error responses across 14 handlers. Each error now includes a code, message, and request_id. PR #43 is ready for review.",
- },
- {
- type: "comment" as const,
- actorType: "member" as const,
- initials: "AR",
- name: "Alex Rivera",
- time: "3 min",
- content:
- "Looking good. Make sure to preserve the existing HTTP status codes — some of our frontend relies on specific codes like 409.",
- },
-];
-
-type Assignee = {
- type: "member" | "agent" | null;
- id: string | null;
- name: string;
- initials?: string;
-};
-
-const allAssignees: Assignee[] = [
- { type: null, id: null, name: "Unassigned" },
- { type: "member", id: "ar", name: "Alex Rivera", initials: "AR" },
- { type: "member", id: "sk", name: "Sarah Kim", initials: "SK" },
- { type: "agent", id: "claude", name: "Claude" },
- { type: "agent", id: "tina", name: "Tina-dev" },
-];
-
-const statusCycle: BuiltInIssueStatus[] = [
- "backlog",
- "todo",
- "in_progress",
- "in_review",
- "blocked",
- "done",
- "cancelled",
-];
-const priorityCycle: IssuePriority[] = ["none", "low", "medium", "high", "urgent"];
-
-function TeammatesVisual() {
- const [status, setStatus] = useState<BuiltInIssueStatus>("in_progress");
- const [priority, setPriority] = useState<IssuePriority>("medium");
- const [assignee, setAssignee] = useState<Assignee>(allAssignees[3]!); // Claude
- const [pickerOpen, setPickerOpen] = useState(true);
- const [statusOpen, setStatusOpen] = useState(false);
- const [priorityOpen, setPriorityOpen] = useState(false);
-
- const cycleStatus = () => {
- const idx = statusCycle.indexOf(status);
- setStatus(statusCycle[(idx + 1) % statusCycle.length]!);
- };
-
- const cyclePriority = () => {
- const idx = priorityCycle.indexOf(priority);
- setPriority(priorityCycle[(idx + 1) % priorityCycle.length]!);
- };
-
- return (
- <div className="relative aspect-video overflow-hidden rounded-lg border bg-background text-foreground shadow-2xl">
- {/* Header bar */}
- <div className="flex h-10 shrink-0 items-center border-b bg-background px-4 text-body">
- <div className="flex items-center gap-1.5 min-w-0 text-caption">
- <span className="text-muted-foreground">Multica Demo</span>
- <ChevronRight className="h-3 w-3 text-faint-foreground shrink-0" />
- <span className="text-muted-foreground">MUL-18</span>
- <ChevronRight className="h-3 w-3 text-faint-foreground shrink-0" />
- <span className="truncate">Refactor API error handling middleware</span>
- </div>
- </div>
-
- <div className="flex h-[calc(100%-40px)]">
- {/* Main content area */}
- <div className="flex-1 overflow-hidden px-8 py-5">
- <h3 className="text-title font-bold leading-snug tracking-tight">
- Refactor API error handling middleware
- </h3>
- <p className="mt-2 text-body text-muted-foreground">
- Standardize error responses across all endpoints.
- </p>
-
- <div className="my-4 border-t" />
-
- <div className="flex items-center justify-between">
- <h4 className="text-body font-semibold">Activity</h4>
- <span className="text-caption text-muted-foreground">Subscribe</span>
- </div>
-
- <div className="mt-3 flex flex-col gap-2.5">
- {mockTimeline.map((entry, i) => {
- if (entry.type === "activity") {
- return (
- <div key={i} className="px-4 flex items-center text-caption text-muted-foreground">
- <div className="mr-2 flex w-4 shrink-0 justify-center">
- {entry.statusIcon ? (
- <StatusIcon status={entry.statusIcon} className="h-4 w-4 shrink-0" />
- ) : (
- <MockAvatar type={entry.actorType} initials={entry.initials} size={16} />
- )}
- </div>
- <div className="flex min-w-0 flex-1 items-center gap-1">
- <span className="shrink-0 font-medium">{entry.name}</span>
- <span className="truncate">{entry.action}</span>
- <span className="ml-auto shrink-0">{entry.time}</span>
- </div>
- </div>
- );
- }
-
- return (
- <div key={i} className="rounded-lg border bg-card px-4 py-2.5">
- <div className="flex items-center gap-2.5">
- <MockAvatar type={entry.actorType} initials={entry.initials} size={22} />
- <span className="text-body font-medium">{entry.name}</span>
- <span className="text-caption text-muted-foreground">{entry.time}</span>
- </div>
- <p className="mt-1 pl-8 text-body leading-relaxed text-muted-foreground">
- {entry.content}
- </p>
- </div>
- );
- })}
- </div>
- </div>
-
- {/* Properties sidebar */}
- <div className="w-[220px] shrink-0 overflow-hidden border-l">
- <div className="p-4 space-y-4">
- <div>
- <div className="flex items-center gap-1 text-caption font-medium mb-2">
- <ChevronRight className="h-3.5 w-3.5 shrink-0 text-muted-foreground rotate-90" />
- Properties
- </div>
- <div className="space-y-0.5 pl-2">
- {/* Status — clickable with dropdown */}
- <div className="relative">
- <PropRow label="Status">
- <button
- type="button"
- className="flex items-center gap-1.5 cursor-pointer rounded-xs px-1 -mx-1 hover:bg-accent/30 transition-colors"
- onClick={() => { setStatusOpen(!statusOpen); setPriorityOpen(false); }}
- >
- <StatusIcon status={status} className="h-3.5 w-3.5 shrink-0" />
- <span>{BUILT_IN_STATUS_LABEL[status]}</span>
- </button>
- </PropRow>
- {statusOpen && (
- <div className="absolute left-0 top-full z-10 mt-1 w-44 overflow-hidden rounded-md border bg-popover shadow-md">
- {statusCycle.map((s) => (
- <button
- type="button"
- key={s}
- className={cn(
- "flex w-full items-center gap-2 px-3 py-1.5 text-caption hover:bg-accent transition-colors",
- s === status && "bg-accent",
- )}
- onClick={() => { setStatus(s); setStatusOpen(false); }}
- >
- <StatusIcon status={s} className="h-3.5 w-3.5 shrink-0" />
- {BUILT_IN_STATUS_LABEL[s]}
- {s === status && <Check className="ml-auto h-3.5 w-3.5" />}
- </button>
- ))}
- </div>
- )}
- </div>
-
- {/* Priority — clickable with dropdown */}
- <div className="relative">
- <PropRow label="Priority">
- <button
- type="button"
- className="flex items-center gap-1.5 cursor-pointer rounded-xs px-1 -mx-1 hover:bg-accent/30 transition-colors"
- onClick={() => { setPriorityOpen(!priorityOpen); setStatusOpen(false); }}
- >
- <PriorityIcon priority={priority} />
- <span>{PRIORITY_CONFIG[priority].label}</span>
- </button>
- </PropRow>
- {priorityOpen && (
- <div className="absolute left-0 top-full z-10 mt-1 w-44 overflow-hidden rounded-md border bg-popover shadow-md">
- {priorityCycle.map((p) => (
- <button
- type="button"
- key={p}
- className={cn(
- "flex w-full items-center gap-2 px-3 py-1.5 text-caption hover:bg-accent transition-colors",
- p === priority && "bg-accent",
- )}
- onClick={() => { setPriority(p); setPriorityOpen(false); }}
- >
- <PriorityIcon priority={p} />
- {PRIORITY_CONFIG[p].label}
- {p === priority && <Check className="ml-auto h-3.5 w-3.5" />}
- </button>
- ))}
- </div>
- )}
- </div>
-
- {/* Assignee — clickable to toggle picker */}
- <PropRow label="Assignee">
- <button
- type="button"
- className="flex items-center gap-1.5 cursor-pointer rounded-xs px-1 -mx-1 hover:bg-accent/30 transition-colors"
- onClick={() => { setPickerOpen(!pickerOpen); setStatusOpen(false); setPriorityOpen(false); }}
- >
- {assignee.type ? (
- <>
- <MockAvatar type={assignee.type} initials={assignee.initials} size={18} />
- <span>{assignee.name}</span>
- </>
- ) : (
- <span className="text-muted-foreground">Unassigned</span>
- )}
- </button>
- </PropRow>
- </div>
- </div>
-
- {/* Assignee picker — togglable */}
- {pickerOpen && (
- <div className="overflow-hidden rounded-md border bg-popover shadow-md">
- <div className="border-b px-3 py-1.5 text-caption text-muted-foreground">
- Assign to...
- </div>
- <div className="p-1">
- <button
- type="button"
- className={cn(
- "flex w-full items-center gap-2 rounded-sm px-2 py-1 text-caption text-muted-foreground hover:bg-accent transition-colors",
- !assignee.type && "bg-accent",
- )}
- onClick={() => { setAssignee(allAssignees[0]!); setPickerOpen(false); }}
- >
- <UserMinus className="h-3.5 w-3.5" />
- <span>Unassigned</span>
- {!assignee.type && <Check className="ml-auto h-3.5 w-3.5" />}
- </button>
- </div>
- <div className="px-3 py-0.5">
- <span className="text-micro font-medium uppercase tracking-wider text-muted-foreground">Members</span>
- </div>
- <div className="p-1 pt-0">
- {allAssignees.filter((a) => a.type === "member").map((m) => (
- <button
- type="button"
- key={m.id}
- className={cn(
- "flex w-full items-center gap-2 rounded-sm px-2 py-1 text-caption hover:bg-accent transition-colors",
- assignee.id === m.id && "bg-accent",
- )}
- onClick={() => { setAssignee(m); setPickerOpen(false); }}
- >
- <MockAvatar type="member" initials={m.initials} size={16} />
- <span>{m.name}</span>
- {assignee.id === m.id && <Check className="ml-auto h-3.5 w-3.5" />}
- </button>
- ))}
- </div>
- <div className="px-3 py-0.5">
- <span className="text-micro font-medium uppercase tracking-wider text-muted-foreground">Agents</span>
- </div>
- <div className="p-1 pt-0">
- {allAssignees.filter((a) => a.type === "agent").map((a) => (
- <button
- type="button"
- key={a.id}
- className={cn(
- "flex w-full items-center gap-2 rounded-sm px-2 py-1 text-caption hover:bg-accent transition-colors",
- assignee.id === a.id && "bg-accent",
- )}
- onClick={() => { setAssignee(a); setPickerOpen(false); }}
- >
- <div className="inline-flex size-4 shrink-0 items-center justify-center rounded-full bg-info/10 text-info">
- <Bot className="size-2.5" />
- </div>
- <span>{a.name}</span>
- {assignee.id === a.id && <Check className="ml-auto h-3.5 w-3.5" />}
- </button>
- ))}
- </div>
- </div>
- )}
- </div>
- </div>
- </div>
- </div>
- );
-}
-
-/* ------------------------------------------------------------------ */
-/* Autonomous feature visual — agent live execution card */
-/* ------------------------------------------------------------------ */
-
-const mockToolCalls = [
- { type: "thinking" as const, content: "Analyzing the error handling patterns across all 14 handler files…" },
- { type: "tool_use" as const, tool: "Read", summary: "server/internal/handler/issue.go" },
- { type: "tool_result" as const, preview: "func (h *IssueHandler) Create(w http.ResponseWriter, r *http.Request) { …" },
- { type: "tool_use" as const, tool: "Edit", summary: "server/internal/handler/issue.go — replace writeJSON error calls" },
- { type: "tool_result" as const, preview: "Updated 3 error responses to use writeError() helper" },
- { type: "thinking" as const, content: "Now checking handler/comment.go for the same inconsistent patterns…" },
- { type: "tool_use" as const, tool: "Read", summary: "server/internal/handler/comment.go" },
- { type: "tool_result" as const, preview: "func (h *CommentHandler) Create(w http.ResponseWriter, r *http.Request) { …" },
- { type: "tool_use" as const, tool: "Bash", summary: "go test ./internal/handler/ -run TestErrorResponses" },
- { type: "tool_result" as const, preview: "ok \tgithub.com/multica/server/internal/handler\t0.847s" },
-];
-
-const mockTaskHistory = [
- { status: "completed" as const, title: "Set up error response types", duration: "2m 14s" },
- { status: "completed" as const, title: "Migrate issue handler", duration: "3m 41s" },
- { status: "running" as const, title: "Migrate comment handler", duration: "1m 22s" },
-];
-
-function AutonomousVisual() {
- const [expanded, setExpanded] = useState<number | null>(null);
-
- return (
- <div className="relative aspect-video overflow-hidden rounded-lg border bg-background text-foreground shadow-2xl">
- {/* Header bar */}
- <div className="flex h-10 shrink-0 items-center border-b bg-background px-4 text-body">
- <div className="flex items-center gap-1.5 min-w-0 text-caption">
- <span className="text-muted-foreground">Multica Demo</span>
- <ChevronRight className="h-3 w-3 text-faint-foreground shrink-0" />
- <span className="text-muted-foreground">MUL-18</span>
- <ChevronRight className="h-3 w-3 text-faint-foreground shrink-0" />
- <span className="truncate">Refactor API error handling middleware</span>
- </div>
- </div>
-
- <div className="flex-1 overflow-hidden px-8 py-5">
- {/* Agent live card */}
- <div className="rounded-lg border border-info/20 bg-info/5">
- {/* Live card header */}
- <div className="flex items-center gap-2 px-3 py-2">
- <div className="flex h-5 w-5 items-center justify-center rounded-full bg-info/10 text-info">
- <Bot className="h-3 w-3" />
- </div>
- <div className="flex items-center gap-1.5 text-caption font-medium">
- <Loader2 className="h-3 w-3 animate-spin text-info" />
- Agent is working
- </div>
- <span className="ml-auto text-caption tabular-nums text-muted-foreground">7m 17s</span>
- <span className="text-caption text-muted-foreground">10 tool calls</span>
- </div>
-
- {/* Tool call timeline */}
- <div className="max-h-48 overflow-hidden px-3 pb-2 space-y-0.5">
- {mockToolCalls.map((item, i) => {
- const isExpanded = expanded === i;
-
- if (item.type === "thinking") {
- return (
- <button
- type="button"
- key={i}
- className="flex w-full items-center gap-2 rounded-xs px-2 py-1 text-caption hover:bg-info/5 transition-colors"
- onClick={() => setExpanded(isExpanded ? null : i)}
- >
- <ChevronRight className={cn("h-3 w-3 shrink-0 text-muted-foreground transition-transform", isExpanded && "rotate-90")} />
- <Brain className="h-3 w-3 shrink-0 text-info/60" />
- <span className="truncate italic text-muted-foreground">{item.content}</span>
- </button>
- );
- }
-
- if (item.type === "tool_use") {
- return (
- <button
- type="button"
- key={i}
- className="flex w-full items-center gap-2 rounded-xs px-2 py-1 text-caption hover:bg-info/5 transition-colors"
- onClick={() => setExpanded(isExpanded ? null : i)}
- >
- <ChevronRight className={cn("h-3 w-3 shrink-0 text-muted-foreground transition-transform", isExpanded && "rotate-90")} />
- <span className="shrink-0 font-semibold">{item.tool}</span>
- <span className="truncate text-muted-foreground">{item.summary}</span>
- </button>
- );
- }
-
- /* tool_result */
- return (
- <button
- type="button"
- key={i}
- className="flex w-full items-center gap-2 rounded-xs px-2 py-1 text-caption hover:bg-accent/50 transition-colors"
- onClick={() => setExpanded(isExpanded ? null : i)}
- >
- <ChevronRight className={cn("h-3 w-3 shrink-0 text-muted-foreground transition-transform", isExpanded && "rotate-90")} />
- <span className="shrink-0 text-muted-foreground">result:</span>
- <span className="truncate text-muted-foreground">{item.preview}</span>
- </button>
- );
- })}
- </div>
- </div>
-
- {/* Task run history */}
- <div className="mt-4">
- <span className="text-caption font-medium text-muted-foreground">Task execution history</span>
- <div className="mt-2 space-y-1.5">
- {mockTaskHistory.map((task, i) => (
- <div key={i} className="flex items-center gap-2 text-caption">
- {task.status === "completed" ? (
- <CheckCircle2 className="h-3.5 w-3.5 shrink-0 text-success" />
- ) : (
- <Loader2 className="h-3.5 w-3.5 shrink-0 animate-spin text-info" />
- )}
- <span className={task.status === "running" ? "font-medium" : "text-muted-foreground"}>
- {task.title}
- </span>
- <span className="ml-auto text-muted-foreground tabular-nums">{task.duration}</span>
- </div>
- ))}
- </div>
- </div>
- </div>
- </div>
- );
-}
-
-/* ------------------------------------------------------------------ */
-/* Skills feature visual — skill library + file browser */
-/* ------------------------------------------------------------------ */
-
-const mockSkills = [
- { name: "Deploy to staging", description: "Run staging deploy pipeline", files: 3, selected: false },
- { name: "Write migration", description: "Generate and validate SQL migration", files: 4, selected: true },
- { name: "Review PR", description: "Code review with style guide checks", files: 2, selected: false },
- { name: "Write tests", description: "Generate unit and integration tests", files: 3, selected: false },
-];
-
-const mockFileTree = [
- { name: "SKILL.md", isDir: false, depth: 0, icon: "md" as const },
- { name: "config", isDir: true, depth: 0, open: true },
- { name: "schema.sql", isDir: false, depth: 1, icon: "file" as const },
- { name: "templates", isDir: true, depth: 0, open: false },
-];
-
-function SkillsVisual() {
- const [selectedSkill, setSelectedSkill] = useState(1);
- const [selectedFile, setSelectedFile] = useState("SKILL.md");
-
- return (
- <div className="relative aspect-video overflow-hidden rounded-lg border bg-background text-foreground shadow-2xl">
- <div className="flex h-full">
- {/* Skills list panel */}
- <div className="w-[200px] shrink-0 border-r flex flex-col">
- <div className="flex items-center justify-between border-b px-3 py-2">
- <span className="text-caption font-semibold">Skills</span>
- <button type="button" aria-label="New skill" className="rounded-xs p-0.5 text-muted-foreground hover:bg-accent transition-colors">
- <Sparkles className="h-3.5 w-3.5" />
- </button>
- </div>
- <div className="flex-1 overflow-hidden divide-y">
- {mockSkills.map((skill, i) => (
- <button
- type="button"
- key={skill.name}
- className={cn(
- "flex w-full items-center gap-2.5 px-3 py-2.5 text-left transition-colors",
- i === selectedSkill ? "bg-accent" : "hover:bg-accent/50",
- )}
- onClick={() => setSelectedSkill(i)}
- >
- <div className="flex h-6 w-6 shrink-0 items-center justify-center rounded-md bg-muted">
- <Sparkles className="h-3 w-3 text-muted-foreground" />
- </div>
- <div className="min-w-0 flex-1">
- <div className="truncate text-caption font-medium">{skill.name}</div>
- <div className="truncate text-micro text-muted-foreground">{skill.description}</div>
- </div>
- </button>
- ))}
- </div>
- </div>
-
- {/* Skill detail */}
- <div className="flex-1 flex flex-col min-w-0">
- {/* Skill header */}
- <div className="flex items-center gap-2 border-b px-4 py-2.5">
- <Sparkles className="h-4 w-4 shrink-0 text-muted-foreground" />
- <span className="text-body font-medium">{mockSkills[selectedSkill]?.name}</span>
- <span className="ml-2 text-caption text-muted-foreground">{mockSkills[selectedSkill]?.description}</span>
- </div>
-
- {/* File browser */}
- <div className="flex flex-1 min-h-0">
- {/* File tree */}
- <div className="w-44 shrink-0 border-r">
- <div className="flex items-center justify-between border-b px-3 py-1.5">
- <span className="text-micro font-semibold uppercase tracking-wider text-muted-foreground">Files</span>
- </div>
- <div className="py-1">
- {mockFileTree.map((f) => (
- <button
- type="button"
- key={f.name}
- className={cn(
- "flex w-full items-center gap-1.5 py-1 text-caption transition-colors",
- selectedFile === f.name && !f.isDir ? "bg-accent text-accent-foreground" : "hover:bg-accent/50",
- )}
- style={{ paddingLeft: f.isDir ? f.depth * 12 + 8 : f.depth * 12 + 24 }}
- onClick={() => { if (!f.isDir) setSelectedFile(f.name); }}
- >
- {f.isDir ? (
- <>
- <ChevronRight className={cn("h-3 w-3 shrink-0 transition-transform", f.open && "rotate-90")} />
- {f.open ? <FolderOpen className="h-3.5 w-3.5 shrink-0 text-muted-foreground" /> : <Folder className="h-3.5 w-3.5 shrink-0 text-muted-foreground" />}
- </>
- ) : f.icon === "md" ? (
- <FileText className="h-3.5 w-3.5 shrink-0 text-muted-foreground" />
- ) : (
- <File className="h-3.5 w-3.5 shrink-0 text-muted-foreground" />
- )}
- <span className="truncate">{f.name}</span>
- </button>
- ))}
- </div>
- </div>
-
- {/* File content viewer */}
- <div className="flex-1 flex flex-col min-w-0">
- <div className="flex h-8 items-center border-b px-3">
- <span className="text-caption font-mono text-muted-foreground">{selectedFile}</span>
- </div>
- <div className="flex-1 overflow-hidden p-4">
- {selectedFile === "SKILL.md" ? (
- <div className="space-y-3 text-caption">
- {/* Frontmatter */}
- <div className="rounded-md border bg-muted/30 p-3">
- <div className="grid grid-cols-[80px_1fr] gap-y-1">
- <span className="font-medium text-muted-foreground">name</span>
- <span>write-migration</span>
- <span className="font-medium text-muted-foreground">version</span>
- <span>1.2.0</span>
- <span className="font-medium text-muted-foreground">author</span>
- <span>Alex Rivera</span>
- </div>
- </div>
- {/* Content */}
- <div className="space-y-2 text-muted-foreground leading-relaxed">
- <p className="font-semibold text-foreground">Write Migration</p>
- <p>Generate a SQL migration file based on the requested schema changes. Validates against the current database state and generates both up and down migrations.</p>
- <p className="font-medium text-foreground">Steps</p>
- <ol className="list-decimal pl-4 space-y-0.5">
- <li>Analyze the current schema from migrations/</li>
- <li>Generate migration SQL with proper ordering</li>
- <li>Validate with sqlc compile</li>
- <li>Run tests against a fresh database</li>
- </ol>
- </div>
- </div>
- ) : (
- <pre className="text-caption font-mono text-muted-foreground">
-{`CREATE TABLE IF NOT EXISTS notifications (
- id UUID PRIMARY KEY DEFAULT gen_random_uuid(),
- user_id UUID NOT NULL REFERENCES users(id),
- issue_id UUID REFERENCES issues(id),
- type TEXT NOT NULL,
- read BOOLEAN DEFAULT FALSE,
- created_at TIMESTAMPTZ DEFAULT now()
-);`}
- </pre>
- )}
- </div>
- </div>
- </div>
- </div>
- </div>
- </div>
- );
-}
-
-/* ------------------------------------------------------------------ */
-/* Runtimes feature visual — agent dashboard with runtime status */
-/* ------------------------------------------------------------------ */
-
-const runtimeStatusConfig = {
- idle: { label: "Idle", color: "text-muted-foreground", dot: "bg-muted-foreground" },
- working: { label: "Working", color: "text-success", dot: "bg-success" },
- error: { label: "Error", color: "text-destructive", dot: "bg-destructive" },
- offline: { label: "Offline", color: "text-muted-foreground", dot: "bg-muted-foreground/40" },
-};
-
-const mockRuntimeList = [
- { name: "MacBook Pro", mode: "local" as const, status: "online" as const, device: "arm64 / macOS 15.2", lastSeen: "Just now" },
- { name: "Cloud (Anthropic)", mode: "cloud" as const, status: "online" as const, device: "api.anthropic.com", lastSeen: "Just now" },
- { name: "Linux Server", mode: "local" as const, status: "offline" as const, device: "x86_64 / Ubuntu 24.04", lastSeen: "3h ago" },
-];
-
-/* Mock usage data — deterministic seed values to avoid SSR/hydration mismatch */
-const USAGE_SEEDS = [
- [72, 38, 54, 12], [45, 22, 41, 8], [88, 44, 63, 15], [61, 31, 48, 10],
- [93, 47, 58, 14], [55, 28, 39, 9], [79, 40, 52, 13], [67, 34, 46, 11],
- [84, 42, 60, 14], [50, 25, 35, 7], [91, 46, 57, 13], [58, 29, 43, 10],
- [76, 38, 51, 12], [63, 32, 44, 9], [87, 44, 59, 14], [52, 26, 37, 8],
- [95, 48, 62, 15], [70, 35, 49, 11], [82, 41, 55, 13], [48, 24, 33, 7],
- [89, 45, 61, 14], [65, 33, 47, 10], [78, 39, 53, 12], [56, 28, 40, 9],
- [92, 46, 58, 14], [60, 30, 42, 8], [85, 43, 56, 13], [73, 37, 50, 11],
- [80, 40, 54, 12], [68, 34, 45, 10],
-];
-const mockUsageData = USAGE_SEEDS.map((s, i) => ({
- date: `2026-03-${String(i + 2).padStart(2, "0")}`,
- input_tokens: s[0]! * 1000,
- output_tokens: s[1]! * 1000,
- cache_read_tokens: s[2]! * 1000,
- cache_write_tokens: s[3]! * 1000,
-}));
-
-
-/* Heatmap color helper — same as real ActivityHeatmap */
-function getHeatmapColor(level: number): string {
- if (level === 0) return "var(--color-muted)";
- const opacities = ["25%", "45%", "68%", "90%"];
- return `color-mix(in oklch, var(--color-foreground) ${opacities[level - 1]}, transparent)`;
-}
-
-/* Generate heatmap cells — simplified version of real ActivityHeatmap */
-function buildHeatmapCells() {
- const WEEKS = 13;
- const cells: { week: number; day: number; level: number; date: string }[] = [];
- const today = new Date();
- const todayDay = today.getDay();
- const startOffset = todayDay + (WEEKS - 1) * 7;
- // Deterministic pseudo-random sequence based on cell index
- const seed = [3, 1, 4, 2, 0, 3, 2, 4, 1, 3, 0, 2, 4, 1, 3, 2, 0, 4, 1, 3];
-
- for (let i = 0; i <= startOffset; i++) {
- const d = new Date(today);
- d.setDate(today.getDate() - (startOffset - i));
- const week = Math.floor(i / 7);
- const day = d.getDay();
- // Weekends (0=Sun, 6=Sat) get lower activity
- const isWeekend = day === 0 || day === 6;
- const level = isWeekend
- ? seed[i % seed.length]! > 2 ? 1 : 0
- : seed[i % seed.length]!;
- cells.push({ week, day, level, date: d.toISOString().slice(0, 10) });
- }
- return cells;
-}
-
-function formatTokens(n: number): string {
- if (n >= 1_000_000) return `${(n / 1_000_000).toFixed(1)}M`;
- if (n >= 1_000) return `${(n / 1_000).toFixed(1)}K`;
- return n.toLocaleString();
-}
-
-function DailyCostBars({ data }: { data: typeof mockUsageData }) {
- const costs = data.map(
- (d) =>
- (d.input_tokens * 3 +
- d.output_tokens * 15 +
- d.cache_read_tokens * 0.3 +
- d.cache_write_tokens * 3.75) /
- 1_000_000,
- );
- const maxCost = Math.max(...costs);
- const barW = 100 / data.length;
- const chartH = 64;
- return (
- <svg viewBox={`0 0 ${data.length * 10} ${chartH}`} className="h-[72px] w-full" preserveAspectRatio="none">
- {costs.map((cost, i) => {
- const h = maxCost > 0 ? (cost / maxCost) * (chartH - 4) : 0;
- return (
- <rect
- key={data[i]!.date}
- x={i * 10 + 1}
- y={chartH - Math.max(h, 2)}
- width={8}
- height={Math.max(h, 2)}
- rx={1}
- fill="var(--color-chart-1)"
- />
- );
- })}
- </svg>
- );
-}
-
-function RuntimesVisual() {
- const [selectedRuntime, setSelectedRuntime] = useState(0);
- const [timeRange, setTimeRange] = useState<"7d" | "30d" | "90d">("30d");
- const [heatmapCells, setHeatmapCells] = useState<ReturnType<typeof buildHeatmapCells>>([]);
-
- useEffect(() => {
- setHeatmapCells(buildHeatmapCells());
- }, []);
-
- const totals = mockUsageData.reduce(
- (acc, u) => ({
- input: acc.input + u.input_tokens,
- output: acc.output + u.output_tokens,
- cacheRead: acc.cacheRead + u.cache_read_tokens,
- cacheWrite: acc.cacheWrite + u.cache_write_tokens,
- }),
- { input: 0, output: 0, cacheRead: 0, cacheWrite: 0 },
- );
-
- const CELL_SIZE = 10;
- const CELL_GAP = 2;
- const WEEKS = 13;
- const labelWidth = 24;
- const svgWidth = labelWidth + WEEKS * (CELL_SIZE + CELL_GAP);
- const svgHeight = 12 + 7 * (CELL_SIZE + CELL_GAP);
-
- return (
- <div className="relative aspect-video overflow-hidden rounded-lg border bg-background text-foreground shadow-2xl">
- <div className="flex h-full">
- {/* Runtime list */}
- <div className="w-[200px] shrink-0 border-r flex flex-col">
- <div className="flex items-center justify-between border-b px-3 py-2">
- <span className="text-caption font-semibold">Runtimes</span>
- </div>
- <div className="flex-1 overflow-hidden">
- {mockRuntimeList.map((rt, i) => (
- <button
- type="button"
- key={rt.name}
- className={cn(
- "flex w-full items-center gap-2.5 px-3 py-2.5 transition-colors",
- i === selectedRuntime ? "bg-accent" : "hover:bg-accent/50",
- )}
- onClick={() => setSelectedRuntime(i)}
- >
- <div className="flex h-8 w-8 shrink-0 items-center justify-center rounded-lg bg-muted">
- {rt.mode === "cloud" ? (
- <Cloud className="h-4 w-4 text-muted-foreground" />
- ) : (
- <Monitor className="h-4 w-4 text-muted-foreground" />
- )}
- </div>
- <div className="min-w-0 flex-1">
- <div className="flex items-center gap-1.5">
- <span className="truncate text-caption font-medium">{rt.name}</span>
- </div>
- <div className="flex items-center gap-1.5">
- <span className={cn("h-1.5 w-1.5 rounded-full", rt.status === "online" ? "bg-success" : "bg-muted-foreground/40")} />
- <span className="text-micro text-muted-foreground">{rt.status}</span>
- </div>
- </div>
- </button>
- ))}
- </div>
- </div>
-
- {/* Detail panel */}
- <div className="flex-1 flex flex-col min-w-0">
- {/* Header */}
- <div className="flex items-center gap-2.5 border-b px-4 py-2.5">
- <div className="flex h-7 w-7 shrink-0 items-center justify-center rounded-md bg-muted">
- {mockRuntimeList[selectedRuntime]?.mode === "cloud" ? (
- <Cloud className="h-4 w-4 text-muted-foreground" />
- ) : (
- <Monitor className="h-4 w-4 text-muted-foreground" />
- )}
- </div>
- <span className="text-body font-semibold">{mockRuntimeList[selectedRuntime]?.name}</span>
- <div className="flex items-center gap-1.5">
- <span className={cn("h-1.5 w-1.5 rounded-full", mockRuntimeList[selectedRuntime]?.status === "online" ? "bg-success" : "bg-muted-foreground/40")} />
- <span className="text-caption text-muted-foreground">{mockRuntimeList[selectedRuntime]?.status}</span>
- </div>
- <span className="text-caption text-muted-foreground">{mockRuntimeList[selectedRuntime]?.device}</span>
- </div>
-
- {/* Usage content */}
- <div className="flex-1 overflow-hidden p-4 space-y-3">
- {/* Time range + Token cards */}
- <div className="flex items-center justify-between">
- <div className="flex items-center gap-1">
- {(["7d", "30d", "90d"] as const).map((range) => (
- <button
- type="button"
- key={range}
- onClick={() => setTimeRange(range)}
- className={cn(
- "rounded-md px-2 py-0.5 text-micro font-medium transition-colors",
- timeRange === range
- ? "bg-primary text-primary-foreground"
- : "text-muted-foreground hover:bg-accent",
- )}
- >
- {range}
- </button>
- ))}
- </div>
- </div>
-
- {/* Token summary cards — same as real TokenCard */}
- <div className="grid grid-cols-4 gap-2">
- {[
- { label: "Input", value: formatTokens(totals.input) },
- { label: "Output", value: formatTokens(totals.output) },
- { label: "Cache Read", value: formatTokens(totals.cacheRead) },
- { label: "Cache Write", value: formatTokens(totals.cacheWrite) },
- ].map((card) => (
- <div key={card.label} className="rounded-lg border px-3 py-2">
- <div className="text-micro text-muted-foreground">{card.label}</div>
- <div className="mt-0.5 text-body font-semibold tabular-nums">{card.value}</div>
- </div>
- ))}
- </div>
-
- {/* Charts row — Heatmap + Hourly bar */}
- <div className="grid grid-cols-2 gap-3">
- {/* Activity Heatmap — mirrors real ActivityHeatmap */}
- <div className="rounded-lg border p-3">
- <h4 className="text-micro font-medium text-muted-foreground mb-2">Activity</h4>
- <div className="overflow-x-auto">
- <svg width={svgWidth} height={svgHeight} className="block">
- {["", "Mon", "", "Wed", "", "Fri", ""].map((label, i) =>
- label ? (
- <text key={i} x={0} y={12 + i * (CELL_SIZE + CELL_GAP) + CELL_SIZE - 2} className="fill-muted-foreground" fontSize={8}>
- {label}
- </text>
- ) : null,
- )}
- {heatmapCells.map((c, i) => (
- <rect
- key={i}
- x={labelWidth + c.week * (CELL_SIZE + CELL_GAP)}
- y={12 + c.day * (CELL_SIZE + CELL_GAP)}
- width={CELL_SIZE}
- height={CELL_SIZE}
- rx={2}
- fill={getHeatmapColor(c.level)}
- />
- ))}
- </svg>
- </div>
- <div className="mt-1.5 flex items-center justify-end gap-1 text-micro text-muted-foreground">
- <span>Less</span>
- {[0, 1, 2, 3, 4].map((level) => (
- <div key={level} className="h-[8px] w-[8px] rounded-[2px]" style={{ backgroundColor: getHeatmapColor(level) }} />
- ))}
- <span>More</span>
- </div>
- </div>
-
- {/* Daily Cost — SVG bar chart mirroring real DailyCostChart */}
- <div className="rounded-lg border p-3">
- <h4 className="text-micro font-medium text-muted-foreground mb-2">Daily Cost</h4>
- <DailyCostBars data={mockUsageData.slice(-14)} />
- <div className="mt-1.5 flex justify-between text-micro text-muted-foreground">
- <span>Mar 18</span><span>Mar 25</span><span>Mar 31</span>
- </div>
- </div>
- </div>
- </div>
- </div>
- </div>
- </div>
- );
-}
-
-function buildFeatures(t: LandingDict) {
- const keys = ["teammates", "autonomous", "skills", "runtimes"] as const;
- const visuals = [TeammatesVisual, AutonomousVisual, SkillsVisual, RuntimesVisual];
- const bgImages = [undefined, "/images/feature-bg-2.webp", "/images/feature-bg-3.webp", "/images/feature-bg-4.webp"];
-
- return keys.map((key, i) => ({
- ...t.features[key],
- visual: visuals[i]!,
- bgImage: bgImages[i],
- }));
-}
-
-export function FeaturesSection() {
- const { t } = useLocale();
- const features = buildFeatures(t);
- const [activeIndex, setActiveIndex] = useState(0);
- const panelRefs = useRef<(HTMLDivElement | null)[]>([]);
-
- useEffect(() => {
- const observer = new IntersectionObserver(
- (entries) => {
- for (const entry of entries) {
- if (entry.isIntersecting) {
- const idx = Number(entry.target.getAttribute("data-index"));
- if (!isNaN(idx)) setActiveIndex(idx);
- }
- }
- },
- { rootMargin: "-20% 0px -60% 0px", threshold: 0 },
- );
-
- panelRefs.current.forEach((el) => {
- if (el) observer.observe(el);
- });
-
- return () => observer.disconnect();
- }, []);
-
- const scrollToPanel = (index: number) => {
- panelRefs.current[index]?.scrollIntoView({
- behavior: "smooth",
- block: "start",
- });
- };
-
- return (
- <section id="features" className="bg-white text-[#0a0d12]">
- <div className="mx-auto max-w-[1320px] px-4 sm:px-6 lg:px-8">
- <div className="relative lg:flex lg:gap-20">
- {/* Sticky left nav */}
- <nav className="hidden lg:block lg:w-[180px] lg:shrink-0">
- <div className="sticky top-28 flex flex-col gap-0 py-28">
- {features.map((f, i) => (
- <button
- type="button"
- key={f.label}
- onClick={() => scrollToPanel(i)}
- className={cn(
- "group flex items-center gap-3 rounded-lg px-4 py-3 text-left text-micro font-semibold tracking-[0.12em] transition-colors",
- i === activeIndex
- ? "text-[#0a0d12]"
- : "text-[#0a0d12]/36 hover:text-[#0a0d12]/60",
- )}
- >
- <span
- className={cn(
- "size-2 shrink-0 rounded-full transition-colors",
- i === activeIndex ? "bg-[#0a0d12]" : "bg-transparent",
- )}
- />
- {f.label}
- </button>
- ))}
- </div>
- </nav>
-
- {/* Scrollable feature panels */}
- <div className="flex-1">
- {features.map((feature, i) => (
- <div
- key={feature.label}
- ref={(el) => {
- panelRefs.current[i] = el;
- }}
- data-index={i}
- className={cn(
- "py-20 lg:py-28",
- i < features.length - 1 && "border-b border-[#0a0d12]/8",
- )}
- >
- {/* Title + description */}
- <h2 className="landing-serif text-[2.6rem] leading-[1.05] tracking-[-0.03em] text-[#0a0d12] sm:text-[3.4rem] lg:text-[4.2rem]">
- {feature.title}
- </h2>
- <p className="mt-5 max-w-[640px] text-body-lg leading-7 text-[#0a0d12]/60 sm:text-title-sm">
- {feature.description}
- </p>
-
- {/* Visual */}
- <div className="mt-14 sm:mt-18">
- {feature.visual ? (
- <div className="relative overflow-hidden rounded-sm">
- <Image
- src={feature.bgImage ?? "/images/feature-bg.webp"}
- alt=""
- fill
- className="object-cover object-center"
- sizes="(max-width: 1320px) 100vw, 1320px"
- quality={80}
- />
- <div className="relative px-4 py-8 sm:px-6 sm:py-12 lg:px-8 lg:py-16">
- <feature.visual />
- </div>
- </div>
- ) : (
- <div className="relative overflow-hidden border border-[#0a0d12]/8 bg-[#f5f5f5]">
- <div className="aspect-[16/9] w-full" />
- <div className="absolute inset-0 flex items-center justify-center">
- <div className="flex flex-col items-center gap-4 text-center">
- <div className="grid size-14 place-items-center rounded-2xl border border-[#0a0d12]/8 bg-white shadow-sm">
- <ImageIcon className="size-6 text-[#0a0d12]/30" />
- </div>
- <p className="text-label text-[#0a0d12]/36">
- {feature.label.toLowerCase()} visual
- </p>
- </div>
- </div>
- </div>
- )}
- </div>
-
- {/* Feature cards */}
- <div className="mt-14 grid gap-8 sm:mt-18 md:grid-cols-3 md:gap-10">
- {feature.cards.map((card) => (
- <div key={card.title}>
- <h3 className="text-body-lg font-semibold leading-snug text-[#0a0d12] sm:text-title-sm">
- {card.title}
- </h3>
- <p className="mt-2.5 text-body leading-[1.7] text-[#0a0d12]/56 sm:text-body-lg">
- {card.description}
- </p>
- </div>
- ))}
- </div>
- </div>
- ))}
- </div>
- </div>
- </div>
- </section>
- );
-}
diff --git a/apps/web/features/landing/components/how-it-works-section.tsx b/apps/web/features/landing/components/how-it-works-section.tsx
deleted file mode 100644
index 66a78966df..0000000000
--- a/apps/web/features/landing/components/how-it-works-section.tsx
+++ /dev/null
@@ -1,68 +0,0 @@
-"use client";
-
-import Link from "next/link";
-import { useAuthStore } from "@multica/core/auth";
-import { docsHrefForLocale, useLocale } from "../i18n";
-import { useDashboardCtaHref } from "../utils/use-dashboard-cta";
-import { GitHubMark, githubUrl, heroButtonClassName } from "./shared";
-
-export function HowItWorksSection() {
- const { t, locale } = useLocale();
- const user = useAuthStore((s) => s.user);
- const ctaHref = useDashboardCtaHref();
-
- return (
- <section id="how-it-works" className="bg-[#05070b] text-white">
- <div className="mx-auto max-w-[1320px] px-4 py-24 sm:px-6 sm:py-32 lg:px-8 lg:py-40">
- <p className="text-micro font-semibold uppercase tracking-[0.16em] text-white/40">
- {t.howItWorks.label}
- </p>
- <h2 className="mt-4 landing-serif text-[2.6rem] leading-[1.05] tracking-[-0.03em] sm:text-[3.4rem] lg:text-[4.2rem]">
- {t.howItWorks.headlineMain}
- <br />
- <span className="text-white/40">{t.howItWorks.headlineFaded}</span>
- </h2>
-
- <div className="mt-20 grid gap-px overflow-hidden rounded-2xl border border-white/10 bg-white/10 sm:grid-cols-2 lg:grid-cols-4">
- {t.howItWorks.steps.map((step, i) => (
- <div
- key={i}
- className="flex flex-col bg-[#05070b] p-8 lg:p-10"
- >
- <span className="text-label font-semibold tabular-nums text-white/28">
- {String(i + 1).padStart(2, "0")}
- </span>
- <h3 className="mt-4 text-title font-semibold leading-snug text-white sm:text-title">
- {step.title}
- </h3>
- <p className="mt-3 text-body leading-[1.7] text-white/50 sm:text-body-lg">
- {step.description}
- </p>
- </div>
- ))}
- </div>
-
- <div className="mt-14 flex flex-wrap items-center gap-4">
- <Link href={ctaHref} className={heroButtonClassName("solid")}>
- {user ? t.header.dashboard : t.howItWorks.cta}
- </Link>
- <Link
- href={docsHrefForLocale(locale)}
- className={heroButtonClassName("ghost")}
- >
- {t.howItWorks.ctaDocs}
- </Link>
- <Link
- href={githubUrl}
- target="_blank"
- rel="noreferrer"
- className={heroButtonClassName("ghost")}
- >
- <GitHubMark className="size-4" />
- {t.howItWorks.ctaGithub}
- </Link>
- </div>
- </div>
- </section>
- );
-}
diff --git a/apps/web/features/landing/components/inline-links.test.ts b/apps/web/features/landing/components/inline-links.test.ts
index 6038acec2f..48f3faf9f4 100644
--- a/apps/web/features/landing/components/inline-links.test.ts
+++ b/apps/web/features/landing/components/inline-links.test.ts
@@ -29,7 +29,7 @@ describe("parseInlineLinks", () => {
describe("trust pages copy", () => {
const dicts = (["en", "zh-Hans", "ja", "ko"] as const).map((locale) =>
- createLandingDict(locale, true),
+ createLandingDict(locale),
);
it("links the privacy consent to the privacy policy in every locale", () => {
diff --git a/apps/web/features/landing/components/inline-links.tsx b/apps/web/features/landing/components/inline-links.tsx
index 78efa06fe1..245353c35b 100644
--- a/apps/web/features/landing/components/inline-links.tsx
+++ b/apps/web/features/landing/components/inline-links.tsx
@@ -1,5 +1,5 @@
import type { ReactNode } from "react";
-import Link from "next/link";
+import Link from "@/features/landing/components/landing-link";
const LINK_PATTERN = /\[([^\]]+)\]\(([^)\s]+)\)/g;
diff --git a/apps/web/features/landing/components/landing-footer.tsx b/apps/web/features/landing/components/landing-footer.tsx
deleted file mode 100644
index b5551d0d50..0000000000
--- a/apps/web/features/landing/components/landing-footer.tsx
+++ /dev/null
@@ -1,136 +0,0 @@
-"use client";
-
-import Link from "next/link";
-import { MulticaWordmark } from "@multica/ui/components/common/multica-wordmark";
-import { cn } from "@multica/ui/lib/utils";
-import { useAuthStore } from "@multica/core/auth";
-import {
- XMark,
- GitHubMark,
- DiscordMark,
- githubUrl,
- twitterUrl,
- discordUrl,
-} from "./shared";
-import { useLocale, locales, localeLabels } from "../i18n";
-import { useDashboardCtaHref } from "../utils/use-dashboard-cta";
-
-export function LandingFooter() {
- const { t, locale, setLocale } = useLocale();
- const user = useAuthStore((s) => s.user);
- const ctaHref = useDashboardCtaHref();
- const groups = Object.values(t.footer.groups);
-
- return (
- <footer className="bg-[#0a0d12] text-white">
- <div className="mx-auto max-w-[1320px] px-4 sm:px-6 lg:px-8">
- {/* Top: CTA + link columns */}
- <div className="flex flex-col gap-12 border-b border-white/10 py-16 sm:py-20 lg:flex-row lg:gap-20">
- {/* Left — newsletter / CTA */}
- <div className="lg:w-[340px] lg:shrink-0">
- <Link href="#product" className="flex items-center">
- <MulticaWordmark className="h-6 text-white" />
- </Link>
- <p className="mt-4 max-w-[300px] text-body leading-[1.7] text-white/50 sm:text-body-lg">
- {t.footer.tagline}
- </p>
- <div className="mt-4 flex items-center gap-3">
- <Link
- href={twitterUrl}
- target="_blank"
- rel="noreferrer"
- className="text-white/40 transition-colors hover:text-white"
- >
- <XMark className="size-4" />
- </Link>
- <Link
- href={githubUrl}
- target="_blank"
- rel="noreferrer"
- className="text-white/40 transition-colors hover:text-white"
- >
- <GitHubMark className="size-4" />
- </Link>
- <Link
- href={discordUrl}
- target="_blank"
- rel="noreferrer"
- aria-label="Discord"
- className="text-white/40 transition-colors hover:text-white"
- >
- <DiscordMark className="size-4" />
- </Link>
- </div>
- <div className="mt-6">
- <Link
- href={ctaHref}
- className="inline-flex items-center justify-center rounded-(--landing-radius-button) bg-white px-5 py-2.5 text-label font-semibold text-[#0a0d12] transition-colors hover:bg-white/88"
- >
- {user ? t.header.dashboard : t.footer.cta}
- </Link>
- </div>
- </div>
-
- {/* Right — link columns */}
- <div className="grid flex-1 grid-cols-2 gap-8 sm:grid-cols-4">
- {groups.map((group) => (
- <div key={group.label}>
- <h4 className="text-caption font-semibold uppercase tracking-[0.1em] text-white/40">
- {group.label}
- </h4>
- <ul className="mt-4 flex flex-col gap-2.5">
- {group.links.map((link) => (
- <li key={link.label}>
- <Link
- href={link.href}
- {...(link.href.startsWith("http")
- ? { target: "_blank", rel: "noreferrer" }
- : {})}
- className="text-body text-white/50 transition-colors hover:text-white"
- >
- {link.label}
- </Link>
- </li>
- ))}
- </ul>
- </div>
- ))}
- </div>
- </div>
-
- {/* Bottom: copyright + language switcher */}
- <div className="flex items-center justify-between py-6">
- <p className="text-label text-white/36">
- {t.footer.copyright.replace(
- "{year}",
- String(new Date().getFullYear()),
- )}
- </p>
- <div className="flex items-center">
- {locales.map((l, i) => (
- <button
- type="button"
- key={l}
- onClick={() => setLocale(l)}
- className={cn(
- "px-1.5 py-1 text-caption font-medium transition-colors",
- l === locale
- ? "text-white/70"
- : "text-white/30 hover:text-white/50",
- i > 0 && "border-l border-white/16",
- )}
- >
- {localeLabels[l]}
- </button>
- ))}
- </div>
- </div>
-
- {/* Giant logo */}
- <div className="relative overflow-hidden pb-4">
- <MulticaWordmark className="h-auto w-full text-white" />
- </div>
- </div>
- </footer>
- );
-}
diff --git a/apps/web/features/landing/components/landing-header.tsx b/apps/web/features/landing/components/landing-header.tsx
deleted file mode 100644
index 39e23ee5e8..0000000000
--- a/apps/web/features/landing/components/landing-header.tsx
+++ /dev/null
@@ -1,183 +0,0 @@
-"use client";
-
-import { useState } from "react";
-import Link from "next/link";
-import { Menu, X } from "@multica/ui/icons";
-import { MulticaWordmark } from "@multica/ui/components/common/multica-wordmark";
-import { cn } from "@multica/ui/lib/utils";
-import { useAuthStore } from "@multica/core/auth";
-import { docsHrefForLocale, useLocale } from "../i18n";
-import { useDashboardCtaHref } from "../utils/use-dashboard-cta";
-import { formatStarCount, useGithubStars } from "../utils/use-github-stars";
-import { GitHubMark, githubUrl, headerButtonClassName } from "./shared";
-
-export function LandingHeader({
- variant = "dark",
-}: {
- variant?: "dark" | "light";
-}) {
- const { t, locale } = useLocale();
- const user = useAuthStore((s) => s.user);
- const stars = useGithubStars();
- const starsLabel = stars != null ? formatStarCount(stars) : null;
- const [isMenuOpen, setIsMenuOpen] = useState(false);
- const docsHref = docsHrefForLocale(locale);
- const navLinks = [
- { href: "/usecases", label: t.header.useCases },
- { href: docsHref, label: t.header.docs },
- { href: "/changelog", label: t.header.changelog },
- ];
- const ctaHref = useDashboardCtaHref();
- const ctaLabel = user ? t.header.dashboard : t.header.cta;
-
- return (
- <header
- className={cn(
- "relative inset-x-0 top-0 z-30",
- variant === "dark"
- ? "absolute bg-transparent"
- : "border-b border-[#0a0d12]/8 bg-white",
- )}
- >
- <div className="mx-auto flex h-[76px] max-w-[1320px] items-center justify-between px-4 sm:px-6 lg:px-8">
- <div className="flex min-w-0 items-center gap-6 lg:gap-8">
- <Link href="/" className="flex shrink-0 items-center">
- <MulticaWordmark
- className={cn(
- "h-6 sm:h-[26px]",
- variant === "dark" ? "text-white" : "text-[#0a0d12]",
- )}
- />
- </Link>
-
- <nav
- aria-label={t.header.navigation}
- className="hidden items-center gap-1 md:flex"
- >
- {navLinks.map((link) => (
- <Link
- key={link.href}
- href={link.href}
- className={navLinkClassName(variant)}
- >
- {link.label}
- </Link>
- ))}
- </nav>
- </div>
-
- <div className="flex shrink-0 items-center gap-2 sm:gap-2.5">
- <button
- type="button"
- aria-label={isMenuOpen ? t.header.closeMenu : t.header.openMenu}
- aria-expanded={isMenuOpen}
- onClick={() => setIsMenuOpen((open) => !open)}
- className={cn(
- headerButtonClassName("ghost", variant),
- "px-3 md:hidden",
- )}
- >
- {isMenuOpen ? (
- <X className="size-4" aria-hidden />
- ) : (
- <Menu className="size-4" aria-hidden />
- )}
- </button>
- <Link
- href={githubUrl}
- target="_blank"
- rel="noreferrer"
- className={cn(
- headerButtonClassName("ghost", variant),
- "hidden lg:inline-flex",
- )}
- >
- <GitHubMark className="size-3.5" />
- {t.header.github}
- {starsLabel ? <GitHubStarsBadge label={starsLabel} /> : null}
- </Link>
- <Link
- href={ctaHref}
- className={headerButtonClassName("solid", variant)}
- >
- {ctaLabel}
- </Link>
- </div>
- </div>
-
- {isMenuOpen ? (
- <div
- className={cn(
- "absolute left-4 right-4 top-[calc(100%+8px)] z-50 rounded-(--landing-radius-menu) border p-2 shadow-[0_18px_60px_rgba(0,0,0,0.18)] backdrop-blur-xl md:hidden",
- variant === "dark"
- ? "border-white/14 bg-[#070a10]/95 text-white"
- : "border-[#0a0d12]/10 bg-white text-[#0a0d12]",
- )}
- >
- <nav aria-label={t.header.navigation} className="flex flex-col">
- {navLinks.map((link) => (
- <Link
- key={link.href}
- href={link.href}
- onClick={() => setIsMenuOpen(false)}
- className={mobileNavLinkClassName(variant)}
- >
- {link.label}
- </Link>
- ))}
- </nav>
- <div
- className={cn(
- "mt-2 border-t pt-2",
- variant === "dark" ? "border-white/10" : "border-[#0a0d12]/8",
- )}
- >
- <Link
- href={githubUrl}
- target="_blank"
- rel="noreferrer"
- onClick={() => setIsMenuOpen(false)}
- className={mobileNavLinkClassName(variant)}
- >
- <GitHubMark className="size-3.5" />
- {t.header.github}
- {starsLabel ? <GitHubStarsBadge label={starsLabel} /> : null}
- </Link>
- </div>
- </div>
- ) : null}
- </header>
- );
-}
-
-/** Star-count segment appended to the header's GitHub button — a faint
- * divider and the compact count (e.g. "37.6k"). No star glyph: in the GitHub
- * button context the number reads as the star count on its own. Inherits the
- * button's text color so it adapts to both the dark and light header
- * variants. */
-function GitHubStarsBadge({ label }: { label: string }) {
- return (
- <span className="inline-flex items-center gap-1.5 tabular-nums">
- <span aria-hidden className="h-3 w-px bg-current opacity-25" />
- {label}
- </span>
- );
-}
-
-function navLinkClassName(variant: "dark" | "light") {
- return cn(
- "inline-flex h-9 items-center rounded-(--landing-radius-nav-item) px-3 text-label font-medium transition-colors",
- variant === "dark"
- ? "text-white/72 hover:bg-white/8 hover:text-white"
- : "text-[#0a0d12]/62 hover:bg-[#0a0d12]/5 hover:text-[#0a0d12]",
- );
-}
-
-function mobileNavLinkClassName(variant: "dark" | "light") {
- return cn(
- "flex min-h-11 items-center gap-2 rounded-(--landing-radius-menu-item) px-3 text-body font-medium transition-colors",
- variant === "dark"
- ? "text-white/76 hover:bg-white/8 hover:text-white"
- : "text-[#0a0d12]/68 hover:bg-[#0a0d12]/5 hover:text-[#0a0d12]",
- );
-}
diff --git a/apps/web/features/landing/components/landing-hero.tsx b/apps/web/features/landing/components/landing-hero.tsx
deleted file mode 100644
index 44edf11f1b..0000000000
--- a/apps/web/features/landing/components/landing-hero.tsx
+++ /dev/null
@@ -1,151 +0,0 @@
-"use client";
-
-import Image from "next/image";
-import Link from "next/link";
-import { ArrowRight, Download } from "@multica/ui/icons";
-import { useAuthStore } from "@multica/core/auth";
-import { docsHrefForLocale, useLocale } from "../i18n";
-import { useDashboardCtaHref } from "../utils/use-dashboard-cta";
-import { HERO_PROVIDERS } from "./provider-marks";
-import { heroButtonClassName } from "./shared";
-
-export function LandingHero() {
- const { t, locale } = useLocale();
- const user = useAuthStore((s) => s.user);
- const ctaHref = useDashboardCtaHref();
-
- return (
- <div className="relative min-h-full overflow-hidden bg-[#05070b] text-white">
- <LandingBackdrop />
-
- <main className="relative z-10">
- <section
- id="product"
- className="mx-auto max-w-[1320px] px-4 pb-16 pt-28 sm:px-6 sm:pt-32 lg:px-8 lg:pb-24 lg:pt-36"
- >
- <div className="mx-auto max-w-[1120px] text-center">
- <h1 className="landing-serif text-[3.65rem] leading-[0.93] tracking-[-0.038em] text-white drop-shadow-[0_10px_34px_rgba(0,0,0,0.32)] sm:text-[4.85rem] lg:text-[6.4rem]">
- {t.hero.headlineLine1}
- <br />
- {t.hero.headlineLine2}
- </h1>
-
- <p className="mx-auto mt-7 max-w-[820px] text-body-lg leading-7 text-white/84 sm:text-title">
- {t.hero.subheading}
- </p>
-
- <div className="mt-8 flex flex-wrap items-center justify-center gap-3">
- <Link href={ctaHref} className={heroButtonClassName("solid")}>
- {user ? t.header.dashboard : t.hero.cta}
- </Link>
- <Link
- href="/download"
- className={heroButtonClassName("ghost")}
- >
- <Download className="size-4" aria-hidden />
- {t.hero.downloadDesktop}
- </Link>
- <Link
- href="/contact-sales"
- className="group inline-flex items-center justify-center gap-1.5 rounded-(--landing-radius-action) px-3 py-3 text-body font-semibold text-white/80 transition-colors hover:text-white"
- >
- {t.hero.talkToSales}
- <ArrowRight
- className="size-4 transition-transform group-hover:translate-x-0.5"
- aria-hidden
- />
- </Link>
- </div>
- </div>
-
- <WorksWithRow
- label={t.hero.worksWith}
- href={`${docsHrefForLocale(locale)}/providers`}
- />
-
- <div id="preview" className="mt-10 sm:mt-12">
- <ProductImage alt={t.hero.imageAlt} />
- </div>
- </section>
- </main>
- </div>
- );
-}
-
-/**
- * The runtime catalog is far longer than this row (see `/docs/providers`), so
- * the marks are a sample and the label carries the full claim — that split is
- * what keeps the row honest without growing it every time a runtime lands.
- */
-function WorksWithRow({ label, href }: { label: string; href: string }) {
- return (
- <div className="mt-12 flex flex-col items-center gap-6">
- <Link
- href={href}
- className="group inline-flex items-center gap-1.5 text-body text-white/60 transition-colors hover:text-white"
- >
- {label}
- <ArrowRight
- className="size-3.5 transition-transform group-hover:translate-x-0.5"
- aria-hidden
- />
- </Link>
-
- {/*
- Explicit column counts, not free wrapping: with `flex-wrap` the 14 marks
- broke 13 + 1 around 834px and 12 + 2 around 768px, and a single orphan
- on the second row reads as a bug rather than a layout. Fourteen columns
- once there is room for one row, seven — an exact 7 x 2 — below that. The
- columns carry the spacing, so the marks stay evenly pitched at every
- width and the grid still shrinks below its max width on a narrow phone.
- */}
- <ul className="grid w-full max-w-[392px] grid-cols-7 items-center justify-items-center gap-y-6 sm:max-w-[532px] lg:max-w-[896px] lg:grid-cols-14">
- {HERO_PROVIDERS.map(({ name, Mark, size }) => (
- <li
- key={name}
- title={name}
- className="flex items-center text-white opacity-70 drop-shadow-[0_1px_6px_rgba(0,0,0,0.28)] transition-opacity duration-200 hover:opacity-100"
- >
- <Mark className={size ?? "size-6"} />
- <span className="sr-only">{name}</span>
- </li>
- ))}
- </ul>
- </div>
- );
-}
-
-function LandingBackdrop() {
- return (
- <div className="pointer-events-none absolute inset-0">
- {/* This artwork is above the fold, so preload it alongside the product preview. */}
- <Image
- src="/images/landing-bg.webp"
- alt=""
- fill
- preload
- className="object-cover object-center"
- sizes="100vw"
- />
- </div>
- );
-}
-
-function ProductImage({ alt }: { alt: string }) {
- return (
- <div>
- <div className="relative overflow-hidden border border-white/14">
- <Image
- src="/images/landing-hero.webp"
- alt={alt}
- width={2640}
- height={1781}
- preload
- className="block h-auto w-full"
- sizes="(max-width: 1320px) 100vw, 1320px"
- quality={85}
- />
- </div>
- </div>
- );
-}
diff --git a/apps/web/features/landing/components/landing-link.tsx b/apps/web/features/landing/components/landing-link.tsx
new file mode 100644
index 0000000000..f62e7a929e
--- /dev/null
+++ b/apps/web/features/landing/components/landing-link.tsx
@@ -0,0 +1,16 @@
+"use client";
+
+import NextLink from "next/link";
+import type { ComponentProps } from "react";
+import { localizeHref } from "@/lib/landing-locale-path";
+import { useOptionalLocale } from "../i18n/context";
+
+/**
+ * `next/link` for the marketing site: links to marketing pages stay in the
+ * language being read (`/download` → `/zh/download`); links to the app, docs
+ * and other sites pass through.
+ */
+export default function Link({ href, ...props }: ComponentProps<typeof NextLink>) {
+ const locale = useOptionalLocale();
+ return <NextLink href={locale && typeof href === "string" ? localizeHref(locale, href) : href} {...props} />;
+}
diff --git a/apps/web/features/landing/components/multica-landing.tsx b/apps/web/features/landing/components/multica-landing.tsx
deleted file mode 100644
index a608a7dfef..0000000000
--- a/apps/web/features/landing/components/multica-landing.tsx
+++ /dev/null
@@ -1,26 +0,0 @@
-"use client";
-
-import { LandingHeader } from "./landing-header";
-import { LandingHero } from "./landing-hero";
-import { FeaturesSection } from "./features-section";
-import { HowItWorksSection } from "./how-it-works-section";
-import { OpenSourceSection } from "./open-source-section";
-import { FAQSection } from "./faq-section";
-import { LandingFooter } from "./landing-footer";
-
-export function MulticaLanding() {
- return (
- <>
- <div className="relative">
- <LandingHeader />
- <LandingHero />
- </div>
-
- <FeaturesSection />
- <HowItWorksSection />
- <OpenSourceSection />
- <FAQSection />
- <LandingFooter />
- </>
- );
-}
diff --git a/apps/web/features/landing/components/open-source-section.tsx b/apps/web/features/landing/components/open-source-section.tsx
deleted file mode 100644
index f0613105a9..0000000000
--- a/apps/web/features/landing/components/open-source-section.tsx
+++ /dev/null
@@ -1,65 +0,0 @@
-"use client";
-
-import Link from "next/link";
-import { useLocale } from "../i18n";
-import { GitHubMark, githubUrl } from "./shared";
-
-export function OpenSourceSection() {
- const { t } = useLocale();
-
- return (
- <section id="open-source" className="bg-white text-[#0a0d12]">
- <div className="mx-auto max-w-[1320px] px-4 py-24 sm:px-6 sm:py-32 lg:px-8 lg:py-40">
- <div className="flex flex-col gap-16 lg:flex-row lg:items-start lg:gap-24">
- {/* Left column — heading + CTA */}
- <div className="lg:w-[480px] lg:shrink-0">
- <p className="text-micro font-semibold uppercase tracking-[0.16em] text-[#0a0d12]/40">
- {t.openSource.label}
- </p>
- <h2 className="mt-4 landing-serif text-[2.6rem] leading-[1.05] tracking-[-0.03em] sm:text-[3.4rem] lg:text-[4.2rem]">
- {t.openSource.headlineLine1}
- <br />
- {t.openSource.headlineLine2}
- </h2>
- <p className="mt-6 max-w-[420px] text-body-lg leading-7 text-[#0a0d12]/60 sm:text-title-sm">
- {t.openSource.description}
- </p>
- <div className="mt-8 flex flex-wrap items-center gap-3">
- <Link
- href={githubUrl}
- target="_blank"
- rel="noreferrer"
- className="inline-flex items-center justify-center gap-2.5 rounded-(--landing-radius-action) bg-[#0a0d12] px-5 py-3 text-body font-semibold text-white transition-colors hover:bg-[#0a0d12]/88"
- >
- <GitHubMark className="size-4" />
- {t.openSource.cta}
- </Link>
- <Link
- href="/licensing"
- className="inline-flex items-center justify-center rounded-(--landing-radius-action) px-4 py-3 text-body font-semibold text-[#0a0d12]/70 transition-colors hover:text-[#0a0d12]"
- >
- {t.openSource.licensingCta}
- </Link>
- </div>
- </div>
-
- {/* Right column — highlight grid */}
- <div className="flex-1">
- <div className="grid gap-px overflow-hidden rounded-2xl border border-[#0a0d12]/8 bg-[#0a0d12]/8 sm:grid-cols-2">
- {t.openSource.highlights.map((item) => (
- <div key={item.title} className="bg-white p-8 lg:p-10">
- <h3 className="text-title font-semibold leading-snug text-[#0a0d12] sm:text-title">
- {item.title}
- </h3>
- <p className="mt-3 text-body leading-[1.7] text-[#0a0d12]/56 sm:text-body-lg">
- {item.description}
- </p>
- </div>
- ))}
- </div>
- </div>
- </div>
- </div>
- </section>
- );
-}
diff --git a/apps/web/features/landing/components/provider-marks.tsx b/apps/web/features/landing/components/provider-marks.tsx
index cd85948145..f37d789362 100644
--- a/apps/web/features/landing/components/provider-marks.tsx
+++ b/apps/web/features/landing/components/provider-marks.tsx
@@ -1,4 +1,3 @@
-import Image from "next/image";
import { cn } from "@multica/ui/lib/utils";
import { GitHubMark } from "./shared";
@@ -159,37 +158,30 @@ function CodeBuddyMark({ className }: { className?: string }) {
);
}
-// Trae (ByteDance) — official mark. The source artwork is a flat brand-green
-// PNG on transparency, so the filter pair turns it into the same white glyph
-// the vector marks render as.
-function TraeMark({ className }: { className?: string }) {
+// Raster marks are used as an alpha mask over currentColor, so they take the
+// surrounding text colour like the vector marks do on light and dark pages.
+function MaskMark({ src, className }: { src: string; className?: string }) {
return (
- <Image
- src="/images/providers/trae.png"
- alt=""
+ <span
aria-hidden
- width={48}
- height={48}
- className={cn("brightness-0 invert", className)}
+ className={cn("inline-block bg-current", className)}
+ style={{ maskImage: `url(${src})`, maskSize: "contain", maskRepeat: "no-repeat", maskPosition: "center" }}
/>
);
}
+// Trae (ByteDance) — official mark. The source artwork is a flat brand-green
+// PNG on transparency; only its shape is used.
+function TraeMark({ className }: { className?: string }) {
+ return <MaskMark src="/images/providers/trae.png" className={className} />;
+}
+
// Hermes (Nous Research) — official mascot icon. It ships only as an opaque
// raster with no vector or single-colour variant, so this is that artwork with
-// its luminance mapped to alpha over white: the line work survives and the mark
-// stops being the one colour photo in a row of glyphs.
+// its luminance mapped to alpha: the line work survives and the mark stops
+// being the one colour photo in a row of glyphs.
function HermesMark({ className }: { className?: string }) {
- return (
- <Image
- src="/images/providers/hermes.png"
- alt=""
- aria-hidden
- width={48}
- height={48}
- className={className}
- />
- );
+ return <MaskMark src="/images/providers/hermes.png" className={className} />;
}
// Pi — official pixel-art wordmark off its near-black tile.
diff --git a/apps/web/features/landing/components/shared.tsx b/apps/web/features/landing/components/shared.tsx
index 78d799d801..e6054d71a8 100644
--- a/apps/web/features/landing/components/shared.tsx
+++ b/apps/web/features/landing/components/shared.tsx
@@ -43,42 +43,6 @@ export function XMark({ className }: { className?: string }) {
);
}
-export function ImageIcon({ className }: { className?: string }) {
- return (
- <svg
- viewBox="0 0 24 24"
- aria-hidden="true"
- className={className}
- fill="none"
- stroke="currentColor"
- strokeWidth="1.6"
- strokeLinecap="round"
- strokeLinejoin="round"
- >
- <rect x="3.5" y="5" width="17" height="14" rx="2.5" />
- <circle cx="9" cy="10" r="1.6" />
- <path d="m20.5 16-4.8-4.8a1 1 0 0 0-1.4 0L8 17.5" />
- <path d="m11.5 14.5 1.8-1.8a1 1 0 0 1 1.4 0l2.8 2.8" />
- </svg>
- );
-}
-
-export function headerButtonClassName(
- tone: "ghost" | "solid",
- variant: "dark" | "light" = "dark",
-) {
- return cn(
- "inline-flex items-center justify-center gap-2 rounded-(--landing-radius-button) px-4 py-2.5 text-label font-semibold transition-colors",
- variant === "dark"
- ? tone === "solid"
- ? "bg-white text-[#0a0d12] hover:bg-white/92"
- : "border border-white/18 bg-black/16 text-white backdrop-blur-sm hover:bg-black/24"
- : tone === "solid"
- ? "bg-[#0a0d12] text-white hover:bg-[#0a0d12]/88"
- : "border border-[#0a0d12]/12 bg-white text-[#0a0d12] hover:bg-[#0a0d12]/5",
- );
-}
-
export function heroButtonClassName(tone: "ghost" | "solid") {
return cn(
"inline-flex items-center justify-center gap-2 rounded-(--landing-radius-action) px-5 py-3 text-body font-semibold transition-colors",
diff --git a/apps/web/features/landing/i18n/context.tsx b/apps/web/features/landing/i18n/context.tsx
index 55195738a5..a2ddc70bc4 100644
--- a/apps/web/features/landing/i18n/context.tsx
+++ b/apps/web/features/landing/i18n/context.tsx
@@ -4,24 +4,33 @@ import {
createContext,
use,
useCallback,
+ useEffect,
useMemo,
useState,
- useTransition,
} from "react";
-import { useRouter } from "next/navigation";
-import { useConfigStore } from "@multica/core/config";
+import { usePathname, useRouter } from "next/navigation";
import { createBrowserCookieLocaleAdapter } from "@multica/core/i18n/browser";
+import { HTML_LANG } from "@/lib/html-lang";
+import { landingPathLocale, localizeHref, splitLandingLocale, stripLandingLocale } from "@/lib/landing-locale-path";
import { createLandingDict } from "./dictionary";
import type { LandingDict, Locale } from "./types";
type LocaleContextValue = {
locale: Locale;
t: LandingDict;
+ /** Remember `locale` and move to the current page's URL in that language. */
setLocale: (locale: Locale) => void;
};
const LocaleContext = createContext<LocaleContextValue | null>(null);
+/** The locale a marketing URL renders in, given the locale on screen before it. */
+function localeForPath(pathname: string, current: Locale): Locale {
+ const prefixed = splitLandingLocale(pathname);
+ if (prefixed) return prefixed.locale;
+ return landingPathLocale(current) === "en" ? current : "en";
+}
+
export function LocaleProvider({
children,
initialLocale = "en",
@@ -30,25 +39,31 @@ export function LocaleProvider({
initialLocale?: Locale;
}) {
const [locale, setLocaleState] = useState<Locale>(initialLocale);
- const [, startTransition] = useTransition();
const router = useRouter();
+ const pathname = usePathname();
const localeAdapter = useMemo(() => createBrowserCookieLocaleAdapter(), []);
- const allowSignup = useConfigStore((state) => state.allowSignup);
- const t = useMemo(
- () => createLandingDict(locale, allowSignup),
- [allowSignup, locale],
- );
+ const t = useMemo(() => createLandingDict(locale), [locale]);
+
+ // The layout holding this provider survives client navigations, so a move
+ // between /download and /zh/download (back and forward included) re-reads
+ // the language from the address bar.
+ useEffect(() => {
+ setLocaleState((current) => localeForPath(window.location.pathname, current));
+ }, [pathname]);
+
+ useEffect(() => {
+ document.documentElement.lang = HTML_LANG[locale];
+ }, [locale]);
const setLocale = useCallback(
(l: Locale) => {
if (l === locale) return;
setLocaleState(l);
localeAdapter.persist(l);
- startTransition(() => {
- router.refresh();
- });
+ const { pathname: current, search, hash } = window.location;
+ router.push(localizeHref(l, stripLandingLocale(current)) + search + hash);
},
- [locale, localeAdapter, router, startTransition],
+ [locale, localeAdapter, router],
);
return (
@@ -63,3 +78,8 @@ export function useLocale() {
if (!ctx) throw new Error("useLocale must be used within LocaleProvider");
return ctx;
}
+
+/** The marketing-site locale when rendered inside it, null elsewhere. */
+export function useOptionalLocale(): Locale | null {
+ return use(LocaleContext)?.locale ?? null;
+}
diff --git a/apps/web/features/landing/i18n/demo-en.ts b/apps/web/features/landing/i18n/demo-en.ts
new file mode 100644
index 0000000000..85e52e5b7e
--- /dev/null
+++ b/apps/web/features/landing/i18n/demo-en.ts
@@ -0,0 +1,218 @@
+import type { DemoDict } from "./types";
+
+export const enDemoCopy: DemoDict = {
+ app: {
+ spaces: { inbox: "Inbox", work: "Work", team: "Team", chat: "Chat", autopilots: "Auto" },
+ views: "Views",
+ projects: "Projects",
+ myIssues: "My Issues",
+ myAgents: "My agents’ work",
+ allIssues: "All issues",
+ allViews: "All views",
+ allProjects: "All {count} projects",
+ unassigned: "Unassigned",
+ priority: { none: "No priority", urgent: "Urgent", high: "High", medium: "Medium", low: "Low" },
+ activity: "Activity",
+ leaveComment: "Leave a comment…",
+ created: "created this issue",
+ statusChanged: "changed status from {from} to {to}",
+ handedTo: "Handed to",
+ startedRun: "and started a run",
+ memberNoRun: "(member, no run)",
+ isWorking: "{name} is working",
+ agentsWorking: "{count} agents working",
+ working: "Working",
+ online: "Online",
+ inProgress: "In progress",
+ ago: { now: "just now", minutes: "{count}m ago", hours: "{count}h ago", days: "{count}d ago" },
+ },
+ hero: {
+ ship: {
+ project: "API Platform",
+ statuses: { spec: "Spec", build: "Build", review: "Code review", approve: "Approve", shipped: "Shipped" },
+ cards: {
+ "ACM-145": "SAML login for enterprise workspaces",
+ "ACM-144": "Usage alerts for billing admins",
+ "ACM-143": "Per-workspace API keys with scopes",
+ "ACM-141": "Rotate webhook signing secrets",
+ "ACM-140": "Bulk invite members from a CSV",
+ "ACM-136": "Move auth webhooks onto the job queue",
+ "ACM-138": "Upgrade the Postgres driver to v5",
+ "ACM-135": "Stream large exports instead of buffering",
+ "ACM-134": "Settings page for API key scopes",
+ "ACM-133": "Fix the flaky checkout test on CI",
+ "ACM-131": "Paginate the audit log endpoint",
+ "ACM-127": "Rename the billing plan enum",
+ "ACM-126": "Timezone bug in weekly reports",
+ "ACM-124": "Lazy-load the members table",
+ "ACM-129": "Cache the plan lookup on checkout",
+ "ACM-119": "Raise the default page size to 100",
+ "ACM-118": "New error codes for quota limits",
+ "ACM-117": "Session timeout for admin roles",
+ "ACM-125": "CSV export for reports",
+ "ACM-122": "Retry failed Stripe webhooks",
+ "ACM-120": "Remove the legacy v1 export endpoint",
+ "ACM-114": "Faster cold starts for the worker",
+ "ACM-113": "Delivery logs for webhooks",
+ "ACM-112": "SSO errors that say what went wrong",
+ },
+ focus: {
+ title: "Add rate limiting to the public API",
+ description:
+ "Public endpoints have no limits, so one noisy key can slow everyone down. Add per-key limits with sane defaults and a clear 429.",
+ label: "api",
+ },
+ plan: {
+ comment: "Here is the plan.",
+ title: "Build plan",
+ items: ["Token bucket per API key", "Shared counters in Redis", "429 with a Retry-After header"],
+ },
+ built: { comment: "Limiter and tests are in.", pr: "Rate limit the public API" },
+ tested: "Load-tested on staging.",
+ approved: "Looks good. Merging.",
+ },
+ launch: {
+ project: "Autopilots launch",
+ statuses: { brief: "Brief", research: "Research", draft: "Draft", edit: "Edit", published: "Published" },
+ cards: {
+ "ACM-213": "Webinar invite email for June",
+ "ACM-211": "Comparison page: Multica vs. spreadsheets",
+ "ACM-210": "Landing page for the Japan launch",
+ "ACM-208": "Co-marketing kit for partners",
+ "ACM-207": "Onboarding emails for week one",
+ "ACM-209": "Customer story: Northwind Robotics",
+ "ACM-203": "Survey: why teams churn in month one",
+ "ACM-202": "Pricing pages across the category",
+ "ACM-201": "Top search terms in the docs",
+ "ACM-204": "Changelog for v0.9",
+ "ACM-199": "Translate the homepage into Japanese",
+ "ACM-195": "Release notes for the desktop app",
+ "ACM-194": "Blog: how we triage with agents",
+ "ACM-192": "Help center: workflow statuses",
+ "ACM-198": "Newsletter: May product roundup",
+ "ACM-196": "Case study: Acme Robotics",
+ "ACM-188": "Email: invite your team",
+ "ACM-186": "Docs: API rate limits",
+ "ACM-193": "Autopilots one-pager for sales",
+ "ACM-190": "Q2 messaging framework",
+ "ACM-187": "Social cards for the v0.8 release",
+ "ACM-182": "Changelog for v0.8",
+ "ACM-181": "Customer story: Contoso Labs",
+ "ACM-180": "Docs: inviting agents to a project",
+ },
+ focus: {
+ title: "Launch post for Autopilots",
+ description:
+ "Announce Autopilots: what it is, who it is for, and three real examples. Blog post first, then social and newsletter copy.",
+ label: "launch",
+ },
+ research: {
+ comment: "What customers ask for most.",
+ title: "Use cases mentioned",
+ aside: "40 calls",
+ bars: ["Nightly triage", "Weekly digests", "Dependency bumps"],
+ },
+ draft: { comment: "Draft is ready, with social posts and a newsletter blurb.", meta: "1,180 words" },
+ edited: "Tightened the intro. Scheduled for Tuesday 9:00.",
+ },
+ triage: {
+ project: "Customer feedback",
+ statuses: { inbox: "Inbox", repro: "Reproduce", fix: "Fix", reply: "Reply", resolved: "Resolved" },
+ cards: {
+ "ACM-150": "Request: Slack alerts for mentions",
+ "ACM-148": "Board columns are hard to scroll on mobile",
+ "ACM-149": "Request: dark mode for email digests",
+ "ACM-147": "Search misses issues with emoji titles",
+ "ACM-145": "Request: export a board as PDF",
+ "ACM-146": "Invite links expire after one hour",
+ "ACM-142": "Comment drafts lost when switching tabs",
+ "ACM-141": "Desktop badge count stuck at 1",
+ "ACM-140": "Due dates shift by a day in UTC−8",
+ "ACM-139": "Billing page shows the old plan after upgrade",
+ "ACM-137": "Webhook retries show the wrong status",
+ "ACM-135": "Attachments over 25 MB fail silently",
+ "ACM-134": "Sidebar flickers when collapsing",
+ "ACM-133": "Rate limit errors shown as a 500",
+ "ACM-132": "Dark mode resets after a reload",
+ "ACM-129": "Clarify how seats are billed",
+ "ACM-127": "Confirm the SSO fix with the reporter",
+ "ACM-126": "Workaround for the Safari upload bug",
+ "ACM-128": "Login loop on Safari 17",
+ "ACM-124": "Duplicate notifications on mention",
+ "ACM-121": "Broken link in the SSO guide",
+ "ACM-122": "Avatar uploads rotate sideways",
+ "ACM-120": "Search ignores the archived filter",
+ "ACM-119": "Shortcut conflicts on Windows",
+ },
+ focus: {
+ title: "CSV export times out on large workspaces",
+ description: "Filed by the Feedback sweep autopilot from 3 reports: 2 in Intercom, 1 in Discord.",
+ label: "bug",
+ },
+ autopilot: "Feedback sweep",
+ grouped: {
+ comment: "Not a duplicate. Set to Urgent.",
+ quotes: ["Export spins forever on 14k rows", "CSV download just fails", "anyone else get export timeouts?"],
+ },
+ reproduced: "Reproduced: the export runs inside the request.",
+ fixed: { comment: "Exports now run as a background job.", pr: "Stream large CSV exports" },
+ replied: "Told everyone who reported it.",
+ },
+ otherProject: "Mobile app",
+ blocks: {
+ steps: "{count} steps",
+ checks: { build: "Build", lint: "Lint" },
+ tests: "{count} tests",
+ load: { title: "Requests per minute on staging", served: "served", limit: "limit 100" },
+ exportTime: { title: "Export time by rows", aside: "staging, 12k rows", timeout: "timeout 30s" },
+ reports: { title: "Grouped reports", merged: "{count} merged" },
+ sent: "Sent",
+ },
+ },
+ features: {
+ runtimes: {
+ title: "All runtimes",
+ machines: "Machines",
+ cloud: "Cloud services",
+ server: "Linux · Leo Park",
+ laptop: "Mia’s MacBook Pro",
+ thisDevice: "This device",
+ sandboxes: "Cloud sandboxes",
+ },
+ workflow: {
+ breadcrumb: "Workflows",
+ onEnter: "On entering, hand to",
+ next: "When done, move to",
+ instructions: "Handoff instructions",
+ instructionsBody: "Build to the spec, then open a pull request.",
+ finalStep: "Final step",
+ },
+ chat: {
+ channels: "Channels",
+ apps: "Apps",
+ ask: { before: "Exports over 10k rows time out.", after: "can you look?" },
+ reply: "Filed it and started a fix.",
+ issue: "CSV export times out",
+ composer: "Message #{channel}",
+ },
+ autopilots: {
+ title: "All autopilots",
+ name: "Name",
+ agent: "Agent",
+ nextRun: "Next run",
+ rows: [
+ { name: "Nightly triage", next: "Tonight 02:00" },
+ { name: "Flaky tests", next: "In 4 hours" },
+ { name: "Dependency bumps", next: "Mon 09:00" },
+ { name: "Weekly digest", next: "Fri 17:00" },
+ { name: "Visual checks", next: "Next release" },
+ ],
+ },
+ skills: {
+ title: "All skills",
+ name: "Name",
+ usedBy: "Used by",
+ rows: ["Write release notes", "Review a migration", "Triage a bug report", "Deploy checklist", "Reply to a customer"],
+ },
+ },
+};
diff --git a/apps/web/features/landing/i18n/demo-ja.ts b/apps/web/features/landing/i18n/demo-ja.ts
new file mode 100644
index 0000000000..f8fe62f363
--- /dev/null
+++ b/apps/web/features/landing/i18n/demo-ja.ts
@@ -0,0 +1,218 @@
+import type { DemoDict } from "./types";
+
+export const jaDemoCopy: DemoDict = {
+ app: {
+ spaces: { inbox: "受信箱", work: "作業", team: "チーム", chat: "チャット", autopilots: "自動化" },
+ views: "ビュー",
+ projects: "プロジェクト",
+ myIssues: "マイタスク",
+ myAgents: "マイエージェントの作業",
+ allIssues: "すべてのタスク",
+ allViews: "すべてのビュー",
+ allProjects: "すべてのプロジェクト({count})",
+ unassigned: "未割り当て",
+ priority: { none: "優先度なし", urgent: "緊急", high: "高", medium: "中", low: "低" },
+ activity: "アクティビティ",
+ leaveComment: "コメントを残す…",
+ created: "このタスクを作成しました",
+ statusChanged: "ステータスを {from} から {to} に変更しました",
+ handedTo: "引き継ぎ先",
+ startedRun: "実行を開始",
+ memberNoRun: "(メンバー、実行なし)",
+ isWorking: "{name} が作業中",
+ agentsWorking: "作業中のエージェント {count} 件",
+ working: "作業中",
+ online: "オンライン",
+ inProgress: "進行中",
+ ago: { now: "たった今", minutes: "{count}分前", hours: "{count}時間前", days: "{count}日前" },
+ },
+ hero: {
+ ship: {
+ project: "API プラットフォーム",
+ statuses: { spec: "仕様", build: "実装", review: "コードレビュー", approve: "承認", shipped: "リリース済み" },
+ cards: {
+ "ACM-145": "エンタープライズ向けワークスペースの SAML ログイン",
+ "ACM-144": "請求管理者への使用量アラート",
+ "ACM-143": "ワークスペースごとのスコープ付き API キー",
+ "ACM-141": "Webhook 署名シークレットのローテーション",
+ "ACM-140": "CSV でメンバーを一括招待",
+ "ACM-136": "認証 Webhook をジョブキューへ移行",
+ "ACM-138": "Postgres ドライバーを v5 に更新",
+ "ACM-135": "大きなエクスポートをバッファせずストリーミング",
+ "ACM-134": "API キーのスコープ設定ページ",
+ "ACM-133": "CI で不安定な決済テストを修正",
+ "ACM-131": "監査ログ API のページネーション",
+ "ACM-127": "料金プランの enum 名を変更",
+ "ACM-126": "週次レポートのタイムゾーンのバグ",
+ "ACM-124": "メンバー一覧を遅延読み込みに",
+ "ACM-129": "決済時のプラン参照をキャッシュ",
+ "ACM-119": "デフォルトのページサイズを 100 に",
+ "ACM-118": "クォータ超過用の新しいエラーコード",
+ "ACM-117": "管理者ロールのセッションタイムアウト",
+ "ACM-125": "レポートの CSV エクスポート",
+ "ACM-122": "失敗した Stripe Webhook を再試行",
+ "ACM-120": "旧 v1 エクスポート API を削除",
+ "ACM-114": "ワーカーのコールドスタートを高速化",
+ "ACM-113": "Webhook の配信ログ",
+ "ACM-112": "何が起きたかわかる SSO エラー",
+ },
+ focus: {
+ title: "公開 API にレート制限を追加",
+ description:
+ "公開エンドポイントに制限がなく、リクエストの多いキーがひとつあるだけで全員が遅くなります。キーごとに妥当な初期値の制限を設け、超えたらわかりやすい 429 を返します。",
+ label: "api",
+ },
+ plan: {
+ comment: "計画はこちらです。",
+ title: "実装計画",
+ items: ["API キーごとのトークンバケット", "Redis で共有するカウンター", "Retry-After ヘッダー付きの 429"],
+ },
+ built: { comment: "制限とテストを入れました。", pr: "公開 API のレート制限" },
+ tested: "ステージングで負荷テストしました。",
+ approved: "問題なし。マージします。",
+ },
+ launch: {
+ project: "オートパイロットのローンチ",
+ statuses: { brief: "企画", research: "リサーチ", draft: "下書き", edit: "編集", published: "公開済み" },
+ cards: {
+ "ACM-213": "6 月のウェビナー招待メール",
+ "ACM-211": "比較ページ:Multica とスプレッドシート",
+ "ACM-210": "日本ローンチのランディングページ",
+ "ACM-208": "パートナー向け共同マーケティングキット",
+ "ACM-207": "最初の 1 週間のオンボーディングメール",
+ "ACM-209": "導入事例:Northwind Robotics",
+ "ACM-203": "調査:チームが最初の 1 か月で離れる理由",
+ "ACM-202": "同じカテゴリの料金ページ",
+ "ACM-201": "ドキュメントでよく検索される言葉",
+ "ACM-204": "v0.9 の変更履歴",
+ "ACM-199": "ホームページを日本語に翻訳",
+ "ACM-195": "デスクトップアプリのリリースノート",
+ "ACM-194": "ブログ:エージェントでトリアージする方法",
+ "ACM-192": "ヘルプセンター:ワークフローのステータス",
+ "ACM-198": "ニュースレター:5 月のプロダクトまとめ",
+ "ACM-196": "ケーススタディ:Acme Robotics",
+ "ACM-188": "メール:チームを招待しよう",
+ "ACM-186": "ドキュメント:API のレート制限",
+ "ACM-193": "営業向けオートパイロット紹介資料",
+ "ACM-190": "Q2 のメッセージングフレームワーク",
+ "ACM-187": "v0.8 リリースの SNS カード",
+ "ACM-182": "v0.8 の変更履歴",
+ "ACM-181": "導入事例:Contoso Labs",
+ "ACM-180": "ドキュメント:プロジェクトにエージェントを招待する",
+ },
+ focus: {
+ title: "オートパイロットのローンチ記事",
+ description:
+ "オートパイロットを発表します。何ができるか、誰のためのものか、実例を 3 つ。まずブログ記事、続いて SNS とニュースレターの文面を。",
+ label: "ローンチ",
+ },
+ research: {
+ comment: "顧客からいちばん多い要望です。",
+ title: "挙がったユースケース",
+ aside: "通話 40 件",
+ bars: ["夜間トリアージ", "週次ダイジェスト", "依存関係の更新"],
+ },
+ draft: { comment: "下書きができました。SNS 投稿とニュースレターの紹介文もあります。", meta: "1,180 語" },
+ edited: "導入部を締めました。火曜 9:00 に予約済みです。",
+ },
+ triage: {
+ project: "顧客フィードバック",
+ statuses: { inbox: "受付", repro: "再現", fix: "修正", reply: "返信", resolved: "解決済み" },
+ cards: {
+ "ACM-150": "要望:メンション時に Slack で通知",
+ "ACM-148": "モバイルでボードの列をスクロールしにくい",
+ "ACM-149": "要望:メールダイジェストのダークモード",
+ "ACM-147": "絵文字入りタイトルのタスクが検索に出ない",
+ "ACM-145": "要望:ボードを PDF で書き出す",
+ "ACM-146": "招待リンクが 1 時間で期限切れになる",
+ "ACM-142": "タブを切り替えるとコメントの下書きが消える",
+ "ACM-141": "デスクトップのバッジが 1 のまま",
+ "ACM-140": "UTC−8 で期限が 1 日ずれる",
+ "ACM-139": "アップグレード後も請求ページに旧プランが出る",
+ "ACM-137": "Webhook 再試行のステータス表示が違う",
+ "ACM-135": "25 MB を超える添付ファイルが黙って失敗する",
+ "ACM-134": "サイドバーを閉じるとちらつく",
+ "ACM-133": "レート制限エラーが 500 と表示される",
+ "ACM-132": "再読み込みでダークモードが戻る",
+ "ACM-129": "シートの課金方法を説明",
+ "ACM-127": "報告者に SSO の修正を確認",
+ "ACM-126": "Safari のアップロードバグの回避策",
+ "ACM-128": "Safari 17 でログインがループする",
+ "ACM-124": "メンションの通知が重複する",
+ "ACM-121": "SSO ガイドのリンク切れ",
+ "ACM-122": "アップロードしたアバターが横向きになる",
+ "ACM-120": "検索がアーカイブ済みフィルターを無視する",
+ "ACM-119": "Windows でショートカットが競合する",
+ },
+ focus: {
+ title: "大きなワークスペースで CSV エクスポートがタイムアウト",
+ description: "オートパイロット「フィードバック収集」が 3 件の報告から作成:Intercom から 2 件、Discord から 1 件。",
+ label: "バグ",
+ },
+ autopilot: "フィードバック収集",
+ grouped: {
+ comment: "重複ではありません。緊急にしました。",
+ quotes: ["1 万 4 千行のエクスポートが終わらない", "CSV のダウンロードが失敗する", "エクスポートのタイムアウト、ほかにも出てる?"],
+ },
+ reproduced: "再現しました。エクスポートがリクエスト内で実行されています。",
+ fixed: { comment: "エクスポートをバックグラウンドジョブで実行するようにしました。", pr: "大きな CSV エクスポートをストリーミング" },
+ replied: "報告してくれた全員に伝えました。",
+ },
+ otherProject: "モバイルアプリ",
+ blocks: {
+ steps: "{count} ステップ",
+ checks: { build: "ビルド", lint: "Lint" },
+ tests: "テスト {count} 件",
+ load: { title: "ステージングの毎分リクエスト数", served: "処理済み", limit: "上限 100" },
+ exportTime: { title: "行数ごとのエクスポート時間", aside: "ステージング、1 万 2 千行", timeout: "タイムアウト 30 秒" },
+ reports: { title: "まとめた報告", merged: "{count} 件を統合" },
+ sent: "送信済み",
+ },
+ },
+ features: {
+ runtimes: {
+ title: "すべてのランタイム",
+ machines: "マシン",
+ cloud: "クラウドサービス",
+ server: "Linux · Leo Park",
+ laptop: "Mia の MacBook Pro",
+ thisDevice: "このデバイス",
+ sandboxes: "クラウドサンドボックス",
+ },
+ workflow: {
+ breadcrumb: "ワークフロー",
+ onEnter: "このステップに入ったら引き継ぐ相手",
+ next: "完了したら移動",
+ instructions: "引き継ぎの指示",
+ instructionsBody: "仕様どおりに実装し、pull request を作成する。",
+ finalStep: "最後のステップ",
+ },
+ chat: {
+ channels: "チャンネル",
+ apps: "アプリ",
+ ask: { before: "1 万行を超えるエクスポートがタイムアウトします。", after: "見てもらえますか?" },
+ reply: "タスクを作成して修正を始めました。",
+ issue: "CSV エクスポートがタイムアウト",
+ composer: "#{channel} へのメッセージ",
+ },
+ autopilots: {
+ title: "すべてのオートパイロット",
+ name: "名前",
+ agent: "エージェント",
+ nextRun: "次回実行",
+ rows: [
+ { name: "夜間トリアージ", next: "今夜 02:00" },
+ { name: "不安定なテスト", next: "4 時間後" },
+ { name: "依存関係の更新", next: "月 09:00" },
+ { name: "週次ダイジェスト", next: "金 17:00" },
+ { name: "表示チェック", next: "次のリリース" },
+ ],
+ },
+ skills: {
+ title: "すべてのスキル",
+ name: "名前",
+ usedBy: "使用エージェント",
+ rows: ["リリースノートを書く", "マイグレーションをレビュー", "バグ報告をトリアージ", "デプロイのチェックリスト", "顧客に返信する"],
+ },
+ },
+};
diff --git a/apps/web/features/landing/i18n/demo-ko.ts b/apps/web/features/landing/i18n/demo-ko.ts
new file mode 100644
index 0000000000..ed592bdcb0
--- /dev/null
+++ b/apps/web/features/landing/i18n/demo-ko.ts
@@ -0,0 +1,218 @@
+import type { DemoDict } from "./types";
+
+export const koDemoCopy: DemoDict = {
+ app: {
+ spaces: { inbox: "인박스", work: "작업", team: "팀", chat: "채팅", autopilots: "자동화" },
+ views: "뷰",
+ projects: "프로젝트",
+ myIssues: "내 태스크",
+ myAgents: "내 에이전트의 작업",
+ allIssues: "전체 태스크",
+ allViews: "모든 뷰",
+ allProjects: "전체 프로젝트 {count}개",
+ unassigned: "담당자 없음",
+ priority: { none: "우선순위 없음", urgent: "긴급", high: "높음", medium: "보통", low: "낮음" },
+ activity: "활동",
+ leaveComment: "댓글 남기기…",
+ created: "이 태스크를 만들었습니다",
+ statusChanged: "상태를 {from}에서 {to}로 변경했습니다",
+ handedTo: "인계 대상",
+ startedRun: "실행 시작",
+ memberNoRun: "(멤버, 실행 없음)",
+ isWorking: "{name} 작업 중",
+ agentsWorking: "작업 중인 에이전트 {count}개",
+ working: "작업 중",
+ online: "온라인",
+ inProgress: "진행 중",
+ ago: { now: "방금 전", minutes: "{count}분 전", hours: "{count}시간 전", days: "{count}일 전" },
+ },
+ hero: {
+ ship: {
+ project: "API 플랫폼",
+ statuses: { spec: "기획", build: "개발", review: "코드 리뷰", approve: "승인", shipped: "출시됨" },
+ cards: {
+ "ACM-145": "엔터프라이즈 워크스페이스 SAML 로그인",
+ "ACM-144": "결제 관리자용 사용량 알림",
+ "ACM-143": "워크스페이스별 권한 범위가 있는 API 키",
+ "ACM-141": "웹훅 서명 시크릿 교체",
+ "ACM-140": "CSV로 멤버 일괄 초대",
+ "ACM-136": "인증 웹훅을 작업 큐로 이전",
+ "ACM-138": "Postgres 드라이버 v5로 업그레이드",
+ "ACM-135": "대용량 내보내기를 버퍼링 대신 스트리밍으로",
+ "ACM-134": "API 키 권한 범위 설정 페이지",
+ "ACM-133": "CI에서 불안정한 결제 테스트 수정",
+ "ACM-131": "감사 로그 엔드포인트 페이지네이션",
+ "ACM-127": "결제 플랜 enum 이름 변경",
+ "ACM-126": "주간 리포트의 시간대 버그",
+ "ACM-124": "멤버 테이블 지연 로딩",
+ "ACM-129": "결제 시 플랜 조회 캐싱",
+ "ACM-119": "기본 페이지 크기를 100으로",
+ "ACM-118": "할당량 초과용 새 오류 코드",
+ "ACM-117": "관리자 역할 세션 타임아웃",
+ "ACM-125": "리포트 CSV 내보내기",
+ "ACM-122": "실패한 Stripe 웹훅 재시도",
+ "ACM-120": "레거시 v1 내보내기 엔드포인트 제거",
+ "ACM-114": "워커 콜드 스타트 단축",
+ "ACM-113": "웹훅 전송 로그",
+ "ACM-112": "무엇이 잘못됐는지 알려 주는 SSO 오류",
+ },
+ focus: {
+ title: "공개 API에 속도 제한 추가",
+ description:
+ "공개 엔드포인트에 제한이 없어서 요청이 많은 키 하나가 모두를 느리게 만듭니다. 키별 제한과 적절한 기본값을 두고, 초과하면 명확한 429를 돌려줍니다.",
+ label: "api",
+ },
+ plan: {
+ comment: "계획은 이렇습니다.",
+ title: "개발 계획",
+ items: ["API 키마다 토큰 버킷", "Redis에 공유 카운터", "Retry-After 헤더와 함께 429 반환"],
+ },
+ built: { comment: "제한 기능과 테스트를 넣었습니다.", pr: "공개 API 속도 제한" },
+ tested: "스테이징에서 부하 테스트를 마쳤습니다.",
+ approved: "좋아요. 머지합니다.",
+ },
+ launch: {
+ project: "오토파일럿 출시",
+ statuses: { brief: "브리프", research: "리서치", draft: "초안", edit: "편집", published: "게시됨" },
+ cards: {
+ "ACM-213": "6월 웨비나 초대 이메일",
+ "ACM-211": "비교 페이지: Multica vs. 스프레드시트",
+ "ACM-210": "일본 출시 랜딩 페이지",
+ "ACM-208": "파트너 공동 마케팅 키트",
+ "ACM-207": "첫 주 온보딩 이메일",
+ "ACM-209": "고객 사례: Northwind Robotics",
+ "ACM-203": "설문: 팀이 첫 달에 이탈하는 이유",
+ "ACM-202": "같은 분야 제품의 가격 페이지",
+ "ACM-201": "문서에서 가장 많이 검색한 단어",
+ "ACM-204": "v0.9 변경 사항",
+ "ACM-199": "홈페이지 일본어 번역",
+ "ACM-195": "데스크톱 앱 릴리스 노트",
+ "ACM-194": "블로그: 에이전트로 분류하는 방법",
+ "ACM-192": "도움말 센터: 워크플로 상태",
+ "ACM-198": "뉴스레터: 5월 제품 소식",
+ "ACM-196": "사례 연구: Acme Robotics",
+ "ACM-188": "이메일: 팀원 초대하기",
+ "ACM-186": "문서: API 속도 제한",
+ "ACM-193": "영업용 오토파일럿 소개 자료",
+ "ACM-190": "2분기 메시지 프레임워크",
+ "ACM-187": "v0.8 릴리스 소셜 카드",
+ "ACM-182": "v0.8 변경 사항",
+ "ACM-181": "고객 사례: Contoso Labs",
+ "ACM-180": "문서: 프로젝트에 에이전트 초대하기",
+ },
+ focus: {
+ title: "오토파일럿 출시 글",
+ description:
+ "오토파일럿을 알립니다. 무엇인지, 누구를 위한 것인지, 실제 사례 세 가지. 블로그 글을 먼저 쓰고 소셜과 뉴스레터 문구를 이어서 씁니다.",
+ label: "출시",
+ },
+ research: {
+ comment: "고객이 가장 많이 요청한 것.",
+ title: "언급된 사용 사례",
+ aside: "통화 40건",
+ bars: ["야간 분류", "주간 요약", "의존성 업데이트"],
+ },
+ draft: { comment: "초안이 준비됐습니다. 소셜 게시물과 뉴스레터 소개 문구도 있어요.", meta: "1,180단어" },
+ edited: "도입부를 다듬었습니다. 화요일 9:00로 예약했어요.",
+ },
+ triage: {
+ project: "고객 피드백",
+ statuses: { inbox: "접수", repro: "재현", fix: "수정", reply: "답변", resolved: "해결됨" },
+ cards: {
+ "ACM-150": "요청: 멘션 시 Slack 알림",
+ "ACM-148": "모바일에서 보드 열을 스크롤하기 어려움",
+ "ACM-149": "요청: 이메일 요약 다크 모드",
+ "ACM-147": "제목에 이모지가 있으면 검색에 안 나옴",
+ "ACM-145": "요청: 보드를 PDF로 내보내기",
+ "ACM-146": "초대 링크가 한 시간 만에 만료됨",
+ "ACM-142": "탭을 바꾸면 댓글 초안이 사라짐",
+ "ACM-141": "데스크톱 배지 숫자가 1에서 멈춤",
+ "ACM-140": "UTC−8에서 마감일이 하루씩 밀림",
+ "ACM-139": "업그레이드 후 결제 페이지에 이전 플랜이 보임",
+ "ACM-137": "웹훅 재시도 상태가 잘못 표시됨",
+ "ACM-135": "25 MB가 넘는 첨부 파일이 조용히 실패함",
+ "ACM-134": "사이드바를 접을 때 깜빡임",
+ "ACM-133": "속도 제한 오류가 500으로 표시됨",
+ "ACM-132": "새로고침하면 다크 모드가 초기화됨",
+ "ACM-129": "좌석 요금 방식 안내",
+ "ACM-127": "제보자와 SSO 수정 확인",
+ "ACM-126": "Safari 업로드 버그 임시 해결책",
+ "ACM-128": "Safari 17 로그인 무한 반복",
+ "ACM-124": "멘션 알림이 중복으로 옴",
+ "ACM-121": "SSO 가이드의 깨진 링크",
+ "ACM-122": "업로드한 아바타가 옆으로 돌아감",
+ "ACM-120": "검색이 보관됨 필터를 무시함",
+ "ACM-119": "Windows에서 단축키 충돌",
+ },
+ focus: {
+ title: "큰 워크스페이스에서 CSV 내보내기 시간 초과",
+ description: "‘피드백 수집’ 오토파일럿이 제보 3건으로 만들었습니다. Intercom 2건, Discord 1건.",
+ label: "버그",
+ },
+ autopilot: "피드백 수집",
+ grouped: {
+ comment: "중복 아님. 긴급으로 설정했습니다.",
+ quotes: ["1만 4천 행 내보내기가 끝나지 않아요", "CSV 다운로드가 그냥 실패해요", "내보내기 시간 초과 겪는 분 또 있나요?"],
+ },
+ reproduced: "재현했습니다. 내보내기가 요청 안에서 실행됩니다.",
+ fixed: { comment: "이제 내보내기는 백그라운드 작업으로 실행됩니다.", pr: "대용량 CSV 내보내기 스트리밍" },
+ replied: "제보한 모두에게 알렸습니다.",
+ },
+ otherProject: "모바일 앱",
+ blocks: {
+ steps: "{count}단계",
+ checks: { build: "빌드", lint: "Lint" },
+ tests: "테스트 {count}개",
+ load: { title: "스테이징 분당 요청 수", served: "처리됨", limit: "한도 100" },
+ exportTime: { title: "행 수별 내보내기 시간", aside: "스테이징, 1만 2천 행", timeout: "시간 제한 30초" },
+ reports: { title: "묶인 제보", merged: "{count}건 병합" },
+ sent: "보냄",
+ },
+ },
+ features: {
+ runtimes: {
+ title: "모든 런타임",
+ machines: "머신",
+ cloud: "클라우드 서비스",
+ server: "Linux · Leo Park",
+ laptop: "Mia의 MacBook Pro",
+ thisDevice: "이 기기",
+ sandboxes: "클라우드 샌드박스",
+ },
+ workflow: {
+ breadcrumb: "워크플로",
+ onEnter: "진입 시 인계 대상",
+ next: "완료 후 이동",
+ instructions: "인계 지침",
+ instructionsBody: "기획대로 개발한 뒤 pull request를 엽니다.",
+ finalStep: "마지막 단계",
+ },
+ chat: {
+ channels: "채널",
+ apps: "앱",
+ ask: { before: "1만 행이 넘는 내보내기가 시간 초과돼요.", after: "확인해 줄래요?" },
+ reply: "태스크를 만들고 수정을 시작했습니다.",
+ issue: "CSV 내보내기 시간 초과",
+ composer: "#{channel}에 메시지 보내기",
+ },
+ autopilots: {
+ title: "전체 오토파일럿",
+ name: "이름",
+ agent: "에이전트",
+ nextRun: "다음 실행",
+ rows: [
+ { name: "야간 분류", next: "오늘 밤 02:00" },
+ { name: "불안정한 테스트", next: "4시간 후" },
+ { name: "의존성 업데이트", next: "월 09:00" },
+ { name: "주간 요약", next: "금 17:00" },
+ { name: "시각 점검", next: "다음 릴리스" },
+ ],
+ },
+ skills: {
+ title: "모든 스킬",
+ name: "이름",
+ usedBy: "사용 에이전트",
+ rows: ["릴리스 노트 작성", "마이그레이션 리뷰", "버그 제보 분류", "배포 체크리스트", "고객에게 답변"],
+ },
+ },
+};
diff --git a/apps/web/features/landing/i18n/demo-zh.ts b/apps/web/features/landing/i18n/demo-zh.ts
new file mode 100644
index 0000000000..b72002a524
--- /dev/null
+++ b/apps/web/features/landing/i18n/demo-zh.ts
@@ -0,0 +1,216 @@
+import type { DemoDict } from "./types";
+
+export const zhDemoCopy: DemoDict = {
+ app: {
+ spaces: { inbox: "收件箱", work: "工作", team: "团队", chat: "聊天", autopilots: "自动化" },
+ views: "视图",
+ projects: "项目",
+ myIssues: "我的任务",
+ myAgents: "我的智能体在做",
+ allIssues: "全部任务",
+ allViews: "全部视图",
+ allProjects: "全部 {count} 个项目",
+ unassigned: "未分配",
+ priority: { none: "无优先级", urgent: "紧急", high: "高", medium: "中", low: "低" },
+ activity: "动态",
+ leaveComment: "留下评论…",
+ created: "创建了这个任务",
+ statusChanged: "状态从 {from} 改为 {to}",
+ handedTo: "已交给",
+ startedRun: "并开始运行",
+ memberNoRun: "(成员,不启动运行)",
+ isWorking: "{name} 在工作",
+ agentsWorking: "{count} 个智能体工作中",
+ working: "处理中",
+ online: "在线",
+ inProgress: "进行中",
+ ago: { now: "刚刚", minutes: "{count} 分钟前", hours: "{count} 小时前", days: "{count} 天前" },
+ },
+ hero: {
+ ship: {
+ project: "API 平台",
+ statuses: { spec: "方案", build: "开发", review: "代码审查", approve: "审批", shipped: "已上线" },
+ cards: {
+ "ACM-145": "企业工作区支持 SAML 登录",
+ "ACM-144": "给账单管理员发用量提醒",
+ "ACM-143": "按工作区分配带权限范围的 API 密钥",
+ "ACM-141": "轮换 webhook 签名密钥",
+ "ACM-140": "通过 CSV 批量邀请成员",
+ "ACM-136": "把认证 webhook 移到任务队列",
+ "ACM-138": "Postgres 驱动升级到 v5",
+ "ACM-135": "大文件导出改为流式,不再整体缓存",
+ "ACM-134": "API 密钥权限范围的设置页",
+ "ACM-133": "修复 CI 上不稳定的结账测试",
+ "ACM-131": "审计日志接口支持分页",
+ "ACM-127": "重命名账单套餐枚举",
+ "ACM-126": "周报里的时区 bug",
+ "ACM-124": "成员表格改为懒加载",
+ "ACM-129": "结账时缓存套餐查询",
+ "ACM-119": "默认分页大小调到 100",
+ "ACM-118": "为配额限制新增错误码",
+ "ACM-117": "管理员角色的会话超时",
+ "ACM-125": "报表支持导出 CSV",
+ "ACM-122": "重试失败的 Stripe webhook",
+ "ACM-120": "移除旧的 v1 导出接口",
+ "ACM-114": "加快 worker 冷启动",
+ "ACM-113": "webhook 投递日志",
+ "ACM-112": "SSO 报错写清楚出了什么问题",
+ },
+ focus: {
+ title: "给公开 API 加上限流",
+ description: "公开接口没有任何限制,一个高频调用的密钥就能拖慢所有人。按密钥限流,给出合理的默认值,超限时返回清楚的 429。",
+ label: "api",
+ },
+ plan: {
+ comment: "方案如下。",
+ title: "开发计划",
+ items: ["每个 API 密钥一个令牌桶", "计数器统一放在 Redis", "超限返回 429 和 Retry-After 头"],
+ },
+ built: { comment: "限流和测试都写好了。", pr: "公开 API 限流" },
+ tested: "已在预发环境压测。",
+ approved: "没问题,合并了。",
+ },
+ launch: {
+ project: "自动化功能发布",
+ statuses: { brief: "需求", research: "调研", draft: "撰写", edit: "编辑", published: "已发布" },
+ cards: {
+ "ACM-213": "6 月线上研讨会邀请邮件",
+ "ACM-211": "对比页:Multica 和电子表格",
+ "ACM-210": "日本发布的落地页",
+ "ACM-208": "合作伙伴联合营销素材包",
+ "ACM-207": "新用户第一周的引导邮件",
+ "ACM-209": "客户故事:Northwind Robotics",
+ "ACM-203": "调研:团队为什么在第一个月流失",
+ "ACM-202": "同类产品的定价页",
+ "ACM-201": "文档里搜索最多的词",
+ "ACM-204": "v0.9 更新日志",
+ "ACM-199": "把首页翻译成日文",
+ "ACM-195": "桌面端发布说明",
+ "ACM-194": "博客:我们怎么用智能体分诊",
+ "ACM-192": "帮助中心:工作流状态",
+ "ACM-198": "周报:5 月产品回顾",
+ "ACM-196": "案例研究:Acme Robotics",
+ "ACM-188": "邮件:邀请你的团队",
+ "ACM-186": "文档:API 限流",
+ "ACM-193": "给销售的自动化功能单页",
+ "ACM-190": "Q2 传播框架",
+ "ACM-187": "v0.8 发布的社交分享图",
+ "ACM-182": "v0.8 更新日志",
+ "ACM-181": "客户故事:Contoso Labs",
+ "ACM-180": "文档:邀请智能体加入项目",
+ },
+ focus: {
+ title: "自动化功能的发布文章",
+ description: "介绍自动化:它是什么、适合谁,再配三个真实例子。先写博客,再写社交媒体和邮件周报的文案。",
+ label: "发布",
+ },
+ research: {
+ comment: "客户最常提到的需求。",
+ title: "提到的使用场景",
+ aside: "40 次通话",
+ bars: ["夜间分诊", "每周摘要", "依赖升级"],
+ },
+ draft: { comment: "初稿写好了,附上社交媒体帖子和一段周报简介。", meta: "1,180 字" },
+ edited: "收紧了开头,定在周二 9:00 发布。",
+ },
+ triage: {
+ project: "用户反馈",
+ statuses: { inbox: "待处理", repro: "复现", fix: "修复", reply: "回复", resolved: "已解决" },
+ cards: {
+ "ACM-150": "需求:被提及时发 Slack 提醒",
+ "ACM-148": "手机上看板的列很难滚动",
+ "ACM-149": "需求:邮件摘要支持深色模式",
+ "ACM-147": "标题带 emoji 的任务搜不到",
+ "ACM-145": "需求:把看板导出为 PDF",
+ "ACM-146": "邀请链接一小时就过期",
+ "ACM-142": "切换标签页后评论草稿丢失",
+ "ACM-141": "桌面端角标一直显示 1",
+ "ACM-140": "UTC−8 时区下截止日期差一天",
+ "ACM-139": "升级后账单页还显示旧套餐",
+ "ACM-137": "webhook 重试显示的状态不对",
+ "ACM-135": "超过 25 MB 的附件静默上传失败",
+ "ACM-134": "收起侧边栏时闪烁",
+ "ACM-133": "限流错误显示成 500",
+ "ACM-132": "刷新后深色模式被重置",
+ "ACM-129": "说明席位怎么计费",
+ "ACM-127": "和反馈人确认 SSO 已修复",
+ "ACM-126": "Safari 上传 bug 的临时解决办法",
+ "ACM-128": "Safari 17 登录死循环",
+ "ACM-124": "被提及时收到重复通知",
+ "ACM-121": "SSO 指南里的失效链接",
+ "ACM-122": "上传的头像被横过来",
+ "ACM-120": "搜索忽略了「已归档」筛选",
+ "ACM-119": "Windows 上快捷键冲突",
+ },
+ focus: {
+ title: "大工作区导出 CSV 超时",
+ description: "由「反馈汇总」自动化根据 3 条反馈创建:2 条来自 Intercom,1 条来自 Discord。",
+ label: "bug",
+ },
+ autopilot: "反馈汇总",
+ grouped: {
+ comment: "不是重复问题,已设为紧急。",
+ quotes: ["导出 1.4 万行一直转圈", "CSV 下载直接失败", "还有人遇到导出超时吗?"],
+ },
+ reproduced: "已复现:导出是在请求里同步执行的。",
+ fixed: { comment: "导出改成后台任务执行了。", pr: "大文件 CSV 导出改为流式" },
+ replied: "已逐一通知反馈的人。",
+ },
+ otherProject: "移动应用",
+ blocks: {
+ steps: "{count} 步",
+ checks: { build: "构建", lint: "Lint" },
+ tests: "{count} 个测试",
+ load: { title: "预发环境每分钟请求数", served: "已处理", limit: "上限 100" },
+ exportTime: { title: "导出耗时与行数", aside: "预发环境,1.2 万行", timeout: "超时 30 秒" },
+ reports: { title: "合并的反馈", merged: "合并 {count} 条" },
+ sent: "已发送",
+ },
+ },
+ features: {
+ runtimes: {
+ title: "全部运行时",
+ machines: "机器",
+ cloud: "云服务",
+ server: "Linux · Leo Park",
+ laptop: "Mia 的 MacBook Pro",
+ thisDevice: "本机",
+ sandboxes: "云沙箱",
+ },
+ workflow: {
+ breadcrumb: "工作流",
+ onEnter: "进入时交给",
+ next: "完成后进入",
+ instructions: "交接说明",
+ instructionsBody: "按方案开发,完成后提交 pull request。",
+ finalStep: "最后一步",
+ },
+ chat: {
+ channels: "频道",
+ apps: "应用",
+ ask: { before: "超过 1 万行的导出会超时。", after: "能看一下吗?" },
+ reply: "已经建好任务,开始修了。",
+ issue: "CSV 导出超时",
+ composer: "发消息到 #{channel}",
+ },
+ autopilots: {
+ title: "全部自动化",
+ name: "名称",
+ agent: "智能体",
+ nextRun: "下次运行",
+ rows: [
+ { name: "夜间分诊", next: "今晚 02:00" },
+ { name: "不稳定的测试", next: "4 小时后" },
+ { name: "依赖升级", next: "周一 09:00" },
+ { name: "每周摘要", next: "周五 17:00" },
+ { name: "视觉检查", next: "下次发布" },
+ ],
+ },
+ skills: {
+ title: "全部 skill",
+ name: "名称",
+ usedBy: "使用者",
+ rows: ["写发布说明", "审查数据库迁移", "分诊 bug 报告", "部署检查清单", "回复客户"],
+ },
+ },
+};
diff --git a/apps/web/features/landing/i18n/dictionary.test.ts b/apps/web/features/landing/i18n/dictionary.test.ts
index f924f86c8a..6ee6fdf731 100644
--- a/apps/web/features/landing/i18n/dictionary.test.ts
+++ b/apps/web/features/landing/i18n/dictionary.test.ts
@@ -1,17 +1,65 @@
// @vitest-environment node
import { describe, expect, it } from "vitest";
+import { HERO_CARD_IDS } from "../site/demo/hero-demo";
import { createLandingDict } from "./dictionary";
describe("createLandingDict", () => {
- it.each([
- ["en", "/docs"],
- ["zh-Hans", "/docs/zh"],
- ["ko", "/docs/ko"],
- ["ja", "/docs/ja"],
- // French has no landing copy and reuses English, but its docs exist.
- ["fr", "/docs/fr"],
- ] as const)("links the %s footer to %s", (locale, docsHref) => {
- const links = createLandingDict(locale, true).footer.groups.resources.links;
- expect(links[0]?.href).toBe(docsHref);
+ it("reuses the English copy for locales without their own dictionary", () => {
+ expect(createLandingDict("fr")).toEqual(createLandingDict("en"));
+ });
+
+ it("serves translated copy for locales with a dictionary", () => {
+ const en = createLandingDict("en");
+ for (const locale of ["zh-Hans", "ja", "ko"] as const) {
+ expect(createLandingDict(locale).faq.headline).not.toBe(en.faq.headline);
+ }
+ });
+
+ it("translates the home page and site chrome instead of inheriting English", () => {
+ const en = createLandingDict("en");
+ for (const locale of ["zh-Hans", "ja", "ko"] as const) {
+ const t = createLandingDict(locale);
+ expect(t.home.hero.lead).not.toBe(en.home.hero.lead);
+ expect(t.home.features.items.skills.body).not.toBe(en.home.features.items.skills.body);
+ expect(t.home.logoWall.title).not.toBe(en.home.logoWall.title);
+ expect(t.site.nav.resources).not.toBe(en.site.nav.resources);
+ expect(t.site.cta.title).not.toBe(en.site.cta.title);
+ }
+ });
+
+ it("gives every locale the same mockup copy as English, with a title for every hero card", () => {
+ const en = createLandingDict("en");
+ for (const locale of ["en", "zh-Hans", "ja", "ko"] as const) {
+ const t = createLandingDict(locale);
+ expect(shape(t.demo)).toEqual(shape(en.demo));
+ for (const key of ["ship", "launch", "triage"] as const) {
+ expect(Object.keys(t.demo.hero[key].cards).sort()).toEqual([...new Set(HERO_CARD_IDS[key])].sort());
+ }
+ if (locale !== "en") {
+ expect(t.demo.hero.ship.focus.title).not.toBe(en.demo.hero.ship.focus.title);
+ expect(t.demo.app.leaveComment).not.toBe(en.demo.app.leaveComment);
+ }
+ }
+ });
+
+ it("translates every page's title and share card", () => {
+ const en = createLandingDict("en");
+ for (const locale of ["zh-Hans", "ja", "ko"] as const) {
+ const meta = createLandingDict(locale).meta;
+ for (const [page, copy] of Object.entries(meta)) {
+ const english = en.meta[page as keyof typeof meta];
+ expect(copy.description).not.toBe(english.description);
+ expect(copy.ogDescription).not.toBe(english.ogDescription);
+ }
+ }
});
});
+
+/** Every key path and array length, without the strings. */
+function shape(value: unknown): unknown {
+ if (Array.isArray(value)) return value.map(shape);
+ if (value && typeof value === "object") {
+ return Object.fromEntries(Object.entries(value).map(([key, item]) => [key, shape(item)]));
+ }
+ return typeof value;
+}
diff --git a/apps/web/features/landing/i18n/dictionary.ts b/apps/web/features/landing/i18n/dictionary.ts
index aeac84ab96..1d653ea806 100644
--- a/apps/web/features/landing/i18n/dictionary.ts
+++ b/apps/web/features/landing/i18n/dictionary.ts
@@ -1,4 +1,3 @@
-import { docsHrefForLocale } from "@/lib/docs-href";
import { createEnDict } from "./en";
import { createJaDict } from "./ja";
import { createKoDict } from "./ko";
@@ -12,7 +11,7 @@ import {
const dictionaryFactories: Record<
LandingDictionaryLocale,
- (allowSignup: boolean, docsHref: string) => LandingDict
+ () => LandingDict
> = {
en: createEnDict,
ja: createJaDict,
@@ -20,14 +19,7 @@ const dictionaryFactories: Record<
zh: createZhDict,
};
-// Locales without their own landing copy (e.g. French) reuse another
-// dictionary, but docs links still follow the viewer's locale.
-export function createLandingDict(
- locale: Locale,
- allowSignup: boolean,
-): LandingDict {
- return dictionaryFactories[toLandingDictionaryLocale(locale)](
- allowSignup,
- docsHrefForLocale(locale),
- );
+// Locales without their own landing copy (e.g. French) reuse another dictionary.
+export function createLandingDict(locale: Locale): LandingDict {
+ return dictionaryFactories[toLandingDictionaryLocale(locale)]();
}
diff --git a/apps/web/features/landing/i18n/en.ts b/apps/web/features/landing/i18n/en.ts
index 7afbcd324a..9ed247a0a4 100644
--- a/apps/web/features/landing/i18n/en.ts
+++ b/apps/web/features/landing/i18n/en.ts
@@ -1,194 +1,10 @@
import { githubUrl, discordUrl } from "../components/shared";
import type { LandingDict } from "./types";
+import { enSiteCopy } from "./site-en";
-export function createEnDict(
- allowSignup: boolean,
- docsHref: string,
-): LandingDict {
+export function createEnDict(): LandingDict {
return {
- header: {
- github: "GitHub",
- cta: "Get started",
- dashboard: "Dashboard",
- docs: "Docs",
- changelog: "Changelog",
- useCases: "Use cases",
- navigation: "Primary navigation",
- openMenu: "Open navigation menu",
- closeMenu: "Close navigation menu",
- },
-
- hero: {
- headlineLine1: "Your next 10 hires",
- headlineLine2: "won\u2019t be human.",
- subheading:
- "Multica is a source-available platform that turns coding agents into real teammates. Assign tasks, track progress, compound skills \u2014 manage your human + agent workforce in one place.",
- cta: "Start free trial",
- downloadDesktop: "Download Desktop",
- talkToSales: "Talk to sales",
- worksWith: "Works with 20+ AI coding tools",
- imageAlt: "Multica board view \u2014 issues managed by humans and agents",
- },
-
- features: {
- teammates: {
- label: "TEAMMATES",
- title: "Assign to an agent like you\u2019d assign to a colleague",
- description:
- "Agents aren\u2019t passive tools \u2014 they\u2019re active participants. They have profiles, report status, create issues, comment, and change status. Your activity feed shows humans and agents working side by side.",
- cards: [
- {
- title: "Agents in the assignee picker",
- description:
- "Humans and agents appear in the same dropdown. Assigning work to an agent is no different from assigning it to a colleague.",
- },
- {
- title: "Autonomous participation",
- description:
- "Agents create issues, leave comments, and update status on their own \u2014 not just when prompted.",
- },
- {
- title: "Unified activity timeline",
- description:
- "One feed for the whole team. Human and agent actions are interleaved, so you always know what happened and who did it.",
- },
- ],
- },
- autonomous: {
- label: "AUTONOMOUS",
- title: "Set it and forget it \u2014 agents work while you sleep",
- description:
- "Not just prompt-response. Full task lifecycle management: enqueue, claim, start, complete or fail. Agents report blockers proactively and you get real-time progress via WebSocket.",
- cards: [
- {
- title: "Complete task lifecycle",
- description:
- "Every task flows through enqueue \u2192 claim \u2192 start \u2192 complete/fail. No silent failures \u2014 every transition is tracked and broadcast.",
- },
- {
- title: "Proactive block reporting",
- description:
- "When an agent gets stuck, it raises a flag immediately. No more checking back hours later to find nothing happened.",
- },
- {
- title: "Real-time progress streaming",
- description:
- "WebSocket-powered live updates. Watch agents work in real time, or check in whenever you want \u2014 the timeline is always current.",
- },
- ],
- },
- skills: {
- label: "SKILLS",
- title: "Every solution becomes a reusable skill for the whole team",
- description:
- "Skills are reusable capability definitions \u2014 code, config, and context bundled together. Write a skill once, and every agent on your team can use it. Your skill library compounds over time.",
- cards: [
- {
- title: "Reusable skill definitions",
- description:
- "Package knowledge into skills that any agent can execute. Deploy to staging, write migrations, review PRs \u2014 all codified.",
- },
- {
- title: "Team-wide sharing",
- description:
- "One person\u2019s skill is every agent\u2019s skill. Build once, benefit everywhere across your team.",
- },
- {
- title: "Compound growth",
- description:
- "Day 1: you teach an agent to deploy. Day 30: every agent deploys, writes tests, and does code review. Your team\u2019s capabilities grow exponentially.",
- },
- ],
- },
- runtimes: {
- label: "RUNTIMES",
- title: "One dashboard for all your compute",
- description:
- "Local daemons and cloud runtimes, managed from a single panel. Real-time monitoring of online/offline status, usage charts, and activity heatmaps. Auto-detects 29 supported coding tools on your machine.",
- cards: [
- {
- title: "Unified runtime panel",
- description:
- "Local daemons and cloud runtimes in one view. No context switching between different management interfaces.",
- },
- {
- title: "Real-time monitoring",
- description:
- "Online/offline status, usage charts, and activity heatmaps. Know exactly what your compute is doing at any moment.",
- },
- {
- title: "Auto-detection on first run",
- description:
- "Multica scans for 29 supported coding tools \u2014 Antigravity, Claude Code, CodeBuddy, CodeArts, Codex, Copilot, Cursor, DeepSeek Harness, DevEco Code, Devin CLI, Dim, Grok, Hermes, Kimi, Kiro CLI, MiniMax Code, Muse Code, Oh-My-Pi, OpenClaw, OpenCode, Pi, Qoder, Qoder CN, Qwen Code, QwenPaw, Reasonix, Trae CLI, and ZeroClaw, ZCode \u2014 and registers a runtime for each one it finds.",
- },
- ],
- },
- },
-
- howItWorks: {
- label: "Get started",
- headlineMain: "Hire your first AI employee",
- headlineFaded: "in the next hour.",
- steps: [
- {
- title: allowSignup ? "Sign up & create your workspace" : "Login to your workspace",
- description: allowSignup
- ? "Enter your email, verify with a code, and you\u2019re in. Your workspace is created automatically \u2014 no setup wizard, no configuration forms."
- : "Enter your email, verify with a code, and you\u2019re logged into your workspace \u2014 no setup wizard, no configuration forms.",
- },
- {
- title: "Install the CLI & connect your machine",
- description:
- "Run multica setup \u2014 it walks you through OAuth, starts the daemon, and scans for the 29 supported coding tools (Antigravity, Claude Code, CodeBuddy, CodeArts, Codex, Copilot, Cursor, DeepSeek Harness, DevEco Code, Devin CLI, Dim, Grok, Hermes, Kimi, Kiro CLI, MiniMax Code, Muse Code, Oh-My-Pi, OpenClaw, OpenCode, Pi, Qoder, Qoder CN, Qwen Code, QwenPaw, Reasonix, Trae CLI, ZeroClaw, ZCode). Whichever ones you already have installed get registered as runtimes automatically.",
- },
- {
- title: "Create your first agent",
- description:
- "Give it a name, write instructions, and attach skills. Agents automatically activate on assignment, on comment, or on mention.",
- },
- {
- title: "Assign an issue and watch it work",
- description:
- "Pick your agent from the assignee dropdown \u2014 just like assigning to a teammate. The task is queued, claimed, and executed automatically. Watch progress in real time.",
- },
- ],
- cta: "Get started",
- ctaGithub: "View on GitHub",
- ctaDocs: "Read the docs",
- },
-
- openSource: {
- label: "Source available",
- headlineLine1: "Every line,",
- headlineLine2: "on your terms.",
- description:
- "Multica\u2019s source code is public. Inspect every line, self-host it for free, and shape the future of human + agent collaboration. Offering Multica to others as a hosted service requires a commercial license.",
- cta: "Star on GitHub",
- licensingCta: "How licensing works \u2192",
- highlights: [
- {
- title: "Self-host anywhere",
- description:
- "Run Multica on your own infrastructure. Docker Compose, single binary, or Kubernetes — your workspace data stays on servers you control.",
- },
- {
- title: "No vendor lock-in",
- description:
- "Bring your own LLM provider, swap agent backends, extend the API. You own the stack, top to bottom.",
- },
- {
- title: "Transparent by default",
- description:
- "Every line of code is auditable. See exactly how your agents make decisions, how tasks are routed, and where your data flows.",
- },
- {
- title: "Community-driven",
- description:
- "Built with the community, not just for it. Contribute skills, integrations, and agent backends that benefit everyone.",
- },
- ],
- },
-
+ ...enSiteCopy,
faq: {
label: "FAQ",
headline: "Questions & answers.",
@@ -232,44 +48,6 @@ export function createEnDict(
],
},
- footer: {
- tagline:
- "Project management for human + agent teams. Source-available, self-hostable, built for the future of work.",
- cta: "Get started",
- groups: {
- product: {
- label: "Product",
- links: [
- { label: "Features", href: "#features" },
- { label: "How it Works", href: "#how-it-works" },
- { label: "Use cases", href: "/usecases" },
- { label: "Changelog", href: "/changelog" },
- { label: "Download", href: "/download" },
- ],
- },
- resources: {
- label: "Resources",
- links: [
- { label: "Documentation", href: docsHref },
- { label: "API", href: githubUrl },
- { label: "X (Twitter)", href: "https://x.com/MulticaAI" },
- { label: "Discord", href: discordUrl },
- ],
- },
- company: {
- label: "Company",
- links: [
- { label: "About", href: "/about" },
- { label: "Licensing", href: "/licensing" },
- { label: "Privacy", href: "/privacy" },
- { label: "Contact Sales", href: "/contact-sales" },
- { label: "GitHub", href: githubUrl },
- ],
- },
- },
- copyright: "\u00a9 {year} Multica. All rights reserved.",
- },
-
about: {
title: "About Multica",
nameLine: {
@@ -4305,50 +4083,44 @@ export function createEnDict(
],
},
download: {
+ platforms: {
+ macArm64: "macOS · Apple Silicon",
+ macX64: "macOS · Intel",
+ winX64: "Windows · x64",
+ winArm64: "Windows · ARM64",
+ linuxX64: "Linux · x64",
+ linuxArm64: "Linux · ARM64",
+ },
hero: {
- macArm64: {
- title: "Multica for macOS",
- sub: "Apple Silicon · bundled daemon, zero setup",
- primary: "Download (.dmg)",
- altZip: "or download .zip",
- },
- macIntel: {
- title: "Multica for macOS",
- sub: "Intel · bundled daemon, zero setup",
- primary: "Download (.dmg)",
- altZip: "or download .zip",
- },
- winX64: {
- title: "Multica for Windows",
- sub: "Bundled daemon, zero setup",
- primary: "Download (.exe)",
- },
- winArm64: {
- title: "Multica for Windows",
- sub: "ARM · bundled daemon, zero setup",
- primary: "Download (.exe)",
- },
- linux: {
- title: "Multica for Linux",
- sub: "Bundled daemon, zero setup",
- primary: "Download AppImage",
- altFormats: "or .deb / .rpm",
- },
- unknown: {
- title: "Choose your platform",
- sub: "All installers are listed below.",
- },
- safariMacHint: "On an Intel Mac? Choose the Intel download below.",
- archFallbackHint: "Wrong architecture? See all formats below.",
+ eyebrow: "Desktop app",
+ title: {
+ mac: "Download Multica for macOS",
+ windows: "Download Multica for Windows",
+ linux: "Download Multica for Linux",
+ other: "Download Multica",
+ },
+ lead: "The desktop app comes with the agent daemon, so Claude Code, Codex and the other coding agents on this computer connect on their own.",
+ leadOther: "Desktop apps for macOS, Windows and Linux, each with the agent daemon built in.",
+ mobileNote: "Multica’s desktop app runs on macOS, Windows and Linux. Open this page on your computer to download it.",
+ primary: {
+ macArm64Dmg: "Download for Apple Silicon",
+ macX64Dmg: "Download for Intel",
+ winX64Exe: "Download for Windows",
+ winArm64Exe: "Download for Windows ARM",
+ linuxAmd64AppImage: "Download AppImage",
+ linuxArm64AppImage: "Download AppImage",
+ },
+ alternate: {
+ macArm64Dmg: "Apple Silicon Mac",
+ macX64Dmg: "Intel Mac",
+ },
+ released: "Released {date}",
+ whatsNew: "What’s new",
+ versionUnavailable: "Version unavailable. See all releases on GitHub.",
},
allPlatforms: {
- title: "All platforms",
- macArm64Label: "macOS · Apple Silicon",
- macX64Label: "macOS · Intel",
- winX64Label: "Windows · x64",
- winArm64Label: "Windows · ARM64",
- linuxX64Label: "Linux · x64",
- linuxArm64Label: "Linux · ARM64",
+ title: "All downloads",
+ thisDevice: "This computer",
formatDmg: ".dmg",
formatZip: ".zip",
formatExe: ".exe",
@@ -4356,28 +4128,55 @@ export function createEnDict(
formatDeb: ".deb",
formatRpm: ".rpm",
unavailable: "Not available",
+ allReleases: "All releases",
},
cli: {
- title: "Prefer the CLI?",
- sub: "For servers, remote dev boxes, and headless setups. Same daemon as Desktop, installed via terminal.",
+ title: "On a server or a remote dev box?",
+ sub: "Install the CLI and run the same daemon there. The commands work over SSH too.",
installLabel: "Install",
platformGroup: "Choose your platform",
platformMacosLinux: "macOS / Linux",
platformWindows: "Windows",
startLabel: "Start daemon",
- sshNote: "Already on a server? Same commands work over SSH.",
copyLabel: "Copy",
copiedLabel: "Copied",
},
- cloud: {
- title: "Cloud runtime (waitlist)",
- sub: "We’ll host the runtime for you. Not live yet — leave your email to be notified.",
- },
- footer: {
- releaseNotes: "What’s new in {version}",
- allReleases: "View all releases",
- currentVersion: "Current version: {version}",
- versionUnavailable: "Version unavailable — check GitHub",
+ started: {
+ title: "Your download has started",
+ retry: "Didn’t start? Try again",
+ allDownloads: "All downloads",
+ install: {
+ title: "Install",
+ dmg: "Open the .dmg and drag Multica into Applications.",
+ zip: "Unzip it and move Multica into Applications.",
+ exe: "Run the installer. Multica opens when it finishes.",
+ appImage: "Make the AppImage executable, then run it.",
+ deb: "Install the .deb with apt or your package manager.",
+ rpm: "Install the .rpm with dnf or your package manager.",
+ },
+ signIn: {
+ title: "Sign in",
+ body: "Open Multica and sign in with your account.",
+ installed: "Already installed?",
+ open: "Open Multica",
+ },
+ agents: {
+ title: "Bring your agents",
+ body: "Multica finds Claude Code, Codex and the other coding agents on this computer.",
+ },
+ community: {
+ label: "While it downloads",
+ githubTitle: "Follow Multica on GitHub",
+ githubBody: "Star the repo to hear about new releases, or read the code behind the app you just downloaded.",
+ star: "Star on GitHub",
+ stars: "{count} stars",
+ discordTitle: "Join the Discord",
+ discordBody: "Ask questions, share workflows and talk to the team.",
+ join: "Join",
+ xTitle: "Follow @MulticaAI",
+ xBody: "Release notes and what’s coming next.",
+ follow: "Follow",
+ },
},
},
contactSales: {
diff --git a/apps/web/features/landing/i18n/ja.ts b/apps/web/features/landing/i18n/ja.ts
index 65fe4f09d5..0191822b28 100644
--- a/apps/web/features/landing/i18n/ja.ts
+++ b/apps/web/features/landing/i18n/ja.ts
@@ -1,195 +1,14 @@
import { githubUrl, discordUrl } from "../components/shared";
import { createEnDict } from "./en";
import type { LandingDict } from "./types";
+import { jaSiteCopy } from "./site-ja";
-export function createJaDict(
- allowSignup: boolean,
- docsHref: string,
-): LandingDict {
- const base = createEnDict(allowSignup, docsHref);
+export function createJaDict(): LandingDict {
+ const base = createEnDict();
return {
...base,
- header: {
- github: "GitHub",
- cta: "始める",
- dashboard: "ダッシュボード",
- docs: "ドキュメント",
- changelog: "変更履歴",
- useCases: "ユースケース",
- navigation: "メインナビゲーション",
- openMenu: "メニューを開く",
- closeMenu: "メニューを閉じる",
- },
- hero: {
- headlineLine1: "次に採用する10人は、",
- headlineLine2: "人間ではないかもしれません。",
- subheading:
- "Multica は、コーディングエージェントを本物のチームメンバーに変える、ソースコード公開型のプラットフォームです。タスクを割り当て、進捗を追い、ノウハウをスキルとして積み上げる。人間と AI エージェントから成るチームを、ひとつの場所で管理できます。",
- cta: "無料トライアルを始める",
- downloadDesktop: "デスクトップ版をダウンロード",
- talkToSales: "営業に相談する",
- worksWith: "20+ の AI コーディングツールに対応",
- imageAlt: "人間と AI エージェントがタスクを管理する Multica のボード画面",
- },
- features: {
- teammates: {
- label: "チームメイト",
- title: "同僚に任せるように、エージェントにタスクを任せる",
- description:
- "AI エージェントはもう、指示を待つだけのツールではありません。プロフィールを持ち、ステータスを報告し、タスクを作成し、コメントを残し、ステータスを変更します。アクティビティフィードには、人間と AI エージェントの作業が並んで流れます。",
- cards: [
- {
- title: "担当者リストにエージェントも表示",
- description:
- "人間も AI エージェントも同じドロップダウンに並びます。エージェントに作業を割り当てるのは、同僚に任せるのと変わりません。",
- },
- {
- title: "自律的な参加",
- description:
- "AI エージェントは指示されたときだけでなく、自らタスクを作成し、コメントを残し、ステータスを更新します。",
- },
- {
- title: "チーム全体のアクティビティタイムライン",
- description:
- "チーム全体がひとつのフィードに集約されます。人間と AI エージェントの操作が交互に並ぶので、誰が何をしたのかを常に把握できます。",
- },
- ],
- },
- autonomous: {
- label: "自律実行",
- title: "任せておくだけ — あなたが眠っている間もエージェントが働きます",
- description:
- "一往復で終わる指示ではありません。作業をキューに入れ、受け取り、開始し、完了または失敗まで報告する。このライフサイクル全体を Multica が管理します。詰まったところはエージェントが先に知らせ、進捗は WebSocket でリアルタイムに届きます。",
- cards: [
- {
- title: "最初から最後まで追跡",
- description:
- "すべての作業が「キュー追加 → 受け取り → 開始 → 完了 / 失敗」と流れます。静かに止まる失敗はありません。すべての遷移が記録され、共有されます。",
- },
- {
- title: "詰まったら先に知らせる",
- description:
- "エージェントが行き詰まると、すぐにフラグを立てます。何時間も経ってから、何も進んでいなかったと気づくことはありません。",
- },
- {
- title: "リアルタイムの進捗ストリーミング",
- description:
- "WebSocket による更新で、作業状況が即座に反映されます。リアルタイムで見守ってもよし、好きなときに覗いて最新のタイムラインを確認してもよし。",
- },
- ],
- },
- skills: {
- label: "スキル",
- title: "一度の解決が、チーム全体の再利用可能なスキルになる",
- description:
- "スキルは、コード・設定・コンテキストをひとまとめにした、再利用可能な能力の定義です。一度書けば、チームのすべてのエージェントが使えます。スキルライブラリは、時間とともに積み重なっていきます。",
- cards: [
- {
- title: "再利用できるスキル定義",
- description:
- "ステージングへのデプロイ、マイグレーションの作成、PR レビューなど、繰り返す作業をスキルにまとめましょう。どのエージェントも同じ基準で実行できます。",
- },
- {
- title: "チーム全体で共有",
- description:
- "一人のスキルが、すべての AI エージェントのスキルになります。一度作れば、チームのどこでもその恩恵を受けられます。",
- },
- {
- title: "積み重なるほど速くなる",
- description:
- "1日目はデプロイをひとつ教えます。30日目には、すべてのエージェントがデプロイし、テストを書き、コードレビューまでこなします。チームの能力は加速度的に伸びていきます。",
- },
- ],
- },
- runtimes: {
- label: "ランタイム",
- title: "すべての実行環境を、ひとつのダッシュボードで",
- description:
- "ローカルのデーモンとクラウドのランタイムを、ひとつのパネルから管理します。オンライン状態、使用量チャート、アクティビティのヒートマップをリアルタイムで確認。お使いのマシンにある対応コーディングツールも自動検出します。",
- cards: [
- {
- title: "ひとつにまとめたランタイムパネル",
- description:
- "ローカルのデーモンとクラウドのランタイムを同じ画面で見渡せます。管理画面を行き来する必要はありません。",
- },
- {
- title: "リアルタイムモニタリング",
- description:
- "オンライン / オフラインの状態、使用量チャート、アクティビティのヒートマップ。各実行環境がいま何をしているかを、瞬時に把握できます。",
- },
- {
- title: "初回起動時に自動検出",
- description:
- "Multica は Antigravity、Claude Code、CodeBuddy、CodeArts、Codex、Copilot、Cursor、DeepSeek Harness、DevEco Code、Devin CLI、Dim、Grok、Hermes、Kimi、Kiro CLI、MiniMax Code、Muse Code、Oh-My-Pi、OpenClaw、OpenCode、Pi、Qoder、Qoder CN、Qwen Code、QwenPaw、Reasonix、Trae CLI、ZeroClaw、ZCode という29種類の対応ツールをスキャンし、見つかったものをそれぞれランタイムとして登録します。",
- },
- ],
- },
- },
- howItWorks: {
- label: "始める",
- headlineMain: "最初の AI 社員を、",
- headlineFaded: "この1時間で採用しましょう。",
- steps: [
- {
- title: allowSignup
- ? "登録してワークスペースを作成"
- : "ワークスペースにログイン",
- description: allowSignup
- ? "メールアドレスを入力し、認証コードで確認すれば完了です。ワークスペースは自動的に作成され、セットアップウィザードも設定フォームもありません。"
- : "メールアドレスを入力し、認証コードで確認すれば、そのままワークスペースにログインできます。セットアップウィザードも設定フォームもありません。",
- },
- {
- title: "CLI をインストールしてマシンを接続",
- description:
- "multica setup を実行すると、OAuth の手順を案内し、デーモンを起動し、29種類の対応コーディングツール(Antigravity、Claude Code、CodeBuddy、CodeArts、Codex、Copilot、Cursor、DeepSeek Harness、DevEco Code、Devin CLI、Dim、Grok、Hermes、Kimi、Kiro CLI、MiniMax Code、Muse Code、Oh-My-Pi、OpenClaw、OpenCode、Pi、Qoder、Qoder CN、Qwen Code、QwenPaw、Reasonix、Trae CLI、ZeroClaw, ZCode)をスキャンします。すでにインストール済みのものは、自動的にランタイムとして登録されます。",
- },
- {
- title: "最初のエージェントを作成",
- description:
- "名前を付け、指示を書き、スキルを紐付けるだけ。エージェントは、割り当て・コメント・メンションをきっかけに自動で動き出します。",
- },
- {
- title: "タスクを任せて、働く様子を見守る",
- description:
- "担当者ドロップダウンからエージェントを選びます。チームメイトに任せるのと同じです。作業はキューに入り、受け取られ、自動で実行されます。進捗はリアルタイムで確認できます。",
- },
- ],
- cta: "始める",
- ctaGithub: "GitHub で見る",
- ctaDocs: "ドキュメントを読む",
- },
- openSource: {
- label: "ソースコード公開",
- headlineLine1: "すべてのコードを、",
- headlineLine2: "あなたの手に。",
- description:
- "Multica のソースコードは公開されています。すべてのコードを確認し、無料でセルフホストし、人間と AI エージェントが協働する未来を、ともに形づくっていけます。Multica をホスティングサービスとして他者に提供する場合は、商用ライセンスが必要です。",
- cta: "GitHub でスターを付ける",
- licensingCta: "ライセンスについて →",
- highlights: [
- {
- title: "どこでもセルフホスト",
- description:
- "自社のインフラで Multica を運用できます。Docker Compose、単一バイナリ、Kubernetes に対応。ワークスペースのデータは、自分で管理するサーバーに保存されます。",
- },
- {
- title: "ベンダーロックインなし",
- description:
- "好きな LLM プロバイダーを使い、エージェントのバックエンドを差し替え、API を拡張できます。スタックのすべてを、隅々まで自分のものにできます。",
- },
- {
- title: "デフォルトで透明",
- description:
- "すべてのコードが監査可能です。エージェントがどう判断し、タスクがどこへ振り分けられ、データがどこを流れるのかを、はっきり確認できます。",
- },
- {
- title: "コミュニティとともに",
- description:
- "コミュニティのためだけでなく、コミュニティとともに作っています。みんなの役に立つスキル、連携、エージェントのバックエンドを貢献できます。",
- },
- ],
- },
+ ...jaSiteCopy,
faq: {
label: "FAQ",
headline: "よくある質問。",
@@ -232,43 +51,6 @@ export function createJaDict(
},
],
},
- footer: {
- tagline:
- "人間と AI エージェントが協働するチームのためのプロジェクト管理ツール。ソースコード公開で、セルフホスト可能。これからの働き方のために作られています。",
- cta: "始める",
- groups: {
- product: {
- label: "プロダクト",
- links: [
- { label: "機能", href: "#features" },
- { label: "仕組み", href: "#how-it-works" },
- { label: "ユースケース", href: "/usecases" },
- { label: "変更履歴", href: "/changelog" },
- { label: "ダウンロード", href: "/download" },
- ],
- },
- resources: {
- label: "リソース",
- links: [
- { label: "ドキュメント", href: docsHref },
- { label: "API", href: githubUrl },
- { label: "X (Twitter)", href: "https://x.com/MulticaAI" },
- { label: "Discord", href: discordUrl },
- ],
- },
- company: {
- label: "会社",
- links: [
- { label: "概要", href: "/about" },
- { label: "ライセンス", href: "/licensing" },
- { label: "プライバシー", href: "/privacy" },
- { label: "営業に相談", href: "/contact-sales" },
- { label: "GitHub", href: githubUrl },
- ],
- },
- },
- copyright: "© {year} Multica. All rights reserved.",
- },
changelog: {
title: "変更履歴",
subtitle: "Multica の新しいアップデートと改善点をお届けします。",
@@ -3789,50 +3571,44 @@ export function createJaDict(
],
},
download: {
+ platforms: {
+ macArm64: "macOS · Apple Silicon",
+ macX64: "macOS · Intel",
+ winX64: "Windows · x64",
+ winArm64: "Windows · ARM64",
+ linuxX64: "Linux · x64",
+ linuxArm64: "Linux · ARM64",
+ },
hero: {
- macArm64: {
- title: "macOS 版 Multica",
- sub: "Apple Silicon · デーモン同梱、設定不要",
- primary: "ダウンロード(.dmg)",
- altZip: "または .zip をダウンロード",
- },
- macIntel: {
- title: "macOS 版 Multica",
- sub: "Intel · デーモン同梱、設定不要",
- primary: "ダウンロード(.dmg)",
- altZip: "または .zip をダウンロード",
- },
- winX64: {
- title: "Windows 版 Multica",
- sub: "デーモン同梱、設定不要",
- primary: "ダウンロード(.exe)",
- },
- winArm64: {
- title: "Windows 版 Multica",
- sub: "ARM · デーモン同梱、設定不要",
- primary: "ダウンロード(.exe)",
- },
- linux: {
- title: "Linux 版 Multica",
- sub: "デーモン同梱、設定不要",
- primary: "AppImage をダウンロード",
- altFormats: "または .deb / .rpm",
- },
- unknown: {
- title: "プラットフォームを選択",
- sub: "すべてのインストーラーは下にまとまっています。",
- },
- safariMacHint: "Intel Mac をお使いですか? 下の Intel 版を選択してください。",
- archFallbackHint: "アーキテクチャが合いませんか? 下ですべての形式を確認してください。",
+ eyebrow: "デスクトップアプリ",
+ title: {
+ mac: "macOS 版 Multica をダウンロード",
+ windows: "Windows 版 Multica をダウンロード",
+ linux: "Linux 版 Multica をダウンロード",
+ other: "Multica をダウンロード",
+ },
+ lead: "デスクトップアプリにはエージェントデーモンが同梱されており、このコンピューター上の Claude Code や Codex などのコーディングエージェントが自動でつながります。",
+ leadOther: "macOS、Windows、Linux 向けのデスクトップアプリです。どれもエージェントデーモンを内蔵しています。",
+ mobileNote: "Multica のデスクトップアプリは macOS、Windows、Linux で動作します。コンピューターでこのページを開いてダウンロードしてください。",
+ primary: {
+ macArm64Dmg: "Apple Silicon 版をダウンロード",
+ macX64Dmg: "Intel 版をダウンロード",
+ winX64Exe: "Windows 版をダウンロード",
+ winArm64Exe: "Windows ARM 版をダウンロード",
+ linuxAmd64AppImage: "AppImage をダウンロード",
+ linuxArm64AppImage: "AppImage をダウンロード",
+ },
+ alternate: {
+ macArm64Dmg: "Apple Silicon 版",
+ macX64Dmg: "Intel 版",
+ },
+ released: "{date} リリース",
+ whatsNew: "新着情報",
+ versionUnavailable: "バージョンを確認できません。GitHub ですべてのリリースをご確認ください。",
},
allPlatforms: {
- title: "すべてのプラットフォーム",
- macArm64Label: "macOS · Apple Silicon",
- macX64Label: "macOS · Intel",
- winX64Label: "Windows · x64",
- winArm64Label: "Windows · ARM64",
- linuxX64Label: "Linux · x64",
- linuxArm64Label: "Linux · ARM64",
+ title: "すべてのダウンロード",
+ thisDevice: "このコンピューター",
formatDmg: ".dmg",
formatZip: ".zip",
formatExe: ".exe",
@@ -3840,28 +3616,55 @@ export function createJaDict(
formatDeb: ".deb",
formatRpm: ".rpm",
unavailable: "利用できません",
+ allReleases: "すべてのリリース",
},
cli: {
- title: "CLI のほうが便利ですか?",
- sub: "サーバー、リモート開発環境、ヘッドレス環境に最適です。デスクトップと同じデーモンを、ターミナルからインストールできます。",
+ title: "サーバーやリモート開発環境で使いますか?",
+ sub: "CLI をインストールして、そこで同じデーモンを動かせます。同じコマンドが SSH 上でもそのまま使えます。",
installLabel: "インストール",
platformGroup: "プラットフォームを選択",
platformMacosLinux: "macOS / Linux",
platformWindows: "Windows",
startLabel: "デーモンを起動",
- sshNote: "すでにサーバーに接続中ですか? 同じコマンドが SSH 上でもそのまま使えます。",
copyLabel: "コピー",
copiedLabel: "コピーしました",
},
- cloud: {
- title: "クラウドランタイム(順番待ち)",
- sub: "ランタイムを当社がホストします。まだ提供前です。メールアドレスをお預けいただければ、準備でき次第お知らせします。",
- },
- footer: {
- releaseNotes: "{version} の新着情報",
- allReleases: "すべてのリリースを見る",
- currentVersion: "現在のバージョン: {version}",
- versionUnavailable: "バージョンを確認できません。GitHub をご確認ください。",
+ started: {
+ title: "ダウンロードを開始しました",
+ retry: "始まらない場合は再試行",
+ allDownloads: "すべてのダウンロード",
+ install: {
+ title: "インストール",
+ dmg: ".dmg を開き、Multica をアプリケーションフォルダにドラッグします。",
+ zip: "解凍して、Multica をアプリケーションフォルダに移動します。",
+ exe: "インストーラーを実行します。完了すると Multica が開きます。",
+ appImage: "AppImage に実行権限を付けてから起動します。",
+ deb: "apt などのパッケージマネージャーで .deb をインストールします。",
+ rpm: "dnf などのパッケージマネージャーで .rpm をインストールします。",
+ },
+ signIn: {
+ title: "サインイン",
+ body: "Multica を開いて、アカウントでサインインします。",
+ installed: "インストール済みですか?",
+ open: "Multica を開く",
+ },
+ agents: {
+ title: "エージェントをつなぐ",
+ body: "Multica がこのコンピューター上の Claude Code や Codex などのコーディングエージェントを自動で見つけます。",
+ },
+ community: {
+ label: "ダウンロード中に",
+ githubTitle: "GitHub で Multica をフォロー",
+ githubBody: "リポジトリに Star して新しいリリースの通知を受け取ったり、ダウンロードしたアプリのコードを読んだりできます。",
+ star: "GitHub で Star",
+ stars: "{count} Star",
+ discordTitle: "Discord に参加",
+ discordBody: "質問したり、ワークフローを共有したり、チームと直接話したりできます。",
+ join: "参加",
+ xTitle: "@MulticaAI をフォロー",
+ xBody: "リリース情報とこれからの予定。",
+ follow: "フォロー",
+ },
},
},
contactSales: {
diff --git a/apps/web/features/landing/i18n/ko.ts b/apps/web/features/landing/i18n/ko.ts
index a6c15914d0..c76b162eff 100644
--- a/apps/web/features/landing/i18n/ko.ts
+++ b/apps/web/features/landing/i18n/ko.ts
@@ -1,195 +1,14 @@
import { githubUrl, discordUrl } from "../components/shared";
import { createEnDict } from "./en";
import type { LandingDict } from "./types";
+import { koSiteCopy } from "./site-ko";
-export function createKoDict(
- allowSignup: boolean,
- docsHref: string,
-): LandingDict {
- const base = createEnDict(allowSignup, docsHref);
+export function createKoDict(): LandingDict {
+ const base = createEnDict();
return {
...base,
- header: {
- github: "GitHub",
- cta: "시작하기",
- dashboard: "대시보드",
- docs: "문서",
- changelog: "변경 로그",
- useCases: "사용 사례",
- navigation: "주요 메뉴",
- openMenu: "메뉴 열기",
- closeMenu: "메뉴 닫기",
- },
- hero: {
- headlineLine1: "다음에 합류할 10명은",
- headlineLine2: "사람이 아닐지도 모릅니다.",
- subheading:
- "Multica는 코딩 AI 에이전트를 진짜 팀원으로 만들어 주는 소스 공개 플랫폼입니다. 태스크를 맡기고, 진행 상황을 따라가고, 반복되는 노하우를 스킬로 쌓아 두세요. 사람과 AI 에이전트로 이루어진 팀을 한곳에서 관리할 수 있습니다.",
- cta: "무료로 시작하기",
- downloadDesktop: "데스크톱 다운로드",
- talkToSales: "영업팀에 문의",
- worksWith: "20개 이상의 AI 코딩 도구 지원",
- imageAlt: "사람과 AI 에이전트가 함께 태스크를 관리하는 Multica 보드 화면",
- },
- features: {
- teammates: {
- label: "팀원",
- title: "동료에게 일을 맡기듯, AI 에이전트에게 태스크를 맡기세요",
- description:
- "AI 에이전트는 더 이상 프롬프트를 기다리는 도구가 아닙니다. 자기 프로필이 있고, 진행 상황을 보고하고, 태스크를 만들고, 댓글을 달고, 상태를 바꿉니다. 활동 피드에는 사람과 AI 에이전트의 작업이 나란히 흐릅니다.",
- cards: [
- {
- title: "담당자 목록에 함께 표시",
- description:
- "사람과 AI 에이전트가 같은 담당자 목록에 나타납니다. 동료를 고르듯 에이전트를 고르면, 곧바로 작업이 시작됩니다.",
- },
- {
- title: "스스로 남기는 작업 기록",
- description:
- "AI 에이전트는 요청을 처리하는 동안 직접 댓글을 남기고 상태를 갱신합니다. 필요하면 새 태스크를 열어 다음 작업까지 이어 줍니다.",
- },
- {
- title: "팀 전체가 보는 타임라인",
- description:
- "사람과 AI 에이전트의 활동이 하나의 피드에 차곡차곡 쌓입니다. 누가 무엇을, 어디까지 했는지 따로 물어볼 필요가 없습니다.",
- },
- ],
- },
- autonomous: {
- label: "자율 실행",
- title: "맡겨 두기만 하세요 — 에이전트가 알아서 끝까지 해냅니다",
- description:
- "한 번 답하고 끝나는 프롬프트 도구가 아닙니다. 작업을 대기열에 넣고, 가져오고, 실행하고, 완료 또는 실패까지 보고하는 흐름 전체를 Multica가 관리합니다. 막힌 부분은 에이전트가 먼저 알려 주고, 진행 상황은 실시간으로 올라옵니다.",
- cards: [
- {
- title: "처음부터 끝까지 추적",
- description:
- "대기, 수락, 실행, 완료, 실패까지 모든 단계가 기록됩니다. 조용히 멈춰 버린 작업을 뒤늦게 발견하는 일이 줄어듭니다.",
- },
- {
- title: "막히면 먼저 알려 주는 에이전트",
- description:
- "에이전트가 더 진행하기 어렵다고 판단하면 바로 신호를 보냅니다. 몇 시간 뒤에야 진척이 없었다는 걸 알게 되는 일은 없습니다.",
- },
- {
- title: "실시간 진행 상황",
- description:
- "WebSocket 기반 업데이트로 작업 상황이 즉시 반영됩니다. 실시간으로 지켜봐도 좋고, 나중에 들어와 최신 타임라인만 훑어 봐도 좋습니다.",
- },
- ],
- },
- skills: {
- label: "스킬",
- title: "한 번 해결한 일은 팀의 스킬로 남습니다",
- description:
- "스킬은 코드, 설정, 맥락을 한데 묶은 재사용 가능한 작업 방식입니다. 한 번 정리해 두면 팀의 모든 AI 에이전트가 같은 방식으로 실행할 수 있고, 팀의 노하우는 시간이 흐를수록 차곡차곡 쌓입니다.",
- cards: [
- {
- title: "반복 작업을 스킬로 정리",
- description:
- "스테이징 배포, 마이그레이션 작성, PR 리뷰처럼 자주 반복되는 일을 스킬로 만들어 두세요. 어떤 에이전트든 같은 기준으로 실행할 수 있습니다.",
- },
- {
- title: "팀 전체와 공유",
- description:
- "한 사람이 만든 스킬을 모든 AI 에이전트가 사용할 수 있습니다. 개인의 시행착오가 곧 팀 전체의 일하는 방식이 됩니다.",
- },
- {
- title: "쌓일수록 빨라지는 팀",
- description:
- "처음에는 배포 하나를 맡깁니다. 시간이 지나면 에이전트가 배포하고, 테스트도 작성하고, 리뷰까지 거듭니다. 팀이 일하는 속도가 점점 더 빨라집니다.",
- },
- ],
- },
- runtimes: {
- label: "런타임",
- title: "실행 환경을 한곳에서 관리하세요",
- description:
- "로컬 데몬과 클라우드 런타임을 한 화면에서 관리합니다. 온라인 상태, 사용량, 활동 패턴을 한눈에 보고, 내 컴퓨터에 설치된 지원 코딩 도구를 자동으로 찾아 등록합니다.",
- cards: [
- {
- title: "하나로 모은 런타임 패널",
- description:
- "로컬 데몬과 클라우드 런타임을 같은 화면에서 살펴봅니다. 실행 환경마다 다른 관리 페이지를 열 필요가 없습니다.",
- },
- {
- title: "실시간 모니터링",
- description:
- "온라인/오프라인 상태, 사용량 차트, 활동 히트맵으로 각 실행 환경이 지금 어떻게 쓰이고 있는지 바로 확인할 수 있습니다.",
- },
- {
- title: "처음 실행할 때 자동 등록",
- description:
- "Multica는 Antigravity, Claude Code, CodeBuddy, CodeArts, Codex, Copilot, Cursor, DeepSeek Harness, DevEco Code, Devin CLI, Dim, Grok, Hermes, Kimi, Kiro CLI, MiniMax Code, Muse Code, Oh-My-Pi, OpenClaw, OpenCode, Pi, Qoder, Qoder CN, Qwen Code, QwenPaw, Reasonix, Trae CLI, ZeroClaw, ZCode 등 29개 지원 도구를 스캔해 이미 설치된 것을 런타임으로 자동 등록합니다.",
- },
- ],
- },
- },
- howItWorks: {
- label: "시작하기",
- headlineMain: "첫 AI 팀원을",
- headlineFaded: "한 시간 안에 합류시키세요.",
- steps: [
- {
- title: allowSignup
- ? "가입하고 워크스페이스 만들기"
- : "워크스페이스에 로그인하기",
- description: allowSignup
- ? "이메일을 입력하고 인증 코드를 확인하면 바로 시작할 수 있습니다. 워크스페이스는 자동으로 만들어지며, 별도의 설정 과정도 없습니다."
- : "이메일을 입력하고 인증 코드를 확인하면 바로 워크스페이스에 들어갈 수 있습니다. 별도의 설정 과정도 없습니다.",
- },
- {
- title: "CLI 설치하고 내 컴퓨터 연결하기",
- description:
- "`multica setup`을 실행하면 로그인, 데몬 실행, 지원 코딩 도구 스캔까지 차례대로 안내합니다. 이미 설치된 도구는 자동으로 런타임에 등록됩니다.",
- },
- {
- title: "첫 에이전트 만들기",
- description:
- "이름을 정하고 지침을 작성한 뒤 필요한 스킬을 연결하세요. 태스크를 배정하거나 댓글에서 멘션하면 에이전트가 곧바로 움직입니다.",
- },
- {
- title: "태스크를 맡기고 작업을 지켜보기",
- description:
- "담당자 목록에서 동료를 고르듯 에이전트를 선택하세요. 작업은 대기열에 들어가고, 에이전트가 받아서 실행합니다. 진행 상황은 실시간으로 확인할 수 있습니다.",
- },
- ],
- cta: "시작하기",
- ctaGithub: "GitHub에서 보기",
- ctaDocs: "문서 읽기",
- },
- openSource: {
- label: "소스 공개",
- headlineLine1: "모든 코드를,",
- headlineLine2: "여러분의 방식대로.",
- description:
- "Multica의 소스 코드는 공개되어 있습니다. 코드를 직접 들여다보고, 무료로 셀프 호스팅하고, 사람과 AI 에이전트가 함께 일하는 방식을 같이 만들어 갈 수 있습니다. Multica를 다른 사람에게 호스팅 서비스로 제공하려면 상용 라이선스가 필요합니다.",
- cta: "GitHub에서 스타 누르기",
- licensingCta: "라이선스 안내 →",
- highlights: [
- {
- title: "어디서든 셀프 호스팅",
- description:
- "자체 인프라에서 Multica를 직접 운영하세요. Docker Compose, 단일 바이너리, Kubernetes를 지원하며, 워크스페이스 데이터는 여러분이 관리하는 서버에 저장됩니다.",
- },
- {
- title: "벤더 종속 없음",
- description:
- "원하는 LLM 제공자를 쓰고, 에이전트 백엔드를 바꾸고, API를 확장하세요. 스택 전체를 직접 손에 쥘 수 있습니다.",
- },
- {
- title: "투명한 구조",
- description:
- "모든 코드를 열어 볼 수 있습니다. 에이전트가 어떻게 동작하는지, 작업이 어디로 전달되는지, 데이터가 어디를 거치는지 직접 확인할 수 있습니다.",
- },
- {
- title: "커뮤니티와 함께",
- description:
- "커뮤니티를 위해 만드는 데서 그치지 않고, 커뮤니티와 함께 만듭니다. 누구에게나 도움이 되는 스킬, 연동, 에이전트 백엔드를 직접 기여할 수 있습니다.",
- },
- ],
- },
+ ...koSiteCopy,
faq: {
label: "FAQ",
headline: "자주 묻는 질문.",
@@ -231,43 +50,6 @@ export function createKoDict(
},
],
},
- footer: {
- tagline:
- "사람과 AI 에이전트가 함께 일하는 팀을 위한 프로젝트 관리 도구. 소스 코드가 공개되어 있으며, 원하는 곳에 직접 호스팅할 수 있습니다.",
- cta: "시작하기",
- groups: {
- product: {
- label: "제품",
- links: [
- { label: "기능", href: "#features" },
- { label: "작동 방식", href: "#how-it-works" },
- { label: "사용 사례", href: "/usecases" },
- { label: "변경 로그", href: "/changelog" },
- { label: "다운로드", href: "/download" },
- ],
- },
- resources: {
- label: "리소스",
- links: [
- { label: "문서", href: docsHref },
- { label: "API", href: githubUrl },
- { label: "X (Twitter)", href: "https://x.com/MulticaAI" },
- { label: "Discord", href: discordUrl },
- ],
- },
- company: {
- label: "회사",
- links: [
- { label: "소개", href: "/about" },
- { label: "라이선스", href: "/licensing" },
- { label: "개인정보 처리방침", href: "/privacy" },
- { label: "영업팀 문의", href: "/contact-sales" },
- { label: "GitHub", href: githubUrl },
- ],
- },
- },
- copyright: "© {year} Multica. All rights reserved.",
- },
changelog: {
title: "변경 로그",
subtitle: "Multica의 새로운 업데이트와 개선 사항입니다.",
@@ -3810,50 +3592,44 @@ export function createKoDict(
],
},
download: {
+ platforms: {
+ macArm64: "macOS · Apple Silicon",
+ macX64: "macOS · Intel",
+ winX64: "Windows · x64",
+ winArm64: "Windows · ARM64",
+ linuxX64: "Linux · x64",
+ linuxArm64: "Linux · ARM64",
+ },
hero: {
- macArm64: {
- title: "macOS용 Multica",
- sub: "Apple Silicon · 데몬 포함, 별도 설정 없음",
- primary: "다운로드(.dmg)",
- altZip: "또는 .zip 다운로드",
- },
- macIntel: {
- title: "macOS용 Multica",
- sub: "Intel · 데몬 포함, 별도 설정 없음",
- primary: "다운로드(.dmg)",
- altZip: "또는 .zip 다운로드",
- },
- winX64: {
- title: "Windows용 Multica",
- sub: "데몬 포함, 별도 설정 없음",
- primary: "다운로드(.exe)",
- },
- winArm64: {
- title: "Windows용 Multica",
- sub: "ARM · 데몬 포함, 별도 설정 없음",
- primary: "다운로드(.exe)",
- },
- linux: {
- title: "Linux용 Multica",
- sub: "데몬 포함, 별도 설정 없음",
- primary: "AppImage 다운로드",
- altFormats: "또는 .deb / .rpm",
- },
- unknown: {
- title: "플랫폼 선택",
- sub: "모든 설치 파일은 아래에 정리되어 있습니다.",
- },
- safariMacHint: "Intel Mac을 사용 중인가요? 아래에서 Intel 버전을 선택하세요.",
- archFallbackHint: "아키텍처가 맞지 않나요? 아래에서 모든 형식을 확인하세요.",
+ eyebrow: "데스크톱 앱",
+ title: {
+ mac: "macOS용 Multica 다운로드",
+ windows: "Windows용 Multica 다운로드",
+ linux: "Linux용 Multica 다운로드",
+ other: "Multica 다운로드",
+ },
+ lead: "데스크톱 앱에는 에이전트 데몬이 포함되어 있어, 이 컴퓨터의 Claude Code, Codex 등 코딩 에이전트가 자동으로 연결됩니다.",
+ leadOther: "macOS, Windows, Linux용 데스크톱 앱이며, 모두 에이전트 데몬이 내장되어 있습니다.",
+ mobileNote: "Multica 데스크톱 앱은 macOS, Windows, Linux에서 실행됩니다. 컴퓨터에서 이 페이지를 열어 다운로드하세요.",
+ primary: {
+ macArm64Dmg: "Apple Silicon용 다운로드",
+ macX64Dmg: "Intel용 다운로드",
+ winX64Exe: "Windows용 다운로드",
+ winArm64Exe: "Windows ARM용 다운로드",
+ linuxAmd64AppImage: "AppImage 다운로드",
+ linuxArm64AppImage: "AppImage 다운로드",
+ },
+ alternate: {
+ macArm64Dmg: "Apple Silicon Mac",
+ macX64Dmg: "Intel Mac",
+ },
+ released: "{date} 출시",
+ whatsNew: "새로운 내용",
+ versionUnavailable: "버전을 확인할 수 없습니다. GitHub에서 모든 릴리스를 확인하세요.",
},
allPlatforms: {
- title: "모든 플랫폼",
- macArm64Label: "macOS · Apple Silicon",
- macX64Label: "macOS · Intel",
- winX64Label: "Windows · x64",
- winArm64Label: "Windows · ARM64",
- linuxX64Label: "Linux · x64",
- linuxArm64Label: "Linux · ARM64",
+ title: "모든 다운로드",
+ thisDevice: "이 컴퓨터",
formatDmg: ".dmg",
formatZip: ".zip",
formatExe: ".exe",
@@ -3861,28 +3637,55 @@ export function createKoDict(
formatDeb: ".deb",
formatRpm: ".rpm",
unavailable: "사용할 수 없음",
+ allReleases: "모든 릴리스",
},
cli: {
- title: "CLI가 더 편하신가요?",
- sub: "서버, 원격 개발 환경, headless 환경에 적합합니다. 데스크톱과 동일한 데몬을 터미널에서 바로 설치할 수 있습니다.",
+ title: "서버나 원격 개발 환경에서 사용하시나요?",
+ sub: "CLI를 설치해 그곳에서 같은 데몬을 실행하세요. SSH에서도 같은 명령을 그대로 사용할 수 있습니다.",
installLabel: "설치",
platformGroup: "플랫폼 선택",
platformMacosLinux: "macOS / Linux",
platformWindows: "Windows",
startLabel: "데몬 시작",
- sshNote: "이미 서버에 접속해 있나요? 같은 명령을 SSH에서도 그대로 사용할 수 있습니다.",
copyLabel: "복사",
copiedLabel: "복사했습니다",
},
- cloud: {
- title: "클라우드 런타임 (대기자 명단)",
- sub: "Multica가 런타임을 직접 호스팅해 드립니다. 아직 정식 출시 전입니다. 이메일을 남겨 주시면 준비되는 대로 알려드릴게요.",
- },
- footer: {
- releaseNotes: "{version}의 새로운 내용",
- allReleases: "모든 릴리스 보기",
- currentVersion: "현재 버전: {version}",
- versionUnavailable: "버전을 확인할 수 없습니다. GitHub를 확인하세요.",
+ started: {
+ title: "다운로드가 시작되었습니다",
+ retry: "시작되지 않았나요? 다시 시도",
+ allDownloads: "모든 다운로드",
+ install: {
+ title: "설치",
+ dmg: ".dmg를 열고 Multica를 응용 프로그램 폴더로 드래그하세요.",
+ zip: "압축을 풀고 Multica를 응용 프로그램 폴더로 옮기세요.",
+ exe: "설치 프로그램을 실행하세요. 완료되면 Multica가 열립니다.",
+ appImage: "AppImage에 실행 권한을 준 다음 실행하세요.",
+ deb: "apt 또는 사용 중인 패키지 관리자로 .deb를 설치하세요.",
+ rpm: "dnf 또는 사용 중인 패키지 관리자로 .rpm을 설치하세요.",
+ },
+ signIn: {
+ title: "로그인",
+ body: "Multica를 열고 계정으로 로그인하세요.",
+ installed: "이미 설치했나요?",
+ open: "Multica 열기",
+ },
+ agents: {
+ title: "에이전트 연결",
+ body: "Multica가 이 컴퓨터의 Claude Code, Codex 등 코딩 에이전트를 자동으로 찾습니다.",
+ },
+ community: {
+ label: "다운로드하는 동안",
+ githubTitle: "GitHub에서 Multica 팔로우하기",
+ githubBody: "저장소에 Star를 눌러 새 릴리스 소식을 받아 보거나, 방금 다운로드한 앱의 코드를 살펴보세요.",
+ star: "GitHub에서 Star",
+ stars: "Star {count}개",
+ discordTitle: "Discord 참여하기",
+ discordBody: "질문하고, 워크플로를 공유하고, 팀과 직접 이야기하세요.",
+ join: "참여",
+ xTitle: "@MulticaAI 팔로우",
+ xBody: "릴리스 소식과 앞으로의 계획.",
+ follow: "팔로우",
+ },
},
},
contactSales: {
diff --git a/apps/web/features/landing/i18n/site-en.ts b/apps/web/features/landing/i18n/site-en.ts
new file mode 100644
index 0000000000..277743f625
--- /dev/null
+++ b/apps/web/features/landing/i18n/site-en.ts
@@ -0,0 +1,177 @@
+import type { LandingDict } from "./types";
+import { enDemoCopy } from "./demo-en";
+
+export const enSiteCopy: Pick<LandingDict, "site" | "home" | "demo" | "meta"> = {
+ demo: enDemoCopy,
+ meta: {
+ home: {
+ title: "Multica — Project Management for Human + Agent Teams",
+ description:
+ "Source-available platform that turns coding agents into real teammates. Assign tasks, track progress, compound skills.",
+ ogTitle: "Multica — Project Management for Human + Agent Teams",
+ ogDescription: "Manage your human + agent workforce in one place.",
+ },
+ about: {
+ title: "About",
+ description:
+ "Learn about Multica — multiplexed information and computing agent. A source-available project management platform for human + agent teams.",
+ ogTitle: "About Multica",
+ ogDescription: "The story behind Multica and why we're building project management for human + agent teams.",
+ },
+ changelog: {
+ title: "Changelog",
+ description: "See what's new in Multica — latest features, improvements, and fixes.",
+ ogTitle: "Changelog | Multica",
+ ogDescription: "Latest updates and releases from Multica.",
+ },
+ contactSales: {
+ title: "Contact Sales",
+ description: "Talk to the Multica team about rolling out human + agent workflows at your company.",
+ ogTitle: "Contact Sales — Multica",
+ ogDescription: "Tell us about your team. We’ll respond within three business days.",
+ },
+ download: {
+ title: "Download Multica",
+ description: "Download Multica for macOS, Windows, or Linux — or install the CLI for servers and remote dev boxes.",
+ ogTitle: "Download Multica",
+ ogDescription: "Get the Multica desktop app with a bundled daemon, or install the CLI for servers and remote dev boxes.",
+ },
+ licensing: {
+ title: "Licensing",
+ description:
+ "When you can use Multica for free and when you need a commercial license, explained with common scenarios.",
+ ogTitle: "Licensing — Multica",
+ ogDescription:
+ "Free to self-host inside your organization. Offering Multica to others as a hosted service needs a commercial license.",
+ },
+ privacy: {
+ title: "Privacy Policy",
+ description: "How Multica collects, uses, and protects personal information on multica.ai and Multica Cloud.",
+ ogTitle: "Privacy Policy — Multica",
+ ogDescription: "How Multica collects, uses, and protects personal information.",
+ },
+ },
+ site: {
+ nav: {
+ product: "Product",
+ solutions: "Solutions",
+ resources: "Resources",
+ customers: "Customers",
+ pricing: "Pricing",
+ documentation: "Documentation",
+ changelog: "Changelog",
+ useCases: "Use cases",
+ blog: "Blog",
+ download: "Download",
+ company: "Company",
+ about: "About",
+ careers: "Careers",
+ press: "Press & brand",
+ contactSales: "Contact sales",
+ trust: "Trust",
+ security: "Security",
+ licensing: "Licensing",
+ privacy: "Privacy",
+ },
+ header: {
+ home: "Multica home",
+ githubStars: "GitHub, {count} stars",
+ logIn: "Log in",
+ getStarted: "Get started",
+ dashboard: "Dashboard",
+ },
+ footer: {
+ tagline: "The workspace for human and agent teams.",
+ navigation: "Footer",
+ language: "Language",
+ copyright: "© {year} Multica. All rights reserved.",
+ starTurns: "Everyone has blown the star round {count} times",
+ },
+ localeSuggestion: {
+ message: "Multica is available in English.",
+ action: "View in English",
+ dismiss: "Dismiss",
+ },
+ cta: {
+ title: "Put your first agent to work today",
+ lead: "Connect the agents you already use and give one its first issue.",
+ getStarted: "Get started",
+ bookDemo: "Book a demo",
+ },
+ },
+ home: {
+ hero: {
+ headlinePrefix: "Turn ",
+ headlineSuffix: " into a teammate.",
+ lead: "One workspace for your team and its agents: assign the work, track it, and review it. You stay in control.",
+ download: "Download",
+ downloadFor: "Download for {os}",
+ alsoFor: "Also for {platforms}",
+ bookDemo: "Book a demo",
+ workflowGroup: "Workflow",
+ workflows: {
+ ship: {
+ label: "Ship a feature",
+ short: "Ship",
+ description:
+ "A Multica project board run by a workflow: an issue moves from Spec to Build, Code review, Approve and Shipped, handed to a planning agent, a coding agent, a review agent and a teammate in turn",
+ },
+ launch: {
+ label: "Launch content",
+ short: "Launch",
+ description:
+ "A Multica project board for marketing run by a workflow: a launch post moves from Brief to Research, Draft, Edit and Published, handed to a research agent, a writing agent and an editor in turn",
+ },
+ triage: {
+ label: "Triage feedback",
+ short: "Triage",
+ description:
+ "A Multica project board for support run by a workflow: an autopilot files user reports into Inbox, and the issue moves to Reproduce, Fix, Reply and Resolved, handed to a triage agent, a QA agent and a coding agent in turn",
+ },
+ },
+ },
+ logoWall: { title: "Used by people at these companies and universities" },
+ features: {
+ title: "Built for teams of people and agents",
+ items: {
+ runtimes: {
+ title: "Runs on your machines, or in our cloud",
+ body: "Connect a laptop or a server with one command and Multica finds the coding agents installed on it. Or run them in managed cloud sandboxes.",
+ alt: "The Runtimes page listing two machines and Multica Cloud, with the coding tools found on each",
+ },
+ workflows: {
+ title: "Workflows hand off every step",
+ body: "Give every status an owner. Moving an issue to the next step hands it to that step’s agent or teammate.",
+ alt: "The Ship a feature workflow: Spec handed to Lead Agent, Build to Backend Agent, Code review to QA Agent, Approve to Mia Chen, then Shipped, with the Build step's handoff settings open",
+ },
+ chat: {
+ title: "Mention an agent in chat",
+ body: "From Slack, Lark, DingTalk, WeCom, or Telegram. The agent reads the thread, files the issue, and gets to work.",
+ alt: "A team chat channel where Mia mentions Backend Agent about failing exports, and the agent replies in the channel with a link to the Multica issue it filed and is working on",
+ },
+ autopilots: {
+ title: "Autopilots run on a schedule",
+ body: "Upgrades, triage, and reports file themselves and land with an agent, every hour or every Monday.",
+ alt: "The Autopilots list: five scheduled jobs, each with its agent and its next run",
+ },
+ skills: {
+ title: "Skills the whole team shares",
+ body: "Write down how your team does a thing once, and every agent follows it.",
+ alt: "The Skills list: five skills the team wrote, each with the agents that use it",
+ },
+ },
+ },
+ agents: {
+ lead: "No new agent to learn.",
+ title: "Bring the ones you already use.",
+ all: "All 27 agents",
+ },
+ updates: {
+ eyebrow: "Changelog",
+ title: "Recently shipped.",
+ latest: "Latest",
+ more: "+{count} more",
+ all: "All releases",
+ },
+ },
+};
diff --git a/apps/web/features/landing/i18n/site-ja.ts b/apps/web/features/landing/i18n/site-ja.ts
new file mode 100644
index 0000000000..112ac85291
--- /dev/null
+++ b/apps/web/features/landing/i18n/site-ja.ts
@@ -0,0 +1,175 @@
+import type { LandingDict } from "./types";
+import { jaDemoCopy } from "./demo-ja";
+
+export const jaSiteCopy: Pick<LandingDict, "site" | "home" | "demo" | "meta"> = {
+ demo: jaDemoCopy,
+ meta: {
+ home: {
+ title: "Multica — 人とエージェントのチームのためのプロジェクト管理",
+ description:
+ "コーディングエージェントを本当のチームメイトにする、ソース公開のプラットフォーム。仕事を割り当て、進み具合を追い、スキルを積み上げる。",
+ ogTitle: "Multica — 人とエージェントのチームのためのプロジェクト管理",
+ ogDescription: "人とエージェントのチームを、ひとつの場所で管理。",
+ },
+ about: {
+ title: "会社概要",
+ description:
+ "Multica(Multiplexed Information and Computing Agent)について。人とエージェントのチームのための、ソース公開のプロジェクト管理プラットフォームです。",
+ ogTitle: "Multica について",
+ ogDescription: "Multica が生まれた経緯と、人とエージェントのチームのためのプロジェクト管理をつくる理由。",
+ },
+ changelog: {
+ title: "変更履歴",
+ description: "Multica の最新情報。新機能、改善、修正をまとめています。",
+ ogTitle: "変更履歴 | Multica",
+ ogDescription: "Multica の最新のアップデートとリリース。",
+ },
+ contactSales: {
+ title: "営業に問い合わせる",
+ description: "人とエージェントが協働するワークフローを社内に導入する方法を、Multica チームにご相談ください。",
+ ogTitle: "営業に問い合わせる — Multica",
+ ogDescription: "チームについて教えてください。3 営業日以内にご返信します。",
+ },
+ download: {
+ title: "Multica をダウンロード",
+ description: "macOS、Windows、Linux 版の Multica をダウンロード。サーバーやリモート開発環境には CLI をインストールできます。",
+ ogTitle: "Multica をダウンロード",
+ ogDescription: "デーモン同梱の Multica デスクトップアプリを入手するか、サーバーやリモート開発環境に CLI をインストールしましょう。",
+ },
+ licensing: {
+ title: "ライセンス",
+ description: "Multica を無料で使える場合と商用ライセンスが必要な場合を、よくあるケースで説明します。",
+ ogTitle: "ライセンス — Multica",
+ ogDescription: "組織内でのセルフホストは無料です。Multica をホスティングサービスとして他者に提供するには商用ライセンスが必要です。",
+ },
+ privacy: {
+ title: "プライバシーポリシー",
+ description: "Multica が multica.ai と Multica Cloud で個人情報をどのように収集、利用、保護するか。",
+ ogTitle: "プライバシーポリシー — Multica",
+ ogDescription: "Multica が個人情報をどのように収集、利用、保護するか。",
+ },
+ },
+ site: {
+ nav: {
+ product: "プロダクト",
+ solutions: "ソリューション",
+ resources: "リソース",
+ customers: "導入事例",
+ pricing: "料金",
+ documentation: "ドキュメント",
+ changelog: "変更履歴",
+ useCases: "ユースケース",
+ blog: "ブログ",
+ download: "ダウンロード",
+ company: "会社",
+ about: "会社概要",
+ careers: "採用情報",
+ press: "プレス・ブランド",
+ contactSales: "営業に問い合わせる",
+ trust: "トラスト",
+ security: "セキュリティ",
+ licensing: "ライセンス",
+ privacy: "プライバシー",
+ },
+ header: {
+ home: "Multica ホーム",
+ githubStars: "GitHub、スター {count}",
+ logIn: "ログイン",
+ getStarted: "始める",
+ dashboard: "ダッシュボード",
+ },
+ footer: {
+ tagline: "人とエージェントのチームのためのワークスペース。",
+ navigation: "フッター",
+ language: "言語",
+ copyright: "© {year} Multica. All rights reserved.",
+ starTurns: "みんなでこの星を {count} 回転させました",
+ },
+ localeSuggestion: {
+ message: "Multica は日本語でもご覧いただけます。",
+ action: "日本語で表示",
+ dismiss: "閉じる",
+ },
+ cta: {
+ title: "最初のエージェントを、今日から動かそう",
+ lead: "いま使っているエージェントをつないで、最初の Issue を任せてみましょう。",
+ getStarted: "始める",
+ bookDemo: "デモを予約",
+ },
+ },
+ home: {
+ hero: {
+ headlinePrefix: "",
+ headlineSuffix: " を、チームの一員に。",
+ lead: "チームとエージェントがひとつのワークスペースで働きます。仕事を割り当て、進み具合を追い、結果をレビュー。主導権はいつもあなたにあります。",
+ download: "ダウンロード",
+ downloadFor: "{os} 版をダウンロード",
+ alsoFor: "ほかのバージョン: {platforms}",
+ bookDemo: "デモを予約",
+ workflowGroup: "ワークフロー",
+ workflows: {
+ ship: {
+ label: "機能をリリース",
+ short: "リリース",
+ description:
+ "ワークフローで動く Multica のプロジェクトボード。Issue が仕様、実装、コードレビュー、承認、リリース済みと進み、計画エージェント、コーディングエージェント、レビューエージェント、チームメンバーへ順に引き継がれます",
+ },
+ launch: {
+ label: "コンテンツを公開",
+ short: "公開",
+ description:
+ "ワークフローで動くマーケティングチームのプロジェクトボード。告知記事が企画、リサーチ、下書き、編集、公開済みと進み、リサーチエージェント、ライティングエージェント、編集者へ順に引き継がれます",
+ },
+ triage: {
+ label: "フィードバックを仕分け",
+ short: "仕分け",
+ description:
+ "ワークフローで動くサポートチームのプロジェクトボード。Autopilot がユーザーの報告を受付に登録し、Issue が再現、修正、返信、解決済みと進み、トリアージエージェント、QA エージェント、コーディングエージェントへ順に引き継がれます",
+ },
+ },
+ },
+ logoWall: { title: "これらの企業や大学の人たちが Multica を利用中" },
+ features: {
+ title: "人とエージェントのチームのために",
+ items: {
+ runtimes: {
+ title: "自分のマシンでも、クラウドでも",
+ body: "コマンドひとつでノート PC やサーバーをつなぐと、Multica がインストール済みのコーディングエージェントを見つけます。マネージドなクラウドサンドボックスで動かすこともできます。",
+ alt: "ランタイムのページ。2 台のマシンと Multica Cloud、それぞれで見つかったコーディングツールが並んでいる",
+ },
+ workflows: {
+ title: "ワークフローが、すべてのステップを引き継ぐ",
+ body: "ステータスごとに担当を決めておけば、Issue を次のステップに進めるだけで、そのステップのエージェントやメンバーに渡ります。",
+ alt: "「機能をリリース」ワークフロー。仕様は Lead Agent、実装は Backend Agent、コードレビューは QA Agent、承認は Mia Chen に渡り、最後にリリース済み。実装ステップの引き継ぎ設定が開いている",
+ },
+ chat: {
+ title: "チャットでエージェントにメンション",
+ body: "Slack、Lark、DingTalk、WeCom、Telegram から。エージェントがスレッドを読み、Issue を作って作業を始めます。",
+ alt: "チームのチャットチャンネル。Mia がエクスポートの失敗について Backend Agent にメンションし、エージェントが作成して対応中の Multica Issue へのリンク付きで返信している",
+ },
+ autopilots: {
+ title: "Autopilot がスケジュールどおりに実行",
+ body: "アップグレード、トリアージ、レポートが自動で Issue になり、エージェントに届きます。毎時でも、毎週月曜でも。",
+ alt: "Autopilot の一覧。5 つの定期ジョブと、それぞれのエージェントと次回の実行時刻",
+ },
+ skills: {
+ title: "チーム全員で共有するスキル",
+ body: "チームのやり方を一度書いておけば、どのエージェントもそのとおりに動きます。",
+ alt: "スキルの一覧。チームが書いた 5 つのスキルと、それを使うエージェント",
+ },
+ },
+ },
+ agents: {
+ lead: "新しいエージェントを覚える必要はありません。",
+ title: "いま使っているものを、そのまま。",
+ all: "全 27 種のエージェント",
+ },
+ updates: {
+ eyebrow: "変更履歴",
+ title: "最近のリリース。",
+ latest: "最新",
+ more: "ほか {count} 件",
+ all: "すべてのリリース",
+ },
+ },
+};
diff --git a/apps/web/features/landing/i18n/site-ko.ts b/apps/web/features/landing/i18n/site-ko.ts
new file mode 100644
index 0000000000..448c44b2c8
--- /dev/null
+++ b/apps/web/features/landing/i18n/site-ko.ts
@@ -0,0 +1,174 @@
+import type { LandingDict } from "./types";
+import { koDemoCopy } from "./demo-ko";
+
+export const koSiteCopy: Pick<LandingDict, "site" | "home" | "demo" | "meta"> = {
+ demo: koDemoCopy,
+ meta: {
+ home: {
+ title: "Multica — 사람과 에이전트 팀을 위한 프로젝트 관리",
+ description: "코딩 에이전트를 진짜 팀원으로 만드는 소스 공개 플랫폼. 일을 맡기고, 진행을 추적하고, 스킬을 쌓으세요.",
+ ogTitle: "Multica — 사람과 에이전트 팀을 위한 프로젝트 관리",
+ ogDescription: "사람과 에이전트로 이루어진 팀을 한곳에서 관리하세요.",
+ },
+ about: {
+ title: "회사 소개",
+ description:
+ "Multica(Multiplexed Information and Computing Agent)를 소개합니다. 사람과 에이전트 팀을 위한 소스 공개 프로젝트 관리 플랫폼입니다.",
+ ogTitle: "Multica 소개",
+ ogDescription: "Multica를 만든 이야기, 그리고 사람과 에이전트 팀을 위한 프로젝트 관리를 만드는 이유.",
+ },
+ changelog: {
+ title: "변경 로그",
+ description: "Multica의 새로운 소식. 최신 기능, 개선 사항, 수정 사항을 확인하세요.",
+ ogTitle: "변경 로그 | Multica",
+ ogDescription: "Multica의 최신 업데이트와 릴리스.",
+ },
+ contactSales: {
+ title: "영업팀 문의",
+ description: "회사에 사람과 에이전트가 함께하는 워크플로를 도입하는 방법을 Multica 팀과 상의하세요.",
+ ogTitle: "영업팀 문의 — Multica",
+ ogDescription: "팀에 대해 알려 주세요. 영업일 기준 3일 안에 답변드립니다.",
+ },
+ download: {
+ title: "Multica 다운로드",
+ description: "macOS, Windows, Linux용 Multica를 다운로드하거나, 서버와 원격 개발 환경에 CLI를 설치하세요.",
+ ogTitle: "Multica 다운로드",
+ ogDescription: "데몬이 포함된 Multica 데스크톱 앱을 받거나, 서버와 원격 개발 환경에 CLI를 설치하세요.",
+ },
+ licensing: {
+ title: "라이선스",
+ description: "Multica를 무료로 쓸 수 있는 경우와 상용 라이선스가 필요한 경우를 흔한 사례로 설명합니다.",
+ ogTitle: "라이선스 — Multica",
+ ogDescription: "조직 내부에서 자체 호스팅하는 것은 무료입니다. Multica를 다른 사람에게 호스팅 서비스로 제공하려면 상용 라이선스가 필요합니다.",
+ },
+ privacy: {
+ title: "개인정보 처리방침",
+ description: "Multica가 multica.ai와 Multica Cloud에서 개인정보를 수집, 이용, 보호하는 방법.",
+ ogTitle: "개인정보 처리방침 — Multica",
+ ogDescription: "Multica가 개인정보를 수집, 이용, 보호하는 방법.",
+ },
+ },
+ site: {
+ nav: {
+ product: "제품",
+ solutions: "솔루션",
+ resources: "리소스",
+ customers: "고객 사례",
+ pricing: "요금제",
+ documentation: "문서",
+ changelog: "변경 로그",
+ useCases: "사용 사례",
+ blog: "블로그",
+ download: "다운로드",
+ company: "회사",
+ about: "회사 소개",
+ careers: "채용",
+ press: "보도 자료·브랜드",
+ contactSales: "영업팀 문의",
+ trust: "신뢰",
+ security: "보안",
+ licensing: "라이선스",
+ privacy: "개인정보 처리방침",
+ },
+ header: {
+ home: "Multica 홈",
+ githubStars: "GitHub, 스타 {count}개",
+ logIn: "로그인",
+ getStarted: "시작하기",
+ dashboard: "대시보드",
+ },
+ footer: {
+ tagline: "사람과 에이전트가 함께 일하는 팀의 워크스페이스.",
+ navigation: "푸터",
+ language: "언어",
+ copyright: "© {year} Multica. All rights reserved.",
+ starTurns: "모두 함께 이 별을 {count}바퀴 돌렸어요",
+ },
+ localeSuggestion: {
+ message: "Multica를 한국어로 볼 수 있어요.",
+ action: "한국어로 보기",
+ dismiss: "닫기",
+ },
+ cta: {
+ title: "오늘 첫 에이전트에게 일을 맡겨 보세요",
+ lead: "이미 쓰고 있는 에이전트를 연결하고, 첫 Issue를 맡겨 보세요.",
+ getStarted: "시작하기",
+ bookDemo: "데모 예약",
+ },
+ },
+ home: {
+ hero: {
+ headlinePrefix: "",
+ headlineSuffix: ", 이제 우리 팀의 동료로.",
+ lead: "팀과 에이전트가 하나의 워크스페이스에서 일합니다. 일을 맡기고, 진행 상황을 확인하고, 결과를 검토하세요. 결정은 언제나 사람이 합니다.",
+ download: "다운로드",
+ downloadFor: "{os}용 다운로드",
+ alsoFor: "다른 버전: {platforms}",
+ bookDemo: "데모 예약",
+ workflowGroup: "워크플로",
+ workflows: {
+ ship: {
+ label: "기능 출시",
+ short: "출시",
+ description:
+ "워크플로로 움직이는 Multica 프로젝트 보드. Issue가 기획, 개발, 코드 리뷰, 승인, 출시됨 순으로 진행되며 기획 에이전트, 코딩 에이전트, 리뷰 에이전트, 팀원에게 차례로 넘어갑니다",
+ },
+ launch: {
+ label: "콘텐츠 발행",
+ short: "발행",
+ description:
+ "워크플로로 움직이는 마케팅 팀의 프로젝트 보드. 출시 글이 브리프, 리서치, 초안, 편집, 게시됨 순으로 진행되며 리서치 에이전트, 작성 에이전트, 편집자에게 차례로 넘어갑니다",
+ },
+ triage: {
+ label: "피드백 분류",
+ short: "분류",
+ description:
+ "워크플로로 움직이는 지원 팀의 프로젝트 보드. 오토파일럿이 사용자 제보를 접수에 등록하고, Issue가 재현, 수정, 답변, 해결됨 순으로 진행되며 분류 에이전트, QA 에이전트, 코딩 에이전트에게 차례로 넘어갑니다",
+ },
+ },
+ },
+ logoWall: { title: "이런 기업과 대학의 사람들이 Multica를 사용합니다" },
+ features: {
+ title: "사람과 에이전트로 이루어진 팀을 위해",
+ items: {
+ runtimes: {
+ title: "내 컴퓨터에서도, 클라우드에서도",
+ body: "명령어 하나로 노트북이나 서버를 연결하면, Multica가 설치된 코딩 에이전트를 찾아냅니다. 관리형 클라우드 샌드박스에서 실행할 수도 있습니다.",
+ alt: "런타임 페이지. 컴퓨터 두 대와 Multica Cloud, 그리고 각각에서 찾은 코딩 도구가 표시되어 있다",
+ },
+ workflows: {
+ title: "워크플로가 단계마다 일을 넘겨줍니다",
+ body: "상태마다 담당자를 정해 두세요. Issue를 다음 단계로 옮기면 그 단계의 에이전트나 팀원에게 넘어갑니다.",
+ alt: "‘기능 출시’ 워크플로. 기획은 Lead Agent, 개발은 Backend Agent, 코드 리뷰는 QA Agent, 승인은 Mia Chen에게 넘어가고 마지막은 출시됨. 개발 단계의 인계 설정이 열려 있다",
+ },
+ chat: {
+ title: "채팅에서 에이전트를 멘션하세요",
+ body: "Slack, Lark, DingTalk, WeCom, Telegram에서. 에이전트가 스레드를 읽고, Issue를 만들고, 작업을 시작합니다.",
+ alt: "팀 채팅 채널. Mia가 내보내기 실패 건으로 Backend Agent를 멘션하고, 에이전트가 직접 만들어 처리 중인 Multica Issue 링크와 함께 답한다",
+ },
+ autopilots: {
+ title: "오토파일럿이 일정에 맞춰 실행됩니다",
+ body: "업그레이드, 분류, 리포트가 매시간 또는 매주 월요일 자동으로 Issue가 되어 에이전트에게 전달됩니다.",
+ alt: "오토파일럿 목록. 예약된 작업 다섯 개와 각 작업의 에이전트, 다음 실행 시각",
+ },
+ skills: {
+ title: "팀 전체가 함께 쓰는 스킬",
+ body: "팀의 일하는 방식을 한 번만 적어 두면, 모든 에이전트가 그대로 따릅니다.",
+ alt: "스킬 목록. 팀이 작성한 스킬 다섯 개와 각 스킬을 쓰는 에이전트",
+ },
+ },
+ },
+ agents: {
+ lead: "새로운 에이전트를 배울 필요는 없습니다.",
+ title: "이미 쓰고 있는 그대로.",
+ all: "에이전트 27종 전체",
+ },
+ updates: {
+ eyebrow: "변경 로그",
+ title: "최근 출시.",
+ latest: "최신",
+ more: "외 {count}건",
+ all: "모든 릴리스",
+ },
+ },
+};
diff --git a/apps/web/features/landing/i18n/site-zh.ts b/apps/web/features/landing/i18n/site-zh.ts
new file mode 100644
index 0000000000..7f4a1fc9e4
--- /dev/null
+++ b/apps/web/features/landing/i18n/site-zh.ts
@@ -0,0 +1,173 @@
+import type { LandingDict } from "./types";
+import { zhDemoCopy } from "./demo-zh";
+
+export const zhSiteCopy: Pick<LandingDict, "site" | "home" | "demo" | "meta"> = {
+ demo: zhDemoCopy,
+ meta: {
+ home: {
+ title: "Multica — 人和智能体团队的项目管理平台",
+ description: "源码公开的平台,把编码智能体变成真正的队友。分派任务、跟进进度、沉淀技能。",
+ ogTitle: "Multica — 人和智能体团队的项目管理平台",
+ ogDescription: "在一个地方管理你的人和智能体团队。",
+ },
+ about: {
+ title: "关于我们",
+ description: "了解 Multica(Multiplexed Information and Computing Agent):一个源码公开、为人和智能体团队打造的项目管理平台。",
+ ogTitle: "关于 Multica",
+ ogDescription: "Multica 背后的故事,以及我们为什么要为人和智能体团队做项目管理。",
+ },
+ changelog: {
+ title: "更新日志",
+ description: "看看 Multica 有什么新变化:最新功能、改进和修复。",
+ ogTitle: "更新日志 | Multica",
+ ogDescription: "Multica 的最新更新和版本发布。",
+ },
+ contactSales: {
+ title: "联系销售",
+ description: "和 Multica 团队聊聊,怎么在你的公司落地人和智能体协作的工作流。",
+ ogTitle: "联系销售 — Multica",
+ ogDescription: "介绍一下你的团队,我们会在三个工作日内回复。",
+ },
+ download: {
+ title: "下载 Multica",
+ description: "下载适用于 macOS、Windows 或 Linux 的 Multica,或在服务器和远程开发机上安装 CLI。",
+ ogTitle: "下载 Multica",
+ ogDescription: "获取自带守护进程的 Multica 桌面应用,或在服务器和远程开发机上安装 CLI。",
+ },
+ licensing: {
+ title: "许可协议",
+ description: "什么时候可以免费使用 Multica,什么时候需要商业许可,用常见场景讲清楚。",
+ ogTitle: "许可协议 — Multica",
+ ogDescription: "在组织内部自托管免费。把 Multica 作为托管服务提供给他人,需要商业许可。",
+ },
+ privacy: {
+ title: "隐私政策",
+ description: "Multica 如何在 multica.ai 和 Multica Cloud 上收集、使用和保护个人信息。",
+ ogTitle: "隐私政策 — Multica",
+ ogDescription: "Multica 如何收集、使用和保护个人信息。",
+ },
+ },
+ site: {
+ nav: {
+ product: "产品",
+ solutions: "解决方案",
+ resources: "资源",
+ customers: "客户",
+ pricing: "价格",
+ documentation: "文档",
+ changelog: "更新日志",
+ useCases: "案例",
+ blog: "博客",
+ download: "下载",
+ company: "公司",
+ about: "关于我们",
+ careers: "加入我们",
+ press: "媒体与品牌",
+ contactSales: "联系销售",
+ trust: "信任与合规",
+ security: "安全",
+ licensing: "许可协议",
+ privacy: "隐私政策",
+ },
+ header: {
+ home: "Multica 首页",
+ githubStars: "GitHub,{count} 颗星",
+ logIn: "登录",
+ getStarted: "开始使用",
+ dashboard: "进入工作台",
+ },
+ footer: {
+ tagline: "人和智能体一起工作的团队空间。",
+ navigation: "页脚导航",
+ language: "语言",
+ copyright: "© {year} Multica. 保留所有权利。",
+ starTurns: "大家已经把这颗星吹转了 {count} 圈",
+ },
+ localeSuggestion: {
+ message: "Multica 提供中文版。",
+ action: "切换到中文",
+ dismiss: "关闭",
+ },
+ cta: {
+ title: "今天就让第一个智能体开工",
+ lead: "接入你已经在用的智能体,给它派第一个 Issue。",
+ getStarted: "开始使用",
+ bookDemo: "预约演示",
+ },
+ },
+ home: {
+ hero: {
+ headlinePrefix: "让 ",
+ headlineSuffix: " 成为你的队友。",
+ lead: "你的团队和智能体共用一个工作空间:分派任务、跟进进度、审核结果,主动权始终在你手里。",
+ download: "下载",
+ downloadFor: "下载 {os} 版",
+ alsoFor: "其他版本:{platforms}",
+ bookDemo: "预约演示",
+ workflowGroup: "工作流",
+ workflows: {
+ ship: {
+ label: "交付一个功能",
+ short: "交付",
+ description:
+ "一个由工作流驱动的 Multica 项目看板:Issue 依次经过方案、开发、代码审查、审批和已上线,轮流交给规划智能体、编码智能体、审查智能体和一位同事",
+ },
+ launch: {
+ label: "发布内容",
+ short: "发布",
+ description:
+ "一个由工作流驱动的市场团队项目看板:一篇发布文章依次经过需求、调研、撰写、编辑和已发布,轮流交给调研智能体、写作智能体和一位编辑",
+ },
+ triage: {
+ label: "处理用户反馈",
+ short: "反馈",
+ description:
+ "一个由工作流驱动的支持团队项目看板:Autopilot 把用户反馈归入待处理,Issue 再依次经过复现、修复、回复和已解决,轮流交给分诊智能体、QA 智能体和编码智能体",
+ },
+ },
+ },
+ logoWall: { title: "这些公司和高校的人在用 Multica" },
+ features: {
+ title: "为人和智能体组成的团队而生",
+ items: {
+ runtimes: {
+ title: "跑在你的机器上,也能跑在我们的云上",
+ body: "一条命令接入笔记本或服务器,Multica 会自动找到上面装好的编码智能体。也可以直接在托管的云沙箱里运行。",
+ alt: "运行时页面:列出两台机器和 Multica Cloud,以及每台上找到的编码工具",
+ },
+ workflows: {
+ title: "工作流把每一步交接好",
+ body: "给每个状态指定负责人。Issue 进入下一步,就自动交给这一步的智能体或同事。",
+ alt: "“交付一个功能”工作流:方案交给 Lead Agent,开发交给 Backend Agent,代码审查交给 QA Agent,审批交给 Mia Chen,最后到已上线;右侧打开了开发这一步的交接设置",
+ },
+ chat: {
+ title: "在聊天里 @ 智能体",
+ body: "在 Slack、飞书、钉钉、企业微信或 Telegram 里都可以。智能体会读完对话、建好 Issue,然后开工。",
+ alt: "团队聊天频道:Mia 就导出失败的问题 @ 了 Backend Agent,智能体在频道里回复,附上它新建并正在处理的 Multica Issue 链接",
+ },
+ autopilots: {
+ title: "Autopilot 按计划自动运行",
+ body: "依赖升级、问题分诊、定期报告,每小时或每周一自动建好 Issue,交到智能体手里。",
+ alt: "Autopilot 列表:五个定时任务,以及各自的智能体和下次运行时间",
+ },
+ skills: {
+ title: "全队共享的技能",
+ body: "团队做一件事的方法只要写一次,每个智能体都会照着做。",
+ alt: "技能列表:团队写好的五个技能,以及用到它们的智能体",
+ },
+ },
+ },
+ agents: {
+ lead: "不用学新的智能体。",
+ title: "直接用你已经在用的。",
+ all: "全部 27 款智能体",
+ },
+ updates: {
+ eyebrow: "更新日志",
+ title: "最近发布。",
+ latest: "最新",
+ more: "+{count} 项",
+ all: "全部版本",
+ },
+ },
+};
diff --git a/apps/web/features/landing/i18n/types.ts b/apps/web/features/landing/i18n/types.ts
index 6ab007e2d4..adcc6f50b4 100644
--- a/apps/web/features/landing/i18n/types.ts
+++ b/apps/web/features/landing/i18n/types.ts
@@ -7,7 +7,7 @@ export type LandingDictionaryLocale = "en" | "zh" | "ko" | "ja";
export const locales: Locale[] = ["en", "zh-Hans", "ko", "ja"];
export const localeLabels: Record<Locale, string> = {
- en: "EN",
+ en: "English",
"zh-Hans": "\u4e2d\u6587",
// The landing dictionary has no Traditional Chinese variant yet, so
// `locales` above does not offer it and it reads the Simplified copy.
@@ -33,13 +33,6 @@ export function isZhLocale(locale: Locale): boolean {
return locale === "zh-Hans" || locale === "zh-Hant";
}
-type FeatureSection = {
- label: string;
- title: string;
- description: string;
- cards: { title: string; description: string }[];
-};
-
// Long-form page copy. Paragraphs and bullets may embed `[label](href)`
// links, rendered by InlineLinks.
export type DocumentSection = {
@@ -48,74 +41,214 @@ export type DocumentSection = {
bullets?: string[];
};
-type FooterGroup = {
- label: string;
- links: { label: string; href: string }[];
-};
-
export type ContactSalesOption = { value: string; label: string };
-export type LandingDict = {
- header: {
- github: string;
- cta: string;
- dashboard: string;
- docs: string;
+type Copy = { title: string; body: string; alt: string };
+type HeroWorkflow = { label: string; short: string; description: string };
+
+/** Labels for the marketing site's header, menus, footer, and closing call to action. */
+export type SiteDict = {
+ nav: {
+ product: string;
+ solutions: string;
+ resources: string;
+ customers: string;
+ pricing: string;
+ documentation: string;
changelog: string;
useCases: string;
+ blog: string;
+ download: string;
+ company: string;
+ about: string;
+ careers: string;
+ press: string;
+ contactSales: string;
+ trust: string;
+ security: string;
+ licensing: string;
+ privacy: string;
+ };
+ header: {
+ home: string;
+ /** `{count}` is the formatted star count. */
+ githubStars: string;
+ logIn: string;
+ getStarted: string;
+ dashboard: string;
+ };
+ footer: {
+ tagline: string;
navigation: string;
- openMenu: string;
- closeMenu: string;
+ language: string;
+ /** `{year}` is the current year. */
+ copyright: string;
+ /** Above the wordmark: how far every visitor together has blown the star. `{count}` is the number of turns. */
+ starTurns: string;
+ };
+ /** The bar offering a visitor's browser language on the English pages, written in that language. */
+ localeSuggestion: { message: string; action: string; dismiss: string };
+ cta: { title: string; lead: string; getStarted: string; bookDemo: string };
+};
+
+/** A workflow the hero board plays: its project, its statuses by key, and its issues' titles by issue key. */
+type DemoWorkflow<S extends string> = {
+ project: string;
+ statuses: Record<S, string>;
+ cards: Record<string, string>;
+ focus: { title: string; description: string; label: string };
+};
+
+/**
+ * Text inside the product mockups. `app` is the Multica interface itself and
+ * follows the product's own translations; the rest is the fictional Acme Labs
+ * team's work. People's and agents' names stay as they are, like any name.
+ */
+export type DemoDict = {
+ app: {
+ spaces: { inbox: string; work: string; team: string; chat: string; autopilots: string };
+ views: string;
+ projects: string;
+ myIssues: string;
+ myAgents: string;
+ allIssues: string;
+ allViews: string;
+ /** `{count}` is the number of projects. */
+ allProjects: string;
+ unassigned: string;
+ priority: { none: string; urgent: string; high: string; medium: string; low: string };
+ activity: string;
+ leaveComment: string;
+ created: string;
+ /** `{from}` and `{to}` are status names. */
+ statusChanged: string;
+ handedTo: string;
+ startedRun: string;
+ memberNoRun: string;
+ /** `{name}` is an agent's name. */
+ isWorking: string;
+ /** `{count}` is the number of agents. */
+ agentsWorking: string;
+ working: string;
+ online: string;
+ inProgress: string;
+ /** `{count}` is the number of minutes, hours or days. */
+ ago: { now: string; minutes: string; hours: string; days: string };
};
hero: {
- headlineLine1: string;
- headlineLine2: string;
- subheading: string;
- cta: string;
- downloadDesktop: string;
- talkToSales: string;
- worksWith: string;
- imageAlt: string;
+ ship: DemoWorkflow<"spec" | "build" | "review" | "approve" | "shipped"> & {
+ plan: { comment: string; title: string; items: string[] };
+ built: { comment: string; pr: string };
+ tested: string;
+ approved: string;
+ };
+ launch: DemoWorkflow<"brief" | "research" | "draft" | "edit" | "published"> & {
+ research: { comment: string; title: string; aside: string; bars: string[] };
+ draft: { comment: string; meta: string };
+ edited: string;
+ };
+ triage: DemoWorkflow<"inbox" | "repro" | "fix" | "reply" | "resolved"> & {
+ /** The autopilot that files the issue. */
+ autopilot: string;
+ grouped: { comment: string; quotes: string[] };
+ reproduced: string;
+ fixed: { comment: string; pr: string };
+ replied: string;
+ };
+ /** The fourth project in the side panel, which no workflow plays. */
+ otherProject: string;
+ blocks: {
+ /** `{count}` is the number of steps. */
+ steps: string;
+ checks: { build: string; lint: string };
+ /** `{count}` is the number of tests. */
+ tests: string;
+ load: { title: string; served: string; limit: string };
+ exportTime: { title: string; aside: string; timeout: string };
+ reports: { title: string; merged: string };
+ sent: string;
+ };
};
features: {
- teammates: FeatureSection;
- autonomous: FeatureSection;
- skills: FeatureSection;
- runtimes: FeatureSection;
+ runtimes: {
+ title: string;
+ machines: string;
+ cloud: string;
+ server: string;
+ laptop: string;
+ thisDevice: string;
+ sandboxes: string;
+ };
+ workflow: {
+ breadcrumb: string;
+ onEnter: string;
+ next: string;
+ instructions: string;
+ instructionsBody: string;
+ finalStep: string;
+ };
+ chat: {
+ channels: string;
+ apps: string;
+ /** The message reads `{before} @Backend Agent {after}`. */
+ ask: { before: string; after: string };
+ reply: string;
+ issue: string;
+ /** `{channel}` is the channel's name. */
+ composer: string;
+ };
+ autopilots: { title: string; name: string; agent: string; nextRun: string; rows: { name: string; next: string }[] };
+ skills: { title: string; name: string; usedBy: string; rows: string[] };
};
- howItWorks: {
- label: string;
- headlineMain: string;
- headlineFaded: string;
- steps: { title: string; description: string }[];
- cta: string;
- ctaGithub: string;
- ctaDocs: string;
+};
+
+/** A page's title, search description, and the card shown when its link is shared. */
+export type PageMeta = { title: string; description: string; ogTitle: string; ogDescription: string };
+
+export type MetaPage = "home" | "about" | "changelog" | "contactSales" | "download" | "licensing" | "privacy";
+
+/** Copy for the home page. */
+export type HomeDict = {
+ hero: {
+ /** The headline reads `{headlinePrefix}{agent}{headlineSuffix}`. */
+ headlinePrefix: string;
+ headlineSuffix: string;
+ lead: string;
+ download: string;
+ /** `{os}` is macOS, Windows or Linux. */
+ downloadFor: string;
+ /** `{platforms}` lists the other builds, e.g. "Intel · Windows · Linux". */
+ alsoFor: string;
+ bookDemo: string;
+ workflowGroup: string;
+ workflows: { ship: HeroWorkflow; launch: HeroWorkflow; triage: HeroWorkflow };
};
- openSource: {
- label: string;
- headlineLine1: string;
- headlineLine2: string;
- description: string;
- cta: string;
- licensingCta: string;
- highlights: { title: string; description: string }[];
+ logoWall: { title: string };
+ features: {
+ title: string;
+ items: { runtimes: Copy; workflows: Copy; chat: Copy; autopilots: Copy; skills: Copy };
};
+ agents: { lead: string; title: string; all: string };
+ updates: {
+ eyebrow: string;
+ title: string;
+ latest: string;
+ /** `{count}` is how many more changes the release has. */
+ more: string;
+ all: string;
+ };
+};
+
+export type LandingDict = {
+ site: SiteDict;
+ home: HomeDict;
+ demo: DemoDict;
+ meta: Record<MetaPage, PageMeta>;
faq: {
label: string;
headline: string;
items: { question: string; answer: string }[];
};
- footer: {
- tagline: string;
- cta: string;
- groups: {
- product: FooterGroup;
- resources: FooterGroup;
- company: FooterGroup;
- };
- copyright: string;
- };
about: {
title: string;
nameLine: {
@@ -177,39 +310,31 @@ export type LandingDict = {
}[];
};
download: {
+ platforms: { macArm64: string; macX64: string; winX64: string; winArm64: string; linuxX64: string; linuxArm64: string };
hero: {
- macArm64: {
- title: string;
- sub: string;
- primary: string;
- altZip: string;
- };
- macIntel: {
- title: string;
- sub: string;
- primary: string;
- altZip: string;
+ eyebrow: string;
+ title: { mac: string; windows: string; linux: string; other: string };
+ lead: string;
+ leadOther: string;
+ mobileNote: string;
+ primary: {
+ macArm64Dmg: string;
+ macX64Dmg: string;
+ winX64Exe: string;
+ winArm64Exe: string;
+ linuxAmd64AppImage: string;
+ linuxArm64AppImage: string;
};
- winX64: { title: string; sub: string; primary: string };
- winArm64: { title: string; sub: string; primary: string };
- linux: {
- title: string;
- sub: string;
- primary: string;
- altFormats: string;
- };
- unknown: { title: string; sub: string };
- safariMacHint: string;
- archFallbackHint: string;
+ /** The other Mac architecture, offered beside a guessed one. */
+ alternate: { macArm64Dmg: string; macX64Dmg: string };
+ /** `{date}` is the release date. */
+ released: string;
+ whatsNew: string;
+ versionUnavailable: string;
};
allPlatforms: {
title: string;
- macArm64Label: string;
- macX64Label: string;
- winX64Label: string;
- winArm64Label: string;
- linuxX64Label: string;
- linuxArm64Label: string;
+ thisDevice: string;
formatDmg: string;
formatZip: string;
formatExe: string;
@@ -217,6 +342,7 @@ export type LandingDict = {
formatDeb: string;
formatRpm: string;
unavailable: string;
+ allReleases: string;
};
cli: {
title: string;
@@ -226,16 +352,30 @@ export type LandingDict = {
platformMacosLinux: string;
platformWindows: string;
startLabel: string;
- sshNote: string;
copyLabel: string;
copiedLabel: string;
};
- cloud: { title: string; sub: string };
- footer: {
- releaseNotes: string;
- allReleases: string;
- currentVersion: string;
- versionUnavailable: string;
+ started: {
+ title: string;
+ retry: string;
+ allDownloads: string;
+ install: { title: string; dmg: string; zip: string; exe: string; appImage: string; deb: string; rpm: string };
+ signIn: { title: string; body: string; installed: string; open: string };
+ agents: { title: string; body: string };
+ community: {
+ label: string;
+ githubTitle: string;
+ githubBody: string;
+ star: string;
+ /** `{count}` is the repo's star count. */
+ stars: string;
+ discordTitle: string;
+ discordBody: string;
+ join: string;
+ xTitle: string;
+ xBody: string;
+ follow: string;
+ };
};
};
contactSales: {
diff --git a/apps/web/features/landing/i18n/zh.ts b/apps/web/features/landing/i18n/zh.ts
index 3a4fc3a63b..b19fbec30b 100644
--- a/apps/web/features/landing/i18n/zh.ts
+++ b/apps/web/features/landing/i18n/zh.ts
@@ -1,194 +1,10 @@
import { githubUrl, discordUrl } from "../components/shared";
import type { LandingDict } from "./types";
+import { zhSiteCopy } from "./site-zh";
-export function createZhDict(
- allowSignup: boolean,
- docsHref: string,
-): LandingDict {
+export function createZhDict(): LandingDict {
return {
- header: {
- github: "GitHub",
- cta: "\u5f00\u59cb\u4f7f\u7528",
- dashboard: "\u8fdb\u5165\u5de5\u4f5c\u53f0",
- docs: "\u6587\u6863",
- changelog: "\u66f4\u65b0\u65e5\u5fd7",
- useCases: "\u6848\u4f8b",
- navigation: "\u4e3b\u5bfc\u822a",
- openMenu: "\u6253\u5f00\u5bfc\u822a\u83dc\u5355",
- closeMenu: "\u5173\u95ed\u5bfc\u822a\u83dc\u5355",
- },
-
- hero: {
- headlineLine1: "\u4f60\u7684\u4e0b\u4e00\u6279\u5458\u5de5",
- headlineLine2: "\u4e0d\u662f\u4eba\u7c7b\u3002",
- subheading:
- "Multica 是一个源码公开的平台,\u5c06\u7f16\u7801 智能体 \u53d8\u6210\u771f\u6b63\u7684\u961f\u53cb\u3002\u5206\u914d\u4efb\u52a1\u3001\u8ddf\u8e2a\u8fdb\u5ea6\u3001\u79ef\u7d2f\u6280\u80fd\u2014\u2014\u5728\u4e00\u4e2a\u5730\u65b9\u7ba1\u7406\u4f60\u7684\u4eba\u7c7b + 智能体 \u56e2\u961f\u3002",
- cta: "免费开始",
- downloadDesktop: "下载桌面端",
- talkToSales: "联系商务",
- worksWith: "支持 20+ 种 AI 编程工具",
- imageAlt: "Multica \u770b\u677f\u89c6\u56fe\u2014\u2014\u4eba\u7c7b\u548c 智能体 \u534f\u540c\u7ba1\u7406\u4efb\u52a1",
- },
-
- features: {
- teammates: {
- label: "\u56e2\u961f\u534f\u4f5c",
- title: "\u50cf\u5206\u914d\u7ed9\u540c\u4e8b\u4e00\u6837\u5206\u914d\u7ed9 智能体",
- description:
- "智能体 \u4e0d\u662f\u88ab\u52a8\u5de5\u5177\u2014\u2014\u5b83\u4eec\u662f\u4e3b\u52a8\u53c2\u4e0e\u8005\u3002\u5b83\u4eec\u62e5\u6709\u4e2a\u4eba\u8d44\u6599\u3001\u62a5\u544a\u72b6\u6001\u3001\u521b\u5efa\u4efb\u52a1\u3001\u53d1\u8868\u8bc4\u8bba\u3001\u66f4\u65b0\u72b6\u6001\u3002\u4f60\u7684\u6d3b\u52a8\u6d41\u5c55\u793a\u4eba\u7c7b\u548c 智能体 \u5e76\u80a9\u5de5\u4f5c\u3002",
- cards: [
- {
- title: "智能体 \u51fa\u73b0\u5728\u6307\u6d3e\u4eba\u9009\u62e9\u5668\u4e2d",
- description:
- "\u4eba\u7c7b\u548c 智能体 \u51fa\u73b0\u5728\u540c\u4e00\u4e2a\u4e0b\u62c9\u83dc\u5355\u91cc\u3002\u628a\u4efb\u52a1\u5206\u914d\u7ed9 智能体 \u548c\u5206\u914d\u7ed9\u540c\u4e8b\u6ca1\u6709\u4efb\u4f55\u533a\u522b\u3002",
- },
- {
- title: "\u81ea\u4e3b\u53c2\u4e0e",
- description:
- "智能体 \u4e3b\u52a8\u521b\u5efa\u4efb\u52a1\u3001\u53d1\u8868\u8bc4\u8bba\u3001\u66f4\u65b0\u72b6\u6001\u2014\u2014\u800c\u4e0d\u662f\u53ea\u5728\u88ab\u63d0\u793a\u65f6\u624d\u884c\u52a8\u3002",
- },
- {
- title: "\u7edf\u4e00\u7684\u6d3b\u52a8\u65f6\u95f4\u7ebf",
- description:
- "\u6574\u4e2a\u56e2\u961f\u5171\u7528\u4e00\u4e2a\u6d3b\u52a8\u6d41\u3002\u4eba\u7c7b\u548c 智能体 \u7684\u64cd\u4f5c\u4ea4\u66ff\u5c55\u793a\uff0c\u4f60\u59cb\u7ec8\u77e5\u9053\u53d1\u751f\u4e86\u4ec0\u4e48\u3001\u662f\u8c01\u505a\u7684\u3002",
- },
- ],
- },
- autonomous: {
- label: "\u81ea\u4e3b\u6267\u884c",
- title: "\u8bbe\u7f6e\u540e\u65e0\u9700\u7ba1\u7406\u2014\u2014智能体 \u5728\u4f60\u7761\u89c9\u65f6\u5de5\u4f5c",
- description:
- "不只是提示-响应。完整的 task 生命周期管理:入队、领取、启动、完成或失败。智能体 主动报告阻塞,你通过 WebSocket 获取实时进度。",
- cards: [
- {
- title: "\u5b8c\u6574\u7684\u4efb\u52a1\u751f\u547d\u5468\u671f",
- description:
- "\u6bcf\u4e2a\u4efb\u52a1\u7ecf\u5386\u5165\u961f \u2192 \u9886\u53d6 \u2192 \u542f\u52a8 \u2192 \u5b8c\u6210/\u5931\u8d25\u3002\u6ca1\u6709\u65e0\u58f0\u5931\u8d25\u2014\u2014\u6bcf\u6b21\u72b6\u6001\u8f6c\u6362\u90fd\u88ab\u8ddf\u8e2a\u548c\u5e7f\u64ad\u3002",
- },
- {
- title: "\u4e3b\u52a8\u62a5\u544a\u963b\u585e",
- description:
- "\u5f53 智能体 \u9047\u5230\u56f0\u96be\u65f6\uff0c\u4f1a\u7acb\u5373\u53d1\u51fa\u8b66\u62a5\u3002\u4e0d\u7528\u7b49\u51e0\u4e2a\u5c0f\u65f6\u540e\u624d\u53d1\u73b0\u4ec0\u4e48\u90fd\u6ca1\u53d1\u751f\u3002",
- },
- {
- title: "\u5b9e\u65f6\u8fdb\u5ea6\u63a8\u9001",
- description:
- "\u57fa\u4e8e WebSocket \u7684\u5b9e\u65f6\u66f4\u65b0\u3002\u5b9e\u65f6\u89c2\u770b 智能体 \u5de5\u4f5c\uff0c\u6216\u968f\u65f6\u67e5\u770b\u2014\u2014\u65f6\u95f4\u7ebf\u59cb\u7ec8\u662f\u6700\u65b0\u7684\u3002",
- },
- ],
- },
- skills: {
- label: "\u6280\u80fd\u5e93",
- title: "\u6bcf\u4e2a\u89e3\u51b3\u65b9\u6848\u90fd\u6210\u4e3a\u5168\u56e2\u961f\u53ef\u590d\u7528\u7684\u6280\u80fd",
- description:
- "\u6280\u80fd\u662f\u53ef\u590d\u7528\u7684\u80fd\u529b\u5b9a\u4e49\u2014\u2014\u4ee3\u7801\u3001\u914d\u7f6e\u548c\u4e0a\u4e0b\u6587\u6253\u5305\u5728\u4e00\u8d77\u3002\u53ea\u9700\u7f16\u5199\u4e00\u6b21\uff0c\u56e2\u961f\u4e2d\u6bcf\u4e2a 智能体 \u90fd\u80fd\u4f7f\u7528\u3002\u4f60\u7684\u6280\u80fd\u5e93\u968f\u65f6\u95f4\u4e0d\u65ad\u79ef\u7d2f\u3002",
- cards: [
- {
- title: "\u53ef\u590d\u7528\u7684\u6280\u80fd\u5b9a\u4e49",
- description:
- "\u5c06\u77e5\u8bc6\u5c01\u88c5\u6210\u4efb\u4f55 智能体 \u90fd\u80fd\u6267\u884c\u7684\u6280\u80fd\u3002\u90e8\u7f72\u5230\u6d4b\u8bd5\u73af\u5883\u3001\u7f16\u5199\u8fc1\u79fb\u3001\u5ba1\u67e5 PR\u2014\u2014\u5168\u90e8\u4ee3\u7801\u5316\u3002",
- },
- {
- title: "\u5168\u56e2\u961f\u5171\u4eab",
- description:
- "\u4e00\u4e2a\u4eba\u7684\u6280\u80fd\u5c31\u662f\u6bcf\u4e2a 智能体 \u7684\u6280\u80fd\u3002\u7f16\u5199\u4e00\u6b21\uff0c\u5168\u56e2\u961f\u53d7\u76ca\u3002",
- },
- {
- title: "\u590d\u5408\u589e\u957f",
- description:
- "\u7b2c 1 \u5929\uff1a\u4f60\u6559 智能体 \u90e8\u7f72\u3002\u7b2c 30 \u5929\uff1a\u6bcf\u4e2a 智能体 \u90fd\u80fd\u90e8\u7f72\u3001\u5199\u6d4b\u8bd5\u3001\u505a\u4ee3\u7801\u5ba1\u67e5\u3002\u56e2\u961f\u80fd\u529b\u6307\u6570\u7ea7\u589e\u957f\u3002",
- },
- ],
- },
- runtimes: {
- label: "\u8fd0\u884c\u65f6",
- title: "\u4e00\u4e2a\u63a7\u5236\u53f0\u7ba1\u7406\u6240\u6709\u7b97\u529b",
- description:
- "\u672c\u5730\u5b88\u62a4\u8fdb\u7a0b\u548c\u4e91\u7aef\u8fd0\u884c\u65f6\uff0c\u5728\u540c\u4e00\u4e2a\u9762\u677f\u4e2d\u7ba1\u7406\u3002\u5b9e\u65f6\u76d1\u63a7\u5728\u7ebf/\u79bb\u7ebf\u72b6\u6001\u3001\u4f7f\u7528\u91cf\u56fe\u8868\u548c\u6d3b\u52a8\u70ed\u529b\u56fe\u3002\u81ea\u52a8\u68c0\u6d4b\u672c\u673a\u5df2\u5b89\u88c5\u7684 29 \u6b3e\u652f\u6301\u7684 AI \u7f16\u7a0b\u5de5\u5177\u3002",
- cards: [
- {
- title: "\u7edf\u4e00\u8fd0\u884c\u65f6\u9762\u677f",
- description:
- "\u672c\u5730\u5b88\u62a4\u8fdb\u7a0b\u548c\u4e91\u7aef\u8fd0\u884c\u65f6\u5728\u540c\u4e00\u89c6\u56fe\u4e2d\u3002\u65e0\u9700\u5728\u4e0d\u540c\u7ba1\u7406\u754c\u9762\u4e4b\u95f4\u5207\u6362\u3002",
- },
- {
- title: "\u5b9e\u65f6\u76d1\u63a7",
- description:
- "\u5728\u7ebf/\u79bb\u7ebf\u72b6\u6001\u3001\u4f7f\u7528\u91cf\u56fe\u8868\u548c\u6d3b\u52a8\u70ed\u529b\u56fe\u3002\u968f\u65f6\u4e86\u89e3\u4f60\u7684\u7b97\u529b\u5728\u505a\u4ec0\u4e48\u3002",
- },
- {
- title: "\u9996\u6b21\u542f\u52a8\u81ea\u52a8\u6ce8\u518c",
- description:
- "Multica \u626b\u63cf\u672c\u673a\u7684 29 \u6b3e\u652f\u6301\u7684 AI \u7f16\u7a0b\u5de5\u5177\u2014\u2014Antigravity\u3001Claude Code\u3001CodeBuddy\u3001CodeArts\u3001Codex\u3001Copilot\u3001Cursor\u3001DeepSeek Harness\u3001DevEco Code\u3001Devin CLI\u3001Dim\u3001Grok\u3001Hermes\u3001Kimi\u3001Kiro CLI\u3001MiniMax Code\u3001Muse Code\u3001Oh-My-Pi\u3001OpenClaw\u3001OpenCode\u3001Pi\u3001Qoder\u3001Qoder CN\u3001Qwen Code\u3001QwenPaw\u3001Reasonix\u3001Trae CLI\u3001ZeroClaw、ZCode\u2014\u2014\u5e76\u4e3a\u6bcf\u6b3e\u5df2\u5b89\u88c5\u7684\u5de5\u5177\u6ce8\u518c\u4e00\u4e2a\u8fd0\u884c\u65f6\u3002",
- },
- ],
- },
- },
-
- howItWorks: {
- label: "\u5f00\u59cb\u4f7f\u7528",
- headlineMain: "\u62db\u52df\u4f60\u7684\u7b2c\u4e00\u4e2a AI \u5458\u5de5",
- headlineFaded: "\u53ea\u9700\u4e00\u5c0f\u65f6\u3002",
- steps: [
- {
- title: allowSignup ? "注册并创建您的工作空间" : "登录到您的工作空间",
- description: allowSignup
- ? "输入您的邮箱,验证代码后即可使用。工作空间会自动创建——无需设置向导或配置表单。"
- : "输入您的邮箱,验证代码后即可登录到您的工作空间——无需设置向导或配置表单。",
- },
- {
- title: "\u5b89\u88c5 CLI \u5e76\u8fde\u63a5\u4f60\u7684\u673a\u5668",
- description:
- "运行 multica setup——它会引导你完成 OAuth 登录、启动守护进程、并扫描 29 款支持的 AI 编程工具(Antigravity、Claude Code、CodeBuddy、CodeArts、Codex、Copilot、Cursor、DeepSeek Harness、DevEco Code、Devin CLI、Dim、Grok、Hermes、Kimi、Kiro CLI、MiniMax Code、Muse Code、Oh-My-Pi、OpenClaw、OpenCode、Pi、Qoder、Qoder CN、Qwen Code、QwenPaw、Reasonix、Trae CLI、ZeroClaw、ZCode)。本机已安装的工具会被自动注册成运行时。",
- },
- {
- title: "\u521b\u5efa\u4f60\u7684\u7b2c\u4e00\u4e2a 智能体",
- description:
- "\u7ed9\u5b83\u8d77\u4e2a\u540d\u5b57\uff0c\u5199\u597d\u6307\u4ee4\uff0c\u9644\u52a0\u6280\u80fd\uff0c\u8bbe\u7f6e\u89e6\u53d1\u5668\u3002\u9009\u62e9\u5b83\u4f55\u65f6\u6fc0\u6d3b\uff1a\u88ab\u6307\u6d3e\u65f6\u3001\u6709\u8bc4\u8bba\u65f6\u3001\u88ab @\u63d0\u53ca\u65f6\u3002",
- },
- {
- title: "\u6307\u6d3e\u4e00\u4e2a\u4efb\u52a1\u5e76\u89c2\u5bdf\u5b83\u5de5\u4f5c",
- description:
- "从指派人下拉菜单中选择你的 智能体——就像指派给同事一样。task 自动入队、领取、执行。实时观看进度。",
- },
- ],
- cta: "\u5f00\u59cb\u4f7f\u7528",
- ctaGithub: "\u5728 GitHub \u4e0a\u67e5\u770b",
- ctaDocs: "\u9605\u8bfb\u6587\u6863",
- },
-
- openSource: {
- label: "源码公开",
- headlineLine1: "每一行代码,",
- headlineLine2: "都由你掌控。",
- description:
- "Multica 的源代码完全公开。审查每一行代码,免费自托管,塑造人类 + 智能体 协作的未来。把 Multica 作为托管服务提供给他人,需要商业授权。",
- cta: "在 GitHub 上 Star",
- licensingCta: "了解授权方式 →",
- highlights: [
- {
- title: "\u968f\u5904\u81ea\u6258\u7ba1",
- description:
- "\u5728\u4f60\u81ea\u5df1\u7684\u57fa\u7840\u8bbe\u65bd\u4e0a\u8fd0\u884c Multica\u3002Docker Compose\u3001\u5355\u4e2a\u4e8c\u8fdb\u5236\u6216 Kubernetes——工作区数据始终保存在你自己掌控的服务器上。",
- },
- {
- title: "\u65e0\u4f9b\u5e94\u5546\u9501\u5b9a",
- description:
- "\u81ea\u5e26 LLM \u63d0\u4f9b\u5546\u3001\u66f4\u6362 智能体 \u540e\u7aef\u3001\u6269\u5c55 API\u3002\u4f60\u62e5\u6709\u6574\u4e2a\u6280\u672f\u6808\u7684\u63a7\u5236\u6743\u3002",
- },
- {
- title: "\u9ed8\u8ba4\u900f\u660e",
- description:
- "\u6bcf\u4e00\u884c\u4ee3\u7801\u90fd\u53ef\u5ba1\u8ba1\u3002\u786e\u5207\u4e86\u89e3\u4f60\u7684 智能体 \u5982\u4f55\u505a\u51b3\u7b56\u3001\u4efb\u52a1\u5982\u4f55\u8def\u7531\u3001\u6570\u636e\u6d41\u5411\u4f55\u65b9\u3002",
- },
- {
- title: "\u793e\u533a\u9a71\u52a8",
- description:
- "\u4e0e\u793e\u533a\u4e00\u8d77\u5efa\u8bbe\uff0c\u800c\u4e0d\u4ec5\u4ec5\u662f\u4e3a\u793e\u533a\u5efa\u8bbe\u3002\u8d21\u732e\u6280\u80fd\u3001\u96c6\u6210\u548c 智能体 \u540e\u7aef\uff0c\u8ba9\u6bcf\u4e2a\u4eba\u53d7\u76ca\u3002",
- },
- ],
- },
-
+ ...zhSiteCopy,
faq: {
label: "\u5e38\u89c1\u95ee\u9898",
headline: "\u95ee\u4e0e\u7b54\u3002",
@@ -232,44 +48,6 @@ export function createZhDict(
],
},
- footer: {
- tagline:
- "\u4eba\u7c7b + 智能体 团队的项目管理。源码公开、可自托管、\u4e3a\u672a\u6765\u7684\u5de5\u4f5c\u65b9\u5f0f\u800c\u5efa\u3002",
- cta: "\u5f00\u59cb\u4f7f\u7528",
- groups: {
- product: {
- label: "\u4ea7\u54c1",
- links: [
- { label: "\u529f\u80fd\u7279\u6027", href: "#features" },
- { label: "\u5982\u4f55\u5de5\u4f5c", href: "#how-it-works" },
- { label: "\u6848\u4f8b", href: "/usecases" },
- { label: "更新日志", href: "/changelog" },
- { label: "下载", href: "/download" },
- ],
- },
- resources: {
- label: "\u8d44\u6e90",
- links: [
- { label: "\u6587\u6863", href: docsHref },
- { label: "API", href: githubUrl },
- { label: "X (Twitter)", href: "https://x.com/MulticaAI" },
- { label: "Discord", href: discordUrl },
- ],
- },
- company: {
- label: "\u5173\u4e8e",
- links: [
- { label: "关于我们", href: "/about" },
- { label: "授权说明", href: "/licensing" },
- { label: "隐私政策", href: "/privacy" },
- { label: "\u8054\u7cfb\u5546\u52a1", href: "/contact-sales" },
- { label: "GitHub", href: githubUrl },
- ],
- },
- },
- copyright: "\u00a9 {year} Multica. \u4fdd\u7559\u6240\u6709\u6743\u5229\u3002",
- },
-
about: {
title: "\u5173\u4e8e Multica",
nameLine: {
@@ -4285,50 +4063,44 @@ export function createZhDict(
],
},
download: {
+ platforms: {
+ macArm64: "macOS · Apple Silicon",
+ macX64: "macOS · Intel",
+ winX64: "Windows · x64",
+ winArm64: "Windows · ARM64",
+ linuxX64: "Linux · x64",
+ linuxArm64: "Linux · ARM64",
+ },
hero: {
- macArm64: {
- title: "Multica for macOS",
- sub: "Apple Silicon · 内置 daemon,无需配置",
- primary: "下载 (.dmg)",
- altZip: "或下载 .zip",
- },
- macIntel: {
- title: "Multica for macOS",
- sub: "Intel · 内置守护进程,无需配置",
- primary: "下载 (.dmg)",
- altZip: "或下载 .zip",
- },
- winX64: {
- title: "Multica for Windows",
- sub: "内置 daemon,无需配置",
- primary: "下载 (.exe)",
- },
- winArm64: {
- title: "Multica for Windows",
- sub: "ARM · 内置 daemon,无需配置",
- primary: "下载 (.exe)",
- },
- linux: {
- title: "Multica for Linux",
- sub: "内置 daemon,无需配置",
- primary: "下载 AppImage",
- altFormats: "或 .deb / .rpm",
- },
- unknown: {
- title: "选择你的平台",
- sub: "下方是所有支持的安装包。",
- },
- safariMacHint: "在 Intel Mac 上?请在下方选择 Intel 版本。",
- archFallbackHint: "架构不对?下方是所有可选格式。",
+ eyebrow: "桌面端",
+ title: {
+ mac: "下载 Multica macOS 版",
+ windows: "下载 Multica Windows 版",
+ linux: "下载 Multica Linux 版",
+ other: "下载 Multica",
+ },
+ lead: "桌面端自带智能体守护进程,这台电脑上的 Claude Code、Codex 等编程智能体会自动接入。",
+ leadOther: "支持 macOS、Windows 和 Linux,每个版本都内置智能体守护进程。",
+ mobileNote: "Multica 桌面端支持 macOS、Windows 和 Linux。请在电脑上打开这个页面下载。",
+ primary: {
+ macArm64Dmg: "下载 Apple 芯片版",
+ macX64Dmg: "下载 Intel 版",
+ winX64Exe: "下载 Windows 版",
+ winArm64Exe: "下载 Windows ARM 版",
+ linuxAmd64AppImage: "下载 AppImage",
+ linuxArm64AppImage: "下载 AppImage",
+ },
+ alternate: {
+ macArm64Dmg: "Apple 芯片版",
+ macX64Dmg: "Intel 版",
+ },
+ released: "{date} 发布",
+ whatsNew: "更新内容",
+ versionUnavailable: "暂时获取不到版本信息,请到 GitHub 查看所有版本。",
},
allPlatforms: {
- title: "所有平台",
- macArm64Label: "macOS · Apple Silicon",
- macX64Label: "macOS · Intel",
- winX64Label: "Windows · x64",
- winArm64Label: "Windows · ARM64",
- linuxX64Label: "Linux · x64",
- linuxArm64Label: "Linux · ARM64",
+ title: "全部下载",
+ thisDevice: "这台电脑",
formatDmg: ".dmg",
formatZip: ".zip",
formatExe: ".exe",
@@ -4336,28 +4108,55 @@ export function createZhDict(
formatDeb: ".deb",
formatRpm: ".rpm",
unavailable: "暂不可用",
+ allReleases: "所有版本",
},
cli: {
- title: "想用 CLI?",
- sub: "适合服务器、远程开发机、无图形界面环境。底层 daemon 与 Desktop 相同,通过终端安装。",
+ title: "在服务器或远程开发机上?",
+ sub: "安装 CLI,在那里运行同一个守护进程。通过 SSH 执行同样的命令即可。",
installLabel: "安装",
platformGroup: "选择你的系统",
platformMacosLinux: "macOS / Linux",
platformWindows: "Windows",
- startLabel: "启动 daemon",
- sshNote: "已经在服务器上?通过 SSH 执行同样的命令即可。",
+ startLabel: "启动守护进程",
copyLabel: "复制",
copiedLabel: "已复制",
},
- cloud: {
- title: "Cloud runtime(等待名单)",
- sub: "我们将为你托管 runtime,目前尚未上线——留下邮箱,上线后通知你。",
- },
- footer: {
- releaseNotes: "{version} 更新内容",
- allReleases: "查看所有版本",
- currentVersion: "当前版本:{version}",
- versionUnavailable: "版本获取失败——请前往 GitHub 查看",
+ started: {
+ title: "已开始下载",
+ retry: "没有开始?重新下载",
+ allDownloads: "全部下载",
+ install: {
+ title: "安装",
+ dmg: "打开 .dmg,把 Multica 拖进「应用程序」。",
+ zip: "解压后,把 Multica 移到「应用程序」。",
+ exe: "运行安装程序,完成后 Multica 会自动打开。",
+ appImage: "给 AppImage 加上可执行权限,然后运行。",
+ deb: "用 apt 或你的包管理器安装 .deb。",
+ rpm: "用 dnf 或你的包管理器安装 .rpm。",
+ },
+ signIn: {
+ title: "登录",
+ body: "打开 Multica,用你的账号登录。",
+ installed: "已经装好了?",
+ open: "打开 Multica",
+ },
+ agents: {
+ title: "接入智能体",
+ body: "Multica 会自动找到这台电脑上的 Claude Code、Codex 等编程智能体。",
+ },
+ community: {
+ label: "下载的同时",
+ githubTitle: "在 GitHub 上关注 Multica",
+ githubBody: "给仓库点个 Star,第一时间收到新版本;也可以看看你刚下载的应用背后的代码。",
+ star: "在 GitHub 上 Star",
+ stars: "{count} Star",
+ discordTitle: "加入 Discord",
+ discordBody: "提问、分享工作流,和团队直接交流。",
+ join: "加入",
+ xTitle: "关注 @MulticaAI",
+ xBody: "新版本发布和接下来的计划。",
+ follow: "关注",
+ },
},
},
contactSales: {
diff --git a/apps/web/features/landing/share-image.ts b/apps/web/features/landing/share-image.ts
new file mode 100644
index 0000000000..6eb6f0d6bf
--- /dev/null
+++ b/apps/web/features/landing/share-image.ts
@@ -0,0 +1,11 @@
+/**
+ * The site's share card, served from app/opengraph-image.png. A page that sets
+ * its own `openGraph` replaces the inherited one whole, so it must list this
+ * image again to keep it.
+ */
+export const SHARE_IMAGE = {
+ url: "/opengraph-image.png",
+ width: 1200,
+ height: 630,
+ alt: "Multica — People and agents, working as one team.",
+} as const;
diff --git a/apps/web/features/landing/site/auto-advance.tsx b/apps/web/features/landing/site/auto-advance.tsx
new file mode 100644
index 0000000000..94e4b6b8d5
--- /dev/null
+++ b/apps/web/features/landing/site/auto-advance.tsx
@@ -0,0 +1,100 @@
+"use client";
+
+import { useEffect, useRef, useState, type FocusEvent, type PointerEvent } from "react";
+import { cn } from "@multica/ui/lib/utils";
+import { usePrefersReducedMotion } from "./demo/mock-kit";
+
+/**
+ * Cycles through a set of tabs while they sit in the middle of the viewport.
+ * The active tab's `AdvanceLine` is the timer: the next tab comes up when its
+ * fill animation ends, so holding the line holds the cycle. It holds while
+ * the block is off screen and while the pointer or focus is on the tab list
+ * (spread `holdProps` there, not on the whole block: a resting cursor ends up
+ * over the block as the page scrolls). Picking a tab or otherwise interacting
+ * hands control to the reader and stops the cycle for good.
+ */
+export function useAutoAdvance(count: number) {
+ const ref = useRef<HTMLDivElement>(null);
+ const [active, setActive] = useState(0);
+ const [auto, setAuto] = useState(true);
+ const [visible, setVisible] = useState(false);
+ const [hovered, setHovered] = useState(false);
+ const [focused, setFocused] = useState(false);
+ const reducedMotion = usePrefersReducedMotion();
+
+ useEffect(() => {
+ const el = ref.current;
+ if (!el) return;
+ const intersection = new IntersectionObserver(([entry]) => setVisible(entry?.isIntersecting ?? false), {
+ rootMargin: "-25% 0px -25% 0px",
+ });
+ intersection.observe(el);
+ return () => intersection.disconnect();
+ }, []);
+
+ const playing = auto && !reducedMotion;
+
+ return {
+ ref,
+ active,
+ playing,
+ running: playing && visible && !hovered && !focused,
+ select(index: number) {
+ setAuto(false);
+ setActive(index);
+ },
+ advance() {
+ setActive((current) => (current + 1) % count);
+ },
+ stop() {
+ setAuto(false);
+ },
+ holdProps: {
+ onPointerEnter: (event: PointerEvent) => event.pointerType === "mouse" && setHovered(true),
+ onPointerLeave: () => setHovered(false),
+ onFocus: () => setFocused(true),
+ onBlur: (event: FocusEvent) => {
+ if (!event.currentTarget.contains(event.relatedTarget)) setFocused(false);
+ },
+ },
+ };
+}
+
+/** The rule above a tab: fills over `duration` ms while the cycle plays, or marks the reader's pick once it stops. */
+export function AdvanceLine({
+ selected,
+ playing,
+ running,
+ duration,
+ onDone,
+}: {
+ selected: boolean;
+ playing: boolean;
+ running: boolean;
+ duration: number;
+ onDone: () => void;
+}) {
+ const timing = selected && playing;
+ return (
+ <span
+ aria-hidden
+ onAnimationEnd={timing ? onDone : undefined}
+ className={cn(
+ "absolute -top-px left-0 h-px w-full origin-left bg-site-ink",
+ !playing && "transition-transform duration-500 ease-out motion-reduce:transition-none",
+ !timing && (selected ? "scale-x-100" : "scale-x-0"),
+ )}
+ style={
+ timing
+ ? {
+ animationName: "site-advance",
+ animationDuration: `${duration}ms`,
+ animationTimingFunction: "linear",
+ animationFillMode: "both",
+ animationPlayState: running ? "running" : "paused",
+ }
+ : undefined
+ }
+ />
+ );
+}
diff --git a/apps/web/features/landing/site/chat-page.tsx b/apps/web/features/landing/site/chat-page.tsx
new file mode 100644
index 0000000000..656ab8ad00
--- /dev/null
+++ b/apps/web/features/landing/site/chat-page.tsx
@@ -0,0 +1,300 @@
+"use client";
+
+import { ArrowUpRight, Layers, Link2, ShieldCheck, UserPen } from "@multica/ui/icons";
+import { cn } from "@multica/ui/lib/utils";
+import { useAuthStore } from "@multica/core/auth";
+import { useDashboardCtaHref } from "../utils/use-dashboard-cta";
+import { docsHrefForLocale, useLocale } from "../i18n";
+import { ActionLink, Container, Section, SectionHeader } from "./primitives";
+import { CHANNELS, ChatScene, DirectMessageVisual, IssueCommandVisual, MentionVisual, type ChannelId } from "./demo/chat-visuals";
+import { CtaBand, SitePage } from "./site-page";
+import { FeatureGrid, IconTile, SurfaceHero, WalkthroughTabs, type Feature, type Walkthrough } from "./surface-kit";
+
+export function ChatPage() {
+ return (
+ <SitePage>
+ <Hero />
+ <div className="site-rails">
+ <WaysIn />
+ <Journey />
+ <Commands />
+ <Platforms />
+ <Access />
+ <CtaBand title="Bring an agent into your team chat" lead="Bind an agent to a Bot and say hello from Slack, Feishu, DingTalk, WeCom, or Telegram." />
+ </div>
+ </SitePage>
+ );
+}
+
+function useChatDocsHref() {
+ const { locale } = useLocale();
+ return `${docsHrefForLocale(locale)}/channels`;
+}
+
+function Hero() {
+ const user = useAuthStore((s) => s.user);
+ const ctaHref = useDashboardCtaHref();
+ const docsHref = useChatDocsHref();
+ return (
+ <SurfaceHero
+ eyebrow="Chat integrations"
+ title="Your agents, in your team chat."
+ subtitle="No need to open Multica."
+ lead="Bind an agent to a Bot in Slack, Feishu, DingTalk, WeCom, or Telegram. Message it directly, mention it in a group, or turn a message into an issue."
+ actions={
+ <>
+ <ActionLink href={ctaHref} size="lg">
+ {user ? "Open dashboard" : "Get started"}
+ </ActionLink>
+ <ActionLink href={docsHref} size="lg" tone="secondary">
+ Setup guides
+ <ArrowUpRight className="size-4" aria-hidden />
+ </ActionLink>
+ </>
+ }
+ frost="chat-page"
+ label="A team channel, eng-support: Mia mentions @Multica to ask why last night’s export job failed, and the Bot answers in the thread. Beside it, the Messaging settings show Bots for Backend Agent on Slack, Lead Agent on Feishu, and Triage Agent on Telegram."
+ >
+ <ChatScene />
+ </SurfaceHero>
+ );
+}
+
+const WAYS: Walkthrough[] = [
+ {
+ title: "Message it directly",
+ body: "Ask a question in a direct message. No mention needed, and the conversation picks up where you left it.",
+ visual: DirectMessageVisual,
+ },
+ {
+ title: "Mention it in a group",
+ body: "@-mention the Bot in a group or channel. It answers in the thread and only sees messages addressed to it.",
+ visual: MentionVisual,
+ },
+ {
+ title: "Turn it into an issue",
+ body: "Type /issue and a title. The issue lands in Multica, ready to assign to an agent or a teammate.",
+ visual: IssueCommandVisual,
+ },
+];
+
+function WaysIn() {
+ return (
+ <Section>
+ <Container>
+ <SectionHeader title="Three ways to reach an agent" />
+ <div className="mt-site-block">
+ <WalkthroughTabs steps={WAYS} side="left" numbered={false} />
+ </div>
+ </Container>
+ </Section>
+ );
+}
+
+const JOURNEY: { title: string; body: string }[] = [
+ { title: "You message the Bot", body: "In a direct message, or with an @-mention in a group." },
+ { title: "Multica finds the agent", body: "Each Bot belongs to one agent in one workspace." },
+ { title: "It checks who you are", body: "Your chat account must be linked to a member of that workspace." },
+ { title: "The agent runs", body: "The message joins an agent chat, the same as one sent in Multica." },
+ { title: "The reply comes back", body: "In the same direct message or thread you wrote in." },
+];
+
+function Journey() {
+ return (
+ <Section>
+ <Container>
+ <SectionHeader
+ title="What happens to a message"
+ lead="Every Bot follows the same path, whichever platform it lives on."
+ />
+ <ol className="mt-site-block grid gap-8 lg:grid-cols-5 lg:gap-6">
+ {JOURNEY.map((step, index) => (
+ <li key={step.title} className="relative flex gap-5 lg:flex-col lg:gap-6">
+ {index < JOURNEY.length - 1 ? (
+ <span
+ aria-hidden
+ className="absolute top-[25px] -bottom-[26px] left-[7px] w-px bg-site-line lg:top-[7px] lg:right-[-1rem] lg:bottom-auto lg:left-[23px] lg:h-px lg:w-auto"
+ />
+ ) : null}
+ <span
+ aria-hidden
+ className={cn(
+ "relative mt-0.5 size-[15px] shrink-0 rounded-full border-2 bg-site-canvas lg:mt-0",
+ index === JOURNEY.length - 1 ? "border-site-ink" : "border-site-line-strong",
+ )}
+ />
+ <span>
+ <span className="block font-site-mono text-site-label text-site-muted tabular-nums">
+ {String(index + 1).padStart(2, "0")}
+ </span>
+ <h3 className="mt-2 text-site-body text-site-ink">{step.title}</h3>
+ <p className="mt-1.5 text-site-body text-site-muted text-pretty">{step.body}</p>
+ </span>
+ </li>
+ ))}
+ </ol>
+ </Container>
+ </Section>
+ );
+}
+
+const COMMANDS: { command: string; body: string }[] = [
+ { command: "/issue <title>", body: "Create an issue in the agent’s workspace." },
+ { command: "/new [message]", body: "Start a fresh Multica chat. The old one stays in Multica." },
+ { command: "/clear [message]", body: "Keep the chat, but start the agent on a clean context." },
+];
+
+function Commands() {
+ const docsHref = useChatDocsHref();
+ return (
+ <Section>
+ <Container className="grid items-center gap-site-block lg:grid-cols-[minmax(0,1fr)_minmax(0,1.3fr)] lg:gap-16">
+ <div>
+ <h2 className="font-site-display text-site-heading text-balance">
+ <span className="block text-site-ink">Steer the conversation</span>
+ <span className="block text-site-muted">without leaving it.</span>
+ </h2>
+ <p className="mt-3 max-w-[30rem] text-site-body text-site-muted text-pretty">
+ The same three commands work on every platform. Each conversation keeps its own session, so a thread in one
+ channel never bleeds into another.
+ </p>
+ <ActionLink href={`${docsHref}#conversation-controls`} tone="ghost" className="mt-6 -ml-3">
+ Conversation controls
+ <ArrowUpRight className="size-4" aria-hidden />
+ </ActionLink>
+ </div>
+ <dl className="overflow-hidden rounded-site-card border border-site-line bg-site-surface">
+ {COMMANDS.map((item, index) => (
+ <div
+ key={item.command}
+ className={cn("grid gap-2 px-6 py-5 sm:grid-cols-[11rem_minmax(0,1fr)] sm:gap-6", index > 0 && "border-t border-site-line")}
+ >
+ <dt className="font-site-mono text-site-body text-site-ink">{item.command}</dt>
+ <dd className="text-site-body text-site-muted text-pretty">{item.body}</dd>
+ </div>
+ ))}
+ </dl>
+ </Container>
+ </Section>
+ );
+}
+
+const PLATFORMS: { id: ChannelId; setup: string; groups: string; connection: string; community?: boolean }[] = [
+ { id: "slack", setup: "Create a Slack app and paste two tokens", groups: "@-mention the Bot", connection: "Socket Mode" },
+ { id: "lark", setup: "Scan a QR code from Multica", groups: "@-mention the Bot", connection: "Long connection" },
+ {
+ id: "dingtalk",
+ setup: "Create a Stream-mode robot and paste its AppKey and AppSecret",
+ groups: "@-mention the Bot",
+ connection: "Stream mode",
+ community: true,
+ },
+ {
+ id: "wecom",
+ setup: "Create a smart bot and paste its Bot ID and Secret",
+ groups: "@-mention the Bot",
+ connection: "Long connection",
+ community: true,
+ },
+ {
+ id: "telegram",
+ setup: "Create a Bot with @BotFather and paste its token",
+ groups: "@-mention or reply to the Bot",
+ connection: "Long polling",
+ community: true,
+ },
+];
+
+function Platforms() {
+ return (
+ <Section>
+ <Container>
+ <SectionHeader
+ title="Pick your platform"
+ lead="Each one installs a little differently, but none needs a public webhook: Multica keeps the connection open itself."
+ />
+ <div className="mt-site-block">
+ <div className="grid grid-cols-[minmax(0,12rem)_minmax(0,1.6fr)_minmax(0,1fr)_minmax(0,9rem)] gap-x-6 border-b border-site-ink pb-3 text-site-small text-site-ink max-lg:hidden">
+ <span>Platform</span>
+ <span>Setup</span>
+ <span>In groups</span>
+ <span>Connection</span>
+ </div>
+ <ul>
+ {PLATFORMS.map((platform) => {
+ const { name, Mark } = CHANNELS.find((item) => item.id === platform.id)!;
+ return (
+ <li
+ key={platform.id}
+ className="grid gap-x-6 gap-y-2 border-b border-site-line py-5 text-site-body max-lg:first:border-t lg:grid-cols-[minmax(0,12rem)_minmax(0,1.6fr)_minmax(0,1fr)_minmax(0,9rem)] lg:items-center"
+ >
+ <span className="flex items-center gap-3">
+ <IconTile>
+ <Mark className="size-4" />
+ </IconTile>
+ <span>
+ <span className="block text-site-ink">{name}</span>
+ {platform.community ? <span className="block text-site-small text-site-muted">Community</span> : null}
+ </span>
+ </span>
+ <span className="text-site-ink-secondary max-lg:mt-2">{platform.setup}</span>
+ <span className="text-site-muted lg:text-site-ink-secondary">
+ <span className="lg:hidden">In groups: </span>
+ {platform.groups}
+ </span>
+ <span className="text-site-muted lg:text-site-ink-secondary">
+ <span className="lg:hidden">Connection: </span>
+ {platform.connection}
+ </span>
+ </li>
+ );
+ })}
+ </ul>
+ <p className="mt-4 max-w-[48rem] text-site-small text-site-muted text-pretty">
+ New Feishu connections are open in mainland China; existing Lark connections keep working. Community platforms
+ ship in every release, without an official support commitment.
+ </p>
+ </div>
+ </Container>
+ </Section>
+ );
+}
+
+const ACCESS: Feature[] = [
+ {
+ icon: Link2,
+ title: "Linked accounts only",
+ body: "The first time someone messages a Bot, they get a link to sign in and connect their chat account to Multica.",
+ },
+ {
+ icon: ShieldCheck,
+ title: "Checked on every message",
+ body: "Membership is confirmed each time. Leave the workspace and the Bot no longer answers.",
+ },
+ {
+ icon: Layers,
+ title: "Only what’s addressed to it",
+ body: "In a group the agent reads messages that mention it, never the rest of the channel.",
+ },
+ {
+ icon: UserPen,
+ title: "Admins decide which Bots exist",
+ body: "Owners and admins connect and disconnect Bots. Conversations and runs are kept after a disconnect.",
+ },
+];
+
+function Access() {
+ return (
+ <Section>
+ <Container>
+ <h2 className="max-w-[44rem] font-site-display text-site-heading text-balance">
+ <span className="block text-site-ink">Open to your team.</span>
+ <span className="block text-site-muted">Closed to everyone else in the chat.</span>
+ </h2>
+ <div className="mt-site-block">
+ <FeatureGrid items={ACCESS} />
+ </div>
+ </Container>
+ </Section>
+ );
+}
diff --git a/apps/web/features/landing/site/cli-page.tsx b/apps/web/features/landing/site/cli-page.tsx
new file mode 100644
index 0000000000..2b40d6be3e
--- /dev/null
+++ b/apps/web/features/landing/site/cli-page.tsx
@@ -0,0 +1,191 @@
+"use client";
+
+import { ArrowUpRight } from "@multica/ui/icons";
+import { docsHrefForLocale, useLocale } from "../i18n";
+import { ActionLink, Container, Section, SectionHeader } from "./primitives";
+import { AgentSessionVisual, CliScene } from "./demo/cli-visuals";
+import { CtaBand, SitePage } from "./site-page";
+import { CheckList, CodeBlock, SurfaceHero, type CodeVariant } from "./surface-kit";
+
+export function CliPage() {
+ return (
+ <SitePage>
+ <Hero />
+ <div className="site-rails">
+ <Install />
+ <Commands />
+ <AgentDriven />
+ <CtaBand title="Connect your first computer" lead="Install the CLI, run multica setup, and assign an issue to an agent on that machine." />
+ </div>
+ </SitePage>
+ );
+}
+
+const SKILL_URL = "https://github.com/multica-ai/multica-cli";
+
+function useCliDocsHref() {
+ const { locale } = useLocale();
+ return `${docsHrefForLocale(locale)}/cli`;
+}
+
+function Hero() {
+ const docsHref = useCliDocsHref();
+ return (
+ <SurfaceHero
+ eyebrow="Multica CLI"
+ title="Multica from your terminal."
+ subtitle="And from every agent you run."
+ lead="The multica command connects a computer as a runtime, then lets you, a script, or another coding agent work with issues, comments, and agents from the shell."
+ actions={
+ <>
+ <ActionLink href="#install" size="lg">
+ Install the CLI
+ </ActionLink>
+ <ActionLink href={`${docsHref}#command-reference`} size="lg" tone="secondary">
+ Command reference
+ <ArrowUpRight className="size-4" aria-hidden />
+ </ActionLink>
+ </>
+ }
+ frost="cli"
+ label="A terminal on build-01 runs multica setup: it signs Leo Park in, starts the daemon, and multica daemon status reports Claude Code, Codex, and OpenCode. Beside it, build-01 appears on the Runtimes page as a new machine."
+ >
+ <CliScene />
+ </SurfaceHero>
+ );
+}
+
+const INSTALL: { title: string; body: string; code: CodeVariant[] }[] = [
+ {
+ title: "Install it",
+ body: "One line in a terminal on macOS and Linux, or in PowerShell on Windows. Homebrew works too.",
+ code: [
+ { label: "macOS / Linux", code: "curl -fsSL https://raw.githubusercontent.com/multica-ai/multica/main/scripts/install.sh | bash" },
+ { label: "Windows", code: "irm https://raw.githubusercontent.com/multica-ai/multica/main/scripts/install.ps1 | iex" },
+ { label: "Homebrew", code: "brew install multica-ai/tap/multica" },
+ ],
+ },
+ {
+ title: "Connect the computer",
+ body: "Setup saves the server, signs you in through the browser, and starts the daemon. Running your own Multica? Give it your server’s addresses.",
+ code: [
+ { label: "Multica Cloud", code: "multica setup" },
+ {
+ label: "Self-hosted",
+ code: "multica setup self-host \\\n --server-url https://api.example.com \\\n --app-url https://app.example.com",
+ },
+ ],
+ },
+ {
+ title: "Check it’s running",
+ body: "See who you’re signed in as and which coding tools the daemon found. Your computer is now a runtime you can assign agents to.",
+ code: [{ label: "Terminal", code: "multica auth status\nmultica daemon status" }],
+ },
+];
+
+function Install() {
+ return (
+ <Section id="install" className="scroll-mt-site-header">
+ <Container>
+ <SectionHeader title="A runtime in three commands" />
+ <ol className="mt-site-block flex flex-col">
+ {INSTALL.map((step, index) => (
+ <li
+ key={step.title}
+ className="grid gap-6 border-t border-site-line py-8 last:border-b lg:grid-cols-[minmax(0,1fr)_minmax(0,1.3fr)] lg:gap-16 lg:py-10"
+ >
+ <div className="flex gap-4">
+ <span className="pt-1 font-site-mono text-site-label text-site-muted tabular-nums">
+ {String(index + 1).padStart(2, "0")}
+ </span>
+ <span>
+ <h3 className="text-site-card text-site-ink">{step.title}</h3>
+ <p className="mt-site-stack max-w-[26rem] text-site-body text-site-muted text-pretty">{step.body}</p>
+ </span>
+ </div>
+ <CodeBlock variants={step.code} />
+ </li>
+ ))}
+ </ol>
+ </Container>
+ </Section>
+ );
+}
+
+const COMMANDS: { name: string; body: string }[] = [
+ { name: "issue", body: "Create, assign, search, and comment on issues, and follow their runs" },
+ { name: "project", body: "Manage projects and the repositories attached to them" },
+ { name: "workflow", body: "Set each status’s owner and handoff, and pick the workflow a project uses" },
+ { name: "property", body: "Define the custom properties issues carry across the workspace" },
+ { name: "agent", body: "Create agents, set their instructions, skills, and MCP servers" },
+ { name: "squad", body: "Group agents under a leader that routes the work" },
+ { name: "autopilot", body: "Schedule recurring work and trigger runs by hand" },
+ { name: "skill", body: "Import, search, and edit the skills agents share" },
+ { name: "repo", body: "List the workspace’s repositories and check one out" },
+ { name: "workspace", body: "Switch workspaces and invite members" },
+ { name: "daemon", body: "Start, stop, and read the logs of the daemon on this computer" },
+ { name: "runtime", body: "List the workspace’s runtimes, their usage, and their activity" },
+];
+
+function Commands() {
+ return (
+ <Section>
+ <Container className="grid gap-site-block lg:grid-cols-[minmax(0,1fr)_minmax(0,2fr)] lg:gap-16">
+ <SectionHeader
+ title="The whole workspace, scriptable"
+ lead="What you can do in the app, you can do from the shell. Add --output json to any command for output a script can read."
+ />
+ <dl className="grid border-t border-site-line sm:grid-cols-2 sm:gap-x-10">
+ {COMMANDS.map((command) => (
+ <div key={command.name} className="border-b border-site-line py-4">
+ <dt className="font-site-mono text-site-small text-site-ink">multica {command.name}</dt>
+ <dd className="mt-1 text-site-small text-site-muted text-pretty">{command.body}</dd>
+ </div>
+ ))}
+ </dl>
+ </Container>
+ </Section>
+ );
+}
+
+function AgentDriven() {
+ return (
+ <Section>
+ <Container className="grid items-center gap-site-block lg:grid-cols-2 lg:gap-16">
+ <div
+ role="img"
+ aria-label="A Claude Code session asked to pick up ACM-163: it reads the issue and its comment threads with multica, finds a fixed timeout in the checkout test, writes a reply to a file, and posts it as a comment."
+ data-frost="cli"
+ className="site-frost flex h-[26rem] items-center justify-center overflow-hidden rounded-site-panel max-lg:order-2"
+ >
+ <div aria-hidden className="relative text-foreground max-sm:scale-[0.8] lg:max-xl:scale-[0.84]">
+ <AgentSessionVisual />
+ </div>
+ </div>
+ <div>
+ <h2 className="font-site-display text-site-heading text-balance">
+ <span className="block text-site-ink">Let your coding agent drive it.</span>
+ <span className="block text-site-muted">Without leaving its session.</span>
+ </h2>
+ <p className="mt-3 max-w-[30rem] text-site-body text-site-muted text-pretty">
+ The Multica CLI skill teaches Codex, Claude Code, Cursor, and other agents to work with Multica through the
+ commands on this page.
+ </p>
+ <CheckList
+ className="mt-6"
+ items={[
+ "Reads long threads a page at a time, not all at once",
+ "Writes comments through a file, never a mangled one-liner",
+ "Knows which actions start runs or notify people",
+ "Acts with your login and permissions, nothing more",
+ ]}
+ />
+ <ActionLink href={SKILL_URL} tone="ghost" className="mt-6 -ml-3">
+ Get the CLI skill
+ <ArrowUpRight className="size-4" aria-hidden />
+ </ActionLink>
+ </div>
+ </Container>
+ </Section>
+ );
+}
diff --git a/apps/web/features/landing/site/cloud-page.tsx b/apps/web/features/landing/site/cloud-page.tsx
new file mode 100644
index 0000000000..8217625241
--- /dev/null
+++ b/apps/web/features/landing/site/cloud-page.tsx
@@ -0,0 +1,271 @@
+"use client";
+
+import type { ReactNode } from "react";
+import { ArrowUpRight, GitPullRequest, Laptop, ListOrdered, MessageSquareText, Pause } from "@multica/ui/icons";
+import { cn } from "@multica/ui/lib/utils";
+import { useAuthStore } from "@multica/core/auth";
+import { ProviderLogo } from "@multica/views/runtimes/components/provider-logo";
+import { useDashboardCtaHref } from "../utils/use-dashboard-cta";
+import { docsHrefForLocale, useLocale } from "../i18n";
+import { ActionLink, Container, Section, SectionHeader } from "./primitives";
+import { AssignVisual, CloudScene, ConnectVisual, LinkAgentVisual } from "./demo/cloud-visuals";
+import { CtaBand, SitePage } from "./site-page";
+import {
+ CheckList,
+ CompareTable,
+ FeatureGrid,
+ IconTile,
+ SurfaceHero,
+ WalkthroughTabs,
+ type CompareRow,
+ type Feature,
+ type Walkthrough,
+} from "./surface-kit";
+
+export function CloudPage() {
+ return (
+ <SitePage>
+ <Hero />
+ <div className="site-rails">
+ <Steps />
+ <Unattended />
+ <Boundary />
+ <Services />
+ <Compare />
+ <CtaBand title="Put an agent to work in the cloud" lead="Connect Qoder Cloud Agents and assign the first issue." />
+ </div>
+ </SitePage>
+ );
+}
+
+function useSetupGuideHref() {
+ const { locale } = useLocale();
+ return `${docsHrefForLocale(locale)}/daemon-runtimes#qoder-cloud-agents-remote-runtime`;
+}
+
+function Hero() {
+ const user = useAuthStore((s) => s.user);
+ const ctaHref = useDashboardCtaHref();
+ const guideHref = useSetupGuideHref();
+ return (
+ <SurfaceHero
+ eyebrow="Multica Cloud"
+ title="Agents that run in the cloud."
+ subtitle="Assigned like any teammate."
+ lead="Connect a cloud agent service as a runtime, and your agents take issues without a computer of yours staying on. Qoder Cloud Agents works today, with Cursor and Claude next."
+ actions={
+ <>
+ <ActionLink href={ctaHref} size="lg">
+ {user ? "Open dashboard" : "Get started"}
+ </ActionLink>
+ <ActionLink href={guideHref} size="lg" tone="secondary">
+ Setup guide
+ <ArrowUpRight className="size-4" aria-hidden />
+ </ActionLink>
+ </>
+ }
+ frost="cloud"
+ label="The Runtimes page at multica.ai: Qoder Cloud Agents online with two runs going and one queued, Cursor Cloud Agents and Claude Managed Agents coming soon, and two of the team’s machines. Over it, Backend Agent works an issue on Qoder Cloud Agents and opens a linked pull request."
+ >
+ <CloudScene />
+ </SurfaceHero>
+ );
+}
+
+const STEPS: Walkthrough[] = [
+ {
+ title: "Connect Qoder",
+ body: "On the Runtimes page, add Qoder Cloud Agents, paste a personal access token, and pick an environment.",
+ visual: ConnectVisual,
+ },
+ {
+ title: "Link an agent",
+ body: "Create a Multica agent and choose the QCA Agent it runs as. Its model, tools, and skills stay set up in Qoder.",
+ visual: LinkAgentVisual,
+ },
+ {
+ title: "Assign it an issue",
+ body: "It starts a cloud session, reports progress on the issue, and opens a pull request linked back to it.",
+ visual: AssignVisual,
+ },
+];
+
+function Steps() {
+ return (
+ <Section>
+ <Container>
+ <SectionHeader title="Set up in three steps" />
+ <div className="mt-site-block">
+ <WalkthroughTabs steps={STEPS} />
+ </div>
+ </Container>
+ </Section>
+ );
+}
+
+const UNATTENDED: Feature[] = [
+ {
+ icon: ListOrdered,
+ title: "Runs queue up",
+ body: "Run up to 10 at once on a connection. The rest wait in line and start as slots free up.",
+ },
+ {
+ icon: MessageSquareText,
+ title: "Follow-ups resume the session",
+ body: "A new comment on the issue continues the agent’s previous Qoder session.",
+ },
+ {
+ icon: GitPullRequest,
+ title: "Pull requests link themselves",
+ body: "Agents push a branch named after the issue and put its ID in the pull request title.",
+ },
+ {
+ icon: Pause,
+ title: "Pause without losing setup",
+ body: "Stop new runs and keep credentials and agents, or disconnect to remove them.",
+ },
+];
+
+function Unattended() {
+ return (
+ <Section>
+ <Container>
+ <SectionHeader title="Built for work nobody watches" />
+ <div className="mt-site-block">
+ <FeatureGrid items={UNATTENDED} />
+ </div>
+ </Container>
+ </Section>
+ );
+}
+
+const BOUNDARY: { title: string; items: string[] }[] = [
+ {
+ title: "Sent to Qoder for each run",
+ items: ["The issue title and description", "Relevant comments", "Project context", "The agent’s instructions"],
+ },
+ {
+ title: "Kept under your control",
+ items: [
+ "Tokens are encrypted and never shown again after saving",
+ "GitHub tokens only mount the repository for a run",
+ "Agents can clone only the repositories you authorize",
+ "Admins manage the connection; members pick agents",
+ ],
+ },
+];
+
+function Boundary() {
+ return (
+ <Section>
+ <Container>
+ <h2 className="max-w-[44rem] font-site-display text-site-heading text-balance">
+ <span className="block text-site-ink">You decide what the cloud sees.</span>
+ <span className="block text-site-muted">And which code it can open.</span>
+ </h2>
+ <div className="mt-site-block grid overflow-hidden rounded-site-card border border-site-line bg-site-surface md:grid-cols-2">
+ {BOUNDARY.map((side, index) => (
+ <div key={side.title} className={cn("p-6 sm:p-8", index === 1 && "border-site-line max-md:border-t md:border-l")}>
+ <h3 className="text-site-card text-site-ink">{side.title}</h3>
+ <CheckList items={side.items} className="mt-5" />
+ </div>
+ ))}
+ </div>
+ </Container>
+ </Section>
+ );
+}
+
+const SERVICES: { provider: string; name: string; vendor: string; available: boolean }[] = [
+ { provider: "qoder_cloud", name: "Qoder Cloud Agents", vendor: "By Qoder", available: true },
+ { provider: "cursor", name: "Cursor Cloud Agents", vendor: "By Cursor", available: false },
+ { provider: "claude", name: "Claude Managed Agents", vendor: "By Anthropic", available: false },
+];
+
+function Services() {
+ const { locale } = useLocale();
+ return (
+ <Section>
+ <Container className="grid gap-site-block lg:grid-cols-[minmax(0,1fr)_minmax(0,1.4fr)] lg:gap-16">
+ <div>
+ <SectionHeader
+ title="More clouds on the way"
+ lead="Cloud services sit beside your own machines on the Runtimes page, and you assign their agents the same way."
+ />
+ <ActionLink href={`${docsHrefForLocale(locale)}/providers`} tone="ghost" className="mt-6 -ml-3">
+ Agents for your own machines
+ <ArrowUpRight className="size-4" aria-hidden />
+ </ActionLink>
+ </div>
+ <ul className="divide-y divide-site-line border-y border-site-line">
+ {SERVICES.map((service) => (
+ <ServiceRow
+ key={service.provider}
+ icon={<ProviderLogo provider={service.provider} className="size-5" />}
+ name={service.name}
+ detail={service.vendor}
+ available={service.available}
+ />
+ ))}
+ <ServiceRow icon={<Laptop className="size-5" aria-hidden />} name="Your own machines" detail="27 coding agents, through the daemon" available />
+ </ul>
+ </Container>
+ </Section>
+ );
+}
+
+function ServiceRow({ icon, name, detail, available }: { icon: ReactNode; name: string; detail: string; available: boolean }) {
+ return (
+ <li className="flex items-center gap-4 py-4">
+ <IconTile muted={!available}>{icon}</IconTile>
+ <span className="min-w-0 flex-1">
+ <span className={cn("block text-site-body", available ? "text-site-ink" : "text-site-muted")}>{name}</span>
+ <span className="block text-site-small text-site-muted">{detail}</span>
+ </span>
+ <Availability available={available} />
+ </li>
+ );
+}
+
+function Availability({ available }: { available: boolean }) {
+ return (
+ <span
+ className={cn(
+ "inline-flex shrink-0 items-center gap-1.5 rounded-site-control bg-site-sunken px-2 py-0.5 text-site-small",
+ available ? "text-site-ink" : "text-site-muted",
+ )}
+ >
+ {available ? <span className="size-1.5 rounded-full bg-success" /> : null}
+ {available ? "Available" : "Coming soon"}
+ </span>
+ );
+}
+
+const COMPARE: CompareRow[] = [
+ { label: "A computer left on", values: ["Not needed", "Needed while agents run"] },
+ { label: "Model, tools, and skills", values: ["Set up in the cloud service", "Set on the agent in Multica"] },
+ { label: "Code it can reach", values: ["GitHub repositories you authorize", "Anything on that computer"] },
+ { label: "Chat with the agent", values: ["Not yet", "Supported"] },
+ { label: "Local files and attachments", values: ["Not supported", "Supported"] },
+];
+
+function Compare() {
+ const guideHref = useSetupGuideHref();
+ return (
+ <Section>
+ <Container>
+ <SectionHeader
+ title="A cloud service or your own computer"
+ lead="Most teams use both: cloud agents for work that should run unattended, and their own machines for work that needs local files."
+ />
+ <div className="mt-site-block">
+ <CompareTable columns={["Cloud service", "Your computer"]} rows={COMPARE} />
+ </div>
+ <ActionLink href={guideHref} tone="ghost" className="mt-8 -ml-3 md:mt-10">
+ Read the setup guide
+ <ArrowUpRight className="size-4" aria-hidden />
+ </ActionLink>
+ </Container>
+ </Section>
+ );
+}
diff --git a/apps/web/features/landing/site/cta-band.tsx b/apps/web/features/landing/site/cta-band.tsx
new file mode 100644
index 0000000000..3bfbd3ebfe
--- /dev/null
+++ b/apps/web/features/landing/site/cta-band.tsx
@@ -0,0 +1,25 @@
+"use client";
+
+import { useLocale } from "../i18n";
+import { ActionLink, Container, Section } from "./primitives";
+
+export function CtaBand({ title, lead }: { title?: string; lead?: string }) {
+ const { t } = useLocale();
+ const copy = t.site.cta;
+ return (
+ <Section className="py-0">
+ <Container className="flex flex-col items-center pt-24 pb-16 text-center lg:pt-30 lg:pb-20">
+ <h2 className="max-w-[16ch] font-site-display text-site-display text-site-ink text-balance">{title ?? copy.title}</h2>
+ <p className="mt-4 max-w-[30rem] text-site-body text-site-muted text-balance">{lead ?? copy.lead}</p>
+ <div className="mt-8 flex flex-wrap justify-center gap-2.5">
+ <ActionLink href="/login" size="lg">
+ {copy.getStarted}
+ </ActionLink>
+ <ActionLink href="/contact-sales" size="lg" tone="secondary">
+ {copy.bookDemo}
+ </ActionLink>
+ </div>
+ </Container>
+ </Section>
+ );
+}
diff --git a/apps/web/features/landing/site/customer-logos.ts b/apps/web/features/landing/site/customer-logos.ts
new file mode 100644
index 0000000000..b3192b9010
--- /dev/null
+++ b/apps/web/features/landing/site/customer-logos.ts
@@ -0,0 +1,32 @@
+/*
+ * The logo wall: companies and universities whose people have signed up for
+ * Multica, from email domains. One list for every locale. Each logo is the
+ * organization's official artwork, flattened to a one-colour alpha mask in
+ * `public/images/logos` so the wall can tint it; `ratio` is the mask's
+ * width / height.
+ */
+
+export type CustomerLogo = { name: string; logo: string; ratio: number };
+
+export const CUSTOMER_LOGOS: CustomerLogo[] = [
+ { name: "NVIDIA", logo: "nvidia", ratio: 5.42 },
+ { name: "ByteDance", logo: "bytedance", ratio: 5.77 },
+ { name: "Microsoft", logo: "microsoft", ratio: 4.69 },
+ { name: "Samsung", logo: "samsung", ratio: 6.52 },
+ { name: "Google", logo: "google", ratio: 3.04 },
+ { name: "Tencent", logo: "tencent", ratio: 7.79 },
+ { name: "Amazon", logo: "amazon", ratio: 3.32 },
+ { name: "Rakuten", logo: "rakuten", ratio: 5.88 },
+ { name: "Alibaba", logo: "alibaba", ratio: 7.79 },
+ { name: "UC Berkeley", logo: "berkeley", ratio: 5.32 },
+ { name: "Xiaomi", logo: "xiaomi", ratio: 3.75 },
+ { name: "SAP", logo: "sap", ratio: 2.02 },
+ { name: "Meituan", logo: "meituan", ratio: 2.83 },
+ { name: "Zoom", logo: "zoom", ratio: 4.44 },
+ { name: "University of Oxford", logo: "oxford", ratio: 3.25 },
+ { name: "Shopee", logo: "shopee", ratio: 3.13 },
+ { name: "adidas", logo: "adidas", ratio: 1.48 },
+ { name: "Tsinghua University", logo: "tsinghua", ratio: 1.0 },
+ { name: "DoorDash", logo: "doordash", ratio: 8.57 },
+ { name: "JD.com", logo: "jd", ratio: 3.06 },
+];
diff --git a/apps/web/features/landing/site/demo/chat-visuals.tsx b/apps/web/features/landing/site/demo/chat-visuals.tsx
new file mode 100644
index 0000000000..84632843e9
--- /dev/null
+++ b/apps/web/features/landing/site/demo/chat-visuals.tsx
@@ -0,0 +1,251 @@
+"use client";
+
+import type { ComponentType, ReactNode } from "react";
+import { Hash, MessageSquare, Plus } from "@multica/ui/icons";
+import { cn } from "@multica/ui/lib/utils";
+import { StatusIcon } from "@multica/views/issues/components/status-icon";
+import { DingTalkMark } from "@multica/views/settings/components/dingtalk-mark";
+import { LarkMark } from "@multica/views/settings/components/lark-mark";
+import { SlackMark } from "@multica/views/settings/components/slack-mark";
+import { TelegramMark } from "@multica/views/settings/components/telegram-mark";
+import { WecomMark } from "@multica/views/settings/components/wecom-mark";
+import { MulticaIcon } from "@multica/ui/components/common/multica-icon";
+import { Avatar, BACKEND, FLOATING, LEAD, LEO, MIA, SAM, TRIAGE, ZoomCanvas, type Actor } from "./mock-kit";
+
+/*
+ * Mockups for the Chat integrations page: a team chat where people talk to a
+ * Multica agent through its Bot, and the Messaging settings where each Bot is
+ * bound to one agent. The chat client is drawn plain so it reads as any of the
+ * supported platforms; the Bot's replies follow the product's own copy. Data
+ * is fictional.
+ */
+
+export type ChannelId = "slack" | "lark" | "dingtalk" | "wecom" | "telegram";
+
+export const CHANNELS: { id: ChannelId; name: string; Mark: ComponentType<{ className?: string }> }[] = [
+ { id: "slack", name: "Slack", Mark: SlackMark },
+ { id: "lark", name: "Feishu", Mark: LarkMark },
+ { id: "dingtalk", name: "DingTalk", Mark: DingTalkMark },
+ { id: "wecom", name: "WeCom", Mark: WecomMark },
+ { id: "telegram", name: "Telegram", Mark: TelegramMark },
+];
+
+const BOT = { name: "Multica", agent: BACKEND };
+
+function Message({ actor, bot, time, children }: { actor: Actor; bot?: boolean; time: string; children: ReactNode }) {
+ return (
+ <div className="flex gap-2.5">
+ <span className="pt-0.5">{bot ? <MulticaIcon shape="circle" size={24} /> : <Avatar actor={actor} size={24} />}</span>
+ <div className="min-w-0 flex-1">
+ <p className="flex items-center gap-1.5 text-caption">
+ <span className="font-semibold">{bot ? BOT.name : actor.name}</span>
+ {bot ? <span className="rounded-sm bg-muted px-1 text-micro font-medium text-muted-foreground">App</span> : null}
+ <span className="text-muted-foreground tabular-nums">{time}</span>
+ </p>
+ <div className="mt-0.5 text-label leading-relaxed">{children}</div>
+ </div>
+ </div>
+ );
+}
+
+function Mention({ children }: { children: ReactNode }) {
+ return <span className="rounded-sm bg-brand/10 px-0.5 font-medium text-brand">{children}</span>;
+}
+
+function Slash({ children }: { children: ReactNode }) {
+ return <span className="font-mono text-[12px]">{children}</span>;
+}
+
+function ChatWindow({
+ className,
+ title,
+ icon: Icon,
+ composer,
+ children,
+}: {
+ className?: string;
+ title: string;
+ icon: ComponentType<{ className?: string }>;
+ composer: string;
+ children: ReactNode;
+}) {
+ return (
+ <div className={cn("flex flex-col overflow-hidden rounded-xl border border-site-line-strong bg-site-surface shadow-site-float", className)}>
+ <div className="flex h-11 shrink-0 items-center gap-2 border-b border-site-line px-4">
+ <Icon className="size-4 text-muted-foreground" />
+ <span className="text-label font-semibold">{title}</span>
+ </div>
+ <div className="flex min-h-0 flex-1 flex-col justify-end gap-4 overflow-hidden px-4 py-4">{children}</div>
+ <div className="shrink-0 px-3 pb-3">
+ <div className="flex h-9 items-center gap-2 rounded-lg border border-site-line bg-background px-3 text-label text-muted-foreground">
+ <Plus className="size-3.5" />
+ {composer}
+ </div>
+ </div>
+ </div>
+ );
+}
+
+function ThreadReplies({ count, children }: { count: number; children: ReactNode }) {
+ return (
+ <div className="ml-[34px] flex flex-col gap-3 border-l-2 border-border pl-3">
+ <p className="text-caption font-medium text-brand">{count} replies</p>
+ {children}
+ </div>
+ );
+}
+
+function ChannelConversation() {
+ return (
+ <>
+ <Message actor={LEO} time="9:38">
+ Export for the Northwind workspace failed again last night.
+ </Message>
+ <Message actor={MIA} time="9:41">
+ <Mention>@Multica</Mention> why did last night’s export job fail?
+ </Message>
+ <ThreadReplies count={2}>
+ <Message actor={BOT.agent} bot time="9:42">
+ It hit the 15-minute timeout on a workspace with 2.1M rows. The job loads every row before writing, so it
+ should write in batches of 10,000 instead.
+ </Message>
+ <Message actor={MIA} time="9:43">
+ That matches the logs. Thanks!
+ </Message>
+ </ThreadReplies>
+ </>
+ );
+}
+
+const BOUND: { channel: ChannelId; agent: Actor | null }[] = [
+ { channel: "slack", agent: BACKEND },
+ { channel: "lark", agent: LEAD },
+ { channel: "telegram", agent: TRIAGE },
+ { channel: "dingtalk", agent: null },
+ { channel: "wecom", agent: null },
+];
+
+/** Settings → Messaging: one Bot per agent, on each platform the team uses. */
+function MessagingPanel({ className, rows = BOUND.length }: { className: string; rows?: number }) {
+ return (
+ <div className={cn(FLOATING, "absolute overflow-hidden", className)}>
+ <div className="border-b border-border px-4 py-3">
+ <p className="text-label font-semibold">Messaging</p>
+ <p className="mt-0.5 text-caption text-muted-foreground">Connected bots</p>
+ </div>
+ {BOUND.slice(0, rows).map(({ channel, agent }) => {
+ const { name, Mark } = CHANNELS.find((item) => item.id === channel)!;
+ return (
+ <div key={channel} className="flex h-[52px] items-center gap-3 border-b border-border px-4 last:border-b-0">
+ <span className="flex size-7 shrink-0 items-center justify-center rounded-lg bg-muted text-foreground">
+ <Mark className="size-3.5" />
+ </span>
+ <span className="min-w-0 flex-1">
+ <span className="block text-label font-medium">{name}</span>
+ <span className="flex items-center gap-1.5 truncate text-caption text-muted-foreground">
+ {agent ? (
+ <>
+ <Avatar actor={agent} size={16} />
+ {agent.name}
+ </>
+ ) : (
+ "No bot yet"
+ )}
+ </span>
+ </span>
+ {agent ? (
+ <span className="flex items-center gap-1.5 text-caption">
+ <span className="size-1.5 rounded-full bg-success" />
+ Connected
+ </span>
+ ) : (
+ <span className="rounded-md px-2 py-0.5 text-caption font-medium ring-1 ring-border">Connect</span>
+ )}
+ </div>
+ );
+ })}
+ </div>
+ );
+}
+
+const SCENE = { width: 1100, height: 600 } as const;
+const SCENE_NARROW = { width: 440, height: 440 } as const;
+
+/** Hero: a team channel asking the Bot a question, and the Bots each agent has across platforms. */
+export function ChatScene() {
+ return (
+ <>
+ <div className="relative aspect-square sm:hidden">
+ <ZoomCanvas {...SCENE_NARROW}>
+ <ChatWindow title="eng-support" icon={Hash} composer="Message #eng-support" className="absolute inset-6">
+ <ChannelConversation />
+ </ChatWindow>
+ </ZoomCanvas>
+ </div>
+ <div className="relative hidden aspect-[1100/600] sm:block">
+ <ZoomCanvas {...SCENE}>
+ <ChatWindow
+ title="eng-support"
+ icon={Hash}
+ composer="Message #eng-support"
+ className="absolute top-10 left-[6%] w-[56%] -bottom-12"
+ >
+ <ChannelConversation />
+ </ChatWindow>
+ <MessagingPanel className="top-[16%] right-[5%] w-[320px]" />
+ </ZoomCanvas>
+ </div>
+ </>
+ );
+}
+
+// --- Ways in -------------------------------------------------------------------
+
+const PANEL = "h-[300px] w-[340px]";
+
+export function DirectMessageVisual() {
+ return (
+ <ChatWindow title="Multica" icon={MessageSquare} composer="Message Multica" className={PANEL}>
+ <Message actor={LEO} time="10:02">
+ What changed in the billing API this week?
+ </Message>
+ <Message actor={BOT.agent} bot time="10:03">
+ Three merged pull requests: invoices now paginate, refunds accept a reason, and the old /v1/charges route
+ returns 410.
+ </Message>
+ </ChatWindow>
+ );
+}
+
+export function MentionVisual() {
+ return (
+ <ChatWindow title="eng-support" icon={Hash} composer="Reply in thread" className={PANEL}>
+ <Message actor={SAM} time="11:20">
+ <Mention>@Multica</Mention> why is the checkout test flaky?
+ </Message>
+ <ThreadReplies count={1}>
+ <Message actor={BOT.agent} bot time="11:21">
+ It waits a fixed 500 ms for the payment form. On a slow runner the form isn’t there yet.
+ </Message>
+ </ThreadReplies>
+ </ChatWindow>
+ );
+}
+
+export function IssueCommandVisual() {
+ return (
+ <ChatWindow title="Multica" icon={MessageSquare} composer="Message Multica" className={PANEL}>
+ <Message actor={MIA} time="9:43">
+ <Slash>/issue</Slash> Batch the nightly export job
+ </Message>
+ <Message actor={BOT.agent} bot time="9:43">
+ ✅ Created ACM-171 — Batch the nightly export job
+ <span className="mt-2 flex items-center gap-2 rounded-lg border border-border bg-background px-3 py-2 text-caption">
+ <StatusIcon status="todo" className="size-3.5" />
+ <span className="text-muted-foreground tabular-nums">ACM-171</span>
+ <span className="min-w-0 flex-1 truncate font-medium">Batch the nightly export job</span>
+ </span>
+ </Message>
+ </ChatWindow>
+ );
+}
diff --git a/apps/web/features/landing/site/demo/cli-visuals.tsx b/apps/web/features/landing/site/demo/cli-visuals.tsx
new file mode 100644
index 0000000000..a36ed88c37
--- /dev/null
+++ b/apps/web/features/landing/site/demo/cli-visuals.tsx
@@ -0,0 +1,192 @@
+"use client";
+
+import type { ReactNode } from "react";
+import { Laptop, Plus, Server } from "@multica/ui/icons";
+import { cn } from "@multica/ui/lib/utils";
+import {
+ FLOATING,
+ HeaderButton,
+ LIST,
+ LIST_CELL,
+ ListGroup,
+ ListRow,
+ NameCell,
+ Online,
+ PageHeader,
+ ProviderStack,
+ ZoomCanvas,
+} from "./mock-kit";
+
+/*
+ * Mockups for the Multica CLI page: a terminal connecting a computer with
+ * `multica setup`, the Runtimes list it lands in, and a coding agent driving
+ * the CLI on someone's behalf. Command output follows the CLI's own strings;
+ * data is fictional.
+ */
+
+export function TerminalWindow({ title, className, children }: { title: string; className?: string; children: ReactNode }) {
+ return (
+ <div className={cn("flex flex-col overflow-hidden rounded-xl border border-site-line-strong bg-site-surface shadow-site-float", className)}>
+ <div className="flex h-9 shrink-0 items-center gap-1.5 border-b border-site-line bg-site-sunken px-3">
+ {[0, 1, 2].map((dot) => (
+ <span key={dot} className="size-2.5 shrink-0 rounded-full bg-site-line-strong" />
+ ))}
+ <span className="mx-auto pr-10 text-caption text-muted-foreground">{title}</span>
+ </div>
+ <div className="flex min-h-0 flex-1 flex-col gap-1 overflow-hidden px-4 py-3.5 font-mono text-[12px] leading-[1.6] text-muted-foreground *:shrink-0 *:whitespace-pre">
+ {children}
+ </div>
+ </div>
+ );
+}
+
+export function Cmd({ children }: { children: ReactNode }) {
+ return (
+ <p className="text-foreground">
+ <span className="text-muted-foreground select-none">$ </span>
+ {children}
+ </p>
+ );
+}
+
+function Gap() {
+ return <span aria-hidden className="h-2" />;
+}
+
+function Cursor() {
+ return (
+ <p className="text-foreground">
+ <span className="text-muted-foreground">$ </span>
+ <span className="inline-block h-[1.1em] w-[0.55em] translate-y-[0.15em] bg-foreground/70 motion-safe:animate-pulse" />
+ </p>
+ );
+}
+
+function SetupSession({ compact }: { compact?: boolean }) {
+ return (
+ <>
+ <Cmd>multica setup</Cmd>
+ <p>Configured for Multica Cloud (https://multica.ai).</p>
+ <p>{" server_url: https://api.multica.ai"}</p>
+ <p>{" app_url: https://multica.ai"}</p>
+ <Gap />
+ <p>Opening browser to authenticate...</p>
+ <p>Authenticated as Leo Park ([email protected])</p>
+ <p>Token saved to config.</p>
+ <p>Daemon started (pid 48211, version v0.4.31)</p>
+ <Gap />
+ <p className="text-foreground">
+ <span className="text-success">✓</span> Setup complete! Your machine is now connected to Multica.
+ </p>
+ <Gap />
+ {compact ? null : (
+ <>
+ <Cmd>multica daemon status</Cmd>
+ <p>{"Daemon: running (pid 48211, uptime 14s)"}</p>
+ <p>{"Version: v0.4.31"}</p>
+ <p>{"Agents: claude, codex, opencode"}</p>
+ <p>{"Workspaces: 1"}</p>
+ <Gap />
+ </>
+ )}
+ <Cursor />
+ </>
+ );
+}
+
+const MACHINES = [
+ { icon: Server, name: "build-01", agents: ["Claude Code", "Codex", "OpenCode"], fresh: true },
+ { icon: Laptop, name: "Mia’s MacBook Pro", agents: ["Claude Code", "Cursor"] },
+ { icon: Laptop, name: "Sam’s ThinkPad", agents: ["Codex"] },
+];
+
+function RuntimesPanel({ className, compact }: { className: string; compact?: boolean }) {
+ const columns = compact ? "minmax(0,1fr) 64px" : "minmax(0,1fr) 56px 64px";
+ return (
+ <div className={cn(FLOATING, "absolute overflow-hidden pb-2", className)}>
+ <PageHeader icon={Server} title="All runtimes" filter={false}>
+ <HeaderButton icon={Plus} />
+ </PageHeader>
+ <div className={LIST}>
+ <ListGroup title="Machines" count={compact ? 2 : MACHINES.length} />
+ {MACHINES.slice(0, compact ? 2 : undefined).map((machine) => (
+ <ListRow key={machine.name} columns={columns} className={cn(machine.fresh && "bg-brand/5")}>
+ <NameCell
+ icon={<machine.icon className="size-4 shrink-0 text-muted-foreground" />}
+ title={machine.name}
+ />
+ {compact ? null : (
+ <span className={LIST_CELL}>
+ <ProviderStack names={machine.agents} />
+ </span>
+ )}
+ <span className={LIST_CELL}>
+ <Online />
+ </span>
+ </ListRow>
+ ))}
+ </div>
+ </div>
+ );
+}
+
+const SCENE = { width: 1100, height: 600 } as const;
+const SCENE_NARROW = { width: 440, height: 440 } as const;
+
+/** Hero: `multica setup` connecting a Linux box, which then shows up on the Runtimes page. */
+export function CliScene() {
+ return (
+ <>
+ <div className="relative aspect-square sm:hidden">
+ <ZoomCanvas {...SCENE_NARROW}>
+ <TerminalWindow title="leo@build-01" className="absolute top-6 left-6 -right-10 -bottom-10">
+ <SetupSession compact />
+ </TerminalWindow>
+ <RuntimesPanel compact className="right-4 bottom-5 w-[270px]" />
+ </ZoomCanvas>
+ </div>
+ <div className="relative hidden aspect-[1100/600] sm:block">
+ <ZoomCanvas {...SCENE}>
+ <TerminalWindow title="leo@build-01" className="absolute top-10 left-[6%] w-[56%] -bottom-12">
+ <SetupSession />
+ </TerminalWindow>
+ <RuntimesPanel className="top-[20%] right-[5%] w-[360px]" />
+ </ZoomCanvas>
+ </div>
+ </>
+ );
+}
+
+function ToolCall({ name, children }: { name: string; children: ReactNode }) {
+ return (
+ <p className="text-foreground">
+ <span className="text-success">●</span> <span className="font-semibold">{name}</span>{" "}
+ <span className="text-muted-foreground">{children}</span>
+ </p>
+ );
+}
+
+/** A coding agent working an issue through the CLI, the way the Multica CLI skill teaches it to. */
+export function AgentSessionVisual() {
+ return (
+ <TerminalWindow title="Claude Code — acme/web" className="h-[340px] w-[420px]">
+ <p className="text-foreground">
+ <span className="text-muted-foreground">&gt; </span>Pick up ACM-163 and post what you find
+ </p>
+ <Gap />
+ <ToolCall name="Bash">multica issue get ACM-163 --output json</ToolCall>
+ <ToolCall name="Bash">multica issue comment list ACM-163 \</ToolCall>
+ <p>{" --roots-only --summary --compact"}</p>
+ <ToolCall name="Read">e2e/checkout.spec.ts</ToolCall>
+ <Gap />
+ <p className="whitespace-normal! text-foreground">
+ The test waits on a fixed 500 ms timeout before the payment form renders. I’ll wait for the form instead.
+ </p>
+ <Gap />
+ <ToolCall name="Write">./reply.md</ToolCall>
+ <ToolCall name="Bash">multica issue comment add ACM-163 \</ToolCall>
+ <p>{" --content-file ./reply.md"}</p>
+ <p>{" Comment added to issue ACM-163."}</p>
+ </TerminalWindow>
+ );
+}
diff --git a/apps/web/features/landing/site/demo/cloud-visuals.tsx b/apps/web/features/landing/site/demo/cloud-visuals.tsx
new file mode 100644
index 0000000000..f352e6b454
--- /dev/null
+++ b/apps/web/features/landing/site/demo/cloud-visuals.tsx
@@ -0,0 +1,413 @@
+"use client";
+
+import type { ReactNode } from "react";
+import { Check, ChevronDown, CircleCheck, GitBranch, GitPullRequest, Laptop, Lock, Plus, Server, X, type IconComponent } from "@multica/ui/icons";
+import { cn } from "@multica/ui/lib/utils";
+import { StatusIcon } from "@multica/views/issues/components/status-icon";
+import { PriorityIcon } from "@multica/views/issues/components/priority-icon";
+import { ProviderLogo } from "@multica/views/runtimes/components/provider-logo";
+import { Chip } from "./feature-visuals";
+import {
+ AppWindow,
+ Avatar,
+ BACKEND,
+ FLOATING,
+ HeaderButton,
+ LEO,
+ LIST,
+ LIST_CELL,
+ ListGroup,
+ ListHead,
+ ListRow,
+ NameCell,
+ Online,
+ PageHeader,
+ ProviderStack,
+ Working,
+ ZoomCanvas,
+} from "./mock-kit";
+
+/*
+ * Mockups for the Multica Cloud page: agents that run on cloud agent services
+ * connected as runtimes. The hero is the Runtimes page open at multica.ai,
+ * with an issue a cloud agent is working floating over it. Strings follow the
+ * product's own copy; data is fictional.
+ */
+
+const QODER = "Qoder Cloud Agents";
+
+// --- Hero ------------------------------------------------------------------------
+
+function BrowserWindow({ path, className, children }: { path: string; className: string; children: ReactNode }) {
+ return (
+ <div className={cn("absolute flex flex-col overflow-hidden rounded-xl border border-site-line-strong bg-app-shell shadow-site-float", className)}>
+ <div className="flex h-9 shrink-0 items-center gap-1.5 px-3">
+ {[0, 1, 2].map((dot) => (
+ <span key={dot} className="size-2.5 rounded-full bg-muted-foreground/20" />
+ ))}
+ <span className="mx-auto flex h-6 w-[42%] min-w-[180px] items-center justify-center gap-1.5 rounded-md bg-background/80 text-caption text-muted-foreground ring-1 ring-border">
+ <Lock className="size-3" />
+ {path}
+ </span>
+ <span className="w-[42px]" />
+ </div>
+ <div className="relative min-h-0 flex-1">{children}</div>
+ </div>
+ );
+}
+
+type Machine = { icon: IconComponent; name: string; detail: string; tools: string[]; agents: number; workload: string; tag?: string };
+
+const MACHINES: Machine[] = [
+ { icon: Laptop, name: "Mia’s MacBook Pro", detail: "macOS", tools: ["Claude Code", "Cursor"], agents: 2, workload: "1 running · 0 queued", tag: "This device" },
+ { icon: Server, name: "build-01", detail: "Linux · Leo Park", tools: ["Claude Code", "Codex"], agents: 3, workload: "All idle" },
+];
+
+const COMING: { provider: string; name: string; vendor: string }[] = [
+ { provider: "cursor", name: "Cursor Cloud Agents", vendor: "Cursor" },
+ { provider: "claude", name: "Claude Managed Agents", vendor: "Anthropic" },
+];
+
+const WIDE_COLUMNS = "minmax(0,1fr) 64px 48px 120px 80px";
+const COMPACT_COLUMNS = "minmax(0,1fr) 88px";
+
+/** Name, harness, agents, workload, status; the compact list keeps the bare name and status. */
+function RuntimeRow({ compact, name, cells, className }: { compact?: boolean; name: ReactNode; cells: [ReactNode, ReactNode, ReactNode, ReactNode]; className?: string }) {
+ const [harness, agents, workload, status] = cells;
+ return (
+ <ListRow columns={compact ? COMPACT_COLUMNS : WIDE_COLUMNS} className={className}>
+ {name}
+ {compact ? null : (
+ <>
+ <span className={LIST_CELL}>{harness}</span>
+ <span className={cn(LIST_CELL, "justify-end tabular-nums")}>{agents}</span>
+ <span className={cn(LIST_CELL, "tabular-nums")}>{workload}</span>
+ </>
+ )}
+ <span className={LIST_CELL}>{status}</span>
+ </ListRow>
+ );
+}
+
+const EMPTY = <span className="text-faint-foreground">—</span>;
+
+function RuntimesPage({ compact }: { compact?: boolean }) {
+ return (
+ <>
+ <PageHeader icon={Server} title="All runtimes" filter={false}>
+ <HeaderButton icon={Plus} />
+ </PageHeader>
+ <div className={LIST}>
+ <ListHead columns={compact ? COMPACT_COLUMNS : WIDE_COLUMNS}>
+ <span>Name</span>
+ {compact ? null : (
+ <>
+ <span>Harness</span>
+ <span className="text-right">Agents</span>
+ <span>Workload</span>
+ </>
+ )}
+ <span>Status</span>
+ </ListHead>
+ <ListGroup title="Machines" count={MACHINES.length} />
+ {MACHINES.map((machine) => (
+ <RuntimeRow
+ key={machine.name}
+ compact={compact}
+ name={
+ <NameCell
+ icon={<machine.icon className="size-4 shrink-0 text-muted-foreground" />}
+ title={machine.name}
+ tag={compact ? undefined : machine.tag}
+ description={compact ? undefined : machine.detail}
+ />
+ }
+ cells={[
+ <ProviderStack key="harness" names={machine.tools} />,
+ machine.agents,
+ <span key="workload" className={cn("truncate", machine.workload !== "All idle" && "text-foreground")}>
+ {machine.workload}
+ </span>,
+ <Online key="status" />,
+ ]}
+ />
+ ))}
+ <ListGroup title="Cloud services" count={1} />
+ <RuntimeRow
+ compact={compact}
+ className="bg-surface-selected"
+ name={<NameCell icon={<ProviderLogo provider="qoder_cloud" className="size-4 shrink-0" />} title={QODER} description={compact ? undefined : "By Qoder"} />}
+ cells={[
+ EMPTY,
+ 3,
+ <span key="workload" className="truncate text-foreground">2 running · 1 queued</span>,
+ <>
+ <span className="size-1.5 shrink-0 rounded-full bg-success" />
+ <span className="truncate text-foreground">Online</span>
+ </>,
+ ]}
+ />
+ {COMING.map((service) => (
+ <RuntimeRow
+ key={service.provider}
+ compact={compact}
+ name={
+ <NameCell
+ icon={
+ <span className="shrink-0 opacity-60">
+ <ProviderLogo provider={service.provider} className="size-4" />
+ </span>
+ }
+ title={service.name}
+ description={compact ? undefined : `By ${service.vendor}`}
+ muted
+ />
+ }
+ cells={[
+ null,
+ null,
+ null,
+ <span key="status" className="rounded-md bg-secondary px-1.5 py-0.5 text-micro font-medium text-secondary-foreground">
+ Coming soon
+ </span>,
+ ]}
+ />
+ ))}
+ </div>
+ </>
+ );
+}
+
+function Step({ icon: Icon, children, last }: { icon: IconComponent; children: ReactNode; last?: boolean }) {
+ return (
+ <div className="relative flex gap-2.5 pb-3 last:pb-0">
+ {last ? null : <span aria-hidden className="absolute top-5 bottom-0 left-[7px] w-px bg-border" />}
+ <Icon className="mt-0.5 size-3.5 shrink-0 text-muted-foreground" />
+ <span className="min-w-0 flex-1 text-caption leading-snug">{children}</span>
+ </div>
+ );
+}
+
+function RunCard({ className, compact }: { className: string; compact?: boolean }) {
+ return (
+ <div className={cn(FLOATING, "absolute overflow-hidden", className)}>
+ <div className="px-4 pt-3.5 pb-3">
+ <p className="flex items-center gap-2 text-caption text-muted-foreground tabular-nums">
+ <PriorityIcon priority="high" />
+ ACM-152
+ <span className="ml-auto">
+ <Working />
+ </span>
+ </p>
+ <p className="mt-1.5 text-label font-semibold">Redesign the settings page</p>
+ <div className="mt-2.5 flex flex-wrap items-center gap-1.5">
+ <Chip actor={BACKEND} />
+ <span className="flex items-center gap-1.5 rounded-md border border-border py-0.5 pr-2 pl-1 text-caption">
+ <ProviderLogo provider="qoder_cloud" className="size-3.5" />
+ {QODER}
+ </span>
+ </div>
+ </div>
+ {compact ? null : (
+ <div className="border-t border-border bg-muted/30 px-4 py-3">
+ <Step icon={CircleCheck}>Started a Qoder session · acme/web</Step>
+ <Step icon={GitBranch}>
+ Pushed <span className="font-mono text-[11px]">acm-152-settings</span>
+ </Step>
+ <Step icon={GitPullRequest} last>
+ <span className="block font-medium">ACM-152: Redesign the settings page</span>
+ <span className="block text-muted-foreground">Pull request #482 · linked to the issue</span>
+ </Step>
+ </div>
+ )}
+ </div>
+ );
+}
+
+function Toast({ className }: { className: string }) {
+ return (
+ <div className={cn(FLOATING, "absolute flex items-center gap-2.5 px-3.5 py-2.5", className)}>
+ <CircleCheck className="size-4 shrink-0 text-success" />
+ <span className="text-label whitespace-nowrap">Qoder connected. It will be ready in a few seconds.</span>
+ </div>
+ );
+}
+
+const SCENE = { width: 1100, height: 600 } as const;
+const SCENE_NARROW = { width: 440, height: 440 } as const;
+
+/** Hero: cloud services beside the team's machines on the Runtimes page, and an issue a cloud agent is working. */
+export function CloudScene() {
+ return (
+ <>
+ <div className="relative aspect-[440/440] sm:hidden">
+ <ZoomCanvas {...SCENE_NARROW}>
+ <BrowserWindow path="multica.ai/acme/runtimes" className="top-6 left-6 -right-10 -bottom-10">
+ <AppWindow className="inset-0 rounded-none border-0 shadow-none" active="team" bleed={40}>
+ <RuntimesPage compact />
+ </AppWindow>
+ </BrowserWindow>
+ <RunCard compact className="right-4 bottom-5 w-[264px]" />
+ </ZoomCanvas>
+ </div>
+ <div className="relative hidden aspect-[1100/600] sm:block">
+ <ZoomCanvas {...SCENE}>
+ <BrowserWindow path="multica.ai/acme/runtimes" className="top-10 right-[19%] -bottom-12 left-[7%]">
+ <AppWindow className="inset-0 rounded-none border-0 shadow-none" active="team" bleed={48}>
+ <RuntimesPage />
+ </AppWindow>
+ </BrowserWindow>
+ <RunCard className="top-[17%] right-[3.5%] w-[332px]" />
+ <Toast className="bottom-[8%] left-[3%]" />
+ </ZoomCanvas>
+ </div>
+ </>
+ );
+}
+
+// --- Getting started ----------------------------------------------------------
+
+function Field({ label, children, hint }: { label: string; children: ReactNode; hint?: ReactNode }) {
+ return (
+ <div className="mt-3">
+ <p className="text-caption font-medium">{label}</p>
+ <div className="mt-1.5">{children}</div>
+ {hint ? <p className="mt-1 text-micro text-muted-foreground">{hint}</p> : null}
+ </div>
+ );
+}
+
+function Input({ children, focused }: { children: ReactNode; focused?: boolean }) {
+ return (
+ <div
+ className={cn(
+ "flex h-8 items-center gap-2 rounded-md border border-border bg-background px-2.5 text-label",
+ focused && "ring-2 ring-brand/15",
+ )}
+ >
+ {children}
+ </div>
+ );
+}
+
+function DialogHeader({ title, subtitle }: { title: ReactNode; subtitle: string }) {
+ return (
+ <div className="flex items-start gap-2">
+ <span className="min-w-0 flex-1">
+ <span className="flex items-center gap-2 text-label font-semibold">{title}</span>
+ <span className="mt-0.5 block text-caption text-muted-foreground">{subtitle}</span>
+ </span>
+ <X className="size-3.5 text-muted-foreground" />
+ </div>
+ );
+}
+
+export function ConnectVisual() {
+ return (
+ <div className={cn(FLOATING, "w-[288px] p-4")}>
+ <DialogHeader
+ title={
+ <>
+ <ProviderLogo provider="qoder_cloud" className="size-4" />
+ {QODER}
+ </>
+ }
+ subtitle="Run agents in Qoder Cloud using a shared connection."
+ />
+ <Field label="Region">
+ <div className="flex rounded-md bg-muted p-0.5 text-caption">
+ <span className="flex-1 rounded-sm bg-background py-0.5 text-center font-medium shadow-xs">Global (qoder.com)</span>
+ <span className="flex-1 py-0.5 text-center text-muted-foreground">China</span>
+ </div>
+ </Field>
+ <Field label="Personal access token">
+ <Input focused>
+ <span className="flex-1 tracking-widest text-muted-foreground">••••••••••••</span>
+ <Check className="size-3.5 text-success" />
+ </Input>
+ </Field>
+ <Field label="Environment">
+ <Input>
+ <span className="flex-1">acme-prod</span>
+ <ChevronDown className="size-3.5 text-muted-foreground" />
+ </Input>
+ </Field>
+ <div className="mt-4 flex justify-end">
+ <span className="flex h-7 items-center rounded-md bg-foreground px-3 text-caption font-medium text-background">Connect</span>
+ </div>
+ </div>
+ );
+}
+
+export function LinkAgentVisual() {
+ return (
+ <div className={cn(FLOATING, "w-[288px] p-4")}>
+ <DialogHeader title="Add agent" subtitle="Link a Multica agent to an existing QCA Agent." />
+ <Field label="Agent name">
+ <Input>
+ <Avatar actor={BACKEND} size={16} />
+ Backend Agent
+ </Input>
+ </Field>
+ <Field label="QCA Agent">
+ <Input focused>
+ <span className="flex-1">backend-dev</span>
+ <ChevronDown className="size-3.5 text-muted-foreground" />
+ </Input>
+ </Field>
+ <Field label="Default repository" hint="Mounted when the issue’s project has none.">
+ <Input>
+ <span className="flex-1 truncate">github.com/acme/web</span>
+ <span className="text-caption text-muted-foreground">main</span>
+ </Input>
+ </Field>
+ </div>
+ );
+}
+
+export function AssignVisual() {
+ return (
+ <div className={cn(FLOATING, "w-[288px] overflow-hidden")}>
+ <div className="px-4 pt-4 pb-3">
+ <p className="flex items-center justify-between text-caption text-muted-foreground tabular-nums">
+ ACM-152
+ <Working />
+ </p>
+ <p className="mt-1 text-label font-semibold">Redesign the settings page</p>
+ <div className="mt-2.5 flex flex-col gap-1.5 text-caption">
+ <span className="flex items-center">
+ <span className="w-16 shrink-0 text-muted-foreground">Status</span>
+ <span className="flex items-center gap-1.5">
+ <StatusIcon status="in_progress" className="size-3.5" />
+ In progress
+ </span>
+ </span>
+ <span className="flex items-center">
+ <span className="w-16 shrink-0 text-muted-foreground">Assignee</span>
+ <Chip actor={BACKEND} />
+ </span>
+ </div>
+ </div>
+ <div className="flex flex-col gap-2.5 border-t border-border bg-muted/30 px-4 py-3 text-caption">
+ <span className="flex items-center gap-2">
+ <Avatar actor={LEO} size={16} />
+ <span className="min-w-0 flex-1 truncate">
+ <span className="font-medium">Leo Park</span> <span className="text-muted-foreground">assigned Backend Agent</span>
+ </span>
+ </span>
+ <span className="flex items-center gap-2">
+ <Avatar actor={BACKEND} size={16} />
+ <span className="min-w-0 flex-1 truncate">
+ <span className="font-medium">Backend Agent</span> <span className="text-muted-foreground">started on Qoder</span>
+ </span>
+ </span>
+ <span className="flex items-center gap-2">
+ <GitPullRequest className="size-4 shrink-0 text-success" />
+ <span className="min-w-0 flex-1 truncate">
+ <span className="font-medium">#482</span> <span className="text-muted-foreground">linked to ACM-152</span>
+ </span>
+ </span>
+ </div>
+ </div>
+ );
+}
diff --git a/apps/web/features/landing/site/demo/desktop-visuals.tsx b/apps/web/features/landing/site/demo/desktop-visuals.tsx
new file mode 100644
index 0000000000..c8d2ad2fc8
--- /dev/null
+++ b/apps/web/features/landing/site/demo/desktop-visuals.tsx
@@ -0,0 +1,432 @@
+"use client";
+
+import type { CSSProperties, ReactNode } from "react";
+import {
+ ArrowLeft,
+ ArrowRight,
+ Bot,
+ Folder,
+ Inbox,
+ Laptop,
+ ListTodo,
+ MessageSquare,
+ MoreHorizontal,
+ PanelLeft,
+ PanelRight,
+ Pin,
+ Plus,
+ RotateCw,
+ Search,
+ SquarePen,
+ type IconComponent,
+} from "@multica/ui/icons";
+import { cn } from "@multica/ui/lib/utils";
+import { StatusIcon } from "@multica/views/issues/components/status-icon";
+import { PriorityIcon } from "@multica/views/issues/components/priority-icon";
+import { Chip } from "./feature-visuals";
+import { TimelineRow } from "./hero-board";
+import {
+ APP_CARD,
+ AppRail,
+ Avatar,
+ AvatarStack,
+ BACKEND,
+ BreadcrumbHeader,
+ FLOATING,
+ HeaderButton,
+ MIA,
+ PROVIDER_MARKS,
+ ZoomCanvas,
+ type Space,
+} from "./mock-kit";
+
+/*
+ * Mockups for the Multica Desktop page: the app as a native window, with the
+ * window controls and history over the rail, the workspace's tabs as pills in
+ * the title bar, and the daemon it runs on the computer it is open on. Each
+ * workspace opens in a window of its own. Strings follow the product's own
+ * copy; data is fictional.
+ */
+
+type Tab = { icon: IconComponent; title: string; pinned?: boolean };
+
+const ACME_TABS: Tab[] = [
+ { icon: Inbox, title: "Inbox", pinned: true },
+ { icon: ListTodo, title: "ACM-152 Redesign the settings page" },
+ { icon: MessageSquare, title: "Backend Agent" },
+];
+
+/** Room the window controls and history take at the title bar's start. */
+const TOOLBAR_CLEARANCE = 200;
+const RAIL_WIDTH = 56;
+const TITLE_BAR_ACTION = "flex size-7 shrink-0 items-center justify-center rounded-md text-faint-foreground";
+const TAB_FADE: CSSProperties = {
+ maskImage: "linear-gradient(to right, black calc(100% - 12px), transparent)",
+ WebkitMaskImage: "linear-gradient(to right, black calc(100% - 12px), transparent)",
+};
+
+function TrafficLights() {
+ return (
+ <span className="flex items-center gap-2">
+ {[0, 1, 2].map((dot) => (
+ <span key={dot} className="size-3 rounded-full bg-muted-foreground/20" />
+ ))}
+ </span>
+ );
+}
+
+/** Traffic lights, then back, forward and the panel toggle, floating over the rail and the title bar's start. */
+function WindowToolbar() {
+ return (
+ <div className="absolute top-0 left-0 z-10 flex h-10 items-center pl-3.5" style={{ width: TOOLBAR_CLEARANCE }}>
+ <TrafficLights />
+ <span className="ml-auto flex items-center gap-2 pr-3">
+ <span className={cn(TITLE_BAR_ACTION, "opacity-30")}>
+ <ArrowLeft className="size-4" />
+ </span>
+ <span className={TITLE_BAR_ACTION}>
+ <ArrowRight className="size-4" />
+ </span>
+ <span className={TITLE_BAR_ACTION}>
+ <PanelLeft className="size-4" />
+ </span>
+ </span>
+ </div>
+ );
+}
+
+/** Every tab is a pill; the active one is made of the content card's material. */
+function TabPill({ tab, active, className }: { tab: Tab; active: boolean; className?: string }) {
+ return (
+ <span className={cn("relative h-full min-w-0", className)}>
+ <span
+ aria-hidden
+ className={cn(
+ "absolute inset-x-0 inset-y-1.5 rounded-lg",
+ active ? "bg-page-canvas shadow-[var(--surface-shadow)] ring-1 ring-surface-border" : "bg-page-canvas/50",
+ )}
+ />
+ <span className={cn("relative flex size-full items-center gap-1.5 px-2.5 text-caption", active ? "text-foreground" : "text-muted-foreground")}>
+ <tab.icon className="size-3.5 shrink-0" />
+ <span className="min-w-0 flex-1 overflow-hidden whitespace-nowrap" style={TAB_FADE}>
+ {tab.title}
+ </span>
+ </span>
+ </span>
+ );
+}
+
+function TabStrip({ tabs, active, tabClassName }: { tabs: Tab[]; active: number; tabClassName: string }) {
+ const pinned = tabs.filter((tab) => tab.pinned).length;
+ return (
+ <div className="flex h-full min-w-0 flex-1 items-center gap-1.5">
+ {tabs.map((tab, index) => (
+ <span key={tab.title} className="contents">
+ <TabPill tab={tab} active={index === active} className={tabClassName} />
+ {index === pinned - 1 && pinned < tabs.length ? <span className="h-4 w-px shrink-0 bg-surface-border" /> : null}
+ </span>
+ ))}
+ <span className={TITLE_BAR_ACTION}>
+ <Plus className="size-3.5" />
+ </span>
+ </div>
+ );
+}
+
+/**
+ * Desktop's window: the rail runs the full height under the window toolbar,
+ * the title bar holds the tabs and, at its far end, New issue and search, and
+ * the page sits on the content card. A window that runs off its frame passes
+ * `bleed` so the page keeps its content out of the cropped strip.
+ */
+function NativeWindow({
+ className,
+ active,
+ tabs,
+ activeTab,
+ compact,
+ bleed = 0,
+ children,
+}: {
+ className: string;
+ active: Space;
+ tabs: Tab[];
+ activeTab: number;
+ compact?: boolean;
+ bleed?: number;
+ children: ReactNode;
+}) {
+ return (
+ <div className={cn("absolute flex overflow-hidden rounded-xl border border-site-line-strong bg-app-shell shadow-site-float", className)}>
+ <WindowToolbar />
+ <AppRail active={active} desktop />
+ <div className="flex min-w-0 flex-1 flex-col">
+ <div className="flex h-10 shrink-0 items-center gap-2" style={{ paddingLeft: TOOLBAR_CLEARANCE - RAIL_WIDTH }}>
+ <TabStrip tabs={tabs} active={activeTab} tabClassName={compact ? "w-32 shrink-0" : "w-56"} />
+ {compact ? null : (
+ <span className="flex shrink-0 items-center gap-2" style={{ marginRight: bleed + 12 }}>
+ <span className={TITLE_BAR_ACTION}>
+ <SquarePen className="size-4" />
+ </span>
+ <span className={TITLE_BAR_ACTION}>
+ <Search className="size-4" />
+ </span>
+ </span>
+ )}
+ </div>
+ <div className={cn(APP_CARD, "mr-2 mb-2")}>
+ <div className="relative flex min-w-0 flex-1 flex-col" style={{ marginRight: bleed, marginBottom: bleed }}>
+ {children}
+ </div>
+ </div>
+ </div>
+ </div>
+ );
+}
+
+function Property({ label, children }: { label: string; children: ReactNode }) {
+ return (
+ <div className="flex h-8 items-center text-caption">
+ <span className="w-[76px] shrink-0 text-muted-foreground">{label}</span>
+ <span className="flex min-w-0 items-center gap-1.5">{children}</span>
+ </div>
+ );
+}
+
+function IssuePage({ compact }: { compact?: boolean }) {
+ return (
+ <>
+ <BreadcrumbHeader
+ parent={
+ <>
+ <Folder className="size-3.5 shrink-0" />
+ Acme Web
+ </>
+ }
+ leaf={compact ? "ACM-152" : "ACM-152 Redesign the settings page"}
+ >
+ <span className="flex items-center gap-1">
+ <span className="flex h-7 items-center gap-1.5 rounded-md bg-brand/5 px-1.5">
+ <AvatarStack actors={[BACKEND]} ring="ring-page-canvas" />
+ <span className="truncate text-caption text-info">{compact ? "Working" : `${BACKEND.name} is working`}</span>
+ </span>
+ {compact ? null : <span className="h-4 w-px bg-border" />}
+ </span>
+ {compact ? null : (
+ <>
+ <HeaderButton icon={Pin} />
+ <HeaderButton icon={MoreHorizontal} />
+ <HeaderButton icon={PanelRight} />
+ </>
+ )}
+ </BreadcrumbHeader>
+ <div className="flex min-h-0 flex-1">
+ <div className="min-w-0 flex-1 px-6 py-5">
+ <p className="text-title-lg leading-snug font-semibold tracking-tight">Redesign the settings page</p>
+ <p className="mt-2 max-w-[30rem] text-body text-muted-foreground">
+ Split settings into Profile, Billing, and Team tabs, and keep every form on the existing components.
+ </p>
+ <p className="mt-6 text-title-sm font-semibold">Activity</p>
+ <div className="mt-3 flex flex-col gap-3">
+ <div className="flex items-center text-label text-muted-foreground">
+ <span className="mr-2 flex w-4 shrink-0 justify-center">
+ <Avatar actor={MIA} size={16} />
+ </span>
+ <span className="shrink-0 font-medium">{MIA.name}</span>
+ <span className="ml-1 truncate">assigned to {BACKEND.name}</span>
+ {compact ? null : <span className="ml-auto shrink-0 pl-2">9 min ago</span>}
+ </div>
+ <TimelineRow
+ item={{
+ kind: "comment",
+ actor: BACKEND,
+ body: "The three tabs are in place and the old page redirects to Profile. Running the settings tests before I open a pull request.",
+ }}
+ statuses={[]}
+ />
+ </div>
+ </div>
+ {compact ? null : (
+ <div className="w-[260px] shrink-0 border-l border-border px-4 py-4">
+ <p className="mb-1 flex h-7 items-center text-caption font-medium text-muted-foreground">Properties</p>
+ <Property label="Status">
+ <StatusIcon status="in_progress" className="size-3.5" />
+ In progress
+ </Property>
+ <Property label="Assignee">
+ <Chip actor={BACKEND} />
+ </Property>
+ <Property label="Project">
+ <Folder className="size-3.5 text-muted-foreground" />
+ Acme Web
+ </Property>
+ <Property label="Priority">
+ <PriorityIcon priority="high" />
+ High
+ </Property>
+ <p className="mt-1 flex h-8 items-center gap-1.5 text-caption text-muted-foreground">
+ <Plus className="size-3.5" /> Add property
+ </p>
+ </div>
+ )}
+ </div>
+ </>
+ );
+}
+
+const DETECTED = [
+ { name: "Claude Code", state: "1 running" },
+ { name: "Codex", state: "Ready" },
+ { name: "Cursor", state: "Ready" },
+] as const;
+
+function DetectedRow({ name, state }: { name: string; state: string }) {
+ const Mark = PROVIDER_MARKS.get(name);
+ return (
+ <div className="flex h-9 items-center gap-2.5 text-caption">
+ <span className="inline-flex size-6 items-center justify-center rounded-md bg-background ring-1 ring-border">
+ {Mark ? <Mark className="size-3.5" /> : <Bot className="size-3.5" />}
+ </span>
+ <span className="flex-1 font-medium">{name}</span>
+ <span className={cn("tabular-nums", state === "Ready" ? "text-muted-foreground" : "text-foreground")}>{state}</span>
+ </div>
+ );
+}
+
+/** The computer Desktop is open on, as a runtime: online, managed by the app, with the tools it found. */
+function MachineCard({ className }: { className: string }) {
+ return (
+ <div className={cn(FLOATING, "absolute overflow-hidden", className)}>
+ <div className="flex items-center gap-3 px-4 pt-3.5 pb-3">
+ <span className="relative flex size-8 items-center justify-center rounded-lg bg-muted">
+ <Laptop className="size-4 text-muted-foreground" />
+ <span className="absolute -right-0.5 -bottom-0.5 size-2.5 rounded-full bg-success ring-2 ring-background" />
+ </span>
+ <span className="min-w-0 flex-1">
+ <span className="block text-label font-semibold">Mia’s MacBook Pro</span>
+ <span className="block text-caption text-muted-foreground">Local · this machine</span>
+ </span>
+ <span className="rounded-md bg-muted px-1.5 py-0.5 text-micro font-medium text-muted-foreground">Desktop</span>
+ </div>
+ <div className="border-t border-border bg-muted/30 px-4 py-2">
+ {DETECTED.map((tool) => (
+ <DetectedRow key={tool.name} {...tool} />
+ ))}
+ </div>
+ </div>
+ );
+}
+
+const SCENE = { width: 1100, height: 600 } as const;
+const SCENE_NARROW = { width: 440, height: 440 } as const;
+
+/** Hero: an issue open in a Desktop tab, worked by an agent on the same computer. */
+export function DesktopScene() {
+ return (
+ <>
+ <div className="relative aspect-square sm:hidden">
+ <ZoomCanvas {...SCENE_NARROW}>
+ <NativeWindow className="top-6 left-6 -right-10 -bottom-10" active="work" tabs={ACME_TABS.slice(1, 2)} activeTab={0} compact bleed={40}>
+ <IssuePage compact />
+ </NativeWindow>
+ <MachineCard className="right-4 bottom-5 w-[260px]" />
+ </ZoomCanvas>
+ </div>
+ <div className="relative hidden aspect-[1100/600] sm:block">
+ <ZoomCanvas {...SCENE}>
+ <NativeWindow className="top-10 right-[17%] -bottom-12 left-[6%]" active="work" tabs={ACME_TABS} activeTab={1} bleed={48}>
+ <IssuePage />
+ </NativeWindow>
+ <MachineCard className="top-[24%] right-[3.5%] w-[288px]" />
+ </ZoomCanvas>
+ </div>
+ </>
+ );
+}
+
+// --- Feature rows ------------------------------------------------------------
+
+/** Settings → Daemon: the runtime Desktop started on its own after sign-in. */
+export function DaemonVisual() {
+ return (
+ <div className={cn(FLOATING, "w-[320px] overflow-hidden")}>
+ <div className="flex items-center gap-2 border-b border-border px-4 py-3">
+ <span className="flex-1 text-label font-semibold">Daemon</span>
+ <span className="flex items-center gap-1.5 text-caption">
+ <span className="size-1.5 rounded-full bg-success" />
+ Running
+ </span>
+ </div>
+ <div className="flex flex-col gap-2 px-4 py-3 text-caption">
+ <p className="flex justify-between gap-3">
+ <span className="text-muted-foreground">Profile</span>
+ <span className="truncate font-mono text-[11px]">desktop-multica.ai</span>
+ </p>
+ <p className="flex justify-between gap-3">
+ <span className="text-muted-foreground">CLI</span>
+ <span>Managed by Desktop</span>
+ </p>
+ </div>
+ <div className="border-t border-border bg-muted/30 px-4 py-2">
+ <p className="pt-1 text-micro font-medium text-muted-foreground">Detected on this computer</p>
+ {DETECTED.map((tool) => (
+ <DetectedRow key={tool.name} name={tool.name} state="Ready" />
+ ))}
+ </div>
+ <div className="flex justify-end gap-2 border-t border-border px-4 py-2.5">
+ <span className="flex h-7 items-center rounded-md px-2.5 text-caption font-medium text-muted-foreground ring-1 ring-border">
+ View logs
+ </span>
+ <span className="flex h-7 items-center gap-1.5 rounded-md bg-foreground px-2.5 text-caption font-medium text-background">
+ <RotateCw className="size-3" />
+ Restart
+ </span>
+ </div>
+ </div>
+ );
+}
+
+const PERSONAL_TABS: Tab[] = [
+ { icon: Inbox, title: "Inbox", pinned: true },
+ { icon: ListTodo, title: "MIA-12 Draft the launch post" },
+];
+
+/** A workspace's own window, cut down to its title bar and the top of its page. */
+function WorkspaceWindow({ initial, tabs, active, front, className }: { initial: string; tabs: Tab[]; active: number; front?: boolean; className?: string }) {
+ const page = tabs[active]!;
+ return (
+ <div
+ className={cn(
+ "relative flex overflow-hidden rounded-xl border bg-app-shell",
+ front ? "border-site-line-strong shadow-site-float" : "border-surface-border",
+ className,
+ )}
+ >
+ <WindowToolbar />
+ <div className="flex w-14 shrink-0 justify-center pt-10 pb-2">
+ <span className="flex size-[34px] items-center justify-center rounded-lg border border-surface-border bg-surface-raised text-body font-semibold shadow-[var(--surface-shadow)]">
+ {initial}
+ </span>
+ </div>
+ <div className="flex min-w-0 flex-1 flex-col">
+ <div className="flex h-10 shrink-0 items-center pr-2" style={{ paddingLeft: TOOLBAR_CLEARANCE - RAIL_WIDTH }}>
+ <TabStrip tabs={tabs} active={active} tabClassName="w-56 min-w-0 flex-1" />
+ </div>
+ <div className={cn(APP_CARD, "mr-2 mb-2 h-12 flex-none items-center gap-2 px-4 text-body font-medium")}>
+ <page.icon className="size-4 shrink-0 text-muted-foreground" />
+ <span className="truncate">{page.title}</span>
+ </div>
+ </div>
+ </div>
+ );
+}
+
+/** Two workspaces, each in its own window with the tabs it was left with. */
+export function TabsVisual() {
+ return (
+ <div className="flex w-[470px] flex-col">
+ <WorkspaceWindow initial="M" tabs={PERSONAL_TABS} active={1} className="mr-8 opacity-70" />
+ <WorkspaceWindow initial="A" tabs={ACME_TABS.slice(0, 2)} active={1} front className="-mt-6 ml-8" />
+ </div>
+ );
+}
diff --git a/apps/web/features/landing/site/demo/feature-visuals.tsx b/apps/web/features/landing/site/demo/feature-visuals.tsx
new file mode 100644
index 0000000000..d5a55cafe6
--- /dev/null
+++ b/apps/web/features/landing/site/demo/feature-visuals.tsx
@@ -0,0 +1,434 @@
+"use client";
+
+import type { ReactNode } from "react";
+import {
+ ArrowUp,
+ BookOpenText,
+ ChevronDown,
+ Cloud,
+ CornerDownRight,
+ Hash,
+ Laptop,
+ Plus,
+ Server,
+ SlidersHorizontal,
+ Workflow,
+ Zap,
+ type IconComponent,
+} from "@multica/ui/icons";
+import { cn } from "@multica/ui/lib/utils";
+import { MulticaIcon } from "@multica/ui/components/common/multica-icon";
+import { StatusIcon } from "@multica/views/issues/components/status-icon";
+import { useLocale } from "../../i18n";
+import type { Status } from "./hero-board";
+import {
+ AppWindow,
+ Avatar,
+ BACKEND,
+ BreadcrumbHeader,
+ CONTENT,
+ FRONTEND,
+ HeaderButton,
+ LEAD,
+ LIST,
+ LIST_CELL,
+ ListGroup,
+ ListHead,
+ ListRow,
+ MIA,
+ NameCell,
+ PageHeader,
+ PROVIDER_MARKS,
+ ProviderStack,
+ QA,
+ RAISED,
+ TRIAGE,
+ Working,
+ ZoomCanvas,
+ useDemoCopy,
+ type Actor,
+ type Space,
+} from "./mock-kit";
+
+/*
+ * Product screens for the feature cards. Each one is the Multica app (see
+ * AppWindow) opened on the page the card is about, starting just inside the
+ * card's top-left corner and running off the right and bottom edges like a
+ * cropped screenshot. The canvas zooms with the card (see ZoomCanvas): keep
+ * what matters in the first 340 × 240 of each page. Data is fictional.
+ */
+
+const CANVAS = { width: 440, height: 330 } as const;
+const BLEED = 48;
+
+function Screen({ active, children }: { active: Space; children: ReactNode }) {
+ return (
+ <ZoomCanvas {...CANVAS}>
+ <AppWindow className="top-8 left-8 -right-12 -bottom-12" active={active} bleed={BLEED}>
+ {children}
+ </AppWindow>
+ </ZoomCanvas>
+ );
+}
+
+export function Chip({ actor }: { actor: Actor }) {
+ return (
+ <span className="flex min-w-0 items-center gap-1.5 rounded-md border border-border py-0.5 pr-2 pl-0.5 text-caption">
+ <Avatar actor={actor} size={16} />
+ <span className="truncate">{actor.name}</span>
+ </span>
+ );
+}
+
+// --- Runtimes ---------------------------------------------------------------
+
+type Runtime = { name: string; icon: IconComponent; detail: string; tools: string[]; fresh?: boolean };
+
+const RUNTIME_COLUMNS = "minmax(0,1fr) auto";
+
+function RuntimeRow({ runtime }: { runtime: Runtime }) {
+ return (
+ <ListRow columns={RUNTIME_COLUMNS} className={cn(runtime.fresh && "bg-brand/5")}>
+ <NameCell
+ icon={<runtime.icon className="size-4 shrink-0 text-muted-foreground" />}
+ title={runtime.name}
+ description={runtime.detail}
+ />
+ <span className={LIST_CELL}>
+ <ProviderStack names={runtime.tools} />
+ </span>
+ </ListRow>
+ );
+}
+
+export function RuntimesVisual() {
+ const copy = useDemoCopy().features.runtimes;
+ const machines: Runtime[] = [
+ { name: "build-02", icon: Server, detail: copy.server, tools: ["Claude Code", "Codex", "OpenCode"], fresh: true },
+ { name: copy.laptop, icon: Laptop, detail: copy.thisDevice, tools: ["Claude Code", "Cursor"] },
+ ];
+ const cloud: Runtime[] = [{ name: "Multica Cloud", icon: Cloud, detail: copy.sandboxes, tools: ["Claude Code", "Codex"] }];
+ return (
+ <Screen active="team">
+ <PageHeader icon={Server} title={copy.title} filter={false}>
+ <HeaderButton icon={Plus} />
+ </PageHeader>
+ <div className={LIST}>
+ <ListGroup title={copy.machines} count={machines.length} />
+ {machines.map((runtime) => (
+ <RuntimeRow key={runtime.name} runtime={runtime} />
+ ))}
+ <ListGroup title={copy.cloud} count={cloud.length} />
+ {cloud.map((runtime) => (
+ <RuntimeRow key={runtime.name} runtime={runtime} />
+ ))}
+ </div>
+ </Screen>
+ );
+}
+
+// --- Workflows --------------------------------------------------------------
+
+const STEPS: Omit<Status, "name">[] = [
+ { key: "spec", category: "unstarted", icon: "circle", color: "#8b5cf6", handler: LEAD },
+ { key: "build", category: "started", icon: "half", color: "#f97316", handler: BACKEND },
+ { key: "review", category: "started", icon: "three_quarters", color: "#3b82f6", handler: QA },
+ { key: "approve", category: "started", icon: "three_quarters", color: "#ec4899", handler: MIA },
+ { key: "shipped", category: "done", icon: "check", color: "#22c55e" },
+];
+
+function StepIcon({ step, className }: { step: Omit<Status, "name">; className: string }) {
+ return <StatusIcon status={step.key} category={step.category} color={step.color} icon={step.icon} className={className} />;
+}
+
+function Field({ label, children }: { label: string; children: ReactNode }) {
+ return (
+ <div className="flex flex-col gap-1.5">
+ <p className="text-caption text-muted-foreground">{label}</p>
+ {children}
+ </div>
+ );
+}
+
+function Select({ children }: { children: ReactNode }) {
+ return (
+ <div className="flex h-8 items-center gap-1.5 rounded-md border border-border bg-background px-2 text-caption">
+ <span className="flex min-w-0 flex-1 items-center gap-1.5 truncate">{children}</span>
+ <ChevronDown className="size-3.5 shrink-0 text-muted-foreground" />
+ </div>
+ );
+}
+
+export function WorkflowVisual() {
+ const { t } = useLocale();
+ const copy = t.demo.features.workflow;
+ const names = t.demo.hero.ship.statuses;
+ const steps: Status[] = STEPS.map((step) => ({ ...step, name: names[step.key as keyof typeof names] }));
+ const selected = steps[1]!;
+ return (
+ <Screen active="settings">
+ <BreadcrumbHeader
+ parent={
+ <>
+ <Workflow className="size-3.5" /> {copy.breadcrumb}
+ </>
+ }
+ leaf={t.home.hero.workflows.ship.label}
+ />
+ <div className="flex min-h-0 flex-1 gap-3 p-3">
+ <ol className="flex w-[150px] shrink-0 flex-col gap-1.5 self-start rounded-xl bg-muted/40 p-1.5">
+ {steps.map((step) => (
+ <li key={step.key} className={cn(RAISED, "px-2.5 py-2", step === selected && "ring-2 ring-brand/50")}>
+ <p className="flex items-center gap-2">
+ <StepIcon step={step} className="h-3.5 w-3.5 shrink-0" />
+ <span className="truncate text-label font-medium">{step.name}</span>
+ </p>
+ <div className="mt-1 flex min-w-0 items-center gap-1 whitespace-nowrap text-caption text-muted-foreground">
+ {step.handler ? (
+ <>
+ <CornerDownRight className="size-3 shrink-0" />
+ <span className="truncate text-foreground">{step.handler.name}</span>
+ </>
+ ) : (
+ copy.finalStep
+ )}
+ </div>
+ </li>
+ ))}
+ </ol>
+ <div className="flex min-w-0 flex-1 flex-col gap-3 pt-1">
+ <p className="flex items-center gap-2">
+ <StepIcon step={selected} className="h-4 w-4 shrink-0" />
+ <span className="text-label font-semibold">{selected.name}</span>
+ </p>
+ <Field label={copy.onEnter}>
+ <Select>
+ <Avatar actor={BACKEND} size={16} /> {BACKEND.name}
+ </Select>
+ </Field>
+ <Field label={copy.next}>
+ <Select>
+ <StepIcon step={steps[2]!} className="h-3.5 w-3.5 shrink-0" /> {steps[2]!.name}
+ </Select>
+ </Field>
+ <Field label={copy.instructions}>
+ <div className="rounded-md border border-border bg-background px-2.5 py-2 text-caption leading-snug">
+ {copy.instructionsBody}
+ </div>
+ </Field>
+ </div>
+ </div>
+ </Screen>
+ );
+}
+
+// --- Chat -------------------------------------------------------------------
+
+/*
+ * The chat card is the team's own chat app, not Multica: a Slack-style
+ * workspace where the agent is an installed app, so the frame stays generic
+ * (no vendor logo) and only Multica's link preview is ours.
+ */
+
+const CHANNELS = ["general", "eng-support", "releases", "random"];
+
+function ChatAvatar({ actor }: { actor: Actor }) {
+ if (actor.kind === "agent") {
+ const Mark = PROVIDER_MARKS.get(actor.provider);
+ return (
+ <span className="flex size-7 shrink-0 items-center justify-center rounded-md border border-border bg-background">
+ {Mark ? <Mark className="size-4" /> : null}
+ </span>
+ );
+ }
+ return (
+ <span className="flex size-7 shrink-0 items-center justify-center rounded-md bg-[#e9d8c4] text-micro font-semibold text-[#6b4a2b]">
+ {actor.initials}
+ </span>
+ );
+}
+
+export function ChatMessage({ actor, time, children }: { actor: Actor; time: string; children: ReactNode }) {
+ return (
+ <div className="flex gap-2.5">
+ <ChatAvatar actor={actor} />
+ <div className="min-w-0 flex-1">
+ <p className="flex items-center gap-1.5">
+ <span className="text-label font-bold">{actor.name}</span>
+ {actor.kind === "agent" ? (
+ <span className="rounded-sm bg-muted px-1 text-micro font-semibold text-muted-foreground">APP</span>
+ ) : null}
+ <span className="text-micro text-muted-foreground tabular-nums">{time}</span>
+ </p>
+ <div className="text-label leading-snug">{children}</div>
+ </div>
+ </div>
+ );
+}
+
+export function ChatVisual() {
+ const { locale, t } = useLocale();
+ const copy = t.demo.features.chat;
+ const time = new Intl.DateTimeFormat(locale, { hour: "numeric", minute: "2-digit", timeZone: "UTC" });
+ const at = (minute: number) => time.format(Date.UTC(2026, 5, 9, 11, minute));
+ return (
+ <ZoomCanvas {...CANVAS}>
+ <div className="absolute top-8 -right-12 -bottom-12 left-8 flex overflow-hidden rounded-xl border border-site-line-strong bg-background shadow-site-float">
+ <div className="flex w-[124px] shrink-0 flex-col gap-4 bg-[#3f0e40] px-2 py-3 text-caption text-[#d6c8d6]">
+ <p className="flex items-center gap-1 px-1.5 text-label font-bold whitespace-nowrap text-white">
+ Acme Labs <ChevronDown className="size-3.5" />
+ </p>
+ <div>
+ <p className="px-1.5 pb-1 text-micro">{copy.channels}</p>
+ {CHANNELS.map((channel) => (
+ <p
+ key={channel}
+ className={cn(
+ "flex items-center gap-1.5 rounded-md px-1.5 py-1",
+ channel === "eng-support" && "bg-[#1164a3] font-semibold text-white",
+ )}
+ >
+ <Hash className="size-3 shrink-0" />
+ <span className="truncate">{channel}</span>
+ </p>
+ ))}
+ </div>
+ <div>
+ <p className="px-1.5 pb-1 text-micro">{copy.apps}</p>
+ <p className="flex items-center gap-1.5 rounded-md px-1.5 py-1">
+ <span className="flex size-3.5 shrink-0 items-center justify-center rounded-sm bg-white text-[#3f0e40]">
+ <MulticaIcon className="size-2.5" />
+ </span>
+ Multica
+ </p>
+ </div>
+ </div>
+ <div className="flex min-w-0 flex-1 flex-col" style={{ marginRight: BLEED, marginBottom: BLEED }}>
+ <div className="flex h-11 shrink-0 items-center gap-1 border-b border-border px-4">
+ <Hash className="size-3.5" />
+ <span className="text-label font-bold">eng-support</span>
+ <ChevronDown className="size-3.5 text-muted-foreground" />
+ </div>
+ <div className="flex min-h-0 flex-1 flex-col gap-3 overflow-hidden px-4 py-3">
+ <ChatMessage actor={MIA} time={at(55)}>
+ {copy.ask.before}{" "}
+ <span className="rounded-sm bg-[#e8f5fa] px-0.5 text-[#1264a3]">@{BACKEND.name}</span> {copy.ask.after}
+ </ChatMessage>
+ <ChatMessage actor={BACKEND} time={at(56)}>
+ {copy.reply}
+ <div className="mt-1.5 border-l-4 border-border pl-2.5">
+ <p className="flex items-center gap-1 text-micro text-muted-foreground">
+ <MulticaIcon className="size-2.5" /> Multica
+ </p>
+ <p className="mt-0.5 truncate font-bold text-[#1264a3]">ACM-151 {copy.issue}</p>
+ <p className="mt-0.5 flex items-center gap-1.5 text-caption text-muted-foreground">
+ <StatusIcon status="in_progress" className="h-3 w-3 shrink-0" />
+ {t.demo.app.inProgress}
+ <Working />
+ </p>
+ </div>
+ </ChatMessage>
+ </div>
+ <div className="shrink-0 px-4 pb-3">
+ <div className="flex h-9 items-center justify-between rounded-lg border border-site-line-strong px-3 text-label text-muted-foreground">
+ {copy.composer.replace("{channel}", "eng-support")}
+ <span className="flex items-center gap-2">
+ <Plus className="size-3.5" />
+ <ArrowUp className="size-3.5" />
+ </span>
+ </div>
+ </div>
+ </div>
+ </div>
+ </ZoomCanvas>
+ );
+}
+
+// --- Autopilots -------------------------------------------------------------
+
+const AUTOPILOT_AGENTS: Actor[] = [TRIAGE, QA, BACKEND, CONTENT, FRONTEND];
+
+const AUTOPILOT_COLUMNS = "minmax(0,1fr) auto 84px";
+
+export function AutopilotsVisual() {
+ const copy = useDemoCopy().features.autopilots;
+ return (
+ <Screen active="autopilots">
+ <PageHeader icon={Zap} title={copy.title}>
+ <HeaderButton icon={SlidersHorizontal} />
+ <HeaderButton icon={Plus} />
+ </PageHeader>
+ <div className={LIST}>
+ <ListHead columns={AUTOPILOT_COLUMNS}>
+ <span>{copy.name}</span>
+ <span>{copy.agent}</span>
+ <span>{copy.nextRun}</span>
+ </ListHead>
+ {AUTOPILOT_AGENTS.map((agent, index) => {
+ const autopilot = copy.rows[index];
+ return autopilot ? (
+ <ListRow key={autopilot.name} columns={AUTOPILOT_COLUMNS}>
+ <NameCell title={autopilot.name} />
+ <span className={LIST_CELL}>
+ <Avatar actor={agent} size={20} />
+ </span>
+ <span className={cn(LIST_CELL, "tabular-nums")}>
+ <span className="truncate">{autopilot.next}</span>
+ </span>
+ </ListRow>
+ ) : null;
+ })}
+ </div>
+ </Screen>
+ );
+}
+
+// --- Skills -----------------------------------------------------------------
+
+const SKILL_AGENTS: Actor[][] = [[LEAD, CONTENT, FRONTEND, BACKEND], [BACKEND, QA], [TRIAGE, QA, LEAD], [BACKEND], [CONTENT, TRIAGE]];
+
+const SKILL_COLUMNS = "minmax(0,1fr) 84px";
+
+function UsedBy({ agents }: { agents: Actor[] }) {
+ const extra = agents.length - 3;
+ return (
+ <span className="flex items-center -space-x-1.5">
+ {agents.slice(0, 3).map((agent) => (
+ <span key={agent.name} className="inline-flex rounded-full ring-2 ring-page-canvas">
+ <Avatar actor={agent} size={20} />
+ </span>
+ ))}
+ {extra > 0 ? (
+ <span className="inline-flex size-5 items-center justify-center rounded-full bg-muted text-micro font-medium text-muted-foreground ring-2 ring-page-canvas">
+ +{extra}
+ </span>
+ ) : null}
+ </span>
+ );
+}
+
+export function SkillsVisual() {
+ const copy = useDemoCopy().features.skills;
+ return (
+ <Screen active="team">
+ <PageHeader icon={BookOpenText} title={copy.title}>
+ <HeaderButton icon={SlidersHorizontal} />
+ <HeaderButton icon={Plus} />
+ </PageHeader>
+ <div className={LIST}>
+ <ListHead columns={SKILL_COLUMNS}>
+ <span>{copy.name}</span>
+ <span>{copy.usedBy}</span>
+ </ListHead>
+ {SKILL_AGENTS.map((agents, index) => (
+ <ListRow key={index} columns={SKILL_COLUMNS} className={cn(index === 0 && "bg-surface-selected")}>
+ <NameCell icon={<BookOpenText className="size-4 shrink-0 text-muted-foreground" />} title={copy.rows[index]} />
+ <span className={LIST_CELL}>
+ <UsedBy agents={agents} />
+ </span>
+ </ListRow>
+ ))}
+ </div>
+ </Screen>
+ );
+}
diff --git a/apps/web/features/landing/site/demo/hero-blocks.tsx b/apps/web/features/landing/site/demo/hero-blocks.tsx
new file mode 100644
index 0000000000..4abbc33320
--- /dev/null
+++ b/apps/web/features/landing/site/demo/hero-blocks.tsx
@@ -0,0 +1,277 @@
+import type { ReactNode } from "react";
+import { Check, CircleCheck, GitPullRequest, MessageCircle } from "@multica/ui/icons";
+import { cn } from "@multica/ui/lib/utils";
+import { useDemoCopy } from "./mock-kit";
+
+/*
+ * Rich blocks the agents post in the hero's issue peek — charts, previews and
+ * lists that stand in for paragraphs, so the story reads at a glance. They
+ * animate in once when their comment appears.
+ */
+
+const GROW = "motion-reduce:animate-none";
+
+function Block({ title, aside, children }: { title: string; aside?: ReactNode; children: ReactNode }) {
+ return (
+ <div className="mt-2.5 rounded-lg border border-border bg-muted/30 p-3">
+ <div className="mb-2.5 flex items-center justify-between text-caption">
+ <span className="font-medium">{title}</span>
+ {aside ? <span className="text-muted-foreground">{aside}</span> : null}
+ </div>
+ {children}
+ </div>
+ );
+}
+
+export function Checklist({ title, items }: { title: string; items: string[] }) {
+ const steps = useDemoCopy().hero.blocks.steps;
+ return (
+ <Block title={title} aside={steps.replace("{count}", String(items.length))}>
+ <ul className="flex flex-col gap-1.5 text-caption">
+ {items.map((item, index) => (
+ <li
+ key={item}
+ className="flex items-center gap-2 animate-in fade-in slide-in-from-left-1 duration-300 fill-mode-both motion-reduce:animate-none"
+ style={{ animationDelay: `${200 + index * 180}ms` }}
+ >
+ <span className="flex size-3.5 shrink-0 items-center justify-center rounded-sm border border-border bg-background" />
+ {item}
+ </li>
+ ))}
+ </ul>
+ </Block>
+ );
+}
+
+export function PullRequest({
+ number,
+ title,
+ added,
+ removed,
+ checks,
+}: {
+ number: number;
+ title: string;
+ added: number;
+ removed: number;
+ checks: string[];
+}) {
+ return (
+ <div className="mt-2.5 rounded-lg border border-border">
+ <div className="flex items-center gap-2 px-3 py-2 text-caption">
+ <GitPullRequest className="size-3.5 shrink-0 text-success" />
+ <span className="min-w-0 flex-1 truncate font-medium">
+ #{number} {title}
+ </span>
+ <span className="text-success tabular-nums">+{added}</span>
+ <span className="text-destructive tabular-nums">−{removed}</span>
+ </div>
+ <div className="flex items-center gap-3 border-t border-border px-3 py-1.5 text-micro text-muted-foreground">
+ {checks.map((check, index) => (
+ <span
+ key={check}
+ className="flex items-center gap-1 animate-in fade-in duration-300 fill-mode-both motion-reduce:animate-none"
+ style={{ animationDelay: `${300 + index * 250}ms` }}
+ >
+ <CircleCheck className="size-3 text-success" />
+ {check}
+ </span>
+ ))}
+ </div>
+ </div>
+ );
+}
+
+/** Stacked bars: requests the limiter let through, and the 429s above the line. */
+export function LoadChart() {
+ const copy = useDemoCopy().hero.blocks.load;
+ const offered = [60, 80, 120, 180, 260, 340, 420, 480, 500, 500, 460, 380];
+ const limit = 100;
+ const max = 500;
+ return (
+ <Block
+ title={copy.title}
+ aside={
+ <span className="flex items-center gap-3">
+ <Legend className="bg-brand">{copy.served}</Legend>
+ <Legend className="bg-destructive/60">429</Legend>
+ </span>
+ }
+ >
+ <div className="relative flex h-24 items-end gap-1.5">
+ <div
+ className="absolute inset-x-0 border-t border-dashed border-foreground/40"
+ style={{ bottom: `${(limit / max) * 100}%` }}
+ >
+ <span className="absolute -top-4 left-0 text-micro text-muted-foreground">{copy.limit}</span>
+ </div>
+ {offered.map((value, index) => {
+ const served = Math.min(value, limit);
+ return (
+ <div
+ key={index}
+ className={cn("flex flex-1 origin-bottom flex-col justify-end animate-site-grow-y", GROW)}
+ style={{ height: `${(value / max) * 100}%`, animationDelay: `${index * 60}ms` }}
+ >
+ {value > limit ? <div className="rounded-t-[2px] bg-destructive/60" style={{ flexGrow: value - limit }} /> : null}
+ <div className={cn("bg-brand", value > limit ? "" : "rounded-t-[2px]")} style={{ flexGrow: served }} />
+ </div>
+ );
+ })}
+ </div>
+ </Block>
+ );
+}
+
+export function BarList({ title, aside, bars }: { title: string; aside: string; bars: { label: string; value: number }[] }) {
+ const max = Math.max(...bars.map((bar) => bar.value));
+ return (
+ <Block title={title} aside={aside}>
+ <div className="flex flex-col gap-2">
+ {bars.map((bar, index) => (
+ <div key={bar.label} className="grid grid-cols-[128px_1fr_24px] items-center gap-2 text-caption">
+ <span className="truncate">{bar.label}</span>
+ <span className="h-2 overflow-hidden rounded-full bg-muted">
+ <span
+ className={cn("block h-full origin-left rounded-full bg-brand animate-site-grow-x", GROW)}
+ style={{ width: `${(bar.value / max) * 100}%`, animationDelay: `${200 + index * 150}ms` }}
+ />
+ </span>
+ <span className="text-right text-muted-foreground tabular-nums">{bar.value}</span>
+ </div>
+ ))}
+ </div>
+ </Block>
+ );
+}
+
+/** Export time against row count, crossing the request timeout. */
+export function TimeoutChart() {
+ const copy = useDemoCopy().hero.blocks.exportTime;
+ const points: [number, number][] = [
+ [0, 0],
+ [2, 2],
+ [4, 6],
+ [6, 11],
+ [8, 17],
+ [10, 25],
+ [12, 34],
+ ];
+ const w = 300;
+ const h = 84;
+ const x = (rows: number) => (rows / 12) * w;
+ const y = (seconds: number) => h - (seconds / 36) * h;
+ const path = points.map(([rows, seconds], index) => `${index ? "L" : "M"}${x(rows).toFixed(1)} ${y(seconds).toFixed(1)}`).join(" ");
+ return (
+ <Block title={copy.title} aside={copy.aside}>
+ <svg viewBox={`0 0 ${w} ${h + 14}`} className="block w-full overflow-visible">
+ <line x1="0" x2={w} y1={y(30)} y2={y(30)} className="stroke-destructive/60" strokeDasharray="4 3" />
+ <text x={0} y={y(30) - 4} className="fill-muted-foreground text-[10px]">
+ {copy.timeout}
+ </text>
+ <path
+ d={path}
+ pathLength={1}
+ strokeDasharray="1"
+ className={cn("fill-none stroke-brand animate-site-draw", GROW)}
+ strokeWidth="2"
+ strokeLinecap="round"
+ strokeLinejoin="round"
+ />
+ <circle
+ cx={x(12)}
+ cy={y(34)}
+ r="3.5"
+ className="fill-destructive animate-in fade-in zoom-in duration-300 fill-mode-both motion-reduce:animate-none"
+ style={{ animationDelay: "1100ms" }}
+ />
+ {[0, 4, 8, 12].map((rows) => (
+ <text key={rows} x={x(rows)} y={h + 12} textAnchor={rows === 12 ? "end" : rows === 0 ? "start" : "middle"} className="fill-muted-foreground text-[10px]">
+ {rows}k
+ </text>
+ ))}
+ </svg>
+ </Block>
+ );
+}
+
+export function DocPreview({ title, meta }: { title: string; meta: string }) {
+ return (
+ <div className="mt-2.5 overflow-hidden rounded-lg border border-border">
+ <div className="relative h-20 overflow-hidden bg-[linear-gradient(135deg,oklch(0.93_0.05_290),oklch(0.95_0.04_200))]">
+ <div className="absolute inset-x-4 top-4 flex flex-col gap-1.5">
+ {[72, 54, 64].map((width, index) => (
+ <span
+ key={index}
+ className={cn("block h-1.5 origin-left rounded-full bg-foreground/15 animate-site-grow-x", GROW)}
+ style={{ width: `${width}%`, animationDelay: `${200 + index * 120}ms` }}
+ />
+ ))}
+ </div>
+ <span className="absolute right-4 bottom-3 text-title-sm font-semibold tracking-tight text-foreground">Autopilots</span>
+ </div>
+ <div className="flex items-center gap-2 px-3 py-2 text-caption">
+ <span className="min-w-0 flex-1 truncate font-medium">{title}</span>
+ <span className="text-muted-foreground">{meta}</span>
+ </div>
+ </div>
+ );
+}
+
+const SOURCE_TONE = { Intercom: "bg-sky-500", Discord: "bg-indigo-500" } as const;
+
+export function ReportCluster({ reports }: { reports: { source: keyof typeof SOURCE_TONE; from: string; quote: string }[] }) {
+ const copy = useDemoCopy().hero.blocks.reports;
+ return (
+ <Block title={copy.title} aside={copy.merged.replace("{count}", String(reports.length))}>
+ <ul className="flex flex-col gap-1.5">
+ {reports.map((report, index) => (
+ <li
+ key={report.from}
+ className="flex items-center gap-2 rounded-md bg-background px-2 py-1.5 text-caption shadow-[var(--surface-shadow)] animate-in fade-in slide-in-from-bottom-1 duration-300 fill-mode-both motion-reduce:animate-none"
+ style={{ animationDelay: `${200 + index * 200}ms` }}
+ >
+ <span className={cn("flex size-4 shrink-0 items-center justify-center rounded-sm text-white", SOURCE_TONE[report.source])}>
+ <MessageCircle className="size-2.5" />
+ </span>
+ <span className="min-w-0 flex-1 truncate">“{report.quote}”</span>
+ <span className="shrink-0 text-muted-foreground">{report.from}</span>
+ </li>
+ ))}
+ </ul>
+ </Block>
+ );
+}
+
+export function Replies({ people }: { people: { initials: string; name: string }[] }) {
+ const sent = useDemoCopy().hero.blocks.sent;
+ return (
+ <div className="mt-2.5 flex items-center gap-3 rounded-lg border border-border px-3 py-2 text-caption">
+ <span className="flex -space-x-1.5">
+ {people.map((person, index) => (
+ <span
+ key={person.name}
+ className="flex size-6 items-center justify-center rounded-full bg-muted text-micro font-medium ring-2 ring-background animate-in fade-in zoom-in-75 duration-300 fill-mode-both motion-reduce:animate-none"
+ style={{ animationDelay: `${150 + index * 150}ms` }}
+ >
+ {person.initials}
+ </span>
+ ))}
+ </span>
+ <span className="min-w-0 flex-1 truncate text-muted-foreground">{people.map((person) => person.name).join(", ")}</span>
+ <span className="flex items-center gap-1 text-success">
+ <Check className="size-3.5" />
+ {sent}
+ </span>
+ </div>
+ );
+}
+
+function Legend({ className, children }: { className: string; children: ReactNode }) {
+ return (
+ <span className="flex items-center gap-1">
+ <span className={cn("size-2 rounded-[2px]", className)} />
+ {children}
+ </span>
+ );
+}
diff --git a/apps/web/features/landing/site/demo/hero-board.tsx b/apps/web/features/landing/site/demo/hero-board.tsx
new file mode 100644
index 0000000000..c0a0da96bd
--- /dev/null
+++ b/apps/web/features/landing/site/demo/hero-board.tsx
@@ -0,0 +1,680 @@
+"use client";
+
+import {
+ useEffect,
+ useLayoutEffect,
+ useRef,
+ useState,
+ type ReactNode,
+} from "react";
+import {
+ ArrowUp,
+ Bot,
+ Calendar,
+ ChevronDown,
+ ChevronRight,
+ CircleUser,
+ Columns3,
+ CornerDownRight,
+ Filter,
+ Folder,
+ ListTodo,
+ MoreHorizontal,
+ PanelRight,
+ Paperclip,
+ Plus,
+ SquarePen,
+ X,
+ type IconComponent,
+} from "@multica/ui/icons";
+import { cn } from "@multica/ui/lib/utils";
+import { ShimmerText } from "@multica/ui/components/common/shimmer-text";
+import { StatusIcon } from "@multica/views/issues/components/status-icon";
+import { PriorityIcon } from "@multica/views/issues/components/priority-icon";
+import {
+ APP_CARD,
+ AppRail,
+ Avatar,
+ AvatarStack,
+ HeaderButton,
+ Working,
+ WorkingChip,
+ useDemoCopy,
+ usePrefersReducedMotion,
+ type Actor,
+} from "./mock-kit";
+
+/*
+ * Hero product mockup: a project board run by a workflow, built from the
+ * product's own tokens and glyphs at a fixed design width, then zoomed to fit
+ * its frame. Every column is one of the workflow's custom statuses and names
+ * the agent or member it hands off to. The story follows one issue through
+ * the workflow: it moves column to column while the issue peek floats over
+ * the board and fills with handoffs and comments, and the board pans so the
+ * issue is never under the peek. Data is fictional.
+ */
+
+const WIDE_WIDTH = 1440;
+const NARROW_WIDTH = 540;
+const NARROW_BELOW = 600;
+const RAIL_WIDTH = 56;
+const PANEL_WIDTH = 240;
+const CARD_MARGIN = 8;
+const COLUMN_WIDTH = 280;
+const COLUMN_GAP = 16;
+const BOARD_PAD = 8;
+const PEEK_WIDTH = 520;
+const PEEK_INSET = 8;
+
+export type Priority = "none" | "urgent" | "high" | "medium" | "low";
+type Category = "unstarted" | "started" | "done";
+type StatusGlyph = "dotted" | "circle" | "half" | "three_quarters" | "check";
+
+export type Status = {
+ key: string;
+ name: string;
+ category: Category;
+ icon: StatusGlyph;
+ color: string;
+ handler?: Actor;
+};
+
+export type Card = {
+ id: string;
+ title: string;
+ priority: Priority;
+ assignee?: Actor;
+ working?: boolean;
+ updated: string;
+};
+
+export type TimelineItem =
+ | { kind: "created"; by: string; icon: ReactNode; handoff?: Actor; when?: string }
+ | { kind: "status"; actor: Actor; from: string; to: string; handoff?: Actor; when?: string }
+ | { kind: "comment"; actor: Actor; body: ReactNode };
+
+/** One beat of the story: where the issue is, how much of its timeline shows, and how long to hold. */
+export type Stage = {
+ status: string;
+ panel: boolean;
+ entries: number;
+ working: boolean;
+ priority?: Priority;
+ hold: number;
+};
+
+export type Workflow = {
+ id: string;
+ project: string;
+ statuses: Status[];
+ cards: Record<string, { total: number; cards: Card[] }>;
+ focus: { id: string; title: string; priority: Priority; description: string; label: string; due: string };
+ timeline: TimelineItem[];
+ stages: Stage[];
+ /** Stage shown when motion is reduced. */
+ still: number;
+};
+
+const MOVE_EASE = "cubic-bezier(0.32, 0.72, 0, 1)";
+
+/** `label` describes the board for assistive tech, in the page's language. */
+export function HeroBoard({ workflow, label, onLoop }: { workflow: Workflow; label: string; onLoop?: () => void }) {
+ const windowRef = useRef<HTMLDivElement>(null);
+ const boardRef = useRef<HTMLDivElement>(null);
+ const positions = useRef<{ key: string; at: Map<string, { x: number; y: number }> } | null>(null);
+ const [fit, setFit] = useState<{ zoom: number; narrow: boolean; height: number } | null>(null);
+ const [visible, setVisible] = useState(false);
+ const [shown, setShown] = useState({ id: workflow.id, step: 0 });
+ const reducedMotion = usePrefersReducedMotion();
+ const justNow = useDemoCopy().app.ago.now;
+
+ // A new workflow restarts its story from the first beat.
+ const step = shown.id === workflow.id ? shown.step : 0;
+ if (shown.id !== workflow.id) setShown({ id: workflow.id, step: 0 });
+ const stage = workflow.stages[reducedMotion ? workflow.still : step]!;
+
+ const onLoopRef = useRef(onLoop);
+ useLayoutEffect(() => {
+ onLoopRef.current = onLoop;
+ });
+
+ useEffect(() => {
+ const el = windowRef.current;
+ if (!el) return;
+ const resize = new ResizeObserver(() => {
+ const narrow = el.clientWidth < NARROW_BELOW;
+ const zoom = el.clientWidth / (narrow ? NARROW_WIDTH : WIDE_WIDTH);
+ setFit({ zoom, narrow, height: el.clientHeight / zoom });
+ });
+ const intersection = new IntersectionObserver(([entry]) => setVisible(entry?.isIntersecting ?? false));
+ resize.observe(el);
+ intersection.observe(el);
+ return () => {
+ resize.disconnect();
+ intersection.disconnect();
+ };
+ }, []);
+
+ useEffect(() => {
+ if (!visible || reducedMotion) return;
+ const timer = setTimeout(() => {
+ const next = (step + 1) % workflow.stages.length;
+ if (next === 0) onLoopRef.current?.();
+ setShown({ id: workflow.id, step: next });
+ }, stage.hold);
+ return () => clearTimeout(timer);
+ }, [step, stage.hold, visible, reducedMotion, workflow]);
+
+ // FLIP: cards that changed place glide from where they were. Positions are
+ // relative to the board, so panning it is not a move.
+ useLayoutEffect(() => {
+ const board = boardRef.current;
+ if (!board || !fit) return;
+ const key = `${workflow.id}@${fit.zoom}`;
+ const origin = board.getBoundingClientRect();
+ const next = new Map<string, { x: number; y: number }>();
+ const cards = board.querySelectorAll<HTMLElement>("[data-card]");
+ for (const el of cards) {
+ const rect = el.getBoundingClientRect();
+ next.set(el.dataset.card!, { x: (rect.left - origin.left) / fit.zoom, y: (rect.top - origin.top) / fit.zoom });
+ }
+ const previous = positions.current;
+ if (previous?.key === key && !reducedMotion) {
+ for (const el of cards) {
+ const id = el.dataset.card!;
+ const from = previous.at.get(id);
+ const to = next.get(id);
+ if (!from || !to) continue;
+ if (id === workflow.focus.id && step === 0) {
+ el.animate([{ opacity: 0 }, { opacity: 1 }], { duration: 400, easing: "ease-out" });
+ continue;
+ }
+ const dx = from.x - to.x;
+ const dy = from.y - to.y;
+ if (Math.abs(dx) < 0.5 && Math.abs(dy) < 0.5) continue;
+ el.animate([{ transform: `translate(${dx}px, ${dy}px)` }, { transform: "none" }], {
+ duration: id === workflow.focus.id ? 700 : 450,
+ easing: MOVE_EASE,
+ });
+ }
+ }
+ positions.current = { key, at: next };
+ }, [step, fit, reducedMotion, workflow]);
+
+ const narrow = fit?.narrow ?? false;
+ const statuses = workflow.statuses;
+ const statusIndex = statuses.findIndex((s) => s.key === stage.status);
+ const assignee = assigneeAt(workflow, statusIndex);
+ const focus: Card = {
+ id: workflow.focus.id,
+ title: workflow.focus.title,
+ priority: stage.priority ?? workflow.focus.priority,
+ assignee,
+ working: stage.working && assignee?.kind === "agent",
+ updated: justNow,
+ };
+ const peekOpen = stage.panel && !narrow;
+ const working = [
+ ...new Set(
+ [...(focus.working ? [focus] : []), ...Object.values(workflow.cards).flatMap((column) => column.cards)]
+ .filter((card) => card.working && card.assignee)
+ .map((card) => card.assignee!),
+ ),
+ ];
+
+ // Pan so the focus column is fully in view: right of the panel, left of
+ // the peek when it is open.
+ const canvasWidth = narrow ? NARROW_WIDTH : WIDE_WIDTH;
+ const mainWidth = canvasWidth - (narrow ? 12 : RAIL_WIDTH + CARD_MARGIN + PANEL_WIDTH);
+ const viewport = mainWidth - (peekOpen ? PEEK_WIDTH + PEEK_INSET * 2 : 0);
+ const stride = COLUMN_WIDTH + COLUMN_GAP;
+ const boardWidth = statuses.length * stride - COLUMN_GAP + BOARD_PAD * 2;
+ const pan = Math.min(
+ Math.max(0, (statusIndex + 1) * stride - COLUMN_GAP + BOARD_PAD - viewport),
+ Math.max(0, boardWidth - viewport),
+ );
+
+ return (
+ <div
+ ref={windowRef}
+ role="img"
+ aria-label={label}
+ className="absolute inset-0 overflow-hidden rounded-xl border border-site-line-strong bg-app-shell shadow-site-float"
+ >
+ <div
+ aria-hidden
+ className={cn("flex text-foreground", !fit && "opacity-0")}
+ style={{ width: canvasWidth, height: fit?.height, zoom: fit?.zoom }}
+ >
+ {narrow ? null : <AppRail active="work" />}
+ <div className={cn(APP_CARD, narrow ? "m-1.5" : "my-2 mr-2")}>
+ {narrow ? null : <WorkPanel workflow={workflow} focus={focus} status={stage.status} peeked={peekOpen} />}
+ <main className="relative flex min-w-0 flex-1 flex-col">
+ <BoardHeader project={workflow.project} working={working} compact={narrow} />
+ <div
+ key={`board-${workflow.id}`}
+ className="min-h-0 flex-1 overflow-hidden animate-in fade-in duration-500 motion-reduce:animate-none"
+ >
+ <div
+ ref={boardRef}
+ className="flex h-full gap-4 p-2 transition-transform duration-700 ease-[cubic-bezier(0.32,0.72,0,1)] motion-reduce:transition-none"
+ style={{ width: boardWidth, transform: pan ? `translateX(${-pan}px)` : undefined }}
+ >
+ {statuses.map((status) => {
+ const column = workflow.cards[status.key] ?? { total: 0, cards: [] };
+ const holdsFocus = status.key === stage.status;
+ return (
+ <BoardColumn
+ key={status.key}
+ status={status}
+ total={column.total + (holdsFocus ? 1 : 0)}
+ cards={holdsFocus ? [focus, ...column.cards] : column.cards}
+ peeked={peekOpen ? focus.id : undefined}
+ />
+ );
+ })}
+ </div>
+ </div>
+ {narrow ? null : (
+ <IssuePeek key={`peek-${workflow.id}`} workflow={workflow} focus={focus} stage={stage} open={peekOpen} />
+ )}
+ </main>
+ </div>
+ </div>
+ </div>
+ );
+}
+
+/** Who holds the issue at a status: that step's handler, else whoever held it before. */
+function assigneeAt(workflow: Workflow, index: number): Actor | undefined {
+ for (let i = index; i >= 0; i--) {
+ const handler = workflow.statuses[i]?.handler;
+ if (handler) return handler;
+ }
+ return undefined;
+}
+
+// --- The Work panel -----------------------------------------------------------
+
+const PANEL_ROW = "flex min-h-8 items-center gap-2.5 rounded-lg px-3 py-1.5 text-body";
+const PANEL_ROW_ACTIVE = "bg-surface-selected text-surface-selected-foreground";
+/** A working agent's issue title in the panel: dimmer at rest, with a wider highlight. */
+const PANEL_SHIMMER = "[--shimmer-text-base:var(--faint-foreground)] [--shimmer-text-spread:22%]";
+const TREE_SIZE = 3;
+
+function PanelSection({ label, children }: { label: string; children: ReactNode }) {
+ return (
+ <section className="mt-5 first:mt-0">
+ <div className="flex h-7 items-center gap-1 pr-1 pl-3">
+ <h3 className="min-w-0 flex-1 truncate text-caption font-medium text-muted-foreground">{label}</h3>
+ <span className="flex size-6 items-center justify-center text-muted-foreground">
+ <Plus className="size-3.5" />
+ </span>
+ </div>
+ <ul className="space-y-px">{children}</ul>
+ </section>
+ );
+}
+
+function PanelRow({ icon: Icon, label, count, active }: { icon?: IconComponent; label: string; count?: number; active?: boolean }) {
+ return (
+ <li className={cn(PANEL_ROW, active ? PANEL_ROW_ACTIVE : "text-muted-foreground")}>
+ {Icon ? <Icon className="size-4 shrink-0" /> : <span className="size-4 shrink-0" />}
+ <span className="min-w-0 flex-1 truncate">{label}</span>
+ {count ? <span className="shrink-0 text-caption tabular-nums text-faint-foreground">{count}</span> : null}
+ </li>
+ );
+}
+
+/**
+ * The Work space's panel: views, then projects with the open one expanded into
+ * its issues. Titles shimmer while an agent runs on them, and the issue in the
+ * peek is the lit row.
+ */
+function WorkPanel({ workflow, focus, status, peeked }: { workflow: Workflow; focus: Card; status: string; peeked: boolean }) {
+ const byStatus = workflow.statuses.flatMap((s) => (workflow.cards[s.key]?.cards ?? []).map((card) => ({ card, status: s })));
+ const others = [...byStatus.filter((row) => row.card.working), ...byStatus.filter((row) => !row.card.working)];
+ const tree = [{ card: focus, status: workflow.statuses.find((s) => s.key === status)! }, ...others].slice(0, TREE_SIZE);
+ const { app, hero } = useDemoCopy();
+ const projects = [
+ { name: hero.ship.project, open: 12 },
+ { name: hero.launch.project, open: 9 },
+ { name: hero.triage.project, open: 7 },
+ { name: hero.otherProject, open: 5 },
+ ];
+ return (
+ <aside className="flex shrink-0 flex-col border-r border-border" style={{ width: PANEL_WIDTH }}>
+ <div className="flex h-12 shrink-0 items-center pr-2 pl-5">
+ <h2 className="text-title-sm font-semibold">{app.spaces.work}</h2>
+ </div>
+ <div className="min-h-0 flex-1 overflow-hidden px-2 pb-4">
+ <PanelSection label={app.views}>
+ <PanelRow icon={CircleUser} label={app.myIssues} />
+ <PanelRow icon={Bot} label={app.myAgents} />
+ <PanelRow icon={ListTodo} label={app.allIssues} />
+ <PanelRow label={app.allViews} count={3} />
+ </PanelSection>
+ <PanelSection label={app.projects}>
+ {projects.map((project) => {
+ const open = project.name === workflow.project;
+ return (
+ <li key={project.name}>
+ <div className={cn(PANEL_ROW, open ? (peeked ? "text-foreground" : PANEL_ROW_ACTIVE) : "text-muted-foreground")}>
+ <Folder className="size-4 shrink-0" />
+ <span className="min-w-0 flex-1 truncate">{project.name}</span>
+ <span className="shrink-0 text-caption tabular-nums text-faint-foreground">{project.open}</span>
+ </div>
+ {open ? (
+ <ul key={workflow.id} className="mb-2 ml-5 border-l border-surface-border pl-1.5">
+ {tree.map((row) => (
+ <li
+ key={row.card.id}
+ className={cn(
+ "flex min-h-[26px] items-center gap-2 rounded-lg px-2 py-[3px] text-label",
+ peeked && row.card.id === focus.id ? PANEL_ROW_ACTIVE : "text-muted-foreground",
+ )}
+ >
+ <CustomStatusIcon key={row.status.key} status={row.status} className="size-3 shrink-0" />
+ <ShimmerText active={row.card.working} className={cn("min-w-0 flex-1 truncate", PANEL_SHIMMER)}>
+ {row.card.title}
+ </ShimmerText>
+ {row.card.working && row.card.assignee ? <AvatarStack actors={[row.card.assignee]} size={16} ring="ring-page-canvas" /> : null}
+ </li>
+ ))}
+ </ul>
+ ) : null}
+ </li>
+ );
+ })}
+ <PanelRow label={app.allProjects.replace("{count}", "8")} />
+ </PanelSection>
+ </div>
+ </aside>
+ );
+}
+
+// --- The board ----------------------------------------------------------------
+
+/** The project page's header: the project as a menu and the filter, then the page's actions. */
+function BoardHeader({ project, working, compact }: { project: string; working: Actor[]; compact: boolean }) {
+ return (
+ <div className="flex h-12 shrink-0 items-center gap-2 border-b border-border px-4">
+ <div className="flex min-w-0 flex-1 items-center gap-1">
+ <span className="flex h-7 min-w-0 items-center gap-2 px-2 text-body font-medium">
+ <Folder className="size-4 shrink-0 text-muted-foreground" />
+ <span key={project} className="min-w-0 truncate animate-in fade-in duration-300 motion-reduce:animate-none">
+ {project}
+ </span>
+ <ChevronDown className="size-3 shrink-0 text-muted-foreground" />
+ </span>
+ <span className="flex size-7 shrink-0 items-center justify-center text-muted-foreground">
+ <Filter className="size-4" />
+ </span>
+ </div>
+ <div className="flex shrink-0 items-center gap-1">
+ {working.length > 0 ? <WorkingChip agents={working} compact={compact} /> : null}
+ {compact ? null : <HeaderButton icon={Columns3} />}
+ <HeaderButton icon={SquarePen} />
+ {compact ? null : (
+ <>
+ <span className="mx-1 h-4 w-px bg-border" />
+ <HeaderButton icon={PanelRight} />
+ </>
+ )}
+ </div>
+ </div>
+ );
+}
+
+function CustomStatusIcon({ status, className }: { status: Status; className: string }) {
+ return (
+ <StatusIcon status={status.key} category={status.category} color={status.color} icon={status.icon} className={className} />
+ );
+}
+
+function BoardColumn({
+ status,
+ total,
+ cards,
+ peeked,
+}: {
+ status: Status;
+ total: number;
+ cards: Card[];
+ peeked?: string;
+}) {
+ return (
+ <section className="flex shrink-0 flex-col rounded-xl bg-muted/40 p-2" style={{ width: COLUMN_WIDTH }}>
+ <div className="mb-2 flex items-center justify-between gap-2 px-1.5">
+ <div className="flex min-w-0 items-center gap-2">
+ <span className="inline-flex items-center gap-1.5 truncate text-caption font-semibold">
+ <CustomStatusIcon status={status} className="h-3 w-3 shrink-0" />
+ {status.name}
+ </span>
+ <span className="text-caption text-muted-foreground tabular-nums">{total}</span>
+ </div>
+ <div className="flex min-w-0 items-center gap-1">
+ {status.handler ? (
+ <span className="inline-flex min-w-0 max-w-32 items-center gap-1 rounded-md border border-surface-border bg-background/70 py-0.5 pr-2 pl-0.5 text-caption">
+ <Avatar actor={status.handler} size={16} />
+ <span className="truncate">{status.handler.name}</span>
+ </span>
+ ) : null}
+ <span className="flex size-6 shrink-0 items-center justify-center text-muted-foreground">
+ <Plus className="size-3.5" />
+ </span>
+ </div>
+ </div>
+ <div className="flex flex-col gap-2 p-1">
+ {cards.map((card) => (
+ <BoardCard key={card.id} card={card} peeked={card.id === peeked} />
+ ))}
+ </div>
+ </section>
+ );
+}
+
+function BoardCard({ card, peeked }: { card: Card; peeked: boolean }) {
+ const unassigned = useDemoCopy().app.unassigned;
+ return (
+ <div
+ data-card={card.id}
+ className={cn(
+ "rounded-lg border-[0.5px] border-surface-border bg-surface px-2.5 py-3 shadow-[var(--surface-shadow)] transition-shadow duration-300",
+ peeked && "ring-2 ring-brand/50",
+ )}
+ >
+ <div className="flex items-center justify-between gap-2">
+ <div className="flex min-w-0 items-center gap-1.5">
+ <span key={card.priority} className="inline-flex size-5 shrink-0 items-center justify-center animate-in fade-in duration-300 motion-reduce:animate-none">
+ <PriorityIcon priority={card.priority} />
+ </span>
+ <p className="truncate text-caption text-muted-foreground">{card.id}</p>
+ </div>
+ {card.working && card.assignee ? (
+ <span key={card.assignee.name} className="animate-in fade-in duration-300 motion-reduce:animate-none">
+ <Working agents={[card.assignee]} />
+ </span>
+ ) : null}
+ </div>
+ <p className="mt-1 line-clamp-2 text-body leading-snug font-medium">{card.title}</p>
+ <div className="mt-2 flex items-center justify-between gap-2">
+ {card.assignee ? (
+ <span key={card.assignee.name} className="flex min-w-0 items-center gap-1.5 animate-in fade-in duration-300 motion-reduce:animate-none">
+ <Avatar actor={card.assignee} size={20} />
+ <span className="truncate text-caption">{card.assignee.name}</span>
+ </span>
+ ) : (
+ <span className="text-caption text-muted-foreground">{unassigned}</span>
+ )}
+ <span className="shrink-0 text-caption text-muted-foreground">{card.updated}</span>
+ </div>
+ </div>
+ );
+}
+
+/** The product's issue peek: a floating panel over the board's right edge. */
+function IssuePeek({ workflow, focus, stage, open }: { workflow: Workflow; focus: Card; stage: Stage; open: boolean }) {
+ const scrollRef = useRef<HTMLDivElement>(null);
+ const status = workflow.statuses.find((s) => s.key === stage.status)!;
+ const items = workflow.timeline.slice(0, stage.entries);
+ const { app } = useDemoCopy();
+
+ // The newest entry stays in view, the way a reader following along would scroll.
+ useEffect(() => {
+ const el = scrollRef.current;
+ if (!el) return;
+ el.scrollTo({ top: el.scrollHeight, behavior: open ? "smooth" : "auto" });
+ }, [stage.entries, open]);
+
+ return (
+ <aside
+ data-open={open}
+ className={cn(
+ "absolute top-2 right-2 bottom-2 z-30 flex flex-col overflow-hidden rounded-xl bg-background shadow-[var(--floating-shadow)] ring-1 ring-surface-border",
+ "transition-[opacity,translate] duration-300 ease-out motion-reduce:transition-none",
+ "data-[open=false]:pointer-events-none data-[open=false]:translate-x-2 data-[open=false]:opacity-0 data-[open=false]:duration-200",
+ )}
+ style={{ width: PEEK_WIDTH }}
+ >
+ <div className="flex h-12 shrink-0 items-center gap-2 border-b border-border pr-2 pl-4 text-body">
+ <span className="flex min-w-0 flex-1 items-center gap-1.5 overflow-hidden">
+ <span className="flex min-w-0 items-center gap-1 text-muted-foreground">
+ <Folder className="size-3.5 shrink-0" />
+ <span className="truncate">{workflow.project}</span>
+ </span>
+ <ChevronRight className="size-3 shrink-0 text-faint-foreground" />
+ <span className="shrink-0 font-medium">{focus.id}</span>
+ </span>
+ <span className="flex shrink-0 items-center gap-1">
+ {focus.working && focus.assignee ? (
+ <span
+ key={focus.assignee.name}
+ className="flex h-7 items-center gap-1.5 rounded-md bg-brand/5 px-1.5 animate-in fade-in duration-300 motion-reduce:animate-none"
+ >
+ <AvatarStack actors={[focus.assignee]} />
+ <span className="text-caption whitespace-nowrap text-info">{app.isWorking.replace("{name}", focus.assignee.name)}</span>
+ </span>
+ ) : null}
+ <HeaderButton icon={MoreHorizontal} />
+ <HeaderButton icon={X} />
+ </span>
+ </div>
+ <div ref={scrollRef} className="min-h-0 flex-1 overflow-hidden">
+ <div className="px-6 py-5">
+ <p className="text-title-lg leading-snug font-semibold tracking-tight">{focus.title}</p>
+ <div className="mt-3 flex flex-wrap items-center gap-1.5">
+ <Pill key={status.key}>
+ <CustomStatusIcon status={status} className="h-3.5 w-3.5" />
+ {status.name}
+ </Pill>
+ <Pill key={focus.priority}>
+ <PriorityIcon priority={focus.priority} />
+ {app.priority[focus.priority]}
+ </Pill>
+ {focus.assignee ? (
+ <Pill key={focus.assignee.name}>
+ <Avatar actor={focus.assignee} size={16} />
+ {focus.assignee.name}
+ </Pill>
+ ) : null}
+ <Pill>
+ <Folder className="size-3.5 text-muted-foreground" />
+ {workflow.project}
+ </Pill>
+ <Pill>
+ <Calendar className="size-3.5 text-muted-foreground" />
+ {workflow.focus.due}
+ </Pill>
+ <Pill>
+ <span className="size-2 rounded-full bg-brand" />
+ {workflow.focus.label}
+ </Pill>
+ </div>
+ <p className="mt-5 text-body leading-relaxed">{workflow.focus.description}</p>
+ <div className="mt-8 border-t border-border pt-6">
+ <h2 className="text-title-sm font-semibold">{app.activity}</h2>
+ <div className="mt-4 flex flex-col gap-3">
+ {items.map((item, index) => (
+ <Entry key={index}>
+ <TimelineRow item={item} statuses={workflow.statuses} />
+ </Entry>
+ ))}
+ </div>
+ </div>
+ </div>
+ </div>
+ <div className="shrink-0 px-6 pt-2 pb-4">
+ <div className="flex items-center justify-between rounded-lg border border-border px-3 py-2.5 text-body text-muted-foreground">
+ {app.leaveComment}
+ <span className="flex items-center gap-2">
+ <Paperclip className="size-3.5" />
+ <span className="flex size-6 items-center justify-center rounded-md bg-muted">
+ <ArrowUp className="size-3.5" />
+ </span>
+ </span>
+ </div>
+ </div>
+ </aside>
+ );
+}
+
+function Pill({ children }: { children: ReactNode }) {
+ return (
+ <span className="inline-flex items-center gap-1.5 h-[var(--button-height-xs)] rounded-md border px-2 text-caption animate-in fade-in duration-300 motion-reduce:animate-none">
+ {children}
+ </span>
+ );
+}
+
+function Entry({ children }: { children: ReactNode }) {
+ return <div className="animate-in fade-in slide-in-from-bottom-1 duration-300 motion-reduce:animate-none">{children}</div>;
+}
+
+/** One entry of an issue's activity: a comment, or a status change and the handoff it made. */
+export function TimelineRow({ item, statuses }: { item: TimelineItem; statuses: Status[] }) {
+ const { app } = useDemoCopy();
+ if (item.kind === "comment") {
+ return (
+ <div className="overflow-clip rounded-xl border border-border bg-card">
+ <div className="flex items-center gap-2.5 px-4 pt-3 pb-2">
+ <Avatar actor={item.actor} size={24} />
+ <span className="text-body font-medium">{item.actor.name}</span>
+ <span className="text-caption text-muted-foreground">{app.ago.now}</span>
+ </div>
+ <div className="px-4 pb-3 text-body leading-relaxed">{item.body}</div>
+ </div>
+ );
+ }
+ const byName = item.kind === "created" ? item.by : item.actor.name;
+ const lead =
+ item.kind === "created" ? (
+ item.icon
+ ) : (
+ <CustomStatusIcon status={statuses.find((s) => s.key === item.to)!} className="h-4 w-4 shrink-0" />
+ );
+ const nameOf = (key: string) => statuses.find((s) => s.key === key)?.name ?? key;
+ const text =
+ item.kind === "created" ? app.created : app.statusChanged.replace("{from}", nameOf(item.from)).replace("{to}", nameOf(item.to));
+ return (
+ <div className="text-label text-muted-foreground">
+ <div className="flex items-center">
+ <div className="mr-2 flex w-4 shrink-0 justify-center">{lead}</div>
+ <div className="flex min-w-0 flex-1 items-center gap-1">
+ <span className="shrink-0 font-medium">{byName}</span>
+ <span className="truncate">{text}</span>
+ <span className="ml-auto shrink-0">{item.when ?? app.ago.now}</span>
+ </div>
+ </div>
+ {item.handoff ? (
+ <div className="mt-1 ml-6 flex flex-wrap items-center gap-1.5 text-caption">
+ <CornerDownRight className="size-3 shrink-0" />
+ <span>{app.handedTo}</span>
+ <Avatar actor={item.handoff} size={16} />
+ <span className="font-medium text-foreground">{item.handoff.name}</span>
+ <span>{item.handoff.kind === "member" ? app.memberNoRun : app.startedRun}</span>
+ </div>
+ ) : null}
+ </div>
+ );
+}
\ No newline at end of file
diff --git a/apps/web/features/landing/site/demo/hero-demo.tsx b/apps/web/features/landing/site/demo/hero-demo.tsx
new file mode 100644
index 0000000000..71076d4290
--- /dev/null
+++ b/apps/web/features/landing/site/demo/hero-demo.tsx
@@ -0,0 +1,450 @@
+"use client";
+
+import { useMemo, useState } from "react";
+import { GitPullRequest, Inbox, Megaphone, UserRound, Zap } from "@multica/ui/icons";
+import { cn } from "@multica/ui/lib/utils";
+import { useLocale } from "../../i18n";
+import type { DemoDict } from "../../i18n/types";
+import { focusRing } from "../primitives";
+import { BarList, Checklist, DocPreview, LoadChart, PullRequest, Replies, ReportCluster, TimeoutChart } from "./hero-blocks";
+import { HeroBoard, type Card, type Priority, type Status, type Workflow } from "./hero-board";
+import { BACKEND, CONTENT, FRONTEND, LEAD, LEO, MIA, QA, RESEARCH, SAM, TRIAGE, formatAge, type Actor, type Age } from "./mock-kit";
+
+/*
+ * The hero demo: three workflows, each with its own custom statuses and
+ * handoffs, played on the same board. The switcher advances on its own each
+ * time a story finishes, until a visitor picks one — then that one loops.
+ * Each workflow's shape lives here; its words come from the page's language.
+ */
+
+type StatusShape = Omit<Status, "name">;
+type CardShape = { id: string; priority: Priority; assignee?: Actor; working?: boolean; age: Age };
+
+const SHIP_STATUSES: StatusShape[] = [
+ { key: "spec", category: "unstarted", icon: "circle", color: "#8b5cf6", handler: LEAD },
+ { key: "build", category: "started", icon: "half", color: "#f97316", handler: BACKEND },
+ { key: "review", category: "started", icon: "three_quarters", color: "#3b82f6", handler: QA },
+ { key: "approve", category: "started", icon: "three_quarters", color: "#ec4899", handler: MIA },
+ { key: "shipped", category: "done", icon: "check", color: "#22c55e" },
+];
+
+const SHIP_CARDS: Record<string, CardShape[]> = {
+ spec: [
+ { id: "ACM-145", priority: "medium", assignee: LEAD, age: "1h" },
+ { id: "ACM-144", priority: "low", assignee: LEAD, age: "3h" },
+ { id: "ACM-143", priority: "medium", assignee: LEAD, age: "4h" },
+ { id: "ACM-141", priority: "medium", assignee: LEAD, age: "6h" },
+ { id: "ACM-140", priority: "low", assignee: MIA, age: "1d" },
+ ],
+ build: [
+ { id: "ACM-136", priority: "high", assignee: BACKEND, working: true, age: "2m" },
+ { id: "ACM-138", priority: "low", assignee: BACKEND, age: "40m" },
+ { id: "ACM-135", priority: "medium", assignee: BACKEND, age: "1h" },
+ { id: "ACM-134", priority: "medium", assignee: FRONTEND, age: "2h" },
+ ],
+ review: [
+ { id: "ACM-133", priority: "urgent", assignee: QA, working: true, age: "now" },
+ { id: "ACM-131", priority: "medium", assignee: QA, age: "1h" },
+ { id: "ACM-127", priority: "low", assignee: QA, age: "2h" },
+ { id: "ACM-126", priority: "medium", assignee: QA, age: "3h" },
+ { id: "ACM-124", priority: "low", assignee: QA, age: "5h" },
+ ],
+ approve: [
+ { id: "ACM-129", priority: "medium", assignee: MIA, age: "2h" },
+ { id: "ACM-119", priority: "low", assignee: MIA, age: "3h" },
+ { id: "ACM-118", priority: "medium", assignee: MIA, age: "4h" },
+ { id: "ACM-117", priority: "high", assignee: MIA, age: "6h" },
+ ],
+ shipped: [
+ { id: "ACM-125", priority: "medium", assignee: MIA, age: "1h" },
+ { id: "ACM-122", priority: "high", assignee: LEO, age: "3h" },
+ { id: "ACM-120", priority: "medium", assignee: MIA, age: "1d" },
+ { id: "ACM-114", priority: "medium", assignee: LEO, age: "1d" },
+ { id: "ACM-113", priority: "high", assignee: MIA, age: "2d" },
+ { id: "ACM-112", priority: "medium", assignee: LEO, age: "2d" },
+ ],
+};
+
+const LAUNCH_STATUSES: StatusShape[] = [
+ { key: "brief", category: "unstarted", icon: "circle", color: "#64748b", handler: SAM },
+ { key: "research", category: "started", icon: "half", color: "#06b6d4", handler: RESEARCH },
+ { key: "draft", category: "started", icon: "half", color: "#8b5cf6", handler: CONTENT },
+ { key: "edit", category: "started", icon: "three_quarters", color: "#ec4899", handler: SAM },
+ { key: "published", category: "done", icon: "check", color: "#22c55e" },
+];
+
+const LAUNCH_CARDS: Record<string, CardShape[]> = {
+ brief: [
+ { id: "ACM-213", priority: "low", assignee: SAM, age: "2h" },
+ { id: "ACM-211", priority: "medium", assignee: SAM, age: "5h" },
+ { id: "ACM-210", priority: "medium", assignee: SAM, age: "6h" },
+ { id: "ACM-208", priority: "low", assignee: MIA, age: "1d" },
+ { id: "ACM-207", priority: "medium", assignee: SAM, age: "1d" },
+ ],
+ research: [
+ { id: "ACM-209", priority: "medium", assignee: RESEARCH, working: true, age: "3m" },
+ { id: "ACM-203", priority: "high", assignee: RESEARCH, age: "1h" },
+ { id: "ACM-202", priority: "medium", assignee: RESEARCH, age: "2h" },
+ { id: "ACM-201", priority: "low", assignee: RESEARCH, age: "4h" },
+ ],
+ draft: [
+ { id: "ACM-204", priority: "high", assignee: CONTENT, working: true, age: "now" },
+ { id: "ACM-199", priority: "medium", assignee: CONTENT, age: "1h" },
+ { id: "ACM-195", priority: "medium", assignee: CONTENT, age: "2h" },
+ { id: "ACM-194", priority: "medium", assignee: CONTENT, age: "3h" },
+ { id: "ACM-192", priority: "low", assignee: CONTENT, age: "5h" },
+ ],
+ edit: [
+ { id: "ACM-198", priority: "medium", assignee: SAM, age: "20m" },
+ { id: "ACM-196", priority: "medium", assignee: SAM, age: "3h" },
+ { id: "ACM-188", priority: "low", assignee: SAM, age: "4h" },
+ { id: "ACM-186", priority: "medium", assignee: SAM, age: "5h" },
+ ],
+ published: [
+ { id: "ACM-193", priority: "medium", assignee: SAM, age: "1h" },
+ { id: "ACM-190", priority: "high", assignee: MIA, age: "4h" },
+ { id: "ACM-187", priority: "medium", assignee: SAM, age: "1d" },
+ { id: "ACM-182", priority: "medium", assignee: CONTENT, age: "2d" },
+ { id: "ACM-181", priority: "medium", assignee: SAM, age: "3d" },
+ { id: "ACM-180", priority: "low", assignee: CONTENT, age: "4d" },
+ ],
+};
+
+const TRIAGE_STATUSES: StatusShape[] = [
+ { key: "inbox", category: "unstarted", icon: "dotted", color: "#64748b", handler: TRIAGE },
+ { key: "repro", category: "started", icon: "half", color: "#f97316", handler: QA },
+ { key: "fix", category: "started", icon: "half", color: "#3b82f6", handler: BACKEND },
+ { key: "reply", category: "started", icon: "three_quarters", color: "#8b5cf6", handler: TRIAGE },
+ { key: "resolved", category: "done", icon: "check", color: "#22c55e" },
+];
+
+const TRIAGE_CARDS: Record<string, CardShape[]> = {
+ inbox: [
+ { id: "ACM-150", priority: "low", assignee: TRIAGE, age: "2h" },
+ { id: "ACM-148", priority: "medium", assignee: TRIAGE, age: "4h" },
+ { id: "ACM-149", priority: "low", assignee: TRIAGE, age: "5h" },
+ { id: "ACM-147", priority: "medium", assignee: TRIAGE, age: "6h" },
+ { id: "ACM-145", priority: "low", assignee: TRIAGE, age: "8h" },
+ ],
+ repro: [
+ { id: "ACM-146", priority: "medium", assignee: QA, working: true, age: "5m" },
+ { id: "ACM-142", priority: "medium", assignee: QA, age: "1h" },
+ { id: "ACM-141", priority: "low", assignee: QA, age: "3h" },
+ { id: "ACM-140", priority: "high", assignee: QA, age: "4h" },
+ ],
+ fix: [
+ { id: "ACM-139", priority: "high", assignee: FRONTEND, working: true, age: "4m" },
+ { id: "ACM-137", priority: "high", assignee: BACKEND, age: "1h" },
+ { id: "ACM-135", priority: "high", assignee: BACKEND, age: "2h" },
+ { id: "ACM-134", priority: "low", assignee: FRONTEND, age: "3h" },
+ { id: "ACM-133", priority: "medium", assignee: BACKEND, age: "5h" },
+ ],
+ reply: [
+ { id: "ACM-132", priority: "low", assignee: TRIAGE, age: "30m" },
+ { id: "ACM-129", priority: "low", assignee: TRIAGE, age: "1h" },
+ { id: "ACM-127", priority: "medium", assignee: TRIAGE, age: "2h" },
+ { id: "ACM-126", priority: "medium", assignee: TRIAGE, age: "4h" },
+ ],
+ resolved: [
+ { id: "ACM-128", priority: "urgent", assignee: TRIAGE, age: "2h" },
+ { id: "ACM-124", priority: "high", assignee: TRIAGE, age: "5h" },
+ { id: "ACM-121", priority: "low", assignee: TRIAGE, age: "8h" },
+ { id: "ACM-122", priority: "low", assignee: TRIAGE, age: "1d" },
+ { id: "ACM-120", priority: "medium", assignee: TRIAGE, age: "1d" },
+ { id: "ACM-119", priority: "low", assignee: TRIAGE, age: "2d" },
+ ],
+};
+
+/** Every card the board shows, by workflow, so the dictionaries can be checked for a title per card. */
+export const HERO_CARD_IDS = {
+ ship: Object.values(SHIP_CARDS).flat().map((card) => card.id),
+ launch: Object.values(LAUNCH_CARDS).flat().map((card) => card.id),
+ triage: Object.values(TRIAGE_CARDS).flat().map((card) => card.id),
+};
+
+function named(shapes: StatusShape[], names: Record<string, string>): Status[] {
+ return shapes.map((shape) => ({ ...shape, name: names[shape.key] ?? shape.key }));
+}
+
+function columns(
+ shapes: Record<string, CardShape[]>,
+ titles: Record<string, string>,
+ ago: DemoDict["app"]["ago"],
+): Workflow["cards"] {
+ return Object.fromEntries(
+ Object.entries(shapes).map(([status, cards]) => [
+ status,
+ {
+ total: cards.length,
+ cards: cards.map(({ age, ...card }): Card => ({ ...card, title: titles[card.id] ?? card.id, updated: formatAge(age, ago) })),
+ },
+ ]),
+ );
+}
+
+function buildWorkflows({ app, hero }: DemoDict, due: (month: number, day: number) => string) {
+ const { ship, launch, triage, blocks } = hero;
+ const checks = (tests: number) => [blocks.checks.build, blocks.tests.replace("{count}", String(tests)), blocks.checks.lint];
+
+ const SHIP: Workflow = {
+ id: "ship",
+ project: ship.project,
+ statuses: named(SHIP_STATUSES, ship.statuses),
+ cards: columns(SHIP_CARDS, ship.cards, app.ago),
+ focus: { id: "ACM-142", priority: "high", due: due(6, 12), ...ship.focus },
+ timeline: [
+ { kind: "created", by: "Mia Chen", icon: <UserRound className="size-3.5" />, handoff: LEAD },
+ {
+ kind: "comment",
+ actor: LEAD,
+ body: (
+ <>
+ {ship.plan.comment}
+ <Checklist title={ship.plan.title} items={ship.plan.items} />
+ </>
+ ),
+ },
+ { kind: "status", actor: LEAD, from: "spec", to: "build", handoff: BACKEND },
+ {
+ kind: "comment",
+ actor: BACKEND,
+ body: (
+ <>
+ {ship.built.comment}
+ <PullRequest number={318} title={ship.built.pr} added={184} removed={12} checks={checks(212)} />
+ </>
+ ),
+ },
+ { kind: "status", actor: BACKEND, from: "build", to: "review", handoff: QA },
+ {
+ kind: "comment",
+ actor: QA,
+ body: (
+ <>
+ {ship.tested}
+ <LoadChart />
+ </>
+ ),
+ },
+ { kind: "status", actor: QA, from: "review", to: "approve", handoff: MIA },
+ { kind: "comment", actor: MIA, body: ship.approved },
+ { kind: "status", actor: MIA, from: "approve", to: "shipped" },
+ ],
+ stages: [
+ { status: "spec", panel: false, entries: 1, working: true, hold: 2400 },
+ { status: "spec", panel: true, entries: 1, working: true, hold: 1500 },
+ { status: "spec", panel: true, entries: 2, working: true, hold: 2600 },
+ { status: "build", panel: true, entries: 3, working: true, hold: 2000 },
+ { status: "build", panel: true, entries: 4, working: true, hold: 2700 },
+ { status: "review", panel: true, entries: 5, working: true, hold: 2000 },
+ { status: "review", panel: true, entries: 6, working: true, hold: 2700 },
+ { status: "approve", panel: true, entries: 7, working: false, hold: 2000 },
+ { status: "approve", panel: true, entries: 8, working: false, hold: 1800 },
+ { status: "shipped", panel: true, entries: 9, working: false, hold: 2600 },
+ { status: "shipped", panel: false, entries: 9, working: false, hold: 3000 },
+ ],
+ still: 6,
+ };
+
+ const LAUNCH: Workflow = {
+ id: "launch",
+ project: launch.project,
+ statuses: named(LAUNCH_STATUSES, launch.statuses),
+ cards: columns(LAUNCH_CARDS, launch.cards, app.ago),
+ focus: { id: "ACM-212", priority: "high", due: due(6, 18), ...launch.focus },
+ timeline: [
+ { kind: "created", by: "Sam Rivera", icon: <UserRound className="size-3.5" /> },
+ { kind: "status", actor: SAM, from: "brief", to: "research", handoff: RESEARCH },
+ {
+ kind: "comment",
+ actor: RESEARCH,
+ body: (
+ <>
+ {launch.research.comment}
+ <BarList
+ title={launch.research.title}
+ aside={launch.research.aside}
+ bars={[18, 12, 9].map((value, index) => ({ label: launch.research.bars[index] ?? "", value }))}
+ />
+ </>
+ ),
+ },
+ { kind: "status", actor: RESEARCH, from: "research", to: "draft", handoff: CONTENT },
+ {
+ kind: "comment",
+ actor: CONTENT,
+ body: (
+ <>
+ {launch.draft.comment}
+ <DocPreview title="autopilots-launch.md" meta={launch.draft.meta} />
+ </>
+ ),
+ },
+ { kind: "status", actor: CONTENT, from: "draft", to: "edit", handoff: SAM },
+ { kind: "comment", actor: SAM, body: launch.edited },
+ { kind: "status", actor: SAM, from: "edit", to: "published" },
+ ],
+ stages: [
+ { status: "brief", panel: false, entries: 1, working: false, hold: 2400 },
+ { status: "brief", panel: true, entries: 1, working: false, hold: 1600 },
+ { status: "research", panel: true, entries: 2, working: true, hold: 2000 },
+ { status: "research", panel: true, entries: 3, working: true, hold: 2700 },
+ { status: "draft", panel: true, entries: 4, working: true, hold: 2000 },
+ { status: "draft", panel: true, entries: 5, working: true, hold: 2700 },
+ { status: "edit", panel: true, entries: 6, working: false, hold: 2000 },
+ { status: "edit", panel: true, entries: 7, working: false, hold: 2000 },
+ { status: "published", panel: true, entries: 8, working: false, hold: 2600 },
+ { status: "published", panel: false, entries: 8, working: false, hold: 3000 },
+ ],
+ still: 5,
+ };
+
+ const [northwind, globex, dana] = triage.grouped.quotes;
+ const FEEDBACK: Workflow = {
+ id: "triage",
+ project: triage.project,
+ statuses: named(TRIAGE_STATUSES, triage.statuses),
+ cards: columns(TRIAGE_CARDS, triage.cards, app.ago),
+ focus: { id: "ACM-151", priority: "none", due: due(6, 10), ...triage.focus },
+ timeline: [
+ { kind: "created", by: triage.autopilot, icon: <Zap className="size-3.5" />, handoff: TRIAGE },
+ {
+ kind: "comment",
+ actor: TRIAGE,
+ body: (
+ <>
+ {triage.grouped.comment}
+ <ReportCluster
+ reports={[
+ { source: "Intercom", from: "Northwind", quote: northwind ?? "" },
+ { source: "Intercom", from: "Globex", quote: globex ?? "" },
+ { source: "Discord", from: "@dana", quote: dana ?? "" },
+ ]}
+ />
+ </>
+ ),
+ },
+ { kind: "status", actor: TRIAGE, from: "inbox", to: "repro", handoff: QA },
+ {
+ kind: "comment",
+ actor: QA,
+ body: (
+ <>
+ {triage.reproduced}
+ <TimeoutChart />
+ </>
+ ),
+ },
+ { kind: "status", actor: QA, from: "repro", to: "fix", handoff: BACKEND },
+ {
+ kind: "comment",
+ actor: BACKEND,
+ body: (
+ <>
+ {triage.fixed.comment}
+ <PullRequest number={326} title={triage.fixed.pr} added={96} removed={31} checks={checks(148)} />
+ </>
+ ),
+ },
+ { kind: "status", actor: BACKEND, from: "fix", to: "reply", handoff: TRIAGE },
+ {
+ kind: "comment",
+ actor: TRIAGE,
+ body: (
+ <>
+ {triage.replied}
+ <Replies
+ people={[
+ { initials: "NR", name: "Northwind" },
+ { initials: "GX", name: "Globex" },
+ { initials: "DA", name: "@dana" },
+ ]}
+ />
+ </>
+ ),
+ },
+ { kind: "status", actor: TRIAGE, from: "reply", to: "resolved" },
+ ],
+ stages: [
+ { status: "inbox", panel: false, entries: 1, working: true, hold: 2400 },
+ { status: "inbox", panel: true, entries: 1, working: true, hold: 1500 },
+ { status: "inbox", panel: true, entries: 2, working: true, priority: "urgent", hold: 2700 },
+ { status: "repro", panel: true, entries: 3, working: true, priority: "urgent", hold: 2000 },
+ { status: "repro", panel: true, entries: 4, working: true, priority: "urgent", hold: 2600 },
+ { status: "fix", panel: true, entries: 5, working: true, priority: "urgent", hold: 2000 },
+ { status: "fix", panel: true, entries: 6, working: true, priority: "urgent", hold: 2700 },
+ { status: "reply", panel: true, entries: 7, working: true, priority: "urgent", hold: 2000 },
+ { status: "reply", panel: true, entries: 8, working: true, priority: "urgent", hold: 2200 },
+ { status: "resolved", panel: true, entries: 9, working: false, priority: "urgent", hold: 2600 },
+ { status: "resolved", panel: false, entries: 9, working: false, priority: "urgent", hold: 3000 },
+ ],
+ still: 6,
+ };
+
+ return [
+ { key: "ship", workflow: SHIP, icon: GitPullRequest },
+ { key: "launch", workflow: LAUNCH, icon: Megaphone },
+ { key: "triage", workflow: FEEDBACK, icon: Inbox },
+ ] as const;
+}
+
+export function HeroDemo() {
+ const [active, setActive] = useState(0);
+ const [pinned, setPinned] = useState(false);
+ const { locale, t } = useLocale();
+ const workflows = useMemo(() => {
+ const format = new Intl.DateTimeFormat(locale, { month: "short", day: "numeric", timeZone: "UTC" });
+ return buildWorkflows(t.demo, (month, day) => format.format(Date.UTC(2026, month - 1, day)));
+ }, [locale, t]);
+ const { key, workflow } = workflows[active]!;
+ const copy = t.home.hero;
+
+ return (
+ <>
+ <div className="flex justify-center">
+ <div
+ role="group"
+ aria-label={copy.workflowGroup}
+ className="inline-flex items-center gap-0.5 rounded-full border border-site-line bg-site-sunken p-0.5"
+ >
+ {workflows.map(({ key: itemKey, workflow: item, icon: Icon }, index) => {
+ const selected = index === active;
+ const { label, short } = copy.workflows[itemKey];
+ return (
+ <button
+ key={item.id}
+ type="button"
+ aria-pressed={selected}
+ aria-label={label}
+ onClick={() => {
+ setActive(index);
+ setPinned(true);
+ }}
+ className={cn(
+ "flex h-7 items-center gap-1.5 rounded-full px-2.5 text-[13px] transition-[color,background-color,box-shadow] duration-200",
+ focusRing,
+ selected
+ ? "bg-site-surface text-site-ink shadow-[0_1px_2px_rgb(0_0_0/0.06),0_0_0_1px_var(--site-line)]"
+ : "text-site-muted hover:text-site-ink",
+ )}
+ >
+ <Icon className="size-3.5 shrink-0" aria-hidden />
+ <span className="sm:hidden">{short}</span>
+ <span className="hidden sm:inline">{label}</span>
+ </button>
+ );
+ })}
+ </div>
+ </div>
+ <div className="relative mt-3 aspect-square sm:aspect-[16/10]">
+ <HeroBoard
+ workflow={workflow}
+ label={copy.workflows[key].description}
+ onLoop={() => {
+ if (!pinned) setActive((current) => (current + 1) % workflows.length);
+ }}
+ />
+ </div>
+ </>
+ );
+}
diff --git a/apps/web/features/landing/site/demo/mobile-visuals.tsx b/apps/web/features/landing/site/demo/mobile-visuals.tsx
new file mode 100644
index 0000000000..5ebba72475
--- /dev/null
+++ b/apps/web/features/landing/site/demo/mobile-visuals.tsx
@@ -0,0 +1,492 @@
+"use client";
+
+import type { ReactNode } from "react";
+import {
+ ArrowUp,
+ ChevronLeft,
+ ChevronRight,
+ CircleUser,
+ FolderKanban,
+ Inbox,
+ ListTodo,
+ MessageSquare,
+ MoreHorizontal,
+ Pin,
+ Plus,
+ Search,
+ Settings,
+ SlidersHorizontal,
+ type IconComponent,
+} from "@multica/ui/icons";
+import { cn } from "@multica/ui/lib/utils";
+import { StatusIcon } from "@multica/views/issues/components/status-icon";
+import { PriorityIcon } from "@multica/views/issues/components/priority-icon";
+import { Avatar, BACKEND, LEO, MIA, QA, SAM, Working, ZoomCanvas, type Actor } from "./mock-kit";
+
+/*
+ * Mockups for the Mobile page: the Multica iOS app on an iPhone, one screen
+ * per tab plus an issue's agent runs. Phones are drawn at device size
+ * (264 × 560) and are meant to run off the bottom of their frame. Strings
+ * follow the app's own copy; data is fictional.
+ */
+
+type TabKey = "inbox" | "my-issues" | "chat" | "more";
+
+const TABS: { key: TabKey; label: string; icon: IconComponent }[] = [
+ { key: "inbox", label: "Inbox", icon: Inbox },
+ { key: "my-issues", label: "My Issues", icon: CircleUser },
+ { key: "chat", label: "Chat", icon: MessageSquare },
+ { key: "more", label: "More", icon: MoreHorizontal },
+];
+
+function StatusBar() {
+ return (
+ <div className="flex h-11 shrink-0 items-end justify-between px-7 pb-1.5 text-[13px] font-semibold tabular-nums">
+ <span>9:41</span>
+ <span className="flex items-center gap-1">
+ <span className="flex items-end gap-px">
+ {[4, 6, 8, 10].map((h) => (
+ <span key={h} className="w-[3px] rounded-[1px] bg-foreground" style={{ height: h }} />
+ ))}
+ </span>
+ <span className="ml-1 h-[11px] w-[22px] rounded-xs border border-foreground/40 p-px">
+ <span className="block h-full w-3/4 rounded-[1.5px] bg-foreground" />
+ </span>
+ </span>
+ </div>
+ );
+}
+
+function TabBar({ active }: { active: TabKey }) {
+ return (
+ <div className="flex h-[74px] shrink-0 items-start justify-around border-t border-border bg-background/95 pt-2">
+ {TABS.map((tab) => (
+ <span
+ key={tab.key}
+ className={cn("flex w-14 flex-col items-center gap-1 text-[10px] font-medium", tab.key === active ? "text-foreground" : "text-muted-foreground")}
+ >
+ <tab.icon className="size-[22px]" strokeWidth={tab.key === active ? 2.2 : 1.8} />
+ {tab.label}
+ </span>
+ ))}
+ </div>
+ );
+}
+
+/** An iPhone at device size. `tab` adds the app's tab bar; leave it off for pushed screens. */
+export function Phone({ className, tab, children }: { className?: string; tab?: TabKey; children: ReactNode }) {
+ return (
+ <div className={cn("h-[560px] w-[264px] rounded-[46px] bg-[#1c1c1e] p-[7px] shadow-site-float ring-1 ring-black/10", className)}>
+ <div className="relative flex size-full flex-col overflow-hidden rounded-[39px] bg-background text-foreground">
+ <span className="absolute top-[9px] left-1/2 h-[26px] w-[86px] -translate-x-1/2 rounded-full bg-[#1c1c1e]" />
+ <StatusBar />
+ <div className="relative flex min-h-0 flex-1 flex-col overflow-hidden">{children}</div>
+ {tab ? <TabBar active={tab} /> : null}
+ <span className="absolute bottom-2 left-1/2 h-[5px] w-[100px] -translate-x-1/2 rounded-full bg-foreground/80" />
+ </div>
+ </div>
+ );
+}
+
+function LargeTitle({ title, children }: { title: string; children?: ReactNode }) {
+ return (
+ <div className="flex shrink-0 items-end justify-between px-4 pt-2 pb-2">
+ <span className="text-[26px] leading-tight font-bold tracking-tight">{title}</span>
+ <span className="flex items-center gap-3 pb-1.5 text-muted-foreground">{children}</span>
+ </div>
+ );
+}
+
+function NavBar({ back, title, children }: { back: string; title?: string; children?: ReactNode }) {
+ return (
+ <div className="flex h-10 shrink-0 items-center gap-1 px-2.5">
+ <span className="flex items-center text-[14px] text-brand">
+ <ChevronLeft className="size-5" />
+ {back}
+ </span>
+ <span className="flex-1 text-center text-[14px] font-semibold">{title}</span>
+ <span className="flex min-w-14 justify-end text-muted-foreground">{children}</span>
+ </div>
+ );
+}
+
+// --- Tab screens ---------------------------------------------------------------
+
+const INBOX: { actor: Actor; issue: string; type: string; body: string; when: string; unread?: boolean }[] = [
+ { actor: BACKEND, issue: "ACM-151", type: "Comment", body: "Apply this migration to the shared database?", when: "2m", unread: true },
+ { actor: MIA, issue: "ACM-152", type: "Mention", body: "@Leo can you review the new tabs?", when: "18m", unread: true },
+ { actor: QA, issue: "ACM-147", type: "Status changed", body: "Add an audit log → In Review", when: "1h" },
+ { actor: SAM, issue: "ACM-149", type: "Assigned", body: "Rate-limit the public API", when: "3h" },
+ { actor: BACKEND, issue: "ACM-144", type: "Status changed", body: "Document the export API → Done", when: "5h" },
+];
+
+export function InboxScreen() {
+ return (
+ <>
+ <LargeTitle title="Inbox">
+ <SlidersHorizontal className="size-[18px]" />
+ </LargeTitle>
+ <div className="flex flex-col">
+ {INBOX.map((item) => (
+ <div key={item.issue} className="flex gap-2.5 border-b border-border px-4 py-2.5">
+ <span className="pt-0.5">
+ <Avatar actor={item.actor} size={24} />
+ </span>
+ <span className="min-w-0 flex-1">
+ <span className="flex items-center gap-1.5 text-[12px]">
+ <span className="font-semibold">{item.actor.name}</span>
+ <span className="text-muted-foreground">{item.type}</span>
+ <span className="ml-auto text-muted-foreground tabular-nums">{item.when}</span>
+ </span>
+ <span className="mt-0.5 flex items-center gap-1.5 text-[12px]">
+ <span className="min-w-0 flex-1 truncate text-muted-foreground">
+ <span className="text-foreground tabular-nums">{item.issue}</span> · {item.body}
+ </span>
+ {item.unread ? <span className="size-2 shrink-0 rounded-full bg-brand" /> : null}
+ </span>
+ </span>
+ </div>
+ ))}
+ </div>
+ </>
+ );
+}
+
+const MY_ISSUES: { group: string; status: "in_progress" | "in_review" | "todo"; items: { id: string; title: string; priority: "urgent" | "high" | "medium" | "low" }[] }[] = [
+ {
+ group: "In Progress",
+ status: "in_progress",
+ items: [
+ { id: "ACM-152", title: "Redesign settings", priority: "high" },
+ { id: "ACM-148", title: "Fix flaky auth tests", priority: "urgent" },
+ ],
+ },
+ { group: "In Review", status: "in_review", items: [{ id: "ACM-147", title: "Add an audit log", priority: "medium" }] },
+ {
+ group: "Todo",
+ status: "todo",
+ items: [
+ { id: "ACM-153", title: "Rate-limit the API", priority: "high" },
+ { id: "ACM-154", title: "Triage bug reports", priority: "low" },
+ ],
+ },
+];
+
+export function MyIssuesScreen() {
+ return (
+ <>
+ <LargeTitle title="My Issues">
+ <Search className="size-[18px]" />
+ <Plus className="size-5" />
+ </LargeTitle>
+ <div className="flex shrink-0 gap-1.5 px-4 pb-2.5 text-[12px]">
+ {["Assigned", "Created", "Agents"].map((tab, index) => (
+ <span key={tab} className={cn("rounded-full px-2.5 py-1", index === 0 ? "bg-foreground text-background" : "bg-muted text-muted-foreground")}>
+ {tab}
+ </span>
+ ))}
+ </div>
+ {MY_ISSUES.map((group) => (
+ <div key={group.group}>
+ <p className="flex items-center gap-1.5 bg-muted/50 px-4 py-1.5 text-[11px] font-medium text-muted-foreground">
+ <StatusIcon status={group.status} className="size-3" />
+ {group.group}
+ <span className="tabular-nums">{group.items.length}</span>
+ </p>
+ {group.items.map((item) => (
+ <div key={item.id} className="flex h-11 items-center gap-2 border-b border-border px-4 text-[13px]">
+ <PriorityIcon priority={item.priority} />
+ <span className="w-12 shrink-0 text-[11px] text-muted-foreground tabular-nums">{item.id}</span>
+ <span className="min-w-0 flex-1 truncate">{item.title}</span>
+ </div>
+ ))}
+ </div>
+ ))}
+ </>
+ );
+}
+
+export function ChatScreen() {
+ return (
+ <>
+ <div className="flex h-12 shrink-0 items-center gap-2 border-b border-border px-4">
+ <Avatar actor={BACKEND} size={24} />
+ <span className="min-w-0 flex-1">
+ <span className="block text-[13px] font-semibold">Backend Agent</span>
+ <span className="block text-[11px] text-muted-foreground">Claude Code · Mia’s MacBook Pro</span>
+ </span>
+ </div>
+ <div className="flex min-h-0 flex-1 flex-col justify-end gap-3 overflow-hidden px-3 py-3 text-[13px] leading-snug">
+ <span className="ml-auto max-w-[80%] rounded-2xl rounded-br-md bg-foreground px-3 py-2 text-background">
+ Is the export fix safe to ship tonight?
+ </span>
+ <span className="flex max-w-[88%] gap-2">
+ <Avatar actor={BACKEND} size={20} />
+ <span className="rounded-2xl rounded-tl-md bg-muted px-3 py-2">
+ Yes. The batched job passed on staging with 2.1M rows in 6 minutes, well under the timeout. PR #486 is
+ approved.
+ </span>
+ </span>
+ <span className="ml-auto max-w-[80%] rounded-2xl rounded-br-md bg-foreground px-3 py-2 text-background">
+ Great, merge it after 6pm.
+ </span>
+ <span className="flex items-center gap-2 pl-7">
+ <Working />
+ </span>
+ </div>
+ <div className="flex shrink-0 items-center gap-2 px-3 pb-2.5">
+ <span className="flex h-9 flex-1 items-center rounded-full border border-border px-3.5 text-[13px] text-muted-foreground">
+ Message Backend Agent
+ </span>
+ <span className="flex size-8 items-center justify-center rounded-full bg-foreground text-background">
+ <ArrowUp className="size-4" />
+ </span>
+ </div>
+ </>
+ );
+}
+
+const MORE: { icon: IconComponent; label: string; detail?: string }[] = [
+ { icon: Pin, label: "Pinned", detail: "3" },
+ { icon: ListTodo, label: "Issues" },
+ { icon: FolderKanban, label: "Projects", detail: "4" },
+ { icon: Settings, label: "Account settings" },
+];
+
+export function MoreScreen() {
+ return (
+ <>
+ <LargeTitle title="More" />
+ <div className="mx-4 flex items-center gap-3 rounded-xl bg-muted/60 px-3 py-2.5">
+ <span className="flex size-8 items-center justify-center rounded-lg bg-surface text-[13px] font-semibold shadow-[var(--surface-shadow)]">A</span>
+ <span className="min-w-0 flex-1">
+ <span className="block text-[13px] font-semibold">Acme Labs</span>
+ <span className="block text-[11px] text-muted-foreground">Switch workspace</span>
+ </span>
+ <ChevronRight className="size-4 text-muted-foreground" />
+ </div>
+ <div className="mx-4 mt-4 overflow-hidden rounded-xl bg-muted/60">
+ {MORE.map((item, index) => (
+ <div key={item.label} className={cn("flex h-11 items-center gap-3 px-3 text-[13px]", index > 0 && "border-t border-border")}>
+ <item.icon className="size-4 text-muted-foreground" />
+ <span className="flex-1">{item.label}</span>
+ {item.detail ? <span className="text-muted-foreground tabular-nums">{item.detail}</span> : null}
+ <ChevronRight className="size-4 text-faint-foreground" />
+ </div>
+ ))}
+ </div>
+ </>
+ );
+}
+
+// --- Issue and its runs ----------------------------------------------------------
+
+function IssueScreen() {
+ return (
+ <>
+ <NavBar back="Inbox">
+ <MoreHorizontal className="size-5" />
+ </NavBar>
+ <div className="px-4 pt-1">
+ <p className="text-[11px] text-muted-foreground tabular-nums">ACM-151</p>
+ <p className="mt-0.5 text-[18px] leading-snug font-semibold tracking-tight">Apply the export migration</p>
+ <div className="mt-2.5 flex flex-wrap gap-1.5 text-[11px]">
+ <span className="flex items-center gap-1 rounded-full bg-muted px-2 py-0.5">
+ <StatusIcon status="in_progress" className="size-3" />
+ In Progress
+ </span>
+ <span className="flex items-center gap-1 rounded-full bg-muted px-2 py-0.5">
+ <PriorityIcon priority="high" />
+ High
+ </span>
+ <span className="flex items-center gap-1 rounded-full bg-muted py-0.5 pr-2 pl-0.5">
+ <Avatar actor={BACKEND} size={16} />
+ Backend Agent
+ </span>
+ </div>
+ </div>
+ <div className="mt-3 flex min-h-0 flex-1 flex-col gap-3 border-t border-border px-4 pt-3">
+ <span className="flex items-center gap-2 rounded-lg bg-muted/60 px-3 py-2 text-[12px]">
+ <Working label="Agent working" />
+ <span className="ml-auto flex items-center text-muted-foreground">
+ Runs
+ <ChevronRight className="size-3.5" />
+ </span>
+ </span>
+ <div className="flex gap-2">
+ <Avatar actor={BACKEND} size={20} />
+ <div className="min-w-0 text-[12px] leading-snug">
+ <p>
+ <span className="font-semibold">Backend Agent</span> <span className="text-muted-foreground">2m</span>
+ </p>
+ <p className="mt-0.5">
+ The migration adds a batch_id column to export_jobs. Apply it to the shared database?
+ </p>
+ </div>
+ </div>
+ <div className="flex gap-2">
+ <Avatar actor={LEO} size={20} />
+ <div className="min-w-0 text-[12px] leading-snug">
+ <p>
+ <span className="font-semibold">Leo Park</span> <span className="text-muted-foreground">now</span>
+ </p>
+ <p className="mt-0.5">Yes, go ahead. It’s backward compatible.</p>
+ </div>
+ </div>
+ </div>
+ <div className="shrink-0 px-3 pb-6">
+ <span className="flex h-9 items-center rounded-full border border-border px-3.5 text-[12px] text-muted-foreground">
+ Add a comment, type @ to mention...
+ </span>
+ </div>
+ </>
+ );
+}
+
+type Run = { actor: Actor; status: string; summary: string; tone?: "success" | "failed" };
+
+const ACTIVE_RUNS: Run[] = [
+ { actor: BACKEND, status: "Running", summary: "Comment run" },
+ { actor: QA, status: "Queued", summary: "Run" },
+];
+
+const PAST_RUNS: Run[] = [
+ { actor: BACKEND, status: "Run succeeded", summary: "Comment run", tone: "success" },
+ { actor: QA, status: "Run failed", summary: "Run", tone: "failed" },
+ { actor: BACKEND, status: "Run succeeded", summary: "Run", tone: "success" },
+];
+
+function RunRow({ run, active }: { run: Run; active?: boolean }) {
+ return (
+ <div className="flex items-center gap-2.5 px-3 py-3">
+ <Avatar actor={run.actor} size={24} />
+ <span className="min-w-0 flex-1">
+ <span className="block text-[12px] font-semibold">{run.actor.name}</span>
+ <span className="flex items-center gap-1 text-[11px]">
+ {run.status === "Running" ? (
+ <Working label="Running" />
+ ) : (
+ <span className={cn(run.tone === "failed" ? "text-destructive" : run.tone === "success" ? "text-success" : "text-muted-foreground")}>
+ {run.status}
+ </span>
+ )}
+ <span className="text-muted-foreground">· {run.summary}</span>
+ </span>
+ </span>
+ {active ? (
+ <span className="rounded-full px-2.5 py-1 text-[11px] font-medium text-destructive ring-1 ring-border">Cancel</span>
+ ) : null}
+ </div>
+ );
+}
+
+function RunGroup({ title, runs, active }: { title: string; runs: Run[]; active?: boolean }) {
+ return (
+ <>
+ <p className="px-4 pt-4 pb-1.5 text-[11px] font-medium text-muted-foreground">{title}</p>
+ <div className="mx-4 overflow-hidden rounded-xl border border-border">
+ {runs.map((run, index) => (
+ <div key={`${run.actor.name}-${index}`} className={cn(index > 0 && "border-t border-border")}>
+ <RunRow run={run} active={active} />
+ </div>
+ ))}
+ </div>
+ </>
+ );
+}
+
+/** Agent Runs for an issue: active runs, each with Cancel, above past ones. */
+export function RunsScreen() {
+ return (
+ <>
+ <NavBar back="ACM-151" title="Agent Runs" />
+ <RunGroup title="Active" runs={ACTIVE_RUNS} active />
+ <RunGroup title="Past" runs={PAST_RUNS} />
+ </>
+ );
+}
+
+// --- Compositions --------------------------------------------------------------
+
+const SCENE = { width: 1100, height: 600 } as const;
+const SCENE_NARROW = { width: 440, height: 440 } as const;
+
+/** Hero: the inbox, an agent asking a question on an issue, and a chat with that agent. */
+export function MobileScene() {
+ return (
+ <>
+ <div className="relative aspect-square sm:hidden">
+ <ZoomCanvas {...SCENE_NARROW}>
+ <Phone className="absolute top-1/2 left-1/2 -translate-1/2 scale-[0.76]">
+ <IssueScreen />
+ </Phone>
+ </ZoomCanvas>
+ </div>
+ <div className="relative hidden aspect-[1100/600] sm:block">
+ <ZoomCanvas {...SCENE}>
+ <Phone tab="inbox" className="absolute -bottom-3 left-[calc(50%-132px-290px)] origin-bottom scale-[0.9]">
+ <InboxScreen />
+ </Phone>
+ <Phone tab="chat" className="absolute -bottom-3 left-[calc(50%-132px+290px)] origin-bottom scale-[0.9]">
+ <ChatScreen />
+ </Phone>
+ <Phone className="absolute -bottom-3 left-[calc(50%-132px)]">
+ <IssueScreen />
+ </Phone>
+ </ZoomCanvas>
+ </div>
+ </>
+ );
+}
+
+/** A whole phone, scaled to sit inside the walkthrough frame with its tab bar in view. */
+function TabPhone({ tab, children }: { tab: TabKey; children: ReactNode }) {
+ return (
+ <Phone
+ tab={tab}
+ className="absolute top-1/2 left-1/2 -translate-1/2 scale-[0.6] sm:scale-[0.68] lg:scale-[0.78]"
+ >
+ {children}
+ </Phone>
+ );
+}
+
+export function InboxTabVisual() {
+ return (
+ <TabPhone tab="inbox">
+ <InboxScreen />
+ </TabPhone>
+ );
+}
+
+export function MyIssuesTabVisual() {
+ return (
+ <TabPhone tab="my-issues">
+ <MyIssuesScreen />
+ </TabPhone>
+ );
+}
+
+export function ChatTabVisual() {
+ return (
+ <TabPhone tab="chat">
+ <ChatScreen />
+ </TabPhone>
+ );
+}
+
+export function MoreTabVisual() {
+ return (
+ <TabPhone tab="more">
+ <MoreScreen />
+ </TabPhone>
+ );
+}
+
+export function RunsVisual() {
+ return (
+ <Phone className="absolute top-8 left-1/2 origin-top -translate-x-1/2 scale-[0.68] sm:top-10 sm:scale-[0.86]">
+ <RunsScreen />
+ </Phone>
+ );
+}
diff --git a/apps/web/features/landing/site/demo/mock-kit.tsx b/apps/web/features/landing/site/demo/mock-kit.tsx
new file mode 100644
index 0000000000..47ff313639
--- /dev/null
+++ b/apps/web/features/landing/site/demo/mock-kit.tsx
@@ -0,0 +1,480 @@
+"use client";
+
+import { useEffect, useRef, useState, useSyncExternalStore, type ComponentType, type ReactNode } from "react";
+import {
+ Bot,
+ ChevronDown,
+ ChevronRight,
+ CircleHelp,
+ Filter,
+ Inbox,
+ ListTodo,
+ MessageSquare,
+ Search,
+ Settings,
+ SquarePen,
+ Users,
+ Wifi,
+ Zap,
+ type IconComponent,
+} from "@multica/ui/icons";
+import { cn } from "@multica/ui/lib/utils";
+import { ActorAvatar } from "@multica/ui/components/common/actor-avatar";
+import { ShimmerText } from "@multica/ui/components/common/shimmer-text";
+import { HERO_PROVIDERS } from "../../components/provider-marks";
+import { MulticaIcon } from "@multica/ui/components/common/multica-icon";
+import { useLocale } from "../../i18n";
+import type { DemoDict } from "../../i18n/types";
+
+/*
+ * Shared pieces for the landing's product mockups: the fictional Acme Labs
+ * team and its avatars, window chrome, a canvas that lays a mockup out at a
+ * fixed design size and zooms it to whatever frame it sits in, and the loop
+ * that steps a mockup's story while it is on screen.
+ */
+
+export type Actor =
+ | { kind: "member"; name: string; initials: string }
+ | { kind: "agent"; name: string; provider: string };
+
+export const MIA: Actor = { kind: "member", name: "Mia Chen", initials: "MC" };
+export const LEO: Actor = { kind: "member", name: "Leo Park", initials: "LP" };
+export const SAM: Actor = { kind: "member", name: "Sam Rivera", initials: "SR" };
+export const BACKEND: Actor = { kind: "agent", name: "Backend Agent", provider: "Claude Code" };
+export const QA: Actor = { kind: "agent", name: "QA Agent", provider: "Codex" };
+export const FRONTEND: Actor = { kind: "agent", name: "Frontend Agent", provider: "Cursor" };
+export const LEAD: Actor = { kind: "agent", name: "Lead Agent", provider: "Claude Code" };
+export const CONTENT: Actor = { kind: "agent", name: "Content Agent", provider: "Hermes" };
+export const RESEARCH: Actor = { kind: "agent", name: "Research Agent", provider: "Kimi CLI" };
+export const TRIAGE: Actor = { kind: "agent", name: "Triage Agent", provider: "OpenCode" };
+
+/** The mockups' text in the page's language. */
+export function useDemoCopy(): DemoDict {
+ return useLocale().t.demo;
+}
+
+/** How long ago something changed: "now", or a count of minutes, hours or days such as "40m", "3h" or "2d". */
+export type Age = "now" | `${number}${"m" | "h" | "d"}`;
+
+export function formatAge(age: Age, ago: DemoDict["app"]["ago"]): string {
+ if (age === "now") return ago.now;
+ const unit = age.slice(-1);
+ const template = unit === "m" ? ago.minutes : unit === "h" ? ago.hours : ago.days;
+ return template.replace("{count}", age.slice(0, -1));
+}
+
+export const PROVIDER_MARKS = new Map<string, ComponentType<{ className?: string }>>(
+ HERO_PROVIDERS.map((provider) => [provider.name, provider.Mark]),
+);
+
+const AVATAR_MARK = { 16: "size-2.5", 20: "size-3", 24: "size-3.5" } as const;
+
+export function Avatar({ actor, size }: { actor: Actor; size: 16 | 20 | 24 }) {
+ if (actor.kind === "member") {
+ return <ActorAvatar name={actor.name} initials={actor.initials} size={size === 16 ? "xs" : "sm"} />;
+ }
+ const Mark = PROVIDER_MARKS.get(actor.provider);
+ return (
+ <span
+ className="inline-flex shrink-0 items-center justify-center rounded-full border border-border bg-background text-foreground"
+ style={{ width: size, height: size }}
+ >
+ {Mark ? <Mark className={AVATAR_MARK[size]} /> : <Bot className="size-3" />}
+ </span>
+ );
+}
+
+/** Largest zoom a mockup is shown at, so its UI never reads bigger than the product's. */
+const MAX_ZOOM = 0.88;
+
+/**
+ * Fills its positioned parent and renders `children` on a design canvas
+ * zoomed to the parent's width. Below `width` the canvas stays `width` ×
+ * `height` and shrinks to fit; past `MAX_ZOOM` it grows to fill the frame
+ * instead, so lay content out against the canvas edges, not at fixed spots.
+ * The parent sets the aspect ratio; keep it equal to the canvas's.
+ */
+export function ZoomCanvas({ width, height, children }: { width: number; height: number; children: ReactNode }) {
+ const ref = useRef<HTMLDivElement>(null);
+ const [fit, setFit] = useState<{ zoom: number; width: number; height: number } | null>(null);
+
+ useEffect(() => {
+ const el = ref.current;
+ if (!el) return;
+ const resize = new ResizeObserver(() => {
+ if (!el.clientWidth) return;
+ const zoom = Math.min(el.clientWidth / width, MAX_ZOOM);
+ setFit({ zoom, width: Math.max(width, el.clientWidth / zoom), height: Math.max(height, el.clientHeight / zoom) });
+ });
+ resize.observe(el);
+ return () => resize.disconnect();
+ }, [width, height]);
+
+ return (
+ <div ref={ref} className="absolute inset-0 overflow-hidden">
+ <div
+ aria-hidden
+ className={cn("relative text-foreground", fit === null && "opacity-0")}
+ style={{ width: fit?.width ?? width, height: fit?.height ?? height, zoom: fit?.zoom }}
+ >
+ {children}
+ </div>
+ </div>
+ );
+}
+
+export function usePrefersReducedMotion() {
+ return useSyncExternalStore(
+ (onChange) => {
+ const query = window.matchMedia("(prefers-reduced-motion: reduce)");
+ query.addEventListener("change", onChange);
+ return () => query.removeEventListener("change", onChange);
+ },
+ () => window.matchMedia("(prefers-reduced-motion: reduce)").matches,
+ () => true,
+ );
+}
+
+/**
+ * Steps through a looping story, holding step `i` for `holds[i]` ms. The loop
+ * runs only while the element behind `ref` is on screen; under reduced motion
+ * it rests on `still`, the one frame that tells the story on its own.
+ */
+export function useStoryLoop(holds: readonly number[], still: number) {
+ const ref = useRef<HTMLDivElement>(null);
+ const [visible, setVisible] = useState(false);
+ const [step, setStep] = useState(0);
+ const reducedMotion = usePrefersReducedMotion();
+
+ useEffect(() => {
+ const el = ref.current;
+ if (!el) return;
+ const intersection = new IntersectionObserver(([entry]) => setVisible(entry?.isIntersecting ?? false));
+ intersection.observe(el);
+ return () => intersection.disconnect();
+ }, []);
+
+ useEffect(() => {
+ if (!visible || reducedMotion) return;
+ const timer = setTimeout(() => setStep((current) => (current + 1) % holds.length), holds[step]);
+ return () => clearTimeout(timer);
+ }, [holds, step, visible, reducedMotion]);
+
+ return { ref, step: reducedMotion ? still : step };
+}
+
+// Window chrome and small product atoms shared by the mockups.
+
+export const ENTER = "animate-in fade-in slide-in-from-bottom-1 duration-300 motion-reduce:animate-none";
+
+/** Elevation steps from the product: a card raised off a muted column, and a panel floating over the page. */
+export const RAISED = "rounded-lg border-[0.5px] border-surface-border bg-surface shadow-[var(--surface-shadow)]";
+export const FLOATING = "rounded-xl bg-background shadow-[var(--floating-shadow)] ring-1 ring-surface-border";
+
+/** The app's top-level spaces. Settings sits in the rail's footer, not its list. */
+export type Space = "inbox" | "work" | "team" | "chat" | "autopilots" | "settings";
+
+const RAIL_SPACES: { key: Exclude<Space, "settings">; icon: IconComponent }[] = [
+ { key: "inbox", icon: Inbox },
+ { key: "work", icon: ListTodo },
+ { key: "team", icon: Users },
+ { key: "chat", icon: MessageSquare },
+ { key: "autopilots", icon: Zap },
+];
+
+const RAIL_ACTIVE = "bg-sidebar-accent font-medium text-sidebar-accent-foreground";
+
+function RailButton({ icon: Icon, active }: { icon: IconComponent; active?: boolean }) {
+ return (
+ <span
+ className={cn(
+ "flex size-9 shrink-0 items-center justify-center rounded-lg",
+ active ? RAIL_ACTIVE : "text-muted-foreground",
+ )}
+ >
+ <Icon className="size-4.5" />
+ </span>
+ );
+}
+
+/**
+ * The app rail on the grey shell: the workspace, New issue and search, the
+ * five spaces with their labels, then help, settings and the account. Desktop
+ * moves New issue and search to its title bar and leaves room for the window
+ * controls at the top.
+ */
+export function AppRail({ active, inbox = 3, desktop }: { active: Space; inbox?: number; desktop?: boolean }) {
+ const labels = useDemoCopy().app.spaces;
+ return (
+ <div className={cn("flex w-14 shrink-0 flex-col items-center pb-2.5", desktop ? "pt-10" : "pt-3")}>
+ <span className="flex size-[34px] shrink-0 items-center justify-center rounded-lg border border-surface-border bg-surface-raised text-body font-semibold shadow-[var(--surface-shadow)]">
+ A
+ </span>
+ {desktop ? (
+ <span className="h-2 shrink-0" />
+ ) : (
+ <span className="my-2 flex flex-col items-center gap-1">
+ <RailButton icon={SquarePen} />
+ <RailButton icon={Search} />
+ </span>
+ )}
+ <span className="flex flex-col items-center gap-0.5">
+ {RAIL_SPACES.map((space) => {
+ const current = space.key === active;
+ return (
+ <span
+ key={space.key}
+ className={cn(
+ "relative flex size-12 shrink-0 flex-col items-center justify-center gap-1 rounded-xl",
+ current ? RAIL_ACTIVE : "text-muted-foreground",
+ )}
+ >
+ <space.icon className="size-5" />
+ <span className="text-micro leading-[14px]">{labels[space.key]}</span>
+ {space.key === "inbox" && inbox > 0 ? (
+ <span
+ className={cn(
+ "absolute top-0 right-1 flex h-4 min-w-4 items-center justify-center rounded-full bg-brand px-1 text-[10px] leading-none font-medium tabular-nums text-brand-foreground ring-2",
+ current ? "ring-sidebar-accent" : "ring-app-shell",
+ )}
+ >
+ {inbox}
+ </span>
+ ) : null}
+ </span>
+ );
+ })}
+ </span>
+ <span className="mt-auto flex flex-col items-center gap-1 pt-2">
+ <RailButton icon={CircleHelp} />
+ <RailButton icon={Settings} active={active === "settings"} />
+ <span className="flex size-9 items-center justify-center">
+ <Avatar actor={MIA} size={24} />
+ </span>
+ </span>
+ </div>
+ );
+}
+
+/** The content card beside the rail: the space panel and the page share one surface. */
+export const APP_CARD =
+ "relative flex min-w-0 flex-1 overflow-hidden rounded-xl bg-page-canvas shadow-[var(--surface-shadow)] ring-1 ring-surface-border";
+
+/**
+ * The Multica app as a window: the rail on the grey app shell, and the page
+ * on the content card with the space panel collapsed. A window that runs off
+ * the right and bottom of its frame passes `bleed` (in px), and the page keeps
+ * its content out of the cropped strip so nothing is cut mid-word.
+ */
+export function AppWindow({
+ className,
+ active,
+ bleed = 0,
+ children,
+}: {
+ className: string;
+ active: Space;
+ bleed?: number;
+ children: ReactNode;
+}) {
+ return (
+ <div
+ className={cn("absolute flex overflow-hidden rounded-xl border border-site-line-strong bg-app-shell shadow-site-float", className)}
+ >
+ <AppRail active={active} />
+ <div className={cn(APP_CARD, "my-2 mr-2")}>
+ <div className="relative flex min-w-0 flex-1 flex-col" style={{ marginRight: bleed, marginBottom: bleed }}>
+ {children}
+ </div>
+ </div>
+ </div>
+ );
+}
+
+/** A ghost icon button from a page header. */
+export function HeaderButton({ icon: Icon }: { icon: IconComponent }) {
+ return (
+ <span className="flex size-7 shrink-0 items-center justify-center rounded-md text-muted-foreground">
+ <Icon className="size-4.5" />
+ </span>
+ );
+}
+
+/**
+ * A collection page's header: the current view as a menu (the header never
+ * carries a count), the filter, and the page's actions on the right.
+ */
+export function PageHeader({
+ icon: Icon,
+ title,
+ filter = true,
+ children,
+}: {
+ icon: IconComponent;
+ title: ReactNode;
+ filter?: boolean;
+ children?: ReactNode;
+}) {
+ return (
+ <div className="flex h-12 shrink-0 items-center gap-2 border-b border-border px-4">
+ <div className="flex min-w-0 flex-1 items-center gap-1">
+ <span className="flex h-7 min-w-0 items-center gap-2 px-2 text-body font-medium">
+ <Icon className="size-4 shrink-0 text-muted-foreground" />
+ <span className="min-w-0 truncate">{title}</span>
+ <ChevronDown className="size-3 shrink-0 text-muted-foreground" />
+ </span>
+ {filter ? (
+ <span className="flex size-7 shrink-0 items-center justify-center text-muted-foreground">
+ <Filter className="size-4" />
+ </span>
+ ) : null}
+ </div>
+ {children ? <div className="flex shrink-0 items-center gap-1">{children}</div> : null}
+ </div>
+ );
+}
+
+/** An object page's header: where it lives, then the object itself. */
+export function BreadcrumbHeader({ parent, leaf, children }: { parent: ReactNode; leaf: ReactNode; children?: ReactNode }) {
+ return (
+ <div className="flex h-12 shrink-0 items-center gap-2 border-b border-border px-4 text-body">
+ <div className="flex min-w-0 flex-1 items-center gap-1.5">
+ <span className="flex shrink-0 items-center gap-1 text-muted-foreground">{parent}</span>
+ <ChevronRight className="size-3 shrink-0 text-faint-foreground" />
+ <span className="min-w-0 truncate font-medium">{leaf}</span>
+ </div>
+ {children ? <div className="flex shrink-0 items-center gap-1">{children}</div> : null}
+ </div>
+ );
+}
+
+/*
+ * A collection list from the product: optional column heads, group bars, and
+ * borderless rows on one grid. Wrap the pieces in `LIST` and pass every row
+ * the same `columns` (a grid-template-columns value).
+ */
+export const LIST = "flex shrink-0 flex-col px-2";
+
+export function ListHead({ columns, children }: { columns: string; children: ReactNode }) {
+ return (
+ <div
+ className="grid h-9 shrink-0 items-center gap-x-3 px-3 text-caption whitespace-nowrap text-muted-foreground"
+ style={{ gridTemplateColumns: columns }}
+ >
+ {children}
+ </div>
+ );
+}
+
+export function ListGroup({ title, count }: { title: string; count: number }) {
+ return (
+ <div className="shrink-0 pt-2 pb-0.5">
+ <div className="flex h-10 items-center gap-2 rounded-lg bg-muted px-3 text-caption font-semibold">
+ {title}
+ <span className="font-normal tabular-nums text-muted-foreground">{count}</span>
+ </div>
+ </div>
+ );
+}
+
+export function ListRow({ columns, className, children }: { columns: string; className?: string; children: ReactNode }) {
+ return (
+ <div
+ className={cn("grid h-9 shrink-0 items-center gap-x-3 rounded-md px-3 text-body whitespace-nowrap", className)}
+ style={{ gridTemplateColumns: columns }}
+ >
+ {children}
+ </div>
+ );
+}
+
+/** A list's primary cell: icon, name, an inline tag, then the description in whatever width is left. */
+export function NameCell({
+ icon,
+ title,
+ tag,
+ description,
+ muted,
+}: {
+ icon?: ReactNode;
+ title: ReactNode;
+ tag?: string;
+ description?: ReactNode;
+ muted?: boolean;
+}) {
+ return (
+ <span className="flex min-w-0 items-center gap-2">
+ {icon}
+ <span className={cn("min-w-0 truncate font-medium", muted && "text-muted-foreground")}>{title}</span>
+ {tag ? (
+ <span className="shrink-0 rounded-xs bg-muted px-1 text-micro leading-4 font-medium text-muted-foreground">{tag}</span>
+ ) : null}
+ {description ? <span className="min-w-0 flex-1 basis-0 truncate text-muted-foreground">{description}</span> : null}
+ </span>
+ );
+}
+
+/** Every cell after the name. */
+export const LIST_CELL = "flex min-w-0 items-center gap-1.5 text-caption text-muted-foreground";
+
+/** The coding tools found on a machine, as the runtimes list stacks them. */
+export function ProviderStack({ names }: { names: string[] }) {
+ return (
+ <span className="flex min-w-0 items-center -space-x-1">
+ {names.map((name) => {
+ const Mark = PROVIDER_MARKS.get(name);
+ return (
+ <span key={name} className="inline-flex size-5 shrink-0 items-center justify-center rounded-xs bg-background ring-1 ring-border">
+ {Mark ? <Mark className="size-3.5" /> : null}
+ </span>
+ );
+ })}
+ </span>
+ );
+}
+
+export function Online() {
+ const label = useDemoCopy().app.online;
+ return (
+ <>
+ <Wifi className="size-3 shrink-0 text-success" />
+ <span className="truncate text-foreground">{label}</span>
+ </>
+ );
+}
+
+/** Overlapping avatars, each ringed in the surface it sits on. */
+export function AvatarStack({ actors, size = 20, ring = "ring-background" }: { actors: Actor[]; size?: 16 | 20; ring?: string }) {
+ return (
+ <span className="flex shrink-0 items-center -space-x-1.5">
+ {actors.map((actor) => (
+ <span key={actor.name} className={cn("inline-flex rounded-full ring-2", ring)}>
+ <Avatar actor={actor} size={size} />
+ </span>
+ ))}
+ </span>
+ );
+}
+
+/** An issue's live agent badge: who is on it, and a shimmering "Working". */
+export function Working({ label, agents }: { label?: string; agents?: Actor[] }) {
+ const working = useDemoCopy().app.working;
+ return (
+ <span className="inline-flex shrink-0 items-center gap-1">
+ {agents ? <AvatarStack actors={agents} size={16} /> : null}
+ <MulticaIcon mode="think" size={12} />
+ <ShimmerText className="text-micro text-muted-foreground">{label ?? working}</ShimmerText>
+ </span>
+ );
+}
+
+/** The page header's "agents working" chip; compact keeps the faces and the number. */
+export function WorkingChip({ agents, compact }: { agents: Actor[]; compact?: boolean }) {
+ const label = useDemoCopy().app.agentsWorking;
+ return (
+ <span className="flex h-7 shrink-0 items-center gap-1.5 rounded-md border border-brand/28 bg-brand/7 px-2.5 text-caption font-medium dark:border-brand/45 dark:bg-brand/12">
+ <AvatarStack actors={agents.slice(0, 3)} ring="ring-page-canvas" />
+ <span className="tabular-nums">{compact ? agents.length : label.replace("{count}", String(agents.length))}</span>
+ </span>
+ );
+}
diff --git a/apps/web/features/landing/site/desktop-page.tsx b/apps/web/features/landing/site/desktop-page.tsx
new file mode 100644
index 0000000000..44ecd93749
--- /dev/null
+++ b/apps/web/features/landing/site/desktop-page.tsx
@@ -0,0 +1,216 @@
+"use client";
+
+import type { ComponentType } from "react";
+import { ArrowRight, ArrowUpRight } from "@multica/ui/icons";
+import { cn } from "@multica/ui/lib/utils";
+import { docsHrefForLocale, useLocale } from "../i18n";
+import { ActionLink, Container, Section, SectionHeader } from "./primitives";
+import { DaemonVisual, DesktopScene, TabsVisual } from "./demo/desktop-visuals";
+import { CtaBand, SitePage } from "./site-page";
+import { CheckList, CodeBlock, CompareTable, IconTile, SurfaceHero, type CompareRow } from "./surface-kit";
+import { AppleIcon, LinuxIcon, WindowsIcon } from "../components/download/os-icons";
+
+export function DesktopPage() {
+ return (
+ <SitePage>
+ <Hero />
+ <div className="site-rails">
+ <Highlights />
+ <Compare />
+ <Downloads />
+ <SelfHosted />
+ <CtaBand title="Put your computer to work" lead="Download Multica Desktop, sign in, and assign an issue to an agent on your machine." />
+ </div>
+ </SitePage>
+ );
+}
+
+function useDesktopDocsHref() {
+ const { locale } = useLocale();
+ return `${docsHrefForLocale(locale)}/desktop-app`;
+}
+
+function Hero() {
+ const docsHref = useDesktopDocsHref();
+ return (
+ <SurfaceHero
+ eyebrow="Multica Desktop"
+ title="Multica, as a native app."
+ subtitle="Your computer becomes a runtime."
+ lead="Multica Desktop for macOS, Windows, and Linux starts the daemon for you after sign-in, so the coding tools on your computer can take issues. Each workspace opens in a window of its own."
+ actions={
+ <>
+ <ActionLink href="/download" size="lg">
+ Download
+ </ActionLink>
+ <ActionLink href={docsHref} size="lg" tone="secondary">
+ Desktop guide
+ <ArrowUpRight className="size-4" aria-hidden />
+ </ActionLink>
+ </>
+ }
+ frost="desktop"
+ label="Multica Desktop with three tabs open in the title bar. The active tab shows issue ACM-152, which Backend Agent is working on Mia’s MacBook Pro. Beside it, that computer appears as a runtime managed by Desktop, with Claude Code, Codex, and Cursor detected."
+ >
+ <DesktopScene />
+ </SurfaceHero>
+ );
+}
+
+const HIGHLIGHTS: { title: string; body: string; points: string[]; visual: ComponentType; label: string }[] = [
+ {
+ title: "The daemon starts itself",
+ body: "Sign in and Desktop starts its own bundled CLI, finds the coding tools already installed, and puts your computer on the Runtimes page. No terminal needed.",
+ points: [
+ "Runs on its own profile, apart from any daemon you start in a terminal",
+ "Status, logs, and restart live in Settings",
+ "Updates with the app, so the CLI never falls behind",
+ ],
+ visual: DaemonVisual,
+ label: "Desktop’s Daemon settings: running on the desktop-multica.ai profile, CLI managed by Desktop, with Claude Code, Codex, and Cursor detected and ready.",
+ },
+ {
+ title: "A window for every workspace",
+ body: "Open each workspace in a window of its own, with its own tabs for issues, chats, and projects. Quit and reopen, and every window comes back with its tabs.",
+ points: [
+ "Open a new window from the workspace menu, or with ⌘⇧N / Ctrl+Shift+N",
+ "Pin the tabs you keep coming back to",
+ "Multica links open in a tab instead of the browser",
+ ],
+ visual: TabsVisual,
+ label: "Two workspaces, each in its own window with its own tabs: Acme Labs with its pinned Inbox and issue ACM-152; Mia’s workspace with its Inbox and MIA-12.",
+ },
+];
+
+function Highlights() {
+ return (
+ <Section>
+ <Container className="flex flex-col gap-site-section">
+ {HIGHLIGHTS.map((item, index) => (
+ <div key={item.title} className="grid items-center gap-site-block lg:grid-cols-2 lg:gap-16">
+ <div className={cn(index % 2 === 1 && "lg:order-2")}>
+ <h2 className="font-site-display text-site-heading text-site-ink text-balance">{item.title}</h2>
+ <p className="mt-3 max-w-[30rem] text-site-body text-site-muted text-pretty">{item.body}</p>
+ <CheckList items={item.points} className="mt-6" />
+ </div>
+ <div
+ role="img"
+ aria-label={item.label}
+ className={cn(
+ "site-visual flex h-[23rem] items-center justify-center overflow-hidden rounded-site-panel sm:h-[26rem]",
+ index % 2 === 1 && "lg:order-1",
+ )}
+ >
+ <div aria-hidden className="text-foreground max-sm:scale-75 lg:max-xl:scale-[0.85] xl:scale-110">
+ <item.visual />
+ </div>
+ </div>
+ </div>
+ ))}
+ </Container>
+ </Section>
+ );
+}
+
+const COMPARE: CompareRow[] = [
+ { label: "How you open it", values: ["Install the app", "Any browser"] },
+ { label: "Your computer as a runtime", values: ["Started for you after sign-in", "Install and start the CLI yourself"] },
+ { label: "Windows and tabs", values: ["A window for each workspace, restored on relaunch", "Your browser’s windows and tabs"] },
+ { label: "Updates", values: ["In the background, installed on restart", "Refresh the page"] },
+];
+
+function Compare() {
+ return (
+ <Section>
+ <Container>
+ <SectionHeader
+ title="Desktop or the web app"
+ lead="Both show the same workspace, and you can be signed in to both at once. The web app suits a quick look or a shared computer."
+ />
+ <div className="mt-site-block">
+ <CompareTable columns={["Desktop", "Web"]} rows={COMPARE} />
+ </div>
+ </Container>
+ </Section>
+ );
+}
+
+const PLATFORMS: { name: string; detail: string; formats: string[]; icon: ComponentType<{ size?: number }> }[] = [
+ { name: "macOS", detail: "Apple silicon and Intel", formats: [".dmg"], icon: AppleIcon },
+ { name: "Windows", detail: "x64 and Arm", formats: [".exe"], icon: WindowsIcon },
+ { name: "Linux", detail: "x64 and Arm", formats: [".AppImage", ".deb", ".rpm"], icon: LinuxIcon },
+];
+
+function Downloads() {
+ return (
+ <Section>
+ <Container className="grid gap-site-block lg:grid-cols-[minmax(0,1fr)_minmax(0,1.4fr)] lg:gap-16">
+ <SectionHeader
+ title="For the computer you have"
+ lead="Desktop updates itself in the background. Restart to install a new version, or let it install the next time you quit."
+ />
+ <div>
+ <ul className="divide-y divide-site-line border-y border-site-line">
+ {PLATFORMS.map((platform) => (
+ <li key={platform.name} className="grid grid-cols-[auto_minmax(0,1fr)_auto] items-center gap-4 py-5">
+ <IconTile>
+ <platform.icon size={18} />
+ </IconTile>
+ <span>
+ <span className="block text-site-card text-site-ink">{platform.name}</span>
+ <span className="mt-1 block text-site-small text-site-muted">{platform.detail}</span>
+ </span>
+ <span className="flex flex-wrap justify-end gap-1.5">
+ {platform.formats.map((format) => (
+ <span
+ key={format}
+ className="rounded-site-control bg-site-sunken px-2 py-0.5 font-site-mono text-site-small text-site-ink-secondary"
+ >
+ {format}
+ </span>
+ ))}
+ </span>
+ </li>
+ ))}
+ </ul>
+ <p className="mt-4 text-site-small text-site-muted">
+ On Linux, automatic updates work with the .AppImage. Update a .deb or .rpm by installing the new package.
+ </p>
+ <ActionLink href="/download" tone="ghost" className="mt-6 -ml-3">
+ All downloads
+ <ArrowRight className="size-4" aria-hidden />
+ </ActionLink>
+ </div>
+ </Container>
+ </Section>
+ );
+}
+
+const DESKTOP_CONFIG = `{
+ "schemaVersion": 1,
+ "apiUrl": "https://api.example.com"
+}`;
+
+function SelfHosted() {
+ const docsHref = useDesktopDocsHref();
+ return (
+ <Section>
+ <Container className="grid items-start gap-site-block lg:grid-cols-2 lg:gap-16">
+ <div>
+ <h2 className="font-site-display text-site-heading text-balance">
+ <span className="block text-site-ink">Running your own Multica?</span>
+ <span className="block text-site-muted">Point Desktop at it.</span>
+ </h2>
+ <p className="mt-3 max-w-[30rem] text-site-body text-site-muted text-pretty">
+ Desktop connects to Multica Cloud by default. Add a small file with your server’s address and restart the app.
+ </p>
+ <ActionLink href={`${docsHref}#connecting-to-a-self-hosted-instance`} tone="ghost" className="mt-6 -ml-3">
+ Self-hosted setup
+ <ArrowUpRight className="size-4" aria-hidden />
+ </ActionLink>
+ </div>
+ <CodeBlock variants={[{ label: "~/.multica/desktop.json", code: DESKTOP_CONFIG }]} />
+ </Container>
+ </Section>
+ );
+}
diff --git a/apps/web/features/landing/site/footer-wordmark.tsx b/apps/web/features/landing/site/footer-wordmark.tsx
new file mode 100644
index 0000000000..bf7189437e
--- /dev/null
+++ b/apps/web/features/landing/site/footer-wordmark.tsx
@@ -0,0 +1,708 @@
+"use client";
+
+import { useEffect, useRef, useState } from "react";
+import { WORDMARK, WORDMARK_STAR, WORDMARK_STROKE } from "@multica/ui/lib/multica-brand";
+import { cn } from "@multica/ui/lib/utils";
+import { Container } from "./primitives";
+
+/*
+ * The footer's closing wordmark, at the width of the page frame, drawn as a
+ * halftone: square cells in a faint tint of the ink, solid at the top and
+ * thinning out towards the bottom edge through an ordered dither.
+ *
+ * The first time it comes into view the cells develop from the top down.
+ * Under the pointer a soft spotlight fills the dither in and deepens it to the
+ * ink, trailing the pointer slightly and fading when it leaves.
+ *
+ * The canvas spans the whole width of the page and the host's top padding, so
+ * anywhere around the wordmark the pointer becomes a bulb blower aimed at the
+ * star on the i. Each click squeezes the bulb and sends a puff of air, drawn
+ * in the same cells, towards the star; every bit of air that reaches it pushes
+ * it round like a pinwheel, so closer and faster clicking spins it harder. It
+ * slows under friction and settles back upright on one of its eight arms. Air
+ * that crosses the letters knocks their cells loose; they drift, then are
+ * drawn back home. The spinning star powers the wordmark like a dynamo: the
+ * faster it turns the more the dither fills in and darkens towards the ink,
+ * fading back as it slows.
+ *
+ * Every visitor shares the star: the turns each one blows are added to a
+ * running total on the server, shown above the wordmark, and turns blown
+ * elsewhere since the last look spin this star too. Without the server the
+ * total stays hidden and the star is local.
+ *
+ * Under reduced motion the wordmark is the finished frame, the spotlight
+ * tracks without easing and a click turns the star one arm with no puff.
+ */
+
+const [VIEW_X, VIEW_Y, VIEW_W, VIEW_H] = WORDMARK.viewBox.split(" ").map(Number) as [number, number, number, number];
+const LETTER_PATHS = WORDMARK.letters.map((letter) => letter.d);
+const STAR = (() => {
+ const i = WORDMARK.letters.find((letter) => letter.star)!;
+ // The star is centred on the i's stem, the first move of its path.
+ return { d: i.star!, cx: Number(/^M([-\d.]+)/.exec(i.d)![1]), cy: WORDMARK_STAR.cy, r: WORDMARK_STAR.r };
+})();
+
+/** Cell edge in CSS pixels. */
+const CELL = 3;
+const BASE_ALPHA = 0.1;
+const SPOT_ALPHA = 0.65;
+/** Spotlight radius as a share of the wordmark's width. */
+const SPOT_RADIUS = 0.09;
+const FOLLOW = 0.2;
+const SPOT_FADE = 0.14;
+const DEVELOP_STEP = 0.022;
+
+/** Air per puff, its launch speed (px/s), half-width of its cone (rad) and how quickly it dies down. */
+const PUFF_SIZE = 26;
+const PUFF_SPEED = 820;
+const PUFF_SPREAD = 0.2;
+const AIR_DRAG = 1.1;
+const AIR_LIFE = 1.4;
+const AIR_ALPHA = 0.32;
+/** Spin (rad/s) a bit of air adds when it reaches the star at full speed. */
+const AIR_PUSH = 0.45;
+/** Spin speed cap, in radians per second (about six turns). */
+const MAX_SPIN = 38;
+/** The blower's nozzle tip within its drawing, which points right. */
+const BLOWER_TIP = { x: 54, y: 15 };
+/** Exponential slow-down of a free spin, per second. */
+const FRICTION = 1;
+/** Below this speed (rad/s) the star stops coasting and springs to the nearest arm. */
+const SETTLE_SPEED = 2.4;
+const SETTLE_STIFFNESS = 90;
+const ARM_STEP = Math.PI / 4;
+
+/** The spin (rad/s) at which the wordmark is fully powered, how quickly power follows the spin, and what full power adds. */
+const FULL_POWER_SPIN = 24;
+const POWER_FOLLOW = 3;
+const POWER_ALPHA = 0.55;
+const POWER_FILL = 0.7;
+
+/** Cells a bit of air can knock loose, and the chance per cell it passes at full speed. */
+const MAX_KNOCKS = 3;
+const KNOCK_CHANCE = 0.35;
+/** Loose cells drift for this long (s), then a spring pulls them home, ramping up over `DOT_RAMP` (s). */
+const DOT_HOLD = 0.7;
+const DOT_RAMP = 0.8;
+const DOT_DRAG = 2.4;
+const DOT_PULL = 26;
+/** A loose cell in flight is drawn at least this dark, and is put back after `DOT_MAX_AGE` (s) whatever happens. */
+const DOT_ALPHA = 0.3;
+const DOT_MAX_AGE = 6;
+const MAX_DOTS = 3000;
+
+const STAR_API = "/api/site/star";
+const STAR_TURNS_API = "/api/site/star/turns";
+/** How often (ms) the page reports its own turns, and the longest it waits (ms) between reads of the total. */
+const SYNC_EVERY = 2000;
+const READ_EVERY = 6000;
+/** The server's cap on turns per report. */
+const MAX_REPORT = 30;
+/** Spin (rad/s) a turn blown elsewhere adds here, capped so a busy moment still reads as a nudge. */
+const REMOTE_PUSH = Math.PI;
+const MAX_REMOTE_SPIN = 18;
+
+/** 8×8 Bayer thresholds in (0, 1): a cell shows when its density exceeds its threshold. */
+const BAYER = (() => {
+ const out = new Float32Array(64);
+ for (let y = 0; y < 8; y++) {
+ for (let x = 0; x < 8; x++) {
+ let v = 0;
+ for (let bit = 0, xc = x, yc = x ^ y; bit < 3; bit++, xc >>= 1, yc >>= 1) {
+ v = (v << 2) | ((yc & 1) << 1) | (xc & 1);
+ }
+ out[y * 8 + x] = (v + 0.5) / 64;
+ }
+ }
+ return out;
+})();
+
+/** Density down the wordmark: solid to halfway down the letters, thinning to a sparse dither at the baseline. */
+function rowDensity(y: number, height: number) {
+ return Math.min(1, 1.9 - (y / height) * 1.75);
+}
+
+/** Marks the cells of `cols` × `rows` whose centres land on what `paint` draws, in CSS pixels. */
+function sampleCells(
+ width: number,
+ height: number,
+ cols: number,
+ rows: number,
+ paint: (ctx: CanvasRenderingContext2D) => void,
+): Uint8Array {
+ const cells = new Uint8Array(cols * rows);
+ const scratch = document.createElement("canvas");
+ scratch.width = Math.max(1, Math.ceil(width));
+ scratch.height = Math.max(1, Math.ceil(height));
+ const ctx = scratch.getContext("2d", { willReadFrequently: true });
+ if (!ctx) return cells;
+ paint(ctx);
+ const alpha = ctx.getImageData(0, 0, scratch.width, scratch.height).data;
+ for (let row = 0; row < rows; row++) {
+ const y = Math.min(scratch.height - 1, Math.floor(row * CELL + CELL / 2));
+ for (let col = 0; col < cols; col++) {
+ const x = Math.min(scratch.width - 1, Math.floor(col * CELL + CELL / 2));
+ cells[row * cols + col] = alpha[(y * scratch.width + x) * 4 + 3]! >= 128 ? 1 : 0;
+ }
+ }
+ return cells;
+}
+
+type Air = { x: number; y: number; vx: number; vy: number; age: number; big: boolean; hit: boolean; knocks: number };
+type Dot = { i: number; hx: number; hy: number; x: number; y: number; vx: number; vy: number; age: number; alpha: number };
+
+export function FooterWordmark({ className, label, locale }: { className?: string; label: string; locale: string }) {
+ const box = useRef<HTMLDivElement>(null);
+ const frameRef = useRef<HTMLDivElement>(null);
+ const canvasRef = useRef<HTMLCanvasElement>(null);
+ const blowerRef = useRef<SVGSVGElement>(null);
+ const bulbRef = useRef<SVGGElement>(null);
+ const [total, setTotal] = useState<number | null>(null);
+
+ useEffect(() => {
+ const host = box.current;
+ const frameEl = frameRef.current;
+ const canvas = canvasRef.current;
+ const blower = blowerRef.current;
+ const bulb = bulbRef.current;
+ const ctx = canvas?.getContext("2d");
+ if (!host || !frameEl || !canvas || !blower || !bulb || !ctx) return;
+
+ const still = matchMedia("(prefers-reduced-motion: reduce)").matches;
+ // The canvas is `width` × `fullHeight`; the wordmark is `markWidth` ×
+ // `height` within it, offset by the page gutter and the host's top padding.
+ let width = 0;
+ let fullHeight = 0;
+ let markWidth = 0;
+ let height = 0;
+ let ox = 0;
+ let oy = 0;
+ let cols = 0;
+ let rows = 0;
+ let scale = 1;
+ let letters: Uint8Array = new Uint8Array();
+ let inside: Uint8Array = new Uint8Array();
+ let loose: Uint8Array = new Uint8Array();
+ let developed = still ? 1 : 0;
+ let inView = false;
+ let frame = 0;
+ let lastFrame = 0;
+ const spot = { x: 0, y: 0, tx: 0, ty: 0, r: 0, tr: 0 };
+ let spotRadius = 1;
+ let power = 0;
+
+ // The star: its centre and radius in CSS pixels, the block of cells it can
+ // sweep, and its spin.
+ const star = { x: 0, y: 0, reach: 0, col0: 0, row0: 0, span: 0, drawnAt: Number.NaN };
+ const spin = { angle: 0, speed: 0, free: false, settling: false, target: 0 };
+ // The blower sits with its nozzle on the pointer, aimed at the star.
+ const nozzle = { x: 0, y: 0, aim: 0, shown: false };
+ let air: Air[] = [];
+ let dots: Dot[] = [];
+ let hideTimer = 0;
+
+ // The shared total: what the server last reported and has been accounted
+ // for here, and this page's own turns not yet reported.
+ let known: number | null = null;
+ let pending = 0;
+ let reporting = 0;
+ let shownTotal = -1;
+ let syncing = false;
+ let lastRead = 0;
+ let near = false;
+ let syncTimer = 0;
+
+ const showTotal = () => {
+ if (known === null) return;
+ const next = Math.floor(known + reporting + pending);
+ if (next !== shownTotal) {
+ shownTotal = next;
+ setTotal(next);
+ }
+ };
+
+ const aimAt = (x: number, y: number) => {
+ nozzle.x = x;
+ nozzle.y = y;
+ // Right on the star the aim is meaningless; keep the last one.
+ if (Math.hypot(star.x - x, star.y - y) > star.reach) nozzle.aim = Math.atan2(star.y - y, star.x - x);
+ blower.style.transform = `translate(${x - BLOWER_TIP.x}px, ${y - BLOWER_TIP.y}px) rotate(${nozzle.aim}rad)`;
+ };
+ const showBlower = (shown: boolean) => {
+ nozzle.shown = shown;
+ blower.style.opacity = shown ? "1" : "0";
+ };
+ const squeeze = (pressed: boolean) => {
+ bulb.style.transition = still ? "none" : pressed ? "transform 70ms ease-in" : "transform 260ms cubic-bezier(.3,1.8,.5,1)";
+ bulb.style.transform = pressed ? "scale(1.05, 0.68)" : "";
+ };
+
+ /** Adds spin; returns how much was taken, after the cap. */
+ const kick = (amount: number, cap = MAX_SPIN) => {
+ const before = spin.speed;
+ spin.speed = Math.max(before, Math.min(cap, before + amount));
+ spin.free = true;
+ spin.settling = false;
+ return spin.speed - before;
+ };
+ // Under friction a spin of v rad/s coasts v / FRICTION radians, so the
+ // spin this page adds is the turns it will be credited with.
+ const credit = (radians: number) => {
+ pending += radians / (2 * Math.PI);
+ showTotal();
+ };
+ const puff = () => {
+ if (still) {
+ spin.angle += ARM_STEP;
+ credit(ARM_STEP);
+ return;
+ }
+ for (let n = 0; n < PUFF_SIZE; n++) {
+ const angle = nozzle.aim + (Math.random() + Math.random() - 1) * PUFF_SPREAD;
+ const speed = PUFF_SPEED * (0.7 + Math.random() * 0.45);
+ air.push({
+ x: nozzle.x,
+ y: nozzle.y,
+ vx: Math.cos(angle) * speed,
+ vy: Math.sin(angle) * speed,
+ age: Math.random() * -0.05,
+ big: Math.random() < 0.3,
+ hit: false,
+ knocks: 0,
+ });
+ }
+ lastFrame = 0;
+ };
+
+ /** The alpha a wordmark cell is drawn at right now, or 0 when the dither leaves it out. */
+ const shade = (row: number, col: number) => {
+ const y = row * CELL + CELL / 2;
+ const base = developed * 1.4 - (y - oy) / height > 0 ? rowDensity(y - oy, height) + power * POWER_FILL : 0;
+ let glow = 0;
+ if (spot.r > 0.01) {
+ const d = Math.hypot(col * CELL + CELL / 2 - spot.x, y - spot.y) / spotRadius;
+ glow = Math.max(0, 1 - d * d);
+ }
+ if (Math.max(base, glow) <= BAYER[(row % 8) * 8 + (col % 8)]!) return 0;
+ return Math.min(1, BASE_ALPHA + power * POWER_ALPHA + glow * SPOT_ALPHA);
+ };
+
+ /** Knocks loose the drawn letter cells around a bit of air. */
+ const knock = (a: Air) => {
+ const col = Math.floor(a.x / CELL);
+ const row = Math.floor(a.y / CELL);
+ const chance = KNOCK_CHANCE * Math.min(1, Math.hypot(a.vx, a.vy) / PUFF_SPEED);
+ for (let r = row - 1; r <= row + 1 && a.knocks < MAX_KNOCKS; r++) {
+ if (r < 0 || r >= rows) continue;
+ for (let c = col - 1; c <= col + 1 && a.knocks < MAX_KNOCKS; c++) {
+ if (c < 0 || c >= cols) continue;
+ const i = r * cols + c;
+ if (!letters[i] || loose[i] || dots.length >= MAX_DOTS || Math.random() > chance) continue;
+ const alpha = shade(r, c);
+ if (!alpha) continue;
+ loose[i] = 1;
+ a.knocks++;
+ const hx = c * CELL;
+ const hy = r * CELL;
+ const jitter = 120;
+ dots.push({
+ i,
+ hx,
+ hy,
+ x: hx,
+ y: hy,
+ vx: a.vx * (0.35 + Math.random() * 0.35) + (Math.random() - 0.5) * jitter,
+ vy: a.vy * (0.35 + Math.random() * 0.35) + (Math.random() - 0.5) * jitter,
+ age: 0,
+ alpha,
+ });
+ a.vx *= 0.92;
+ a.vy *= 0.92;
+ }
+ }
+ };
+
+ /** Moves the air on by `dt` seconds; what reaches the star pushes it round and swirls off it. */
+ const blow = (dt: number) => {
+ const slow = Math.exp(-AIR_DRAG * dt);
+ air = air.filter((a) => {
+ a.age += dt;
+ if (a.age < 0) return true;
+ a.vx *= slow;
+ a.vy *= slow;
+ a.x += a.vx * dt;
+ a.y += a.vy * dt;
+ const dx = a.x - star.x;
+ const dy = a.y - star.y;
+ const r = Math.hypot(dx, dy);
+ if (!a.hit && r < star.reach) {
+ a.hit = true;
+ const v = Math.hypot(a.vx, a.vy);
+ credit(kick((AIR_PUSH * v) / PUFF_SPEED) / FRICTION);
+ // Off along the star's clockwise turn.
+ a.vx = ((-dy / r) * v * 0.55 + a.vx * 0.25) || 0;
+ a.vy = ((dx / r) * v * 0.55 + a.vy * 0.25) || 0;
+ } else if (a.knocks < MAX_KNOCKS) {
+ knock(a);
+ }
+ return a.age < AIR_LIFE && Math.hypot(a.vx, a.vy) > 30;
+ });
+ return air.length > 0;
+ };
+
+ /** Lets loose cells drift, then springs them home; true while any are away. */
+ const scatter = (dt: number) => {
+ if (!dots.length) return false;
+ const slow = Math.exp(-DOT_DRAG * dt);
+ dots = dots.filter((d) => {
+ d.age += dt;
+ if (d.age > DOT_HOLD) {
+ const k = DOT_PULL * Math.min(1, (d.age - DOT_HOLD) / DOT_RAMP);
+ const damping = 2 * Math.sqrt(k);
+ d.vx += ((d.hx - d.x) * k - damping * d.vx) * dt;
+ d.vy += ((d.hy - d.y) * k - damping * d.vy) * dt;
+ } else {
+ d.vx *= slow;
+ d.vy *= slow;
+ }
+ d.x += d.vx * dt;
+ d.y += d.vy * dt;
+ const home =
+ d.age > DOT_MAX_AGE ||
+ (d.age > DOT_HOLD && Math.hypot(d.hx - d.x, d.hy - d.y) < CELL / 2 && Math.hypot(d.vx, d.vy) < 20);
+ if (home) loose[d.i] = 0;
+ return !home;
+ });
+ return dots.length > 0;
+ };
+
+ /** Re-samples the star's cells at its current angle into `inside`. */
+ const placeStar = () => {
+ if (star.drawnAt === spin.angle || !cols) return;
+ star.drawnAt = spin.angle;
+ const { col0, row0, span } = star;
+ const cells = sampleCells(span * CELL, span * CELL, span, span, (scratch) => {
+ scratch.translate(star.x - col0 * CELL, star.y - row0 * CELL);
+ scratch.rotate(spin.angle);
+ scratch.scale(scale, scale);
+ scratch.translate(-STAR.cx, -STAR.cy);
+ scratch.fill(new Path2D(STAR.d));
+ });
+ for (let row = 0; row < span; row++) {
+ const r = row0 + row;
+ if (r < 0 || r >= rows) continue;
+ for (let col = 0; col < span; col++) {
+ const c = col0 + col;
+ if (c < 0 || c >= cols) continue;
+ const i = r * cols + c;
+ inside[i] = letters[i]! | cells[row * span + col]!;
+ }
+ }
+ };
+
+ const layout = () => {
+ const hostRect = host.getBoundingClientRect();
+ const frameRect = frameEl.getBoundingClientRect();
+ width = host.clientWidth;
+ fullHeight = host.clientHeight;
+ markWidth = frameRect.width;
+ height = Math.round((markWidth * VIEW_H) / VIEW_W);
+ ox = Math.round(frameRect.left - hostRect.left);
+ oy = Math.round(frameRect.top - hostRect.top);
+ const dpr = Math.min(2, window.devicePixelRatio || 1);
+ canvas.width = Math.round(width * dpr);
+ canvas.height = Math.round(fullHeight * dpr);
+ ctx.setTransform(dpr, 0, 0, dpr, 0, 0);
+ cols = Math.ceil(width / CELL);
+ rows = Math.ceil(fullHeight / CELL);
+ scale = markWidth / VIEW_W;
+ letters =
+ width && height
+ ? sampleCells(width, fullHeight, cols, rows, (scratch) => {
+ scratch.setTransform(scale, 0, 0, scale, ox - VIEW_X * scale, oy - VIEW_Y * scale);
+ scratch.lineWidth = WORDMARK_STROKE;
+ for (const d of LETTER_PATHS) scratch.stroke(new Path2D(d));
+ })
+ : new Uint8Array();
+ inside = letters.slice();
+ loose = new Uint8Array(letters.length);
+ dots = [];
+ star.x = ox + (STAR.cx - VIEW_X) * scale;
+ star.y = oy + (STAR.cy - VIEW_Y) * scale;
+ star.reach = STAR.r * scale;
+ star.col0 = Math.floor((star.x - star.reach) / CELL) - 1;
+ star.row0 = Math.floor((star.y - star.reach) / CELL) - 1;
+ star.span = Math.ceil((2 * star.reach) / CELL) + 3;
+ star.drawnAt = Number.NaN;
+ placeStar();
+ };
+
+ /** Advances the blown star by `dt` seconds; true while it is still moving. */
+ const coast = (dt: number) => {
+ if (!spin.free) return false;
+ if (!spin.settling && Math.abs(spin.speed) < SETTLE_SPEED) {
+ spin.settling = true;
+ const ahead = spin.angle + Math.sign(spin.speed) * ARM_STEP * 0.25;
+ spin.target = Math.round(ahead / ARM_STEP) * ARM_STEP;
+ }
+ if (spin.settling) {
+ const damping = 2 * Math.sqrt(SETTLE_STIFFNESS);
+ spin.speed += (-SETTLE_STIFFNESS * (spin.angle - spin.target) - damping * spin.speed) * dt;
+ spin.angle += spin.speed * dt;
+ if (Math.abs(spin.angle - spin.target) < 1e-3 && Math.abs(spin.speed) < 1e-2) {
+ spin.angle = spin.target % (2 * Math.PI);
+ spin.speed = 0;
+ spin.free = false;
+ spin.settling = false;
+ return false;
+ }
+ return true;
+ }
+ spin.speed *= Math.exp(-FRICTION * dt);
+ spin.angle += spin.speed * dt;
+ return true;
+ };
+
+ const draw = (now: number) => {
+ frame = 0;
+ const dt = lastFrame ? Math.min(0.05, (now - lastFrame) / 1000) : 1 / 60;
+ lastFrame = now;
+ const ease = still ? 1 : FOLLOW;
+ spot.x += (spot.tx - spot.x) * ease;
+ spot.y += (spot.ty - spot.y) * ease;
+ spot.r += (spot.tr - spot.r) * (still ? 1 : SPOT_FADE);
+ spotRadius = Math.max(1, markWidth * SPOT_RADIUS * spot.r);
+ if (inView && developed < 1) developed = Math.min(1, developed + DEVELOP_STEP);
+ const blowing = blow(dt);
+ const scattered = scatter(dt);
+ const spinning = coast(dt);
+ const charge = Math.min(1, Math.abs(spin.speed) / FULL_POWER_SPIN);
+ power += (charge - power) * (1 - Math.exp(-POWER_FOLLOW * dt));
+ if (!charge && power < 0.003) power = 0;
+ placeStar();
+
+ ctx.clearRect(0, 0, width, fullHeight);
+ ctx.fillStyle = getComputedStyle(host).color;
+ for (let row = 0; row < rows; row++) {
+ for (let col = 0; col < cols; col++) {
+ const i = row * cols + col;
+ if (!inside[i] || loose[i]) continue;
+ const alpha = shade(row, col);
+ if (!alpha) continue;
+ ctx.globalAlpha = alpha;
+ ctx.fillRect(col * CELL, row * CELL, CELL, CELL);
+ }
+ }
+ for (const d of dots) {
+ const away = Math.min(1, Math.hypot(d.hx - d.x, d.hy - d.y) / 30);
+ ctx.globalAlpha = d.alpha + Math.max(0, DOT_ALPHA - d.alpha) * away;
+ ctx.fillRect(Math.round(d.x / CELL) * CELL, Math.round(d.y / CELL) * CELL, CELL, CELL);
+ }
+ for (const a of air) {
+ if (a.age < 0) continue;
+ const size = a.big && a.age > 0.12 ? 2 : 1;
+ ctx.globalAlpha = AIR_ALPHA * (1 - a.age / AIR_LIFE);
+ ctx.fillRect(Math.floor(a.x / CELL) * CELL, Math.floor(a.y / CELL) * CELL, CELL * size, CELL * size);
+ }
+ ctx.globalAlpha = 1;
+
+ const moving = Math.abs(spot.tx - spot.x) + Math.abs(spot.ty - spot.y) > 0.5 || Math.abs(spot.tr - spot.r) > 0.01;
+ if (moving || blowing || scattered || spinning || power > 0 || (inView && developed < 1)) frame = requestAnimationFrame(draw);
+ else lastFrame = 0;
+ };
+ const schedule = () => {
+ if (!frame) frame = requestAnimationFrame(draw);
+ };
+
+ /** Takes in a total from the server; turns blown elsewhere since the last one spin this star too. */
+ const absorb = (turns: number, reported: number) => {
+ if (known !== null) {
+ const elsewhere = turns - known - reported;
+ if (elsewhere > 0 && !still) {
+ kick(elsewhere * REMOTE_PUSH, MAX_REMOTE_SPIN);
+ schedule();
+ }
+ }
+ known = turns;
+ showTotal();
+ };
+ const sync = async (final = false) => {
+ if (syncing) return;
+ syncing = true;
+ try {
+ if (known !== null && pending >= 1) {
+ const turns = Math.min(MAX_REPORT, Math.floor(pending));
+ pending -= turns;
+ reporting = turns;
+ try {
+ const res = await fetch(STAR_TURNS_API, {
+ method: "POST",
+ headers: { "Content-Type": "application/json" },
+ body: JSON.stringify({ turns }),
+ keepalive: final,
+ });
+ reporting = 0;
+ if (res.ok) {
+ absorb(((await res.json()) as { turns: number }).turns, turns);
+ lastRead = Date.now();
+ } else {
+ showTotal();
+ }
+ } catch {
+ reporting = 0;
+ pending += turns;
+ }
+ } else if (!final && Date.now() - lastRead >= READ_EVERY) {
+ lastRead = Date.now();
+ const res = await fetch(STAR_API, { cache: "no-store" });
+ if (res.ok) absorb(((await res.json()) as { turns: number }).turns, 0);
+ }
+ } catch {
+ // The total is a garnish; a failed read leaves it as it was.
+ } finally {
+ syncing = false;
+ }
+ };
+ const watchTotal = () => {
+ const active = near && !document.hidden;
+ if (active && !syncTimer) {
+ void sync();
+ syncTimer = window.setInterval(() => void sync(), SYNC_EVERY);
+ } else if (!active && syncTimer) {
+ clearInterval(syncTimer);
+ syncTimer = 0;
+ void sync(true);
+ }
+ };
+
+ const onMove = (event: PointerEvent) => {
+ const rect = canvas.getBoundingClientRect();
+ spot.tx = event.clientX - rect.left;
+ spot.ty = event.clientY - rect.top;
+ if (spot.r < 0.01) {
+ spot.x = spot.tx;
+ spot.y = spot.ty;
+ }
+ spot.tr = 1;
+ if (event.pointerType !== "touch") {
+ aimAt(spot.tx, spot.ty);
+ if (!nozzle.shown) showBlower(true);
+ }
+ schedule();
+ };
+ const onLeave = () => {
+ spot.tr = 0;
+ showBlower(false);
+ squeeze(false);
+ schedule();
+ };
+ const onDown = (event: PointerEvent) => {
+ if (event.button !== 0) return;
+ const rect = canvas.getBoundingClientRect();
+ aimAt(event.clientX - rect.left, event.clientY - rect.top);
+ squeeze(true);
+ puff();
+ if (event.pointerType === "touch") {
+ // No hover on touch: the blower shows for the tap, then goes.
+ showBlower(true);
+ clearTimeout(hideTimer);
+ hideTimer = window.setTimeout(() => {
+ squeeze(false);
+ showBlower(false);
+ }, 500);
+ }
+ schedule();
+ };
+ const onUp = (event: PointerEvent) => {
+ if (event.pointerType !== "touch") squeeze(false);
+ };
+ // Rapid clicks would otherwise select the text around the footer.
+ const onMouseDown = (event: MouseEvent) => event.preventDefault();
+
+ const view = new IntersectionObserver(
+ ([entry]) => {
+ if (!entry?.isIntersecting) return;
+ inView = true;
+ view.disconnect();
+ schedule();
+ },
+ { threshold: 0.3 },
+ );
+ const proximity = new IntersectionObserver(
+ ([entry]) => {
+ near = !!entry?.isIntersecting;
+ watchTotal();
+ },
+ { rootMargin: "200px 0px" },
+ );
+ const resize = new ResizeObserver(() => {
+ layout();
+ schedule();
+ });
+ view.observe(canvas);
+ proximity.observe(host);
+ resize.observe(host);
+ document.addEventListener("visibilitychange", watchTotal);
+ canvas.addEventListener("pointermove", onMove);
+ canvas.addEventListener("pointerleave", onLeave);
+ canvas.addEventListener("pointerdown", onDown);
+ canvas.addEventListener("pointerup", onUp);
+ canvas.addEventListener("pointercancel", onUp);
+ canvas.addEventListener("mousedown", onMouseDown);
+ return () => {
+ cancelAnimationFrame(frame);
+ clearTimeout(hideTimer);
+ clearInterval(syncTimer);
+ void sync(true);
+ view.disconnect();
+ proximity.disconnect();
+ resize.disconnect();
+ document.removeEventListener("visibilitychange", watchTotal);
+ canvas.removeEventListener("pointermove", onMove);
+ canvas.removeEventListener("pointerleave", onLeave);
+ canvas.removeEventListener("pointerdown", onDown);
+ canvas.removeEventListener("pointerup", onUp);
+ canvas.removeEventListener("pointercancel", onUp);
+ canvas.removeEventListener("mousedown", onMouseDown);
+ };
+ }, []);
+
+ const [before, after = ""] = label.split("{count}");
+
+ return (
+ <div ref={box} className={cn("relative text-site-ink", className)}>
+ <Container>
+ <div ref={frameRef} className="relative" style={{ aspectRatio: `${VIEW_W} / ${VIEW_H}` }}>
+ <p
+ className={cn(
+ "pointer-events-none absolute right-0 bottom-full mb-2 select-none text-site-small text-site-muted transition-opacity duration-500",
+ total === null && "opacity-0",
+ )}
+ aria-live="off"
+ >
+ {before}
+ <span className="tabular-nums text-site-ink">{new Intl.NumberFormat(locale).format(total ?? 0)}</span>
+ {after}
+ </p>
+ </div>
+ </Container>
+ <canvas ref={canvasRef} aria-hidden className="absolute inset-0 size-full cursor-none select-none" />
+ <svg
+ ref={blowerRef}
+ aria-hidden
+ width="56"
+ height="30"
+ viewBox="-54 -15 56 30"
+ className="pointer-events-none absolute left-0 top-0 overflow-visible opacity-0 transition-opacity duration-150"
+ style={{ transformOrigin: `${BLOWER_TIP.x}px ${BLOWER_TIP.y}px` }}
+ >
+ <path d="M-1 -1.7 L-18 -3.1 L-18 3.1 L-1 1.7 Q0.4 1.7 0.4 0 Q0.4 -1.7 -1 -1.7 Z" fill="currentColor" />
+ <rect x="-23" y="-5" width="6" height="10" rx="1.6" fill="currentColor" />
+ <g ref={bulbRef} style={{ transformBox: "fill-box", transformOrigin: "100% 50%" }}>
+ <ellipse cx="-36" cy="0" rx="14.5" ry="12" fill="currentColor" />
+ <ellipse cx="-40" cy="-5" rx="5" ry="2.4" fill="white" opacity="0.3" />
+ </g>
+ </svg>
+ </div>
+ );
+}
diff --git a/apps/web/features/landing/site/home-page.tsx b/apps/web/features/landing/site/home-page.tsx
new file mode 100644
index 0000000000..6b5684efed
--- /dev/null
+++ b/apps/web/features/landing/site/home-page.tsx
@@ -0,0 +1,384 @@
+"use client";
+
+import { useEffect, useRef, useState, type ComponentType, type CSSProperties } from "react";
+import Link from "@/features/landing/components/landing-link";
+import { ArrowRight, ArrowUpRight, ChevronRight } from "@multica/ui/icons";
+import { cn } from "@multica/ui/lib/utils";
+import { BorderBeam } from "@multica/ui/components/common/border-beam";
+import { FAQSection } from "../components/faq-section";
+import { anchorId } from "../components/changelog-page-client";
+import {
+ ActionLink,
+ Container,
+ actionClassName,
+ Eyebrow,
+ Section,
+ SectionHeader,
+ focusRing,
+} from "./primitives";
+import { HERO_PROVIDERS } from "../components/provider-marks";
+import { docsHrefForLocale, useLocale } from "../i18n";
+import type { HomeDict } from "../i18n/types";
+import { DownloadLink } from "../components/download/download-link";
+import { OSIcon, OS_NAMES } from "../components/download/os-icons";
+import { OtherDownloads } from "../components/download/other-downloads";
+import { useDetectedPlatform } from "../components/download/use-detected-platform";
+import { osOf, resolvePrimary } from "../utils/download-target";
+import type { HomeDownload } from "../utils/home-download";
+import { CUSTOMER_LOGOS, type CustomerLogo } from "./customer-logos";
+import { AutopilotsVisual, ChatVisual, RuntimesVisual, SkillsVisual, WorkflowVisual } from "./demo/feature-visuals";
+import { HeroDemo } from "./demo/hero-demo";
+import { PROVIDER_MARKS, useStoryLoop } from "./demo/mock-kit";
+import { CtaBand, SitePage } from "./site-page";
+import { SITE_PREVIEW } from "./sitemap";
+
+export function HomePage({ download }: { download: HomeDownload }) {
+ return (
+ <SitePage>
+ <Hero download={download} />
+ <LogoWall />
+ <div className="site-rails">
+ <Features />
+ <Agents />
+ <Updates />
+ <FAQSection />
+ <CtaBand />
+ </div>
+ </SitePage>
+ );
+}
+
+/** The pill above the headline; it shows only while there is something to announce. */
+const ANNOUNCEMENT: { label: string; href: string } | null = SITE_PREVIEW
+ ? { label: "Announcement placeholder", href: "/blog" }
+ : null;
+
+function Hero({ download }: { download: HomeDownload }) {
+ const { t } = useLocale();
+ const copy = t.home.hero;
+ const primary = resolvePrimary(useDetectedPlatform(download.platform), download.assets);
+ const os = primary ? osOf(primary.key) : null;
+
+ return (
+ <section className="pt-site-hero pb-site-section">
+ <Container className="max-w-site-wide">
+ {ANNOUNCEMENT ? (
+ <Link
+ href={ANNOUNCEMENT.href}
+ className={cn(
+ "mb-5 inline-flex items-center gap-2 rounded-site-control border border-site-line bg-site-surface py-1 pr-3 pl-1 text-site-small text-site-ink-secondary transition-colors hover:border-site-line-strong",
+ focusRing,
+ )}
+ >
+ <span className="rounded-site-control bg-site-sunken px-2 py-0.5 text-site-ink">New</span>
+ {ANNOUNCEMENT.label}
+ <ArrowRight className="size-3.5 text-site-muted" aria-hidden />
+ </Link>
+ ) : null}
+ <HeroHeadline />
+ <p className="mt-3 max-w-[38rem] text-site-body text-site-muted text-pretty">{copy.lead}</p>
+ <div className="mt-6 flex flex-wrap gap-2.5">
+ {primary && os ? (
+ <DownloadLink downloadKey={primary.key} href={primary.href} handoff className={actionClassName("primary", "lg")}>
+ <OSIcon os={os} size={16} aria-hidden />
+ {copy.downloadFor.replace("{os}", OS_NAMES[os])}
+ </DownloadLink>
+ ) : (
+ <ActionLink href="/download" size="lg">
+ {copy.download}
+ </ActionLink>
+ )}
+ <ActionLink href="/contact-sales" size="lg" tone="secondary">
+ {copy.bookDemo}
+ </ActionLink>
+ </div>
+ {primary ? (
+ <OtherDownloads primary={primary.key} assets={download.assets} sizes={download.sizes} version={download.version} />
+ ) : null}
+ </Container>
+ <Container className="mt-10 max-w-site-wide lg:mt-12">
+ <HeroDemo />
+ </Container>
+ </section>
+ );
+}
+
+const HERO_AGENTS = ["Claude Code", "Codex", "Hermes", "OpenCode"] as const;
+const HERO_AGENT_HOLDS = HERO_AGENTS.map(() => 3600);
+
+function HeroHeadline() {
+ const { t, locale } = useLocale();
+ const { headlinePrefix, headlineSuffix } = t.home.hero;
+ const { ref, step } = useStoryLoop(HERO_AGENT_HOLDS, 0);
+ const measures = useRef<(HTMLSpanElement | null)[]>([]);
+ const [widths, setWidths] = useState<number[] | null>(null);
+
+ useEffect(() => {
+ const items = measures.current.filter((el): el is HTMLSpanElement => el !== null);
+ const measure = () => setWidths(items.map((el) => el.getBoundingClientRect().width));
+ const resize = new ResizeObserver(measure);
+ items.forEach((el) => resize.observe(el));
+ return () => resize.disconnect();
+ }, []);
+
+ return (
+ <div ref={ref}>
+ <h1 className="font-site-display text-site-heading text-site-ink">
+ <span className="sr-only">
+ {headlinePrefix}
+ {new Intl.ListFormat(locale, { type: "disjunction" }).format(HERO_AGENTS)}
+ {headlineSuffix}
+ </span>
+ <span aria-hidden className="block text-balance">
+ {headlinePrefix}
+ <span className="relative inline-flex rounded-full bg-brand/5 px-[0.36em] [--border-beam-width:1.5px]">
+ <span
+ className="inline-grid overflow-hidden transition-[width] duration-500 ease-[cubic-bezier(0.22,1,0.36,1)] motion-reduce:transition-none"
+ style={{ width: widths?.[step] }}
+ >
+ {HERO_AGENTS.map((name, index) => (
+ <span
+ key={name}
+ ref={(el) => {
+ measures.current[index] = el;
+ }}
+ className={cn(
+ "col-start-1 row-start-1 inline-flex w-max items-center gap-[0.2em] whitespace-nowrap transition-[opacity,filter] ease-out motion-reduce:transition-none",
+ index === step ? "opacity-100 blur-none delay-150 duration-300" : "opacity-0 blur-[3px] duration-150",
+ )}
+ >
+ <ProviderMark name={name} />
+ {name}
+ </span>
+ ))}
+ </span>
+ <BorderBeam />
+ </span>
+ {headlineSuffix}
+ </span>
+ </h1>
+ </div>
+ );
+}
+
+function ProviderMark({ name }: { name: string }) {
+ const Mark = PROVIDER_MARKS.get(name);
+ return Mark ? <Mark className="size-[0.72em] shrink-0" /> : null;
+}
+
+/** Logos share one visual area, so wide wordmarks and square seals read at the same weight. */
+const LOGO_AREA = 2600;
+
+function logoMaskStyle({ logo, ratio }: CustomerLogo): CSSProperties {
+ const height = Math.min(40, Math.max(18, Math.sqrt(LOGO_AREA / ratio)));
+ const mask = `url(/images/logos/${logo}.webp) center / 100% 100% no-repeat`;
+ return {
+ "--logo-h": `calc(${height.toFixed(1)}px * var(--logo-scale))`,
+ aspectRatio: ratio,
+ mask,
+ WebkitMask: mask,
+ } as CSSProperties;
+}
+
+function LogoWall() {
+ const { t } = useLocale();
+ return (
+ <section aria-labelledby="logo-wall-title" className="pb-site-section">
+ <Container className="max-w-site-wide">
+ <h2 id="logo-wall-title" className="text-center text-site-small text-site-muted">
+ {t.home.logoWall.title}
+ </h2>
+ <div className="group/wall mt-6 overflow-hidden mask-x-from-85% mask-x-to-100% motion-reduce:mask-none">
+ <div className="flex w-max animate-site-marquee group-hover/wall:[animation-play-state:paused] motion-reduce:w-auto motion-reduce:animate-none">
+ {[0, 1].map((copy) => (
+ <ul
+ key={copy}
+ aria-hidden={copy === 1 || undefined}
+ className={cn(
+ "flex shrink-0 items-center gap-x-8 pr-8 sm:gap-x-12 sm:pr-12 motion-reduce:w-full motion-reduce:flex-wrap motion-reduce:justify-center motion-reduce:gap-y-4 motion-reduce:pr-0 sm:motion-reduce:gap-y-6",
+ copy === 1 && "motion-reduce:hidden",
+ )}
+ >
+ {CUSTOMER_LOGOS.map((logo) => (
+ <li key={logo.name} className="flex h-10 items-center">
+ <span
+ role="img"
+ aria-label={logo.name}
+ style={logoMaskStyle(logo)}
+ className="block h-(--logo-h) bg-site-muted transition-colors duration-200 [--logo-scale:0.8] hover:bg-site-ink sm:[--logo-scale:1]"
+ />
+ </li>
+ ))}
+ </ul>
+ ))}
+ </div>
+ </div>
+ </Container>
+ </section>
+ );
+}
+
+type FeatureId = keyof HomeDict["features"]["items"];
+
+const FEATURES: { id: FeatureId; visual: ComponentType }[] = [
+ { id: "runtimes", visual: RuntimesVisual },
+ { id: "workflows", visual: WorkflowVisual },
+ { id: "chat", visual: ChatVisual },
+ { id: "autopilots", visual: AutopilotsVisual },
+ { id: "skills", visual: SkillsVisual },
+];
+
+function Features() {
+ const { t } = useLocale();
+ return (
+ <Section>
+ <Container>
+ <SectionHeader title={t.home.features.title} />
+ <div className="mt-site-block grid gap-x-site-grid-col gap-y-site-grid-row md:grid-cols-2">
+ {FEATURES.slice(0, 2).map((feature) => (
+ <FeatureCard key={feature.id} {...feature} />
+ ))}
+ </div>
+ <div className="mt-site-grid-row grid gap-x-site-grid-col gap-y-site-grid-row md:grid-cols-3">
+ {FEATURES.slice(2).map((feature) => (
+ <FeatureCard key={feature.id} {...feature} />
+ ))}
+ </div>
+ </Container>
+ </Section>
+ );
+}
+
+const POPULAR_AGENTS = ["Claude Code", "Codex", "Cursor", "GitHub Copilot", "OpenCode", "Hermes", "Antigravity", "Qwen Code"];
+
+function Agents() {
+ const agents = POPULAR_AGENTS.map((name) => HERO_PROVIDERS.find((provider) => provider.name === name)!);
+ const { locale, t } = useLocale();
+ const copy = t.home.agents;
+ const docsHref = docsHrefForLocale(locale);
+ return (
+ <Section>
+ <Container>
+ <h2 className="max-w-[44rem] font-site-display text-site-heading text-balance">
+ <span className="block text-site-muted">{copy.lead}</span>
+ <span className="block text-site-ink">{copy.title}</span>
+ </h2>
+ <ul className="mt-site-block grid grid-cols-2 gap-y-8 md:grid-cols-4 md:gap-y-10">
+ {agents.map(({ name, Mark, size }, index) => (
+ <li
+ key={name}
+ className={cn(
+ "flex flex-col gap-8 border-site-line px-4 md:gap-10 md:px-5",
+ index % 2 === 1 && "border-l",
+ index % 4 !== 0 && "md:border-l",
+ index % 4 === 2 && "max-md:border-l-0",
+ )}
+ >
+ <span className="flex size-7 items-center text-site-muted">
+ <Mark className={size ?? "size-6"} />
+ </span>
+ <span className="text-site-body text-site-muted">{name}</span>
+ </li>
+ ))}
+ </ul>
+ <ActionLink href={`${docsHref}/providers`} tone="ghost" className="mt-8 ml-1 md:mt-10 md:ml-2">
+ {copy.all}
+ <ArrowUpRight className="size-4" aria-hidden />
+ </ActionLink>
+ </Container>
+ </Section>
+ );
+}
+
+const UPDATE_COUNT = 7;
+
+/**
+ * Release titles list their changes ("A, B, and C", or "A、B、C"); the home
+ * page leads with the first and counts the rest.
+ */
+function releaseHeadline(title: string) {
+ const [headline = title, ...rest] = title.split(/, (?:and )?|、/);
+ return { headline, more: rest.length };
+}
+
+function Updates() {
+ const { t, locale } = useLocale();
+ const copy = t.home.updates;
+ const releases = t.changelog.entries.slice(0, UPDATE_COUNT);
+ const latest = releases[0];
+ const day = new Intl.DateTimeFormat(locale, { month: "short", day: "numeric", timeZone: "UTC" });
+ const dateLabel = (date: string) => day.format(new Date(`${date}T00:00:00Z`));
+ if (!latest) return null;
+
+ return (
+ <Section>
+ <Container className="grid gap-site-block lg:grid-cols-[minmax(0,1fr)_minmax(0,2fr)] lg:gap-16">
+ <div className="flex flex-col justify-between gap-site-block">
+ <SectionHeader eyebrow={copy.eyebrow} title={copy.title} />
+ <Link
+ href={`/changelog#${anchorId(latest.version)}`}
+ data-frost="changelog"
+ className={cn(
+ "site-frost group hidden max-w-[20rem] flex-col gap-8 rounded-site-card p-5 lg:flex",
+ focusRing,
+ )}
+ >
+ <span className="relative text-site-small text-site-ink-secondary">{copy.latest} · {dateLabel(latest.date)}</span>
+ <span className="relative">
+ <span className="block font-site-display text-site-heading text-site-ink">v{latest.version}</span>
+ <span className="mt-1 block text-site-body text-site-ink-secondary">{releaseHeadline(latest.title).headline}</span>
+ </span>
+ </Link>
+ </div>
+ <div>
+ <ul className="divide-y divide-site-line border-y border-site-line">
+ {releases.map((release) => (
+ <li key={release.version}>
+ <Link
+ href={`/changelog#${anchorId(release.version)}`}
+ className={cn(
+ "group grid grid-cols-[4rem_minmax(0,1fr)_auto] items-baseline gap-4 py-4 text-site-body sm:grid-cols-[5rem_minmax(0,1fr)_4rem_auto]",
+ focusRing,
+ )}
+ >
+ <span className="text-site-muted tabular-nums">{dateLabel(release.date)}</span>
+ <span className="line-clamp-2 text-site-ink sm:truncate">
+ {releaseHeadline(release.title).headline}
+ {releaseHeadline(release.title).more > 0 ? (
+ <span className="text-site-muted">
+ {" "}
+ {copy.more.replace("{count}", String(releaseHeadline(release.title).more))}
+ </span>
+ ) : null}
+ </span>
+ <span className="text-site-small text-site-muted tabular-nums max-sm:hidden">v{release.version}</span>
+ <ChevronRight
+ aria-hidden
+ className="size-4 self-center text-site-muted transition-transform group-hover:translate-x-0.5"
+ />
+ </Link>
+ </li>
+ ))}
+ </ul>
+ <ActionLink href="/changelog" tone="ghost" className="mt-6 -ml-3">
+ {copy.all}
+ <ArrowRight className="size-4" aria-hidden />
+ </ActionLink>
+ </div>
+ </Container>
+ </Section>
+ );
+}
+
+function FeatureCard({ id, visual: Visual }: (typeof FEATURES)[number]) {
+ const { title, body, alt } = useLocale().t.home.features.items[id];
+ return (
+ <div>
+ <div role="img" aria-label={alt} data-frost={id} className="site-frost aspect-[4/3] rounded-site-panel">
+ <Visual />
+ </div>
+ <h3 className="mt-4 text-site-card text-site-ink">{title}</h3>
+ <p className="mt-site-stack max-w-[32rem] text-site-body text-site-muted">{body}</p>
+ </div>
+ );
+}
diff --git a/apps/web/features/landing/site/locale-suggestion.tsx b/apps/web/features/landing/site/locale-suggestion.tsx
new file mode 100644
index 0000000000..82d2053237
--- /dev/null
+++ b/apps/web/features/landing/site/locale-suggestion.tsx
@@ -0,0 +1,79 @@
+"use client";
+
+import { useEffect, useState } from "react";
+import { matchLocale } from "@multica/core/i18n";
+import { createBrowserCookieLocaleAdapter } from "@multica/core/i18n/browser";
+import { XIcon } from "@multica/ui/icons";
+import { cn } from "@multica/ui/lib/utils";
+import { HTML_LANG } from "@/lib/html-lang";
+import { landingPathLocale, type LandingPathLocale } from "@/lib/landing-locale-path";
+import { createLandingDict } from "../i18n/dictionary";
+import { useLocale } from "../i18n";
+import { Container, focusRing } from "./primitives";
+
+const DISMISSED_KEY = "multica-locale-suggestion-dismissed";
+
+function wasDismissed() {
+ try {
+ return window.localStorage.getItem(DISMISSED_KEY) !== null;
+ } catch {
+ return false;
+ }
+}
+
+/**
+ * A bar above the English pages offering the visitor's browser language when
+ * the site is translated into it. It only asks: the English URL stays English
+ * until the visitor picks a language, here or in the footer. It shows to
+ * visitors who have not picked one and have not dismissed it, and never in
+ * the server render, so crawlers and shared links always get the same page.
+ */
+export function LocaleSuggestion() {
+ const { locale, setLocale } = useLocale();
+ const [target, setTarget] = useState<Exclude<LandingPathLocale, "en"> | null>(null);
+ const onEnglishUrl = landingPathLocale(locale) === "en";
+
+ useEffect(() => {
+ if (!onEnglishUrl) return;
+ const adapter = createBrowserCookieLocaleAdapter();
+ if (adapter.getUserChoice() || wasDismissed()) return;
+ const preferred = landingPathLocale(matchLocale(adapter.getSystemPreferences()));
+ if (preferred !== "en") setTarget(preferred);
+ }, [onEnglishUrl]);
+
+ if (!target || !onEnglishUrl) return null;
+ const copy = createLandingDict(target).site.localeSuggestion;
+
+ return (
+ <div lang={HTML_LANG[target]} className="border-b border-site-rule bg-site-hover text-site-small text-site-ink">
+ <Container className="relative flex min-h-10 items-center justify-center gap-x-3 gap-y-1 py-2 pr-12 max-sm:flex-wrap">
+ <p className="text-site-muted">{copy.message}</p>
+ <button
+ type="button"
+ onClick={() => setLocale(target)}
+ className={cn("rounded-sm font-medium underline underline-offset-4 hover:text-site-ink-secondary", focusRing)}
+ >
+ {copy.action}
+ </button>
+ <button
+ type="button"
+ aria-label={copy.dismiss}
+ onClick={() => {
+ try {
+ window.localStorage.setItem(DISMISSED_KEY, "1");
+ } catch {
+ // Without storage the bar comes back on the next visit.
+ }
+ setTarget(null);
+ }}
+ className={cn(
+ "absolute right-site-gutter inline-flex size-7 items-center justify-center rounded-site-control text-site-muted transition-colors hover:bg-site-canvas hover:text-site-ink",
+ focusRing,
+ )}
+ >
+ <XIcon aria-hidden className="size-4" />
+ </button>
+ </Container>
+ </div>
+ );
+}
diff --git a/apps/web/features/landing/site/mobile-page.tsx b/apps/web/features/landing/site/mobile-page.tsx
new file mode 100644
index 0000000000..241db1e082
--- /dev/null
+++ b/apps/web/features/landing/site/mobile-page.tsx
@@ -0,0 +1,196 @@
+"use client";
+
+import { ArrowUpRight } from "@multica/ui/icons";
+import { useDashboardCtaHref } from "../utils/use-dashboard-cta";
+import { docsHrefForLocale, useLocale } from "../i18n";
+import { ActionLink, Container, Section, SectionHeader } from "./primitives";
+import {
+ ChatTabVisual,
+ InboxTabVisual,
+ MobileScene,
+ MoreTabVisual,
+ MyIssuesTabVisual,
+ RunsVisual,
+} from "./demo/mobile-visuals";
+import { CtaBand, SitePage } from "./site-page";
+import { CheckList, CodeBlock, SurfaceHero, WalkthroughTabs, type Walkthrough } from "./surface-kit";
+
+export function MobilePage() {
+ return (
+ <SitePage>
+ <Hero />
+ <div className="site-rails">
+ <Tabs />
+ <Runs />
+ <Everything />
+ <Install />
+ <CtaBand title="Keep up with your agents from anywhere" lead="Build Multica for iPhone and sign in with the account you already use." />
+ </div>
+ </SitePage>
+ );
+}
+
+function useMobileDocsHref() {
+ const { locale } = useLocale();
+ return `${docsHrefForLocale(locale)}/mobile-app`;
+}
+
+function Hero() {
+ const ctaHref = useDashboardCtaHref();
+ return (
+ <SurfaceHero
+ eyebrow="Multica for iPhone"
+ title="Your team’s work, in your pocket."
+ subtitle="Answer an agent from anywhere."
+ lead="The iOS app opens the same workspace as the web and Desktop. Reply to an agent waiting on you, follow its runs, or start a chat, wherever you are."
+ actions={
+ <>
+ <ActionLink href="#install" size="lg">
+ Install on iPhone
+ </ActionLink>
+ <ActionLink href={ctaHref} size="lg" tone="secondary">
+ Open the web app
+ </ActionLink>
+ </>
+ }
+ frost="mobile"
+ label="Three iPhones running Multica. On the left, the inbox with Backend Agent’s question unread. In front, issue ACM-151, where Backend Agent asks to apply a migration and Leo Park says yes. On the right, a chat with Backend Agent about shipping the export fix."
+ >
+ <MobileScene />
+ </SurfaceHero>
+ );
+}
+
+const TABS: Walkthrough[] = [
+ {
+ title: "Inbox",
+ body: "Mentions, assignments, status changes, and agents asking for you, in one list. Open one to answer on the spot.",
+ visual: InboxTabVisual,
+ },
+ {
+ title: "My Issues",
+ body: "What’s assigned to you, what you created, and what your agents are on, filtered by status, priority, or project.",
+ visual: MyIssuesTabVisual,
+ },
+ {
+ title: "Chat",
+ body: "Talk to any agent in the workspace, send it images and files, and pick up an earlier chat.",
+ visual: ChatTabVisual,
+ },
+ {
+ title: "More",
+ body: "Pinned issues, every issue and project, account settings, and a switch to your other workspaces.",
+ visual: MoreTabVisual,
+ },
+];
+
+function Tabs() {
+ return (
+ <Section>
+ <Container>
+ <SectionHeader title="Four tabs, the whole workspace" />
+ <div className="mt-site-block">
+ <WalkthroughTabs steps={TABS} numbered={false} fill />
+ </div>
+ </Container>
+ </Section>
+ );
+}
+
+function Runs() {
+ return (
+ <Section>
+ <Container className="grid items-center gap-site-block lg:grid-cols-2 lg:gap-16">
+ <div>
+ <h2 className="font-site-display text-site-heading text-balance">
+ <span className="block text-site-ink">See every run on an issue.</span>
+ <span className="block text-site-muted">Stop one that’s off track.</span>
+ </h2>
+ <p className="mt-3 max-w-[30rem] text-site-body text-site-muted text-pretty">
+ When an agent is working, the issue says so. Tap through to its runs, active and past, and cancel one if the
+ work has gone the wrong way: the agent stops after its current step.
+ </p>
+ </div>
+ <div
+ role="img"
+ aria-label="Agent Runs for ACM-151 on iPhone: Backend Agent’s comment run is running and QA Agent’s run is queued, each with a Cancel button, above three past runs."
+ data-frost="mobile"
+ className="site-frost relative h-[26rem] overflow-hidden rounded-site-panel sm:h-[30rem]"
+ >
+ <div aria-hidden className="absolute inset-0">
+ <RunsVisual />
+ </div>
+ </div>
+ </Container>
+ </Section>
+ );
+}
+
+function Everything() {
+ return (
+ <Section>
+ <Container className="grid gap-site-block lg:grid-cols-[minmax(0,1fr)_minmax(0,2fr)] lg:gap-16">
+ <SectionHeader
+ title="More than a viewer"
+ lead="Most of what you do in Multica during the day works from the phone."
+ />
+ <div className="grid gap-x-10 gap-y-3 sm:grid-cols-2">
+ <CheckList
+ items={[
+ "Create issues and @-mention people, agents, or squads",
+ "Comment, reply in threads, and react",
+ "Change status, priority, assignee, and due date",
+ "Resolve a thread once it’s settled",
+ ]}
+ />
+ <CheckList
+ items={[
+ "Search issues and projects",
+ "Pin the issues you keep coming back to",
+ "Create projects and attach repositories",
+ "Light or dark, in English or Simplified Chinese",
+ ]}
+ />
+ </div>
+ </Container>
+ </Section>
+ );
+}
+
+const BUILD_COMMANDS = `git clone https://github.com/multica-ai/multica.git
+cd multica
+pnpm install
+pnpm ios:mobile:device:prod:release`;
+
+function Install() {
+ const docsHref = useMobileDocsHref();
+ return (
+ <Section id="install" className="scroll-mt-site-header">
+ <Container className="grid items-start gap-site-block lg:grid-cols-2 lg:gap-16">
+ <div>
+ <h2 className="font-site-display text-site-heading text-balance">
+ <span className="block text-site-ink">Not on the App Store yet.</span>
+ <span className="block text-site-muted">Build it on your Mac today.</span>
+ </h2>
+ <p className="mt-3 max-w-[30rem] text-site-body text-site-muted text-pretty">
+ With Xcode and a free Apple ID, one command builds the app and installs it on an iPhone plugged into your
+ Mac. It connects to Multica Cloud, or to your own server.
+ </p>
+ <CheckList
+ className="mt-6"
+ items={[
+ "A free Apple ID signs the app for 7 days. Rerun the command to renew it",
+ "Your data lives on the server, so reinstalling never loses anything",
+ "No Android app yet",
+ ]}
+ />
+ <ActionLink href={docsHref} tone="ghost" className="mt-6 -ml-3">
+ Installation guide
+ <ArrowUpRight className="size-4" aria-hidden />
+ </ActionLink>
+ </div>
+ <CodeBlock variants={[{ label: "Terminal", code: BUILD_COMMANDS }]} />
+ </Container>
+ </Section>
+ );
+}
diff --git a/apps/web/features/landing/site/pricing-page.tsx b/apps/web/features/landing/site/pricing-page.tsx
new file mode 100644
index 0000000000..a2627ff576
--- /dev/null
+++ b/apps/web/features/landing/site/pricing-page.tsx
@@ -0,0 +1,62 @@
+import { Check } from "@multica/ui/icons";
+import { cn } from "@multica/ui/lib/utils";
+import { ActionLink, Container, Section } from "./primitives";
+import { CtaBand, PageHero, SitePage } from "./site-page";
+import { PLACEHOLDER_PAGES } from "./sitemap";
+
+const PLANS = [
+ { name: "Free", price: "$0", cadence: "Placeholder", cta: { label: "Get started", href: "/login" } },
+ { name: "Team", price: "$—", cadence: "per seat / month", cta: { label: "Start trial", href: "/login" }, featured: true },
+ { name: "Business", price: "$—", cadence: "per seat / month", cta: { label: "Start trial", href: "/login" } },
+ { name: "Enterprise", price: "Custom", cadence: "Annual contract", cta: { label: "Contact sales", href: "/contact-sales" } },
+];
+
+export function PricingPage() {
+ const page = PLACEHOLDER_PAGES.pricing;
+
+ return (
+ <SitePage>
+ <PageHero eyebrow="Pricing" title={page.title} lead="Placeholder: plans and pricing are still being decided." />
+ <Container className="pb-site-section">
+ <div className="grid gap-site-grid-col md:grid-cols-2 xl:grid-cols-4">
+ {PLANS.map((plan) => (
+ <div
+ key={plan.name}
+ className={cn(
+ "flex flex-col rounded-site-card border bg-site-surface p-6",
+ plan.featured ? "border-site-ink" : "border-site-line",
+ )}
+ >
+ <h2 className="text-site-card text-site-ink">{plan.name}</h2>
+ <p className="mt-6 font-site-display text-site-title text-site-ink tabular-nums">{plan.price}</p>
+ <p className="mt-1 text-site-small text-site-muted">{plan.cadence}</p>
+ <ActionLink
+ href={plan.cta.href}
+ tone={plan.featured ? "primary" : "secondary"}
+ className="mt-6"
+ >
+ {plan.cta.label}
+ </ActionLink>
+ <ul className="mt-8 flex flex-col gap-2.5 border-t border-site-line pt-6">
+ {[0, 1, 2, 3].map((index) => (
+ <li key={index} className="flex items-center gap-2.5 text-site-body text-site-ink-secondary">
+ <Check className="size-4 text-site-muted" aria-hidden />
+ Feature placeholder
+ </li>
+ ))}
+ </ul>
+ </div>
+ ))}
+ </div>
+ </Container>
+ <Section>
+ <Container>
+ <div className="rounded-site-card border border-dashed border-site-line-strong p-10 text-site-body text-site-muted">
+ Placeholder: plan comparison table.
+ </div>
+ </Container>
+ </Section>
+ <CtaBand />
+ </SitePage>
+ );
+}
diff --git a/apps/web/features/landing/site/primitives.tsx b/apps/web/features/landing/site/primitives.tsx
new file mode 100644
index 0000000000..eef8fae64c
--- /dev/null
+++ b/apps/web/features/landing/site/primitives.tsx
@@ -0,0 +1,167 @@
+import type { ComponentProps, CSSProperties, ReactNode } from "react";
+import Link from "@/features/landing/components/landing-link";
+import { ArrowUpRight } from "@multica/ui/icons";
+import { cn } from "@multica/ui/lib/utils";
+
+export const focusRing =
+ "outline-none focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-site-ink";
+
+export function Container({ className, ...props }: ComponentProps<"div">) {
+ return (
+ <div
+ className={cn("mx-auto w-full max-w-site px-site-gutter", className)}
+ {...props}
+ />
+ );
+}
+
+/** Page band: full-bleed hairline on top, shared vertical rhythm inside. */
+export function Section({ className, ...props }: ComponentProps<"section">) {
+ return (
+ <section
+ className={cn("border-t border-site-rule py-site-section", className)}
+ {...props}
+ />
+ );
+}
+
+export function SectionHeader({
+ eyebrow,
+ title,
+ lead,
+ className,
+}: {
+ eyebrow?: string;
+ title: ReactNode;
+ lead?: ReactNode;
+ className?: string;
+}) {
+ return (
+ <div className={cn("max-w-[44rem]", className)}>
+ {eyebrow ? <Eyebrow>{eyebrow}</Eyebrow> : null}
+ <h2 className={cn("font-site-display text-site-heading text-site-ink text-balance", eyebrow && "mt-3")}>
+ {title}
+ </h2>
+ {lead ? (
+ <p className="mt-4 max-w-[36rem] text-site-body text-site-muted text-pretty">{lead}</p>
+ ) : null}
+ </div>
+ );
+}
+
+export function Eyebrow({ className, ...props }: ComponentProps<"p">) {
+ return (
+ <p
+ className={cn("font-site-mono text-site-label text-site-muted uppercase", className)}
+ {...props}
+ />
+ );
+}
+
+const actionTone = {
+ primary: "bg-site-inverse text-site-inverse-ink hover:bg-site-ink-secondary",
+ secondary: "border border-site-line-strong text-site-ink hover:bg-site-hover",
+ ghost: "text-site-ink hover:bg-site-hover",
+} as const;
+
+const actionSize = {
+ md: "h-site-control-sm px-3 text-site-small",
+ lg: "h-site-control px-5 text-site-body",
+} as const;
+
+export function actionClassName(
+ tone: keyof typeof actionTone = "primary",
+ size: keyof typeof actionSize = "md",
+) {
+ return cn(
+ "inline-flex shrink-0 items-center justify-center gap-1.5 rounded-site-control whitespace-nowrap transition-colors",
+ focusRing,
+ actionTone[tone],
+ actionSize[size],
+ );
+}
+
+export function isExternalHref(href: string) {
+ return /^https?:\/\//.test(href);
+}
+
+export function ActionLink({
+ href,
+ tone,
+ size,
+ className,
+ children,
+ ...props
+}: Omit<ComponentProps<typeof Link>, "href"> & {
+ href: string;
+ tone?: keyof typeof actionTone;
+ size?: keyof typeof actionSize;
+}) {
+ return (
+ <Link
+ href={href}
+ className={cn(actionClassName(tone, size), className)}
+ {...(isExternalHref(href) ? { target: "_blank", rel: "noreferrer" } : {})}
+ {...props}
+ >
+ {children}
+ </Link>
+ );
+}
+
+/** Text link used in menus and the footer; external targets get an arrow. */
+export function SiteTextLink({
+ href,
+ external,
+ className,
+ children,
+ ...props
+}: Omit<ComponentProps<typeof Link>, "href"> & { href: string; external?: boolean }) {
+ return (
+ <Link
+ href={href}
+ className={cn("inline-flex items-center gap-1 rounded-sm transition-colors", focusRing, className)}
+ {...(external ? { target: "_blank", rel: "noreferrer" } : {})}
+ {...props}
+ >
+ {children}
+ {external ? (
+ <ArrowUpRight className="size-3.5 text-site-muted" aria-hidden />
+ ) : null}
+ </Link>
+ );
+}
+
+/**
+ * Frame for product imagery. Pass a screenshot or a token-built product mockup
+ * as children; without children it renders a labelled placeholder so layouts
+ * can be reviewed before the art exists.
+ */
+export function ProductFrame({
+ label,
+ aspectRatio,
+ className,
+ children,
+}: {
+ label: string;
+ aspectRatio?: CSSProperties["aspectRatio"];
+ className?: string;
+ children?: ReactNode;
+}) {
+ return (
+ <div
+ role={children ? undefined : "img"}
+ aria-label={children ? undefined : label}
+ className={cn("site-visual rounded-site-panel", className)}
+ style={{ aspectRatio }}
+ >
+ {children ?? (
+ <div className="absolute inset-[7%] flex items-end rounded-site-card border border-dashed border-site-line-strong p-4">
+ <span className="rounded-site-inner border border-site-line bg-site-surface px-2 py-1 font-site-mono text-site-label text-site-muted uppercase">
+ {label}
+ </span>
+ </div>
+ )}
+ </div>
+ );
+}
diff --git a/apps/web/features/landing/site/site-footer.tsx b/apps/web/features/landing/site/site-footer.tsx
new file mode 100644
index 0000000000..5039d8b35b
--- /dev/null
+++ b/apps/web/features/landing/site/site-footer.tsx
@@ -0,0 +1,124 @@
+"use client";
+
+import { useMemo } from "react";
+import Link from "@/features/landing/components/landing-link";
+import { Globe } from "@multica/ui/icons";
+import { Select, SelectContent, SelectItem, SelectTrigger, SelectValue } from "@multica/ui/components/ui/select";
+import { cn } from "@multica/ui/lib/utils";
+import { docsHrefForLocale, localeLabels, locales, useLocale, type Locale } from "../i18n";
+import {
+ DiscordMark,
+ GitHubMark,
+ XMark,
+ discordUrl,
+ githubUrl,
+ twitterUrl,
+} from "../components/shared";
+import { MulticaWordmark } from "@multica/ui/components/common/multica-wordmark";
+import { FooterWordmark } from "./footer-wordmark";
+import { Container, SiteTextLink, focusRing } from "./primitives";
+import { buildFooterGroups } from "./sitemap";
+
+const SOCIAL_LINKS = [
+ { label: "GitHub", href: githubUrl, Mark: GitHubMark },
+ { label: "Discord", href: discordUrl, Mark: DiscordMark },
+ { label: "X", href: twitterUrl, Mark: XMark },
+];
+
+const LANGUAGE_ITEMS: { value: Locale; label: string }[] = locales.map((value) => ({ value, label: localeLabels[value] }));
+
+/** One column per group on wide screens, so a short footer doesn't leave empty columns. */
+const WIDE_COLUMNS: Record<number, string> = { 3: "lg:grid-cols-3", 4: "lg:grid-cols-4" };
+
+export function SiteFooter() {
+ const { locale, setLocale, t } = useLocale();
+ const labels = t.site.footer;
+ const groups = useMemo(() => buildFooterGroups(docsHrefForLocale(locale), t.site.nav), [locale, t]);
+
+ return (
+ <footer className="border-t border-site-rule bg-site-canvas text-site-ink">
+ <Container className="grid gap-site-block pt-site-section lg:grid-cols-[minmax(0,1fr)_minmax(0,3fr)] lg:gap-16">
+ <div>
+ <Link href="/" aria-label={t.site.header.home} className={cn("inline-flex items-center rounded-sm", focusRing)}>
+ <MulticaWordmark aria-hidden className="h-6 text-site-ink" />
+ </Link>
+ <p className="mt-4 max-w-[18rem] text-site-small text-site-muted">
+ {labels.tagline}
+ </p>
+ <ul className="mt-6 flex items-center gap-1">
+ {SOCIAL_LINKS.map(({ label, href, Mark }) => (
+ <li key={label}>
+ <Link
+ href={href}
+ target="_blank"
+ rel="noreferrer"
+ aria-label={label}
+ className={cn(
+ "inline-flex size-8 items-center justify-center rounded-site-control text-site-muted transition-colors hover:bg-site-hover hover:text-site-ink",
+ focusRing,
+ )}
+ >
+ <Mark className="size-4" />
+ </Link>
+ </li>
+ ))}
+ </ul>
+ <Select
+ items={LANGUAGE_ITEMS}
+ value={locale}
+ onValueChange={(value) => {
+ if (value) setLocale(value);
+ }}
+ >
+ <SelectTrigger
+ aria-label={labels.language}
+ className={cn(
+ "mt-6 h-site-control-sm gap-2 rounded-site-control border-site-line pr-2 pl-2.5 text-site-small text-site-muted transition-colors hover:border-site-line-strong hover:text-site-ink data-popup-open:text-site-ink",
+ focusRing,
+ )}
+ >
+ <Globe aria-hidden className="size-4" />
+ <SelectValue />
+ </SelectTrigger>
+ <SelectContent className="landing-light min-w-40" alignItemWithTrigger={false} side="top" align="start">
+ {LANGUAGE_ITEMS.map((item) => (
+ <SelectItem key={item.value} value={item.value}>
+ {item.label}
+ </SelectItem>
+ ))}
+ </SelectContent>
+ </Select>
+ <p className="mt-4 text-site-small text-site-muted">
+ {labels.copyright.replace("{year}", String(new Date().getFullYear()))}
+ </p>
+ </div>
+
+ <nav
+ aria-label={labels.navigation}
+ className={cn("grid grid-cols-2 gap-x-4 gap-y-site-block sm:grid-cols-3", WIDE_COLUMNS[groups.length] ?? "lg:grid-cols-5")}
+ >
+ {groups.map((group) => (
+ <div key={group.title}>
+ <p className="text-site-small text-site-ink">{group.title}</p>
+ <ul className="mt-2 flex flex-col gap-1">
+ {group.links.map((link) => (
+ <li key={link.label}>
+ <SiteTextLink
+ href={link.href}
+ external={link.external}
+ className="py-0.5 text-site-small text-site-muted hover:text-site-ink"
+ >
+ {link.label}
+ </SiteTextLink>
+ </li>
+ ))}
+ </ul>
+ </div>
+ ))}
+ </nav>
+ </Container>
+
+ <FooterWordmark className="pt-site-section" label={labels.starTurns} locale={locale} />
+ </footer>
+ );
+}
diff --git a/apps/web/features/landing/site/site-header.tsx b/apps/web/features/landing/site/site-header.tsx
new file mode 100644
index 0000000000..28f8959c91
--- /dev/null
+++ b/apps/web/features/landing/site/site-header.tsx
@@ -0,0 +1,79 @@
+"use client";
+
+import { useEffect, useRef, useState } from "react";
+import Link from "@/features/landing/components/landing-link";
+import { cn } from "@multica/ui/lib/utils";
+import { useAuthStore } from "@multica/core/auth";
+import { useLocale } from "../i18n";
+import { useDashboardCtaHref } from "../utils/use-dashboard-cta";
+import { formatStarCount, useGithubStars } from "../utils/use-github-stars";
+import { GitHubMark, githubUrl } from "../components/shared";
+import { MulticaWordmark } from "@multica/ui/components/common/multica-wordmark";
+import { ActionLink, focusRing } from "./primitives";
+
+export function SiteHeader() {
+ const { t } = useLocale();
+ const labels = t.site.header;
+ const user = useAuthStore((s) => s.user);
+ const ctaHref = useDashboardCtaHref();
+ const stars = useGithubStars();
+
+ const [scrolled, setScrolled] = useState(false);
+ const sentinelRef = useRef<HTMLDivElement>(null);
+
+ useEffect(() => {
+ const sentinel = sentinelRef.current;
+ if (!sentinel) return;
+ const observer = new IntersectionObserver(([entry]) =>
+ setScrolled(!entry?.isIntersecting),
+ );
+ observer.observe(sentinel);
+ return () => observer.disconnect();
+ }, []);
+
+ return (
+ <>
+ <div ref={sentinelRef} aria-hidden className="h-0" />
+ <header
+ className={cn(
+ "sticky top-0 z-40 border-b bg-site-canvas transition-colors",
+ scrolled ? "border-site-line" : "border-transparent",
+ )}
+ >
+ <div className="mx-auto flex h-site-header w-full max-w-site-wide items-center justify-between gap-4 px-site-gutter">
+ <Link
+ href="/"
+ aria-label={labels.home}
+ className={cn("flex shrink-0 items-center rounded-sm", focusRing)}
+ >
+ <MulticaWordmark aria-hidden className="h-6 text-site-ink" />
+ </Link>
+
+ <div className="flex shrink-0 items-center gap-1.5">
+ <Link
+ href={githubUrl}
+ target="_blank"
+ rel="noreferrer"
+ aria-label={stars != null ? labels.githubStars.replace("{count}", formatStarCount(stars)) : "GitHub"}
+ className={cn(
+ "hidden h-site-control-sm items-center gap-1 rounded-site-control px-3 text-site-small text-site-ink transition-colors hover:bg-site-hover md:inline-flex",
+ focusRing,
+ )}
+ >
+ <GitHubMark className="size-4" />
+ {stars != null ? (
+ <span className="text-site-muted tabular-nums">{formatStarCount(stars)}</span>
+ ) : null}
+ </Link>
+ {user ? null : (
+ <ActionLink href="/login" tone="secondary">
+ {labels.logIn}
+ </ActionLink>
+ )}
+ <ActionLink href={ctaHref}>{user ? labels.dashboard : labels.getStarted}</ActionLink>
+ </div>
+ </div>
+ </header>
+ </>
+ );
+}
diff --git a/apps/web/features/landing/site/site-page.tsx b/apps/web/features/landing/site/site-page.tsx
new file mode 100644
index 0000000000..ef577a691d
--- /dev/null
+++ b/apps/web/features/landing/site/site-page.tsx
@@ -0,0 +1,144 @@
+import type { ReactNode } from "react";
+import Link from "@/features/landing/components/landing-link";
+import { cn } from "@multica/ui/lib/utils";
+import {
+ ActionLink,
+ Container,
+ Eyebrow,
+ ProductFrame,
+ Section,
+ SectionHeader,
+ focusRing,
+} from "./primitives";
+import { CtaBand } from "./cta-band";
+import { SiteFooter } from "./site-footer";
+import { SiteHeader } from "./site-header";
+import type { PageGroup, SitePage as SitePageEntry } from "./sitemap";
+
+export { CtaBand };
+
+export function SitePage({ children }: { children: ReactNode }) {
+ return (
+ <>
+ <SiteHeader />
+ <main className="bg-site-canvas text-site-ink">{children}</main>
+ <SiteFooter />
+ </>
+ );
+}
+
+export function PageHero({
+ eyebrow,
+ title,
+ lead,
+ actions,
+}: {
+ eyebrow?: string;
+ title: ReactNode;
+ lead?: ReactNode;
+ actions?: ReactNode;
+}) {
+ return (
+ <Container className="pt-site-hero pb-site-section">
+ {eyebrow ? <Eyebrow>{eyebrow}</Eyebrow> : null}
+ <h1 className="mt-3 max-w-[20ch] font-site-display text-site-heading text-site-ink text-balance">{title}</h1>
+ {lead ? (
+ <p className="mt-4 max-w-[30rem] text-site-body text-site-muted text-pretty">{lead}</p>
+ ) : null}
+ {actions ? <div className="mt-7 flex flex-wrap gap-2.5">{actions}</div> : null}
+ </Container>
+ );
+}
+
+/** Landing page for a section (`/product`, `/solutions`) listing its pages by group. */
+export function DirectoryPage({
+ title,
+ lead,
+ groups,
+ href,
+}: {
+ title: string;
+ lead: string;
+ groups: PageGroup[];
+ href: (slug: string) => string;
+}) {
+ return (
+ <SitePage>
+ <PageHero title={title} lead={lead} />
+ <Container className="flex flex-col gap-site-block pb-site-section">
+ {groups.map((group) => (
+ <section key={group.title} aria-labelledby={`group-${group.title}`}>
+ <h2 id={`group-${group.title}`} className="text-site-small text-site-muted">
+ {group.title}
+ </h2>
+ <div className="mt-4 grid gap-site-grid-col sm:grid-cols-2 lg:grid-cols-3">
+ {group.pages.map((page) => (
+ <Link
+ key={page.slug}
+ href={href(page.slug)}
+ className={cn(
+ "rounded-site-card border border-site-line bg-site-surface p-6 transition-colors hover:border-site-line-strong",
+ focusRing,
+ )}
+ >
+ <h3 className="text-site-card text-site-ink">{page.title}</h3>
+ <p className="mt-site-stack text-site-body text-site-muted">{page.summary}</p>
+ </Link>
+ ))}
+ </div>
+ </section>
+ ))}
+ </Container>
+ <CtaBand />
+ </SitePage>
+ );
+}
+
+const OUTLINE = [
+ { title: "Overview", body: "Placeholder: what this is and who it is for." },
+ { title: "How it works", body: "Placeholder: the two or three moments that show it in action." },
+ { title: "Proof", body: "Placeholder: a customer quote, a metric, or a short case study." },
+];
+
+/** Skeleton shared by every page whose content has not been written yet. */
+export function PlaceholderPage({ eyebrow, page }: { eyebrow: string; page: SitePageEntry }) {
+ return (
+ <SitePage>
+ <PageHero
+ eyebrow={eyebrow}
+ title={page.title}
+ lead={page.summary}
+ actions={
+ <>
+ <ActionLink href="/login" size="lg">
+ Get started
+ </ActionLink>
+ <ActionLink href="/contact-sales" size="lg" tone="secondary">
+ Book a demo
+ </ActionLink>
+ </>
+ }
+ />
+ <Container className="pb-site-section">
+ <ProductFrame label={`${page.title} visual`} aspectRatio="16 / 8" />
+ </Container>
+ <Section>
+ <Container>
+ <SectionHeader title="Sections to come" lead="This page is a placeholder in the new site structure." />
+ <div className="mt-site-block grid gap-site-grid-col md:grid-cols-3">
+ {OUTLINE.map((item, index) => (
+ <div key={item.title} className="rounded-site-card border border-site-line bg-site-surface p-6">
+ <p className="font-site-mono text-site-label text-site-muted tabular-nums">
+ {String(index + 1).padStart(2, "0")}
+ </p>
+ <h3 className="mt-6 text-site-card text-site-ink">{item.title}</h3>
+ <p className="mt-site-stack text-site-body text-site-muted">{item.body}</p>
+ </div>
+ ))}
+ </div>
+ </Container>
+ </Section>
+ <CtaBand />
+ </SitePage>
+ );
+}
diff --git a/apps/web/features/landing/site/sitemap.test.ts b/apps/web/features/landing/site/sitemap.test.ts
new file mode 100644
index 0000000000..f7c48db1bc
--- /dev/null
+++ b/apps/web/features/landing/site/sitemap.test.ts
@@ -0,0 +1,88 @@
+// @vitest-environment node
+import { existsSync } from "node:fs";
+import { resolve } from "node:path";
+import { describe, expect, it } from "vitest";
+import { RESERVED_SLUGS } from "@multica/core/paths";
+import { enSiteCopy } from "../i18n/site-en";
+import {
+ PRODUCT_GROUPS,
+ SOLUTION_GROUPS,
+ buildFooterGroups,
+ isLiveRoute,
+ liveMetadata,
+ siteRoutes,
+ type SiteLink,
+} from "./sitemap";
+
+const nav = enSiteCopy.site.nav;
+const preview = () => true;
+
+const landingRoutes = resolve(__dirname, "../../../app/(landing)");
+
+const internalLinks = (links: SiteLink[]) => links.filter((link) => !link.external);
+const navLinks = (isLive?: (href: string) => boolean) =>
+ buildFooterGroups("/docs", nav, isLive).flatMap((group) => group.links);
+
+describe("site map", () => {
+ it("points every internal footer link at a served route", () => {
+ const routes = new Set(siteRoutes());
+ for (const link of internalLinks(navLinks(preview))) {
+ expect(routes, `${link.label} → ${link.href}`).toContain(link.href);
+ }
+ });
+
+ it("backs every route with a page under app/(landing)", () => {
+ for (const route of siteRoutes()) {
+ const segments = route.split("/").filter(Boolean);
+ const dynamic = segments.length === 2 ? [segments[0]!, "[slug]"] : segments;
+ expect(existsSync(resolve(landingRoutes, ...dynamic, "page.tsx")), route).toBe(true);
+ }
+ });
+
+ it("reserves every top-level segment so no workspace slug can shadow it", () => {
+ const roots = new Set(siteRoutes().map((route) => route.split("/")[1]).filter(Boolean));
+ for (const root of roots) {
+ expect(RESERVED_SLUGS.has(root!), root).toBe(true);
+ }
+ });
+
+ it("keeps page slugs unique within each section", () => {
+ for (const groups of [PRODUCT_GROUPS, SOLUTION_GROUPS]) {
+ const slugs = groups.flatMap((group) => group.pages.map((page) => page.slug));
+ expect(new Set(slugs).size).toBe(slugs.length);
+ }
+ });
+
+ it("links only released pages outside preview builds", () => {
+ for (const link of internalLinks(navLinks())) {
+ expect(isLiveRoute(link.href), `${link.label} → ${link.href}`).toBe(true);
+ }
+ expect(buildFooterGroups("/docs", nav).map((group) => group.title)).toEqual([nav.resources, nav.company, nav.trust]);
+ });
+
+ it("drops a footer column once none of its pages are released", () => {
+ const onlyDesktop = (href: string) => href === "/product/desktop";
+ const product = buildFooterGroups("/docs", nav, onlyDesktop).find((group) => group.title === nav.product);
+ expect(product?.links.map((link) => link.href)).toEqual(["/product/desktop"]);
+ expect(buildFooterGroups("/docs", nav, () => false).find((group) => group.title === nav.product)).toBeUndefined();
+ });
+
+ it("takes withdrawn pages out of the footer while keeping their routes", () => {
+ expect(isLiveRoute("/usecases")).toBe(false);
+ expect(internalLinks(navLinks()).map((link) => link.href)).not.toContain("/usecases");
+ expect(siteRoutes()).toContain("/usecases");
+ });
+
+ it("withholds the metadata of unreleased pages", () => {
+ const metadata = { title: "Pricing" };
+ expect(liveMetadata("/pricing", metadata)).toEqual({});
+ expect(liveMetadata("/about", metadata)).toBe(metadata);
+ });
+
+ it.each(["/docs", "/docs/zh", "/docs/ja"])("links documentation to the %s docs", (docsHref) => {
+ const footerDocs = buildFooterGroups(docsHref, nav)
+ .flatMap((group) => group.links)
+ .find((link) => link.label === "Documentation");
+ expect(footerDocs?.href).toBe(docsHref);
+ });
+});
diff --git a/apps/web/features/landing/site/sitemap.ts b/apps/web/features/landing/site/sitemap.ts
new file mode 100644
index 0000000000..707edc7d65
--- /dev/null
+++ b/apps/web/features/landing/site/sitemap.ts
@@ -0,0 +1,232 @@
+import { notFound } from "next/navigation";
+import type { SiteDict } from "../i18n/types";
+
+/**
+ * Information architecture of the marketing site: every page and the footer
+ * are derived from the registries below, so a page added here appears in
+ * navigation, gets a route, and lands in `sitemap.xml` in one edit.
+ *
+ * Copy is English-only placeholder text while positioning is being settled.
+ */
+
+export type SiteLink = { label: string; href: string; external?: boolean };
+export type SiteLinkGroup = { title: string; links: SiteLink[] };
+
+export type SitePage = {
+ slug: string;
+ title: string;
+ /** One sentence shown under the page title and used as its meta description. */
+ summary: string;
+};
+
+export type PageGroup = { title: string; pages: SitePage[] };
+
+export const PRODUCT_GROUPS: PageGroup[] = [
+ {
+ title: "Surfaces",
+ pages: [
+ { slug: "cloud", title: "Multica Cloud", summary: "Run agents on cloud agent services, with no computer of yours left on." },
+ { slug: "desktop", title: "Multica Desktop", summary: "A native app for macOS, Windows, and Linux that turns your computer into a runtime." },
+ { slug: "cli", title: "Multica CLI", summary: "Connect a computer as a runtime and work with Multica from the shell." },
+ { slug: "chat", title: "Chat integrations", summary: "Work with agents from Slack, Feishu, DingTalk, WeCom, and Telegram." },
+ { slug: "mobile", title: "Mobile", summary: "Your inbox, issues, and agent chats on iPhone." },
+ ],
+ },
+ {
+ title: "Workforce",
+ pages: [
+ { slug: "agents", title: "Agents", summary: "Coding agents that take issues, report progress, and open PRs." },
+ { slug: "squads", title: "Squads", summary: "A leader agent that routes work across a team." },
+ { slug: "skills", title: "Skills", summary: "Reusable know-how every agent on the team can use." },
+ { slug: "autopilots", title: "Autopilots", summary: "Recurring work that runs on a schedule." },
+ { slug: "workflows", title: "Workflows", summary: "The steps a project's issues follow, and who owns each one." },
+ ],
+ },
+ {
+ title: "Platform",
+ pages: [
+ { slug: "issues", title: "Issues & Projects", summary: "One board for work done by people and agents." },
+ { slug: "runtimes", title: "Runtimes", summary: "Local and cloud compute for your agents, in one panel." },
+ { slug: "self-hosting", title: "Self-hosting", summary: "Run Multica on infrastructure you control." },
+ { slug: "integrations", title: "Integrations", summary: "GitHub, GitLab, and the tools your team already uses." },
+ { slug: "analytics", title: "Analytics", summary: "See what your agents shipped and what it cost." },
+ { slug: "api", title: "API & SDK", summary: "Build on Multica from your own code." },
+ ],
+ },
+];
+
+export const SOLUTION_GROUPS: PageGroup[] = [
+ {
+ title: "Use cases",
+ pages: [
+ { slug: "software-delivery", title: "Software delivery", summary: "From issue to merged PR with agents doing the legwork." },
+ { slug: "code-review", title: "Code review", summary: "Every PR gets a careful first review." },
+ { slug: "bug-triage", title: "Bug triage & on-call", summary: "Agents that pick up alerts and propose fixes." },
+ { slug: "data-analysis", title: "Data analysis", summary: "A data analyst that answers questions around the clock." },
+ ],
+ },
+ {
+ title: "Teams",
+ pages: [
+ { slug: "engineering", title: "Engineering", summary: "Ship more with the same headcount." },
+ { slug: "product-teams", title: "Product", summary: "Turn specs into working software faster." },
+ { slug: "operations", title: "Operations", summary: "Hand routine operational work to agents." },
+ { slug: "agencies", title: "Agencies", summary: "Deliver more client work with a hybrid team." },
+ ],
+ },
+ {
+ title: "Company",
+ pages: [
+ { slug: "startups", title: "Startups", summary: "Move like a team ten times your size." },
+ { slug: "enterprise", title: "Enterprise", summary: "Security, control, and support for large organizations." },
+ ],
+ },
+ {
+ title: "Programs",
+ pages: [
+ { slug: "open-source", title: "Open source", summary: "Multica for open-source maintainers." },
+ { slug: "partners", title: "Partners", summary: "Build, resell, or implement Multica with us." },
+ ],
+ },
+];
+
+/** Single pages that exist only as placeholders so far. */
+export const PLACEHOLDER_PAGES = {
+ pricing: { slug: "pricing", title: "Pricing", summary: "Plans for teams of every size." },
+ customers: { slug: "customers", title: "Customers", summary: "Teams shipping with Multica." },
+ blog: { slug: "blog", title: "Blog", summary: "Notes on building with human and agent teams." },
+ careers: { slug: "careers", title: "Careers", summary: "Help us build the workspace for human and agent teams." },
+ press: { slug: "press", title: "Press & brand", summary: "Logos, product imagery, and press contacts." },
+ security: { slug: "security", title: "Security", summary: "How Multica protects your code and data." },
+} satisfies Record<string, SitePage>;
+
+/** Pages that already have real content and keep their existing routes. */
+const EXISTING_ROUTES = [
+ "/about",
+ "/changelog",
+ "/contact-sales",
+ "/download",
+ "/licensing",
+ "/privacy",
+ "/usecases",
+] as const;
+
+/** Existing pages taken down for now. They are treated like unreleased pages until removed from here. */
+const WITHDRAWN_ROUTES: ReadonlySet<string> = new Set(["/usecases"]);
+
+/**
+ * Routes released to the public. Every other page is still being built: it is
+ * left out of the menus, the footer, and the sitemap, and its route answers
+ * 404, unless the build sets NEXT_PUBLIC_SITE_PREVIEW=1. Release a page by
+ * adding its route here.
+ */
+const LIVE_ROUTES: ReadonlySet<string> = new Set([
+ "/",
+ ...EXISTING_ROUTES.filter((route) => !WITHDRAWN_ROUTES.has(route)),
+]);
+
+export const SITE_PREVIEW = process.env.NEXT_PUBLIC_SITE_PREVIEW === "1";
+
+export function isLiveRoute(href: string): boolean {
+ return SITE_PREVIEW || LIVE_ROUTES.has(href);
+}
+
+/** Call at the top of a page that may not be released yet. */
+export function requireLiveRoute(href: string) {
+ if (!isLiveRoute(href)) notFound();
+}
+
+// The not-found fallback streams after the page's metadata, so an unreleased
+// page must not publish its own title and description.
+export function liveMetadata<T extends object>(href: string, metadata: T): T | Record<string, never> {
+ return isLiveRoute(href) ? metadata : {};
+}
+
+export const productHref = (slug: string) => `/product/${slug}`;
+export const solutionHref = (slug: string) => `/solutions/${slug}`;
+
+export function findPage(groups: PageGroup[], slug: string): SitePage | undefined {
+ return groups.flatMap((group) => group.pages).find((page) => page.slug === slug);
+}
+
+type NavLabels = SiteDict["nav"];
+type IsLive = (href: string) => boolean;
+
+/** Drops unreleased links, then the groups they leave empty. */
+function released(groups: SiteLinkGroup[], isLive: IsLive): SiteLinkGroup[] {
+ return groups
+ .map((group) => ({ ...group, links: group.links.filter((link) => link.external || isLive(link.href)) }))
+ .filter((group) => group.links.length > 0);
+}
+
+export function buildFooterGroups(docsHref: string, nav: NavLabels, isLive: IsLive = isLiveRoute): SiteLinkGroup[] {
+ const pick = (groups: PageGroup[], slugs: string[], href: (slug: string) => string) =>
+ slugs.map((slug) => {
+ const page = findPage(groups, slug);
+ if (!page) throw new Error(`Unknown page in footer: ${slug}`);
+ return { label: page.title, href: href(page.slug) };
+ });
+ return released(
+ [
+ {
+ title: nav.product,
+ links: [
+ ...pick(
+ PRODUCT_GROUPS,
+ ["cloud", "desktop", "cli", "agents", "squads", "skills", "autopilots", "runtimes", "self-hosting"],
+ productHref,
+ ),
+ { label: nav.pricing, href: "/pricing" },
+ ],
+ },
+ {
+ title: nav.solutions,
+ links: pick(
+ SOLUTION_GROUPS,
+ ["software-delivery", "code-review", "bug-triage", "data-analysis", "startups", "enterprise"],
+ solutionHref,
+ ),
+ },
+ {
+ title: nav.resources,
+ links: [
+ { label: nav.documentation, href: docsHref, external: true },
+ { label: nav.changelog, href: "/changelog" },
+ { label: nav.useCases, href: "/usecases" },
+ { label: nav.blog, href: "/blog" },
+ { label: nav.download, href: "/download" },
+ ],
+ },
+ {
+ title: nav.company,
+ links: [
+ { label: nav.about, href: "/about" },
+ { label: nav.customers, href: "/customers" },
+ { label: nav.careers, href: "/careers" },
+ { label: nav.press, href: "/press" },
+ { label: nav.contactSales, href: "/contact-sales" },
+ ],
+ },
+ {
+ title: nav.trust,
+ links: [
+ { label: nav.security, href: "/security" },
+ { label: nav.licensing, href: "/licensing" },
+ { label: nav.privacy, href: "/privacy" },
+ ],
+ },
+ ],
+ isLive,
+ );
+}
+
+/** Every internal route the marketing site serves, for `sitemap.xml` and link checks. */
+export function siteRoutes(): string[] {
+ return [
+ "/",
+ ...EXISTING_ROUTES,
+ ...Object.values(PLACEHOLDER_PAGES).map((page) => `/${page.slug}`),
+ ...PRODUCT_GROUPS.flatMap((group) => group.pages.map((page) => productHref(page.slug))),
+ ...SOLUTION_GROUPS.flatMap((group) => group.pages.map((page) => solutionHref(page.slug))),
+ ];
+}
diff --git a/apps/web/features/landing/site/surface-kit.tsx b/apps/web/features/landing/site/surface-kit.tsx
new file mode 100644
index 0000000000..30ff782aac
--- /dev/null
+++ b/apps/web/features/landing/site/surface-kit.tsx
@@ -0,0 +1,304 @@
+"use client";
+
+import { useEffect, useRef, useState, type ComponentType, type ReactNode } from "react";
+import { Check, Copy, type IconComponent } from "@multica/ui/icons";
+import { cn } from "@multica/ui/lib/utils";
+import { Container, Eyebrow, focusRing } from "./primitives";
+import { AdvanceLine, useAutoAdvance } from "./auto-advance";
+
+/*
+ * Building blocks shared by the product surface pages (Cloud, Desktop, CLI,
+ * Chat, Mobile): the hero with its scene, the stepped walkthrough, the
+ * two-column comparison, and the check list.
+ */
+
+export function SurfaceHero({
+ eyebrow,
+ title,
+ subtitle,
+ lead,
+ actions,
+ frost,
+ label,
+ children,
+}: {
+ eyebrow: string;
+ title: string;
+ subtitle: string;
+ lead: ReactNode;
+ actions: ReactNode;
+ frost: string;
+ label: string;
+ children: ReactNode;
+}) {
+ return (
+ <section className="pt-site-hero pb-site-section">
+ <Container className="max-w-site-wide">
+ <Eyebrow>{eyebrow}</Eyebrow>
+ <h1 className="mt-4 font-site-display text-site-heading text-balance">
+ <span className="block text-site-ink">{title}</span>
+ <span className="block text-site-muted">{subtitle}</span>
+ </h1>
+ <p className="mt-3 max-w-[38rem] text-site-body text-site-muted text-pretty">{lead}</p>
+ <div className="mt-6 flex flex-wrap gap-2.5">{actions}</div>
+ </Container>
+ <Container className="mt-10 max-w-site-wide lg:mt-12">
+ <div role="img" aria-label={label} data-frost={frost} className="site-frost overflow-hidden rounded-site-panel">
+ {children}
+ </div>
+ </Container>
+ </section>
+ );
+}
+
+export type Walkthrough = { title: string; body: string; visual: ComponentType };
+
+/**
+ * A few steps beside one large visual: the list advances on its own while it
+ * is on screen (see `useAutoAdvance`) and the visuals cross-fade in place.
+ * `side` puts the list on the left or the right of the visual. Visuals are
+ * centered and scaled up with the frame, unless `fill` is set: then each one
+ * fills the frame and places itself.
+ */
+export function WalkthroughTabs({
+ steps,
+ hold = 5000,
+ side = "right",
+ numbered = true,
+ fill = false,
+}: {
+ steps: Walkthrough[];
+ hold?: number;
+ side?: "left" | "right";
+ numbered?: boolean;
+ fill?: boolean;
+}) {
+ const cycle = useAutoAdvance(steps.length);
+ return (
+ <div
+ ref={cycle.ref}
+ className={cn(
+ "grid gap-8 lg:gap-14",
+ side === "right" ? "lg:grid-cols-[minmax(0,1fr)_minmax(0,22rem)]" : "lg:grid-cols-[minmax(0,22rem)_minmax(0,1fr)]",
+ )}
+ >
+ <div
+ className={cn(
+ "site-visual relative h-[23rem] overflow-hidden rounded-site-panel sm:h-[26rem] lg:h-[30rem]",
+ side === "left" && "lg:order-2",
+ )}
+ >
+ {steps.map((step, index) => (
+ <div
+ key={step.title}
+ aria-hidden={index !== cycle.active}
+ inert={index !== cycle.active}
+ className={cn(
+ "absolute inset-0 flex items-center justify-center text-foreground transition-[opacity,translate] duration-500 ease-[cubic-bezier(0.32,0.72,0,1)] motion-reduce:transition-none",
+ index === cycle.active ? "opacity-100" : "translate-y-2 opacity-0",
+ )}
+ >
+ {fill ? (
+ <step.visual />
+ ) : (
+ <div className="sm:scale-110 lg:scale-[1.2]">
+ <step.visual />
+ </div>
+ )}
+ </div>
+ ))}
+ </div>
+ <ol {...cycle.holdProps} className={cn("flex flex-col lg:justify-center", side === "left" && "lg:order-1")}>
+ {steps.map((step, index) => {
+ const selected = index === cycle.active;
+ return (
+ <li key={step.title} className="relative border-t border-site-line last:border-b">
+ <AdvanceLine
+ selected={selected}
+ playing={cycle.playing}
+ running={cycle.running}
+ duration={hold}
+ onDone={cycle.advance}
+ />
+ <button
+ type="button"
+ aria-pressed={selected}
+ onClick={() => cycle.select(index)}
+ className={cn("group flex w-full gap-4 py-5 text-left", focusRing)}
+ >
+ {numbered ? (
+ <span className="pt-1 font-site-mono text-site-label text-site-muted tabular-nums">
+ {String(index + 1).padStart(2, "0")}
+ </span>
+ ) : null}
+ <span className="min-w-0 flex-1">
+ <span
+ className={cn(
+ "block text-site-card transition-colors",
+ selected ? "text-site-ink" : "text-site-muted group-hover:text-site-ink",
+ )}
+ >
+ {step.title}
+ </span>
+ <span className="mt-site-stack block text-site-body text-site-muted text-pretty">{step.body}</span>
+ </span>
+ </button>
+ </li>
+ );
+ })}
+ </ol>
+ </div>
+ );
+}
+
+export type CompareRow = { label: string; values: [string, string] };
+
+/** Two options compared row by row; on phones the row label moves above its values. */
+export function CompareTable({ columns, rows }: { columns: [string, string]; rows: CompareRow[] }) {
+ return (
+ <div>
+ <div className="grid grid-cols-2 gap-x-4 border-b border-site-ink pb-3 text-site-small sm:grid-cols-3">
+ <span className="max-sm:hidden" />
+ {columns.map((column) => (
+ <span key={column} className="text-site-ink">
+ {column}
+ </span>
+ ))}
+ </div>
+ <dl>
+ {rows.map((row) => (
+ <div
+ key={row.label}
+ className="grid grid-cols-2 gap-x-4 gap-y-1.5 border-b border-site-line py-4 text-site-body sm:grid-cols-3"
+ >
+ <dt className="text-site-muted max-sm:col-span-2 max-sm:text-site-small">{row.label}</dt>
+ {row.values.map((value, index) => (
+ <dd key={columns[index]} className="text-site-ink">
+ {value}
+ </dd>
+ ))}
+ </div>
+ ))}
+ </dl>
+ </div>
+ );
+}
+
+export type Feature = { icon: IconComponent; title: string; body: string };
+
+/** Up to four features in a 2×2 grid ruled by hairlines, each led by its icon. */
+export function FeatureGrid({ items }: { items: Feature[] }) {
+ return (
+ <ul className="grid border-y border-site-line sm:grid-cols-2">
+ {items.map((item, index) => (
+ <li
+ key={item.title}
+ className={cn(
+ "flex gap-5 border-site-line py-8 sm:py-10",
+ index > 0 && "max-sm:border-t",
+ index > 1 && "sm:border-t",
+ index % 2 === 0 ? "sm:pr-8 lg:pr-14" : "sm:border-l sm:pl-8 lg:pl-14",
+ )}
+ >
+ <IconTile>
+ <item.icon className="size-5" aria-hidden />
+ </IconTile>
+ <span className="min-w-0">
+ <h3 className="text-site-card text-site-ink">{item.title}</h3>
+ <p className="mt-site-stack max-w-[26rem] text-site-body text-site-muted text-pretty">{item.body}</p>
+ </span>
+ </li>
+ ))}
+ </ul>
+ );
+}
+
+export function IconTile({ muted, children }: { muted?: boolean; children: ReactNode }) {
+ return (
+ <span
+ className={cn(
+ "flex size-10 shrink-0 items-center justify-center rounded-site-inner border border-site-line bg-site-surface text-site-ink-secondary",
+ muted && "opacity-60",
+ )}
+ >
+ {children}
+ </span>
+ );
+}
+
+export function CheckList({ items, className }: { items: ReactNode[]; className?: string }) {
+ return (
+ <ul className={cn("flex flex-col gap-3", className)}>
+ {items.map((item, index) => (
+ <li key={index} className="flex gap-2.5 text-site-body text-site-ink-secondary">
+ <Check className="mt-1 size-4 shrink-0 text-site-muted" aria-hidden />
+ <span className="min-w-0">{item}</span>
+ </li>
+ ))}
+ </ul>
+ );
+}
+
+export type CodeVariant = { label: string; code: string };
+
+/**
+ * A command or config file set in the page's own type, for text a reader may
+ * paste. With more than one variant (one per platform, say) the caption turns
+ * into tabs. The copy button copies the variant on show, comments included.
+ */
+export function CodeBlock({ variants, className }: { variants: CodeVariant[]; className?: string }) {
+ const [active, setActive] = useState(0);
+ const [copied, setCopied] = useState(false);
+ const resetRef = useRef<ReturnType<typeof setTimeout>>(undefined);
+ useEffect(() => () => clearTimeout(resetRef.current), []);
+ const current = variants[active] ?? variants[0]!;
+
+ const copy = () => {
+ if (!navigator.clipboard) return;
+ void navigator.clipboard.writeText(current.code).then(() => {
+ setCopied(true);
+ clearTimeout(resetRef.current);
+ resetRef.current = setTimeout(() => setCopied(false), 1600);
+ });
+ };
+
+ return (
+ <figure className={cn("min-w-0 overflow-hidden rounded-site-card border border-site-line bg-site-surface", className)}>
+ <figcaption className="flex h-11 items-center gap-1 border-b border-site-line pr-1.5 pl-4 text-site-small text-site-muted">
+ {variants.length > 1 ? (
+ <span className="-ml-2.5 flex min-w-0 flex-1 gap-1">
+ {variants.map((variant, index) => (
+ <button
+ key={variant.label}
+ type="button"
+ aria-pressed={index === active}
+ onClick={() => setActive(index)}
+ className={cn(
+ "h-8 rounded-site-control px-2.5 whitespace-nowrap transition-colors",
+ focusRing,
+ index === active ? "bg-site-sunken text-site-ink" : "hover:text-site-ink",
+ )}
+ >
+ {variant.label}
+ </button>
+ ))}
+ </span>
+ ) : (
+ <span className="min-w-0 flex-1 truncate">{current.label}</span>
+ )}
+ <button
+ type="button"
+ onClick={copy}
+ aria-label={copied ? "Copied" : `Copy ${current.label}`}
+ className={cn(
+ "relative flex size-8 shrink-0 items-center justify-center rounded-site-control transition-[color,background-color,scale] before:absolute before:-inset-1.5 hover:bg-site-hover hover:text-site-ink active:scale-[0.96]",
+ focusRing,
+ )}
+ >
+ {copied ? <Check className="size-4 text-site-ink" aria-hidden /> : <Copy className="size-4" aria-hidden />}
+ </button>
+ </figcaption>
+ <pre className="site-code overflow-x-auto px-4 py-4 font-site-mono text-[0.8125rem] leading-6 text-site-ink">{current.code}</pre>
+ </figure>
+ );
+}
diff --git a/apps/web/features/landing/utils/download-target.test.ts b/apps/web/features/landing/utils/download-target.test.ts
new file mode 100644
index 0000000000..a4df5df93a
--- /dev/null
+++ b/apps/web/features/landing/utils/download-target.test.ts
@@ -0,0 +1,60 @@
+// @vitest-environment node
+import { describe, expect, it } from "vitest";
+import { alternateKey, isDownloadKey, platformOf, resolvePrimary } from "./download-target";
+import { detectFromUserAgent } from "./os-detect";
+
+const ASSETS = {
+ macArm64Dmg: "https://downloads.test/multica-desktop-0.8.1-mac-arm64.dmg",
+ macX64Dmg: "https://downloads.test/multica-desktop-0.8.1-mac-x64.dmg",
+ winX64Exe: "https://downloads.test/multica-desktop-0.8.1-windows-x64.exe",
+ linuxArm64AppImage: "https://downloads.test/multica-desktop-0.8.1-linux-arm64.AppImage",
+};
+
+const SAFARI_MAC =
+ "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/18.0 Safari/605.1.15";
+const CHROME_WINDOWS =
+ "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/130.0.0.0 Safari/537.36";
+const FIREFOX_LINUX_ARM = "Mozilla/5.0 (X11; Linux aarch64; rv:131.0) Gecko/20100101 Firefox/131.0";
+const IPHONE =
+ "Mozilla/5.0 (iPhone; CPU iPhone OS 18_0 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/18.0 Mobile/15E148 Safari/604.1";
+
+describe("detectFromUserAgent", () => {
+ it("defaults Macs to Apple Silicon without claiming certainty", () => {
+ expect(detectFromUserAgent(SAFARI_MAC)).toEqual({ os: "mac", arch: "arm64", archConfident: false });
+ });
+
+ it("reads Windows, Linux architecture and phones", () => {
+ expect(detectFromUserAgent(CHROME_WINDOWS).os).toBe("windows");
+ expect(detectFromUserAgent(FIREFOX_LINUX_ARM)).toMatchObject({ os: "linux", arch: "arm64" });
+ expect(detectFromUserAgent(IPHONE).os).toBe("mobile");
+ });
+
+ it("trusts the Sec-CH-UA hints over the UA string", () => {
+ expect(detectFromUserAgent(CHROME_WINDOWS, { platform: '"macOS"' }).os).toBe("mac");
+ expect(detectFromUserAgent(CHROME_WINDOWS, { mobile: "?1" }).os).toBe("mobile");
+ });
+});
+
+describe("resolvePrimary", () => {
+ it("offers the installer for the detected platform", () => {
+ expect(resolvePrimary(detectFromUserAgent(SAFARI_MAC), ASSETS)).toEqual({ key: "macArm64Dmg", href: ASSETS.macArm64Dmg });
+ expect(resolvePrimary({ os: "mac", arch: "x64", archConfident: true }, ASSETS)?.key).toBe("macX64Dmg");
+ expect(resolvePrimary(detectFromUserAgent(FIREFOX_LINUX_ARM), ASSETS)?.key).toBe("linuxArm64AppImage");
+ });
+
+ it("offers nothing to phones, unknown systems or a release without the file", () => {
+ expect(resolvePrimary(detectFromUserAgent(IPHONE), ASSETS)).toBeNull();
+ expect(resolvePrimary(detectFromUserAgent(""), ASSETS)).toBeNull();
+ expect(resolvePrimary(detectFromUserAgent(CHROME_WINDOWS), {})).toBeNull();
+ });
+});
+
+describe("download keys", () => {
+ it("validates the started param and maps keys to platform rows", () => {
+ expect(isDownloadKey("linuxAmd64Deb")).toBe(true);
+ expect(isDownloadKey("../etc")).toBe(false);
+ expect(platformOf("linuxAmd64Deb")).toBe("linuxX64");
+ expect(alternateKey("macArm64Dmg")).toBe("macX64Dmg");
+ expect(alternateKey("winX64Exe")).toBeNull();
+ });
+});
diff --git a/apps/web/features/landing/utils/download-target.ts b/apps/web/features/landing/utils/download-target.ts
new file mode 100644
index 0000000000..885b61ad75
--- /dev/null
+++ b/apps/web/features/landing/utils/download-target.ts
@@ -0,0 +1,112 @@
+import type { DetectResult } from "./os-detect";
+import type { DownloadAssets, DownloadKey } from "./parse-release-assets";
+
+/**
+ * The desktop builds the download buttons can offer, keyed like
+ * `DownloadAssets`. The key also travels in `/download?started=<key>`,
+ * so the page that follows a homepage click knows which file it is
+ * about.
+ */
+
+export type DesktopOS = "mac" | "windows" | "linux";
+
+/** Rows of the platform list, one per OS and architecture. */
+export type PlatformKey = "macArm64" | "macX64" | "winX64" | "winArm64" | "linuxX64" | "linuxArm64";
+
+/** The installers a platform gets by default. */
+export type PrimaryDownloadKey = Extract<
+ DownloadKey,
+ "macArm64Dmg" | "macX64Dmg" | "winX64Exe" | "winArm64Exe" | "linuxAmd64AppImage" | "linuxArm64AppImage"
+>;
+
+export const DOWNLOAD_KEYS = [
+ "macArm64Dmg",
+ "macArm64Zip",
+ "macX64Dmg",
+ "macX64Zip",
+ "winX64Exe",
+ "winArm64Exe",
+ "linuxAmd64AppImage",
+ "linuxAmd64Deb",
+ "linuxAmd64Rpm",
+ "linuxArm64AppImage",
+ "linuxArm64Deb",
+ "linuxArm64Rpm",
+] as const satisfies readonly DownloadKey[];
+
+export function isDownloadKey(value: unknown): value is DownloadKey {
+ return typeof value === "string" && (DOWNLOAD_KEYS as readonly string[]).includes(value);
+}
+
+export function osOf(key: DownloadKey): DesktopOS {
+ return key.startsWith("mac") ? "mac" : key.startsWith("win") ? "windows" : "linux";
+}
+
+export function platformOf(key: DownloadKey): PlatformKey {
+ if (key.startsWith("macArm64")) return "macArm64";
+ if (key.startsWith("macX64")) return "macX64";
+ if (key === "winArm64Exe") return "winArm64";
+ if (key === "winX64Exe") return "winX64";
+ return key.startsWith("linuxArm64") ? "linuxArm64" : "linuxX64";
+}
+
+/** The installer a detected platform gets by default, or null for phones and unknown systems. */
+export function primaryKey(detected: DetectResult): PrimaryDownloadKey | null {
+ const arm = detected.arch === "arm64";
+ switch (detected.os) {
+ case "mac":
+ return detected.arch === "x64" ? "macX64Dmg" : "macArm64Dmg";
+ case "windows":
+ return arm ? "winArm64Exe" : "winX64Exe";
+ case "linux":
+ return arm ? "linuxArm64AppImage" : "linuxAmd64AppImage";
+ default:
+ return null;
+ }
+}
+
+/** A Mac's other-architecture build, offered when detection had to guess. */
+export function alternateKey(key: DownloadKey): "macArm64Dmg" | "macX64Dmg" | null {
+ if (key === "macArm64Dmg") return "macX64Dmg";
+ if (key === "macX64Dmg") return "macArm64Dmg";
+ return null;
+}
+
+/** The primary download for a platform, when the release has it. */
+export function resolvePrimary(detected: DetectResult, assets: DownloadAssets) {
+ const key = primaryKey(detected);
+ const href = key ? assets[key] : undefined;
+ return key && href ? { key, href } : null;
+}
+
+export function fileName(href: string): string {
+ return decodeURIComponent(href.split("/").pop() ?? href);
+}
+
+/** Decimal megabytes, the way download sizes usually read ("248 MB"). */
+export function formatSize(bytes: number): string {
+ return `${Math.round(bytes / 1_000_000)} MB`;
+}
+
+// A homepage click navigates to `/download?started=<key>` and leaves this
+// flag so that page starts the file. Reloading or sharing the link shows the
+// same page without downloading again.
+const PENDING_KEY = "multica-download-pending";
+
+export function markPendingDownload(key: DownloadKey) {
+ try {
+ sessionStorage.setItem(PENDING_KEY, key);
+ } catch {
+ // Storage can be unavailable (private modes); the page then offers its retry link.
+ }
+}
+
+export function takePendingDownload(key: DownloadKey): boolean {
+ try {
+ const pending = sessionStorage.getItem(PENDING_KEY);
+ sessionStorage.removeItem(PENDING_KEY);
+ return pending === key;
+ } catch {
+ return false;
+ }
+}
diff --git a/apps/web/features/landing/utils/github-release.test.ts b/apps/web/features/landing/utils/github-release.test.ts
index a7507156b6..e470170637 100644
--- a/apps/web/features/landing/utils/github-release.test.ts
+++ b/apps/web/features/landing/utils/github-release.test.ts
@@ -1,6 +1,6 @@
// @vitest-environment node
import { afterEach, describe, expect, it, vi } from "vitest";
-import { fetchLatestRelease } from "./github-release";
+import { fetchLatestRelease, RELEASE_TIMEOUT_MS } from "./github-release";
/** The twelve desktop artifacts a finished release carries. */
function completeAssets(version: string) {
@@ -158,10 +158,58 @@ describe("fetchLatestRelease", () => {
publishedAt: null,
htmlUrl: null,
assets: {},
+ sizes: {},
});
expect(warnSpy).toHaveBeenCalled();
});
+ // The homepage awaits this on a cold cache; a GitHub that accepts the
+ // connection and then stalls must not hold the page.
+ it("gives up on a stalled request and returns the empty release", async () => {
+ vi.useFakeTimers();
+ try {
+ const fetchMock = vi.fn(
+ (_url: string, init: RequestInit) =>
+ new Promise<Response>((_resolve, reject) => {
+ init.signal?.addEventListener("abort", () => reject(init.signal?.reason));
+ }),
+ );
+ vi.stubGlobal("fetch", fetchMock);
+ const warnSpy = vi.spyOn(console, "warn").mockImplementation(() => {});
+
+ const pending = fetchLatestRelease();
+ await vi.advanceTimersByTimeAsync(RELEASE_TIMEOUT_MS);
+
+ await expect(pending).resolves.toMatchObject({ version: null, assets: {} });
+ expect(warnSpy).toHaveBeenCalled();
+ } finally {
+ vi.useRealTimers();
+ }
+ });
+
+ it("gives up when the response body stalls after the headers arrive", async () => {
+ vi.useFakeTimers();
+ try {
+ const fetchMock = vi.fn(async (_url: string, init: RequestInit) => {
+ const body = new ReadableStream({
+ start(controller) {
+ init.signal?.addEventListener("abort", () => controller.error(init.signal?.reason));
+ },
+ });
+ return new Response(body, { status: 200 });
+ });
+ vi.stubGlobal("fetch", fetchMock);
+ vi.spyOn(console, "warn").mockImplementation(() => {});
+
+ const pending = fetchLatestRelease();
+ await vi.advanceTimersByTimeAsync(RELEASE_TIMEOUT_MS);
+
+ await expect(pending).resolves.toMatchObject({ version: null, assets: {} });
+ } finally {
+ vi.useRealTimers();
+ }
+ });
+
it("returns an empty release shape when all candidates are filtered out", async () => {
mockFetchWithReleases([
releasePayload({ tag: "v0.2.15-rc.1", prerelease: true }),
diff --git a/apps/web/features/landing/utils/github-release.ts b/apps/web/features/landing/utils/github-release.ts
index 3619da0e32..9fee8ba1a6 100644
--- a/apps/web/features/landing/utils/github-release.ts
+++ b/apps/web/features/landing/utils/github-release.ts
@@ -1,7 +1,10 @@
import {
hasCompleteAssetSet,
parseReleaseAssets,
+ parseReleaseAssetSizes,
type DownloadAssets,
+ type DownloadSizes,
+ type GitHubAsset,
} from "./parse-release-assets";
/**
@@ -20,7 +23,7 @@ import {
* asset set is complete — every button on the page then resolves to a
* real file.
*
- * On any failure (network, rate limit, malformed payload) returns a
+ * On any failure (network, timeout, rate limit, malformed payload) returns a
* `null`-shaped result and logs — the page degrades to a "version
* unavailable" view rather than 500ing.
*/
@@ -30,6 +33,7 @@ export interface LatestRelease {
publishedAt: string | null;
htmlUrl: string | null;
assets: DownloadAssets;
+ sizes: DownloadSizes;
}
// Five candidates tolerates four consecutive incomplete releases before
@@ -41,13 +45,18 @@ const GITHUB_RELEASES_URL =
const REVALIDATE_SECONDS = 300;
+// The homepage hero awaits this on a cold cache, so a GitHub that accepts
+// the connection but never answers would hold the whole page. Past this,
+// the page renders with the empty release instead.
+export const RELEASE_TIMEOUT_MS = 3000;
+
interface GitHubReleasePayload {
tag_name?: string;
published_at?: string;
html_url?: string;
prerelease?: boolean;
draft?: boolean;
- assets?: Array<{ name: string; browser_download_url: string }>;
+ assets?: GitHubAsset[];
}
export async function fetchLatestRelease(): Promise<LatestRelease> {
@@ -66,10 +75,16 @@ export async function fetchLatestRelease(): Promise<LatestRelease> {
headers.Authorization = `Bearer ${token}`;
}
+ const controller = new AbortController();
+ const timer = setTimeout(
+ () => controller.abort(new Error(`GitHub API timed out after ${RELEASE_TIMEOUT_MS}ms`)),
+ RELEASE_TIMEOUT_MS,
+ );
try {
const res = await fetch(GITHUB_RELEASES_URL, {
next: { revalidate: REVALIDATE_SECONDS },
headers,
+ signal: controller.signal,
});
if (!res.ok) {
throw new Error(`GitHub API responded ${res.status}`);
@@ -91,10 +106,13 @@ export async function fetchLatestRelease(): Promise<LatestRelease> {
publishedAt: chosen.release.published_at ?? null,
htmlUrl: chosen.release.html_url ?? null,
assets: chosen.assets,
+ sizes: parseReleaseAssetSizes(chosen.release.assets ?? []),
};
} catch (err) {
console.warn("[download] fetchLatestRelease failed:", err);
return emptyRelease();
+ } finally {
+ clearTimeout(timer);
}
}
@@ -138,5 +156,6 @@ function emptyRelease(): LatestRelease {
publishedAt: null,
htmlUrl: null,
assets: {},
+ sizes: {},
};
}
diff --git a/apps/web/features/landing/utils/home-download.ts b/apps/web/features/landing/utils/home-download.ts
new file mode 100644
index 0000000000..7f76c7a39d
--- /dev/null
+++ b/apps/web/features/landing/utils/home-download.ts
@@ -0,0 +1,17 @@
+import { fetchLatestRelease } from "./github-release";
+import type { DetectResult } from "./os-detect";
+import type { DownloadAssets, DownloadSizes } from "./parse-release-assets";
+import { getRequestPlatform } from "./request-platform";
+
+/** What the homepage hero needs to offer this visitor's installer directly. */
+export interface HomeDownload {
+ platform: DetectResult;
+ version: string | null;
+ assets: DownloadAssets;
+ sizes: DownloadSizes;
+}
+
+export async function getHomeDownload(): Promise<HomeDownload> {
+ const [release, platform] = await Promise.all([fetchLatestRelease(), getRequestPlatform()]);
+ return { platform, version: release.version, assets: release.assets, sizes: release.sizes };
+}
diff --git a/apps/web/features/landing/utils/os-detect.ts b/apps/web/features/landing/utils/os-detect.ts
index f27c510917..2b2390ceba 100644
--- a/apps/web/features/landing/utils/os-detect.ts
+++ b/apps/web/features/landing/utils/os-detect.ts
@@ -1,17 +1,20 @@
/**
- * Client-side OS + architecture detection for the /download page.
+ * OS + architecture detection for the desktop download buttons.
*
- * Prefers the modern `navigator.userAgentData.getHighEntropyValues`
- * API (Chromium), falling back to the UA string.
+ * The server reads the request's User-Agent (and the low-entropy
+ * `Sec-CH-UA-Platform` / `Sec-CH-UA-Mobile` hints Chromium always sends)
+ * so the first paint already names the visitor's platform. In the
+ * browser, `navigator.userAgentData.getHighEntropyValues` can then
+ * confirm the CPU architecture on Chromium.
*
* Known limitation: Safari on macOS always reports `Intel Mac OS X`
* in the UA string even on Apple Silicon, and Safari does not
- * implement userAgentData. This function therefore returns `arm64`
- * as the best default for any Mac — UI surfaces a small hint that
- * points Intel users to the architecture-specific download below.
+ * implement userAgentData. Detection therefore returns `arm64` as the
+ * best default for any Mac, with `archConfident: false` so the UI can
+ * point Intel users to the Intel build.
*/
-export type OSName = "mac" | "windows" | "linux" | "unknown";
+export type OSName = "mac" | "windows" | "linux" | "mobile" | "unknown";
export type Arch = "arm64" | "x64" | "unknown";
export interface DetectResult {
@@ -19,24 +22,29 @@ export interface DetectResult {
arch: Arch;
/** True when arch came from userAgentData high-entropy values
* (i.e. we can trust the Intel vs arm distinction). False when
- * we defaulted — UI should show the Intel Mac disclaimer. */
+ * we defaulted — UI should offer the other architecture. */
archConfident: boolean;
}
+const UNKNOWN_PLATFORM: DetectResult = { os: "unknown", arch: "unknown", archConfident: false };
+
interface UADataRecord {
platform: string;
architecture: string;
+ mobile?: boolean;
}
interface UserAgentDataLike {
+ mobile?: boolean;
getHighEntropyValues?: (hints: string[]) => Promise<UADataRecord>;
}
function normalizePlatform(raw: string): OSName {
const p = raw.toLowerCase();
+ if (p.includes("android") || p.includes("ios")) return "mobile";
if (p.includes("mac") || p === "darwin") return "mac";
if (p.includes("win")) return "windows";
- if (p.includes("linux")) return "linux";
+ if (p.includes("linux") || p.includes("chrome os")) return "linux";
return "unknown";
}
@@ -47,10 +55,44 @@ function normalizeArch(raw: string): Arch {
return "unknown";
}
-export async function detectOS(): Promise<DetectResult> {
- if (typeof navigator === "undefined") {
- return { os: "unknown", arch: "unknown", archConfident: false };
+/**
+ * Platform from a User-Agent string, optionally sharpened by the
+ * `Sec-CH-UA-Platform` and `Sec-CH-UA-Mobile` request hints.
+ */
+export function detectFromUserAgent(
+ ua: string,
+ hints: { platform?: string | null; mobile?: string | null } = {},
+): DetectResult {
+ const hinted = hints.platform ? normalizePlatform(hints.platform.replace(/"/g, "")) : "unknown";
+ const mobile =
+ hints.mobile === "?1" || hinted === "mobile" || /Android|iPhone|iPad|iPod|Mobile/i.test(ua);
+ if (mobile) return { os: "mobile", arch: "unknown", archConfident: false };
+
+ const os: OSName =
+ hinted !== "unknown"
+ ? hinted
+ : /Mac OS X|Macintosh/i.test(ua)
+ ? "mac"
+ : /Windows/i.test(ua)
+ ? "windows"
+ : /Linux|X11|CrOS/i.test(ua)
+ ? "linux"
+ : "unknown";
+
+ let arch: Arch = "unknown";
+ if (os === "mac") {
+ // Best default. Intel Mac users get the Intel build offered beside it.
+ arch = "arm64";
+ } else if (/arm|aarch/i.test(ua)) {
+ arch = "arm64";
+ } else if (os !== "unknown") {
+ arch = "x64";
}
+ return { os, arch, archConfident: false };
+}
+
+export async function detectOS(): Promise<DetectResult> {
+ if (typeof navigator === "undefined") return UNKNOWN_PLATFORM;
// Modern Chromium: userAgentData with high-entropy values gives
// both the platform name and CPU architecture unambiguously.
@@ -62,6 +104,7 @@ export async function detectOS(): Promise<DetectResult> {
"platform",
"architecture",
]);
+ if (data.mobile ?? uaData.mobile) return { os: "mobile", arch: "unknown", archConfident: false };
const os = normalizePlatform(data.platform);
const arch = normalizeArch(data.architecture);
return { os, arch, archConfident: arch !== "unknown" };
@@ -70,28 +113,9 @@ export async function detectOS(): Promise<DetectResult> {
}
}
- // Fallback: UA + navigator.platform. Safari on Mac lands here and
- // cannot distinguish Apple Silicon from Intel.
- const ua = navigator.userAgent;
- const platform = navigator.platform || "";
-
- const os: OSName = /Mac|iPhone|iPad|iPod/i.test(platform) || /Mac OS X/i.test(ua)
- ? "mac"
- : /Win/i.test(platform) || /Windows/i.test(ua)
- ? "windows"
- : /Linux/i.test(platform) || /Linux/i.test(ua)
- ? "linux"
- : "unknown";
-
- let arch: Arch = "unknown";
- if (os === "mac") {
- // Best default. Real Intel Mac users will see the architecture hint.
- arch = "arm64";
- } else if (/arm|aarch/i.test(ua)) {
- arch = "arm64";
- } else if (os !== "unknown") {
- arch = "x64";
+ // iPadOS Safari presents itself as a Mac; touch support gives it away.
+ if (/Macintosh/i.test(navigator.userAgent) && navigator.maxTouchPoints > 1) {
+ return { os: "mobile", arch: "unknown", archConfident: false };
}
-
- return { os, arch, archConfident: false };
+ return detectFromUserAgent(navigator.userAgent, { platform: navigator.platform });
}
diff --git a/apps/web/features/landing/utils/page-metadata.ts b/apps/web/features/landing/utils/page-metadata.ts
new file mode 100644
index 0000000000..83a9c03fa5
--- /dev/null
+++ b/apps/web/features/landing/utils/page-metadata.ts
@@ -0,0 +1,31 @@
+import type { Metadata } from "next";
+import { getRequestLocale } from "@/lib/request-locale";
+import { landingAlternates, localizeHref } from "@/lib/landing-locale-path";
+import { createLandingDict } from "../i18n/dictionary";
+import { toLandingDictionaryLocale, type LandingDictionaryLocale, type MetaPage } from "../i18n/types";
+import { SHARE_IMAGE } from "../share-image";
+
+const OG_LOCALE: Record<LandingDictionaryLocale, string> = { en: "en_US", zh: "zh_CN", ko: "ko_KR", ja: "ja_JP" };
+
+/**
+ * A marketing page's title, description and share card in the language its
+ * URL is in, pointing at its own URL and at its other languages.
+ */
+export async function pageMetadata(page: MetaPage, path: string): Promise<Metadata> {
+ const requested = await getRequestLocale();
+ const locale = toLandingDictionaryLocale(requested);
+ const meta = createLandingDict(requested).meta[page];
+ const url = localizeHref(requested, path);
+ return {
+ title: page === "home" ? { absolute: meta.title } : meta.title,
+ description: meta.description,
+ openGraph: {
+ images: [SHARE_IMAGE],
+ title: meta.ogTitle,
+ description: meta.ogDescription,
+ url,
+ locale: OG_LOCALE[locale],
+ },
+ alternates: { canonical: url, languages: landingAlternates(path) },
+ };
+}
diff --git a/apps/web/features/landing/utils/parse-release-assets.test.ts b/apps/web/features/landing/utils/parse-release-assets.test.ts
index 331ee04e61..e021ab89ef 100644
--- a/apps/web/features/landing/utils/parse-release-assets.test.ts
+++ b/apps/web/features/landing/utils/parse-release-assets.test.ts
@@ -1,6 +1,6 @@
// @vitest-environment node
import { describe, expect, it } from "vitest";
-import { hasCompleteAssetSet, parseReleaseAssets } from "./parse-release-assets";
+import { hasCompleteAssetSet, parseReleaseAssetSizes, parseReleaseAssets } from "./parse-release-assets";
function asset(name: string) {
return {
@@ -70,3 +70,16 @@ describe("hasCompleteAssetSet", () => {
expect(hasCompleteAssetSet({})).toBe(false);
});
});
+
+describe("parseReleaseAssetSizes", () => {
+ it("keys sizes like the asset map and skips auxiliary files", () => {
+ const sizes = parseReleaseAssetSizes([
+ { ...asset("multica-desktop-0.8.1-mac-arm64.dmg"), size: 248_000_000 },
+ { ...asset("multica-desktop-0.8.1-linux-x86_64.AppImage"), size: 249_000_000 },
+ { ...asset("multica-desktop-0.8.1-mac-arm64.dmg.blockmap"), size: 260_000 },
+ asset("multica-desktop-0.8.1-windows-x64.exe"),
+ ]);
+
+ expect(sizes).toEqual({ macArm64Dmg: 248_000_000, linuxAmd64AppImage: 249_000_000 });
+ });
+});
diff --git a/apps/web/features/landing/utils/parse-release-assets.ts b/apps/web/features/landing/utils/parse-release-assets.ts
index e716f74a9f..7a70a4359d 100644
--- a/apps/web/features/landing/utils/parse-release-assets.ts
+++ b/apps/web/features/landing/utils/parse-release-assets.ts
@@ -16,6 +16,7 @@
export interface GitHubAsset {
name: string;
browser_download_url: string;
+ size?: number;
}
export interface DownloadAssets {
@@ -43,53 +44,57 @@ function normalizeLinuxArch(arch: string): "amd64" | "arm64" | null {
return null;
}
+export type DownloadKey = keyof DownloadAssets;
+
+/** Byte size per desktop asset, for the download page's file details. */
+export type DownloadSizes = Partial<Record<DownloadKey, number>>;
+
+const MAC_KEYS: Record<string, Partial<Record<string, DownloadKey>>> = {
+ arm64: { dmg: "macArm64Dmg", zip: "macArm64Zip" },
+ x64: { dmg: "macX64Dmg", zip: "macX64Zip" },
+};
+const WINDOWS_KEYS: Partial<Record<string, DownloadKey>> = { x64: "winX64Exe", arm64: "winArm64Exe" };
+const LINUX_KEYS: Record<"amd64" | "arm64", Partial<Record<string, DownloadKey>>> = {
+ amd64: { appimage: "linuxAmd64AppImage", deb: "linuxAmd64Deb", rpm: "linuxAmd64Rpm" },
+ arm64: { appimage: "linuxArm64AppImage", deb: "linuxArm64Deb", rpm: "linuxArm64Rpm" },
+};
+
+/** Which desktop artifact a release file is, if any. */
+function assetKey(name: string): DownloadKey | undefined {
+ // Skip auxiliary files that share the release (update manifests,
+ // blockmaps, checksums). CLI tarballs and other non-desktop
+ // artifacts are excluded automatically because they don't match
+ // DESKTOP_ARTIFACT_RE below.
+ if (name.endsWith(".blockmap") || name.endsWith(".yml")) return undefined;
+ if (name.startsWith("checksums")) return undefined;
+
+ const match = DESKTOP_ARTIFACT_RE.exec(name);
+ if (!match) return undefined;
+ const [, platform, arch, ext] = match;
+ if (!platform || !arch || !ext) return undefined;
+ const archLower = arch.toLowerCase();
+ const extLower = ext.toLowerCase();
+
+ if (platform === "mac") return MAC_KEYS[archLower]?.[extLower];
+ if (platform === "windows") return extLower === "exe" ? WINDOWS_KEYS[archLower] : undefined;
+ const normalized = normalizeLinuxArch(arch);
+ return normalized ? LINUX_KEYS[normalized][extLower] : undefined;
+}
+
export function parseReleaseAssets(raw: GitHubAsset[]): DownloadAssets {
const out: DownloadAssets = {};
for (const asset of raw) {
- const name = asset.name;
- // Skip auxiliary files that share the release (update manifests,
- // blockmaps, checksums). CLI tarballs and other non-desktop
- // artifacts are excluded automatically because they don't match
- // DESKTOP_ARTIFACT_RE below.
- if (name.endsWith(".blockmap") || name.endsWith(".yml")) continue;
- if (name.startsWith("checksums")) continue;
-
- const match = DESKTOP_ARTIFACT_RE.exec(name);
- if (!match) continue;
- const platform = match[1];
- const arch = match[2];
- const ext = match[3];
- if (!platform || !arch || !ext) continue;
- const archLower = arch.toLowerCase();
- const extLower = ext.toLowerCase();
- const url = asset.browser_download_url;
+ const key = assetKey(asset.name);
+ if (key) out[key] = asset.browser_download_url;
+ }
+ return out;
+}
- if (platform === "mac") {
- if (archLower === "arm64") {
- if (extLower === "dmg") out.macArm64Dmg = url;
- else if (extLower === "zip") out.macArm64Zip = url;
- } else if (archLower === "x64") {
- if (extLower === "dmg") out.macX64Dmg = url;
- else if (extLower === "zip") out.macX64Zip = url;
- }
- } else if (platform === "windows") {
- if (extLower !== "exe") continue;
- if (archLower === "x64") out.winX64Exe = url;
- else if (archLower === "arm64") out.winArm64Exe = url;
- } else if (platform === "linux") {
- const normalized = normalizeLinuxArch(arch);
- if (!normalized) continue;
- const e = extLower;
- if (normalized === "amd64") {
- if (e === "appimage") out.linuxAmd64AppImage = url;
- else if (e === "deb") out.linuxAmd64Deb = url;
- else if (e === "rpm") out.linuxAmd64Rpm = url;
- } else {
- if (e === "appimage") out.linuxArm64AppImage = url;
- else if (e === "deb") out.linuxArm64Deb = url;
- else if (e === "rpm") out.linuxArm64Rpm = url;
- }
- }
+export function parseReleaseAssetSizes(raw: GitHubAsset[]): DownloadSizes {
+ const out: DownloadSizes = {};
+ for (const asset of raw) {
+ const key = assetKey(asset.name);
+ if (key && typeof asset.size === "number") out[key] = asset.size;
}
return out;
}
diff --git a/apps/web/features/landing/utils/request-platform.ts b/apps/web/features/landing/utils/request-platform.ts
new file mode 100644
index 0000000000..494b04864d
--- /dev/null
+++ b/apps/web/features/landing/utils/request-platform.ts
@@ -0,0 +1,11 @@
+import { headers } from "next/headers";
+import { detectFromUserAgent, type DetectResult } from "./os-detect";
+
+/** The visitor's platform from this request's headers, for server-rendered download buttons. */
+export async function getRequestPlatform(): Promise<DetectResult> {
+ const h = await headers();
+ return detectFromUserAgent(h.get("user-agent") ?? "", {
+ platform: h.get("sec-ch-ua-platform"),
+ mobile: h.get("sec-ch-ua-mobile"),
+ });
+}
diff --git a/apps/web/lib/landing-locale-path.test.ts b/apps/web/lib/landing-locale-path.test.ts
new file mode 100644
index 0000000000..1ba4b72eeb
--- /dev/null
+++ b/apps/web/lib/landing-locale-path.test.ts
@@ -0,0 +1,73 @@
+import { readdirSync } from "node:fs";
+import { join } from "node:path";
+import { describe, expect, it } from "vitest";
+import { isReservedSlug } from "@multica/core/paths";
+import {
+ LANDING_PATH_PREFIXES,
+ LANDING_ROUTES,
+ landingAlternates,
+ landingPathLocale,
+ localizeHref,
+ splitLandingLocale,
+ stripLandingLocale,
+} from "./landing-locale-path";
+
+describe("landing locale paths", () => {
+ it("lists every route under app/(landing)", () => {
+ const dir = join(__dirname, "../app/(landing)");
+ const routes = readdirSync(dir, { withFileTypes: true })
+ .filter((entry) => entry.isDirectory())
+ .map((entry) => entry.name);
+ expect([...LANDING_ROUTES].sort()).toEqual(routes.sort());
+ });
+
+ it("reserves every prefix as a workspace slug", () => {
+ for (const prefix of Object.keys(LANDING_PATH_PREFIXES)) expect(isReservedSlug(prefix)).toBe(true);
+ });
+
+ it("splits prefixed marketing URLs", () => {
+ expect(splitLandingLocale("/zh")).toEqual({ locale: "zh-Hans", path: "/" });
+ expect(splitLandingLocale("/ko/download")).toEqual({ locale: "ko", path: "/download" });
+ expect(splitLandingLocale("/ja/usecases/auto-data-analysis")).toEqual({
+ locale: "ja",
+ path: "/usecases/auto-data-analysis",
+ });
+ });
+
+ it("leaves app and unprefixed URLs alone", () => {
+ expect(splitLandingLocale("/download")).toBeNull();
+ expect(splitLandingLocale("/zh/issues")).toBeNull();
+ expect(splitLandingLocale("/zhong/download")).toBeNull();
+ expect(stripLandingLocale("/acme/issues")).toBe("/acme/issues");
+ expect(stripLandingLocale("/zh/about")).toBe("/about");
+ });
+
+ it("maps locales onto the languages the site has", () => {
+ expect(landingPathLocale("zh-Hant")).toBe("zh-Hans");
+ expect(landingPathLocale("fr")).toBe("en");
+ expect(landingPathLocale("ja")).toBe("ja");
+ });
+
+ it("prefixes marketing links only", () => {
+ expect(localizeHref("zh-Hans", "/")).toBe("/zh");
+ expect(localizeHref("zh-Hans", "/download?started=mac#top")).toBe("/zh/download?started=mac#top");
+ expect(localizeHref("ko", "/usecases/x")).toBe("/ko/usecases/x");
+ expect(localizeHref("ja", "/login")).toBe("/login");
+ expect(localizeHref("ja", "/docs/ja")).toBe("/docs/ja");
+ expect(localizeHref("ja", "https://github.com/multica-ai/multica")).toBe("https://github.com/multica-ai/multica");
+ expect(localizeHref("ja", "/zh/about")).toBe("/zh/about");
+ expect(localizeHref("en", "/about")).toBe("/about");
+ expect(localizeHref("fr", "/about")).toBe("/about");
+ });
+
+ it("lists every language's URL with English as the default", () => {
+ expect(landingAlternates("/", "https://www.multica.ai")).toEqual({
+ en: "https://www.multica.ai/",
+ "zh-Hans": "https://www.multica.ai/zh",
+ ko: "https://www.multica.ai/ko",
+ ja: "https://www.multica.ai/ja",
+ "x-default": "https://www.multica.ai/",
+ });
+ expect(landingAlternates("/download")).toMatchObject({ "zh-Hans": "/zh/download", "x-default": "/download" });
+ });
+});
diff --git a/apps/web/lib/landing-locale-path.ts b/apps/web/lib/landing-locale-path.ts
new file mode 100644
index 0000000000..c4fa4f5038
--- /dev/null
+++ b/apps/web/lib/landing-locale-path.ts
@@ -0,0 +1,111 @@
+import type { SupportedLocale } from "@multica/core/i18n";
+
+/*
+ * Language prefixes for the marketing site. English lives at the root
+ * (`/download`); every other language the site is translated into has its own
+ * prefix (`/zh/download`), which the proxy rewrites onto the same page with
+ * the locale fixed. The prefixes match the docs (`/docs/zh`), and are reserved
+ * as workspace slugs.
+ */
+
+/** Prefix → the locale its pages render in. */
+export const LANDING_PATH_PREFIXES = { zh: "zh-Hans", ko: "ko", ja: "ja" } as const satisfies Record<
+ string,
+ SupportedLocale
+>;
+
+type LandingPathPrefix = keyof typeof LANDING_PATH_PREFIXES;
+/** The languages the marketing site has a URL for. */
+export type LandingPathLocale = "en" | (typeof LANDING_PATH_PREFIXES)[LandingPathPrefix];
+
+const PREFIX_FOR: Record<LandingPathLocale, string> = { en: "", "zh-Hans": "zh", ko: "ko", ja: "ja" };
+
+/** `hreflang` value (BCP 47) for each language's URL. */
+export const HREFLANG: Record<LandingPathLocale, string> = { en: "en", "zh-Hans": "zh-Hans", ko: "ko", ja: "ja" };
+
+/** First path segments served by `app/(landing)`, besides the root. */
+export const LANDING_ROUTES: ReadonlySet<string> = new Set([
+ "about",
+ "blog",
+ "careers",
+ "changelog",
+ "contact-sales",
+ "customers",
+ "download",
+ "homepage",
+ "licensing",
+ "press",
+ "pricing",
+ "privacy",
+ "product",
+ "security",
+ "solutions",
+ "usecases",
+]);
+
+function firstSegment(pathname: string): string {
+ return pathname.split("/")[1] ?? "";
+}
+
+function isPrefix(segment: string): segment is LandingPathPrefix {
+ return Object.hasOwn(LANDING_PATH_PREFIXES, segment);
+}
+
+/** Whether an unprefixed path is a marketing page. */
+export function isLandingPath(pathname: string): boolean {
+ return pathname === "/" || LANDING_ROUTES.has(firstSegment(pathname));
+}
+
+/**
+ * A language-prefixed marketing URL, split into its locale and the page path
+ * it shows (`/zh/download` → zh-Hans, `/download`). Null when the path has no
+ * prefix or the rest is not a marketing page.
+ */
+export function splitLandingLocale(pathname: string): { locale: LandingPathLocale; path: string } | null {
+ const prefix = firstSegment(pathname);
+ if (!isPrefix(prefix)) return null;
+ const path = pathname.slice(prefix.length + 1) || "/";
+ return isLandingPath(path) ? { locale: LANDING_PATH_PREFIXES[prefix], path } : null;
+}
+
+/** The marketing-site language a locale reads: Traditional Chinese reads the Chinese pages, untranslated locales English. */
+export function landingPathLocale(locale: SupportedLocale): LandingPathLocale {
+ if (locale === "zh-Hans" || locale === "zh-Hant") return "zh-Hans";
+ if (locale === "ko" || locale === "ja") return locale;
+ return "en";
+}
+
+/** `path` (unprefixed) in `locale`'s URL space. */
+function withPrefix(locale: LandingPathLocale, path: string): string {
+ const prefix = PREFIX_FOR[locale];
+ if (!prefix) return path;
+ return path === "/" ? `/${prefix}` : `/${prefix}${path}`;
+}
+
+/**
+ * An internal href in `locale`'s URL space. Marketing pages gain the language
+ * prefix; anything else — the app, docs, external and already-prefixed links —
+ * is returned unchanged.
+ */
+export function localizeHref(locale: SupportedLocale, href: string): string {
+ if (!href.startsWith("/") || href.startsWith("//")) return href;
+ const cut = href.search(/[?#]/);
+ const path = cut === -1 ? href : href.slice(0, cut);
+ if (splitLandingLocale(path) || !isLandingPath(path)) return href;
+ return withPrefix(landingPathLocale(locale), path) + (cut === -1 ? "" : href.slice(cut));
+}
+
+/** The page path behind a marketing URL, with any language prefix removed. */
+export function stripLandingLocale(pathname: string): string {
+ return splitLandingLocale(pathname)?.path ?? pathname;
+}
+
+/** Every language's URL for an unprefixed page, keyed by `hreflang`, with English as `x-default`. */
+export function landingAlternates(path: string, origin = ""): Record<string, string> {
+ const languages: Record<string, string> = {};
+ for (const locale of Object.keys(PREFIX_FOR) as LandingPathLocale[]) {
+ languages[HREFLANG[locale]] = origin + withPrefix(locale, path);
+ }
+ languages["x-default"] = origin + path;
+ return languages;
+}
diff --git a/apps/web/proxy.test.ts b/apps/web/proxy.test.ts
index c79ad662f1..e519dae5c9 100644
--- a/apps/web/proxy.test.ts
+++ b/apps/web/proxy.test.ts
@@ -290,6 +290,61 @@ describe("proxy root and locale handling", () => {
});
});
+describe("proxy marketing-site language URLs", () => {
+ const localeOf = (res: Response) => res.headers.get(`x-middleware-request-${MULTICA_LOCALE_HEADER}`);
+ const withAcceptLanguage = (path: string, acceptLanguage: string) =>
+ new NextRequest(`https://www.multica.ai${path}`, { headers: { "accept-language": acceptLanguage } });
+
+ it.each([
+ ["/zh", "/", "zh-Hans"],
+ ["/zh/download", "/download", "zh-Hans"],
+ ["/ko/usecases/auto-data-analysis", "/usecases/auto-data-analysis", "ko"],
+ ["/ja/about?ref=x", "/about?ref=x", "ja"],
+ ])("serves %s as %s in its language", (path, page, locale) => {
+ const res = proxy(makeRequest(path, { "multica-locale": "en" }));
+
+ expect(res.headers.get("location")).toBeNull();
+ expect(res.headers.get("x-middleware-rewrite")).toBe(`https://app.multica.test${page}`);
+ expect(localeOf(res)).toBe(locale);
+ });
+
+ it("keeps English URLs English for visitors who have not picked a language", () => {
+ const res = proxy(withAcceptLanguage("/download", "zh-CN,zh;q=0.9"));
+
+ expect(res.headers.get("location")).toBeNull();
+ expect(res.headers.get("x-middleware-rewrite")).toBeNull();
+ expect(localeOf(res)).toBe("en");
+ });
+
+ it("keeps locales without a translated site on the English URL", () => {
+ const res = proxy(makeRequest("/about", { "multica-locale": "fr" }));
+
+ expect(res.headers.get("location")).toBeNull();
+ expect(localeOf(res)).toBe("fr");
+ });
+
+ it.each([
+ ["/", { "multica-locale": "zh-Hans" }, "/zh"],
+ ["/download?started=mac", { "multica-locale": "ko" }, "/ko/download?started=mac"],
+ ["/about", { "multica-locale": "zh-Hant" }, "/zh/about"],
+ ])("sends %s to the language the visitor picked", (path, cookies, location) => {
+ expect(redirectLocation(path, cookies, "www.multica.ai")).toBe(`https://www.multica.ai${location}`);
+ });
+
+ it("leaves app routes under a language-like slug to the app", () => {
+ const res = proxy(makeRequest("/zh/issues", { "multica-locale": "ja" }));
+
+ expect(res.headers.get("x-middleware-rewrite")).toBeNull();
+ expect(localeOf(res)).toBe("ja");
+ });
+
+ it("keeps the bare root of an existing workspace with a language slug", () => {
+ const res = proxy(makeRequest("/ko", { multica_logged_in: "1", last_workspace_slug: "ko" }));
+
+ expect(res.headers.get("x-middleware-rewrite")).toBeNull();
+ });
+});
+
describe("upload route bypasses the buffering proxy", () => {
it.each(["/api/upload-file", "/api/upload-file/"])(
diff --git a/apps/web/proxy.ts b/apps/web/proxy.ts
index f8f6ac4795..e6c1615621 100644
--- a/apps/web/proxy.ts
+++ b/apps/web/proxy.ts
@@ -1,9 +1,16 @@
import { NextResponse, type NextRequest } from "next/server";
-import { LOCALE_COOKIE } from "@multica/core/i18n";
+import { LOCALE_COOKIE, type SupportedLocale } from "@multica/core/i18n";
import {
+ isSupportedLocale,
MULTICA_LOCALE_HEADER,
resolveLocaleFromSignals,
} from "./lib/locale-routing";
+import {
+ isLandingPath,
+ landingPathLocale,
+ localizeHref,
+ splitLandingLocale,
+} from "./lib/landing-locale-path";
import { runtimeRewriteDestination } from "./config/runtime-urls";
import { isOfficialMarketingHost } from "./lib/public-host";
@@ -25,7 +32,7 @@ const LEGACY_ROUTE_SEGMENTS = new Set([
"usage",
]);
-function resolveLocale(req: NextRequest): string {
+function resolveLocale(req: NextRequest): SupportedLocale {
return resolveLocaleFromSignals({
cookieLocale: req.cookies.get(LOCALE_COOKIE)?.value,
acceptLanguage: req.headers.get("accept-language"),
@@ -36,12 +43,48 @@ function resolveLocale(req: NextRequest): string {
// request header. layout.tsx reads it through `await headers()`. The
// `request: { headers }` form is what makes the header land on the upstream
// request — without it the value would only sit on the response.
-function nextWithLocale(req: NextRequest): NextResponse {
+function nextWithLocale(req: NextRequest, locale = resolveLocale(req)): NextResponse {
const headers = new Headers(req.headers);
- headers.set(MULTICA_LOCALE_HEADER, resolveLocale(req));
+ headers.set(MULTICA_LOCALE_HEADER, locale);
return NextResponse.next({ request: { headers } });
}
+// The marketing site has one URL per language: English at the root, the
+// others under /zh, /ko and /ja (lib/landing-locale-path). Returns null for
+// paths that are not marketing pages.
+function routeLandingLocale(
+ req: NextRequest,
+ hasSession: boolean,
+ lastSlug: string | undefined,
+): NextResponse | null {
+ const { pathname } = req.nextUrl;
+ const prefixed = splitLandingLocale(pathname);
+ if (prefixed) {
+ // A workspace that took a language prefix as its slug before the prefix
+ // was reserved keeps its bare root for its members.
+ if (prefixed.path === "/" && hasSession && lastSlug === pathname.slice(1)) return null;
+ const url = req.nextUrl.clone();
+ url.pathname = prefixed.path;
+ const headers = new Headers(req.headers);
+ headers.set(MULTICA_LOCALE_HEADER, prefixed.locale);
+ return NextResponse.rewrite(url, { request: { headers } });
+ }
+ if (!isLandingPath(pathname)) return null;
+
+ // A remembered language choice goes to that language's URL. Without one the
+ // root URL stays English — the same page crawlers index — and the page
+ // offers the browser's language rather than switching to it.
+ const cookie = req.cookies.get(LOCALE_COOKIE)?.value ?? null;
+ const chosen = isSupportedLocale(cookie) ? landingPathLocale(cookie) : "en";
+ if (chosen !== "en") {
+ const url = req.nextUrl.clone();
+ url.pathname = localizeHref(chosen, pathname);
+ return NextResponse.redirect(url);
+ }
+ const resolved = resolveLocale(req);
+ return nextWithLocale(req, landingPathLocale(resolved) === "en" ? resolved : "en");
+}
+
// Next.js 16 renamed `middleware` → `proxy`. API surface (NextRequest /
// NextResponse / cookies / matcher) is identical; the only behavioral
// change is the runtime — proxy is forced to nodejs and cannot opt into
@@ -106,6 +149,9 @@ export function proxy(req: NextRequest) {
return NextResponse.redirect(url);
}
+ const landing = routeLandingLocale(req, hasSession, lastSlug);
+ if (landing) return landing;
+
// --- Default: forward locale header to RSC, no redirect/rewrite ---
// Covers logged-out root path, /login, /:slug/*, and everything else.
return nextWithLocale(req);
diff --git a/apps/web/public/images/frost/autopilots.webp b/apps/web/public/images/frost/autopilots.webp
new file mode 100644
index 0000000000..2dbb737510
Binary files /dev/null and b/apps/web/public/images/frost/autopilots.webp differ
diff --git a/apps/web/public/images/frost/changelog.webp b/apps/web/public/images/frost/changelog.webp
new file mode 100644
index 0000000000..9c0912c9c6
Binary files /dev/null and b/apps/web/public/images/frost/changelog.webp differ
diff --git a/apps/web/public/images/frost/chat-page.webp b/apps/web/public/images/frost/chat-page.webp
new file mode 100644
index 0000000000..162381d118
Binary files /dev/null and b/apps/web/public/images/frost/chat-page.webp differ
diff --git a/apps/web/public/images/frost/chat.webp b/apps/web/public/images/frost/chat.webp
new file mode 100644
index 0000000000..7093d03cbc
Binary files /dev/null and b/apps/web/public/images/frost/chat.webp differ
diff --git a/apps/web/public/images/frost/cli.webp b/apps/web/public/images/frost/cli.webp
new file mode 100644
index 0000000000..450b3dc607
Binary files /dev/null and b/apps/web/public/images/frost/cli.webp differ
diff --git a/apps/web/public/images/frost/cloud.webp b/apps/web/public/images/frost/cloud.webp
new file mode 100644
index 0000000000..e8fd113cfd
Binary files /dev/null and b/apps/web/public/images/frost/cloud.webp differ
diff --git a/apps/web/public/images/frost/desktop.webp b/apps/web/public/images/frost/desktop.webp
new file mode 100644
index 0000000000..8f248b268b
Binary files /dev/null and b/apps/web/public/images/frost/desktop.webp differ
diff --git a/apps/web/public/images/frost/mobile.webp b/apps/web/public/images/frost/mobile.webp
new file mode 100644
index 0000000000..50d2aa9393
Binary files /dev/null and b/apps/web/public/images/frost/mobile.webp differ
diff --git a/apps/web/public/images/frost/noise.webp b/apps/web/public/images/frost/noise.webp
new file mode 100644
index 0000000000..d552378971
Binary files /dev/null and b/apps/web/public/images/frost/noise.webp differ
diff --git a/apps/web/public/images/frost/runtimes.webp b/apps/web/public/images/frost/runtimes.webp
new file mode 100644
index 0000000000..c7d7fed9c2
Binary files /dev/null and b/apps/web/public/images/frost/runtimes.webp differ
diff --git a/apps/web/public/images/frost/skills.webp b/apps/web/public/images/frost/skills.webp
new file mode 100644
index 0000000000..7639761fc0
Binary files /dev/null and b/apps/web/public/images/frost/skills.webp differ
diff --git a/apps/web/public/images/frost/workflows.webp b/apps/web/public/images/frost/workflows.webp
new file mode 100644
index 0000000000..3a7b96149f
Binary files /dev/null and b/apps/web/public/images/frost/workflows.webp differ
diff --git a/apps/web/public/images/logos/adidas.webp b/apps/web/public/images/logos/adidas.webp
new file mode 100644
index 0000000000..0ec49822b9
Binary files /dev/null and b/apps/web/public/images/logos/adidas.webp differ
diff --git a/apps/web/public/images/logos/alibaba.webp b/apps/web/public/images/logos/alibaba.webp
new file mode 100644
index 0000000000..b608938975
Binary files /dev/null and b/apps/web/public/images/logos/alibaba.webp differ
diff --git a/apps/web/public/images/logos/amazon.webp b/apps/web/public/images/logos/amazon.webp
new file mode 100644
index 0000000000..e5ad54ba74
Binary files /dev/null and b/apps/web/public/images/logos/amazon.webp differ
diff --git a/apps/web/public/images/logos/berkeley.webp b/apps/web/public/images/logos/berkeley.webp
new file mode 100644
index 0000000000..ac674cee78
Binary files /dev/null and b/apps/web/public/images/logos/berkeley.webp differ
diff --git a/apps/web/public/images/logos/bytedance.webp b/apps/web/public/images/logos/bytedance.webp
new file mode 100644
index 0000000000..a1767073c3
Binary files /dev/null and b/apps/web/public/images/logos/bytedance.webp differ
diff --git a/apps/web/public/images/logos/doordash.webp b/apps/web/public/images/logos/doordash.webp
new file mode 100644
index 0000000000..3ad6906025
Binary files /dev/null and b/apps/web/public/images/logos/doordash.webp differ
diff --git a/apps/web/public/images/logos/google.webp b/apps/web/public/images/logos/google.webp
new file mode 100644
index 0000000000..dae4f12b83
Binary files /dev/null and b/apps/web/public/images/logos/google.webp differ
diff --git a/apps/web/public/images/logos/jd.webp b/apps/web/public/images/logos/jd.webp
new file mode 100644
index 0000000000..45ccaf40a4
Binary files /dev/null and b/apps/web/public/images/logos/jd.webp differ
diff --git a/apps/web/public/images/logos/meituan.webp b/apps/web/public/images/logos/meituan.webp
new file mode 100644
index 0000000000..3d3654ef58
Binary files /dev/null and b/apps/web/public/images/logos/meituan.webp differ
diff --git a/apps/web/public/images/logos/microsoft.webp b/apps/web/public/images/logos/microsoft.webp
new file mode 100644
index 0000000000..8f27280b92
Binary files /dev/null and b/apps/web/public/images/logos/microsoft.webp differ
diff --git a/apps/web/public/images/logos/nvidia.webp b/apps/web/public/images/logos/nvidia.webp
new file mode 100644
index 0000000000..41bbef9e08
Binary files /dev/null and b/apps/web/public/images/logos/nvidia.webp differ
diff --git a/apps/web/public/images/logos/oxford.webp b/apps/web/public/images/logos/oxford.webp
new file mode 100644
index 0000000000..94c46852dc
Binary files /dev/null and b/apps/web/public/images/logos/oxford.webp differ
diff --git a/apps/web/public/images/logos/rakuten.webp b/apps/web/public/images/logos/rakuten.webp
new file mode 100644
index 0000000000..d927357095
Binary files /dev/null and b/apps/web/public/images/logos/rakuten.webp differ
diff --git a/apps/web/public/images/logos/samsung.webp b/apps/web/public/images/logos/samsung.webp
new file mode 100644
index 0000000000..a3e2a659de
Binary files /dev/null and b/apps/web/public/images/logos/samsung.webp differ
diff --git a/apps/web/public/images/logos/sap.webp b/apps/web/public/images/logos/sap.webp
new file mode 100644
index 0000000000..3689ee7741
Binary files /dev/null and b/apps/web/public/images/logos/sap.webp differ
diff --git a/apps/web/public/images/logos/shopee.webp b/apps/web/public/images/logos/shopee.webp
new file mode 100644
index 0000000000..b6d222bc2c
Binary files /dev/null and b/apps/web/public/images/logos/shopee.webp differ
diff --git a/apps/web/public/images/logos/tencent.webp b/apps/web/public/images/logos/tencent.webp
new file mode 100644
index 0000000000..4c0e4f9dcf
Binary files /dev/null and b/apps/web/public/images/logos/tencent.webp differ
diff --git a/apps/web/public/images/logos/tsinghua.webp b/apps/web/public/images/logos/tsinghua.webp
new file mode 100644
index 0000000000..369093f5b7
Binary files /dev/null and b/apps/web/public/images/logos/tsinghua.webp differ
diff --git a/apps/web/public/images/logos/xiaomi.webp b/apps/web/public/images/logos/xiaomi.webp
new file mode 100644
index 0000000000..fa9e7bfcaa
Binary files /dev/null and b/apps/web/public/images/logos/xiaomi.webp differ
diff --git a/apps/web/public/images/logos/zoom.webp b/apps/web/public/images/logos/zoom.webp
new file mode 100644
index 0000000000..aa6eb66cea
Binary files /dev/null and b/apps/web/public/images/logos/zoom.webp differ
diff --git a/packages/core/paths/reserved-slugs.ts b/packages/core/paths/reserved-slugs.ts
index 823296e62e..4c653f8ff2 100644
--- a/packages/core/paths/reserved-slugs.ts
+++ b/packages/core/paths/reserved-slugs.ts
@@ -64,6 +64,217 @@ export const RESERVED_SLUGS: ReadonlySet<string> = new Set([
"press",
"download",
"usecases",
+ "product",
+ "solutions",
+ "customers",
+
+ // Marketing site language prefixes
+ // The marketing pages in other languages live under `/zh`, `/ko` and `/ja`
+ // (apps/web/lib/landing-locale-path.ts), matching the docs. A workspace with
+ // one of these slugs would have its root shadowed by that language's homepage.
+ "zh",
+ "ko",
+ "ja",
+
+ // Future marketing site languages
+ // Every ISO 639-1 language code, plus the script and region tags a language
+ // URL is likely to use (`zh-hant`, `pt-br`, ...), so a new language prefix
+ // like `/de` or `/zh-hant` never has to take a slug from a workspace. `zh`,
+ // `ko` and `ja` are in the group above because they are already live.
+ // Workspaces created with one of these slugs before they were reserved keep
+ // them: reservation only blocks creation.
+ "aa",
+ "ab",
+ "ae",
+ "af",
+ "ak",
+ "am",
+ "an",
+ "ar",
+ "as",
+ "av",
+ "ay",
+ "az",
+ "ba",
+ "be",
+ "bg",
+ "bi",
+ "bm",
+ "bn",
+ "bo",
+ "br",
+ "bs",
+ "ca",
+ "ce",
+ "ch",
+ "co",
+ "cr",
+ "cs",
+ "cu",
+ "cv",
+ "cy",
+ "da",
+ "de",
+ "dv",
+ "dz",
+ "ee",
+ "el",
+ "en",
+ "eo",
+ "es",
+ "et",
+ "eu",
+ "fa",
+ "ff",
+ "fi",
+ "fj",
+ "fo",
+ "fr",
+ "fy",
+ "ga",
+ "gd",
+ "gl",
+ "gn",
+ "gu",
+ "gv",
+ "ha",
+ "he",
+ "hi",
+ "ho",
+ "hr",
+ "ht",
+ "hu",
+ "hy",
+ "hz",
+ "ia",
+ "id",
+ "ie",
+ "ig",
+ "ii",
+ "ik",
+ "io",
+ "is",
+ "it",
+ "iu",
+ "jv",
+ "ka",
+ "kg",
+ "ki",
+ "kj",
+ "kk",
+ "kl",
+ "km",
+ "kn",
+ "kr",
+ "ks",
+ "ku",
+ "kv",
+ "kw",
+ "ky",
+ "la",
+ "lb",
+ "lg",
+ "li",
+ "ln",
+ "lo",
+ "lt",
+ "lu",
+ "lv",
+ "mg",
+ "mh",
+ "mi",
+ "mk",
+ "ml",
+ "mn",
+ "mr",
+ "ms",
+ "mt",
+ "my",
+ "na",
+ "nb",
+ "nd",
+ "ne",
+ "ng",
+ "nl",
+ "nn",
+ "no",
+ "nr",
+ "nv",
+ "ny",
+ "oc",
+ "oj",
+ "om",
+ "or",
+ "os",
+ "pa",
+ "pi",
+ "pl",
+ "ps",
+ "pt",
+ "qu",
+ "rm",
+ "rn",
+ "ro",
+ "ru",
+ "rw",
+ "sa",
+ "sc",
+ "sd",
+ "se",
+ "sg",
+ "si",
+ "sk",
+ "sl",
+ "sm",
+ "sn",
+ "so",
+ "sq",
+ "sr",
+ "ss",
+ "st",
+ "su",
+ "sv",
+ "sw",
+ "ta",
+ "te",
+ "tg",
+ "th",
+ "ti",
+ "tk",
+ "tl",
+ "tn",
+ "to",
+ "tr",
+ "ts",
+ "tt",
+ "tw",
+ "ty",
+ "ug",
+ "uk",
+ "ur",
+ "uz",
+ "ve",
+ "vi",
+ "vo",
+ "wa",
+ "wo",
+ "xh",
+ "yi",
+ "yo",
+ "za",
+ "zu",
+ "zh-hans",
+ "zh-hant",
+ "zh-cn",
+ "zh-tw",
+ "zh-hk",
+ "pt-br",
+ "pt-pt",
+ "es-419",
+ "es-mx",
+ "en-us",
+ "en-gb",
+ "fr-ca",
// Account / billing (likely-future global routes in the avatar menu)
"profile",
diff --git a/packages/ui/lib/utils.test.ts b/packages/ui/lib/utils.test.ts
new file mode 100644
index 0000000000..0fe1ddc386
--- /dev/null
+++ b/packages/ui/lib/utils.test.ts
@@ -0,0 +1,21 @@
+import { describe, expect, it } from "vitest";
+import { cn } from "./utils";
+
+describe("cn", () => {
+ it.each([
+ ["text-muted-foreground text-body", "text-muted-foreground text-body"],
+ ["text-site-inverse-ink text-site-small", "text-site-inverse-ink text-site-small"],
+ ["text-site-label text-site-muted", "text-site-label text-site-muted"],
+ ])("keeps a colour and a role-named size together: %s", (input, expected) => {
+ expect(cn(input)).toBe(expected);
+ });
+
+ it("keeps a role-named font family next to a weight", () => {
+ expect(cn("font-medium font-site-display")).toBe("font-medium font-site-display");
+ expect(cn("font-site-sans", "font-site-display")).toBe("font-site-display");
+ });
+
+ it("lets a later size replace an earlier one", () => {
+ expect(cn("text-site-small", "text-site-body")).toBe("text-site-body");
+ });
+});
diff --git a/packages/ui/lib/utils.ts b/packages/ui/lib/utils.ts
index eb60be108f..a1c543c20f 100644
--- a/packages/ui/lib/utils.ts
+++ b/packages/ui/lib/utils.ts
@@ -12,7 +12,8 @@ import { extendTailwindMerge } from "tailwind-merge"
*
* Registering the steps as font-size restores the real conflict groups: size
* beats size, colour beats colour, and the two coexist. Keep this list in sync
- * with the `--text-*` steps in `packages/ui/styles/tokens.css`.
+ * with the `--text-*` steps in `packages/ui/styles/tokens.css` and the
+ * marketing-site `--text-site-*` steps in `apps/web/app/landing.css`.
*/
const twMerge = extendTailwindMerge({
extend: {
@@ -52,6 +53,13 @@ const twMerge = extendTailwindMerge({
"title-lg",
"display-sm",
"display",
+ "site-display",
+ "site-heading",
+ "site-title",
+ "site-card",
+ "site-body",
+ "site-small",
+ "site-label",
],
},
],
diff --git a/packages/ui/package.json b/packages/ui/package.json
index bb21decd0b..71ea09f88d 100644
--- a/packages/ui/package.json
+++ b/packages/ui/package.json
@@ -24,6 +24,7 @@
"./lib/code-style": "./lib/code-style.ts",
"./lib/clipboard": "./lib/clipboard.ts",
"./lib/motion": "./lib/motion.ts",
+ "./lib/multica-brand": "./lib/multica-brand.ts",
"./icons": "./icons/index.ts",
"./i18n-types": "./types/i18next.ts",
"./styles/tokens.css": "./styles/tokens.css",
diff --git a/packages/ui/styles/base.css b/packages/ui/styles/base.css
index d1f75a7475..c59ba34f6f 100644
--- a/packages/ui/styles/base.css
+++ b/packages/ui/styles/base.css
@@ -268,7 +268,7 @@
position: absolute;
inset: 0;
border-radius: inherit;
- padding: 1px;
+ padding: var(--border-beam-width, 1px);
overflow: hidden;
pointer-events: none;
container-type: size;
diff --git a/packages/views/package.json b/packages/views/package.json
index c8951def4a..b15dd7cf74 100644
--- a/packages/views/package.json
+++ b/packages/views/package.json
@@ -17,6 +17,8 @@
"./editor": "./editor/index.ts",
"./issue-views": "./issue-views/index.ts",
"./issues/components": "./issues/components/index.ts",
+ "./issues/components/status-icon": "./issues/components/status-icon.tsx",
+ "./issues/components/priority-icon": "./issues/components/priority-icon.tsx",
"./issues/hooks": "./issues/hooks/index.ts",
"./issues/utils/filter": "./issues/utils/filter.ts",
"./issues/utils/sort": "./issues/utils/sort.ts",
@@ -38,6 +40,12 @@
"./members": "./members/index.ts",
"./inbox": "./inbox/index.ts",
"./runtimes": "./runtimes/index.ts",
+ "./runtimes/components/provider-logo": "./runtimes/components/provider-logo.tsx",
+ "./settings/components/dingtalk-mark": "./settings/components/dingtalk-mark.tsx",
+ "./settings/components/lark-mark": "./settings/components/lark-mark.tsx",
+ "./settings/components/slack-mark": "./settings/components/slack-mark.tsx",
+ "./settings/components/telegram-mark": "./settings/components/telegram-mark.tsx",
+ "./settings/components/wecom-mark": "./settings/components/wecom-mark.tsx",
"./billing": "./billing/index.ts",
"./dashboard": "./dashboard/index.ts",
"./squads": "./squads/index.ts",
diff --git a/scripts/check-ui-radius-tokens.mjs b/scripts/check-ui-radius-tokens.mjs
index 1796a9a8bb..07921d5a63 100644
--- a/scripts/check-ui-radius-tokens.mjs
+++ b/scripts/check-ui-radius-tokens.mjs
@@ -6,7 +6,9 @@
* bypassing our `--radius-*` scale. Fixed arbitrary lengths create the same
* drift. The few 2–3px data-visualization marks below are intentional
* micro-geometry, not product surfaces, and are allowlisted by exact file so
- * the exception cannot spread silently.
+ * the exception cannot spread silently. The landing page's phone mockup is
+ * the one other exception: its status-bar glyphs and its hardware frame copy
+ * a device's geometry, which no product radius describes.
*
* Run: node scripts/check-ui-radius-tokens.mjs
*/
@@ -26,6 +28,12 @@ const fixedCssLength = /^(?:\d+(?:\.\d+)?|\.\d+)(?:px|rem|em|%|cm|mm|in|pt|pc|q|
const microGeometryAllowlist = new Set([
"apps/web/features/landing/components/features-section.tsx:rounded-[2px]",
+ "apps/web/features/landing/site/demo/hero-blocks.tsx:rounded-[2px]",
+ "apps/web/features/landing/site/demo/hero-blocks.tsx:rounded-t-[2px]",
+ "apps/web/features/landing/site/demo/mobile-visuals.tsx:rounded-[1px]",
+ "apps/web/features/landing/site/demo/mobile-visuals.tsx:rounded-[1.5px]",
+ "apps/web/features/landing/site/demo/mobile-visuals.tsx:rounded-[39px]",
+ "apps/web/features/landing/site/demo/mobile-visuals.tsx:rounded-[46px]",
"packages/ui/components/ui/chart.tsx:rounded-[2px]",
"packages/views/common/task-transcript/run-timeline.tsx:rounded-[3px]",
"packages/views/dashboard/components/errors-tab.tsx:rounded-[2px]",
diff --git a/server/cmd/server/router.go b/server/cmd/server/router.go
index dd12d66017..6c5eab71c4 100644
--- a/server/cmd/server/router.go
+++ b/server/cmd/server/router.go
@@ -1580,6 +1580,8 @@ func NewRouterWithOptions(pool *pgxpool.Pool, hub *realtime.Hub, bus *events.Bus
authRL := middleware.RateLimit(rdb, envPositiveInt("RATE_LIMIT_AUTH", 5), time.Minute, trustedProxies)
authVerifyRL := middleware.RateLimit(rdb, envPositiveInt("RATE_LIMIT_AUTH_VERIFY", 20), time.Minute, trustedProxies)
contactSalesRL := middleware.RateLimit(rdb, envPositiveInt("RATE_LIMIT_CONTACT_SALES", 5), time.Hour, trustedProxies)
+ siteStarReadRL := middleware.RateLimit(rdb, envPositiveInt("RATE_LIMIT_SITE_STAR_READ", 30), time.Minute, trustedProxies)
+ siteStarSpinRL := middleware.RateLimit(rdb, envPositiveInt("RATE_LIMIT_SITE_STAR_SPIN", 40), time.Minute, trustedProxies)
r.With(authRL).Post("/auth/send-code", h.SendCode)
r.With(authVerifyRL).Post("/auth/verify-code", h.VerifyCode)
r.With(authRL).Post("/auth/google", h.GoogleLogin)
@@ -1588,6 +1590,10 @@ func NewRouterWithOptions(pool *pgxpool.Pool, hub *realtime.Hub, bus *events.Bus
// Public API
r.Get("/api/config", h.GetConfig)
r.With(contactSalesRL).Post("/api/contact-sales", h.CreateContactSales)
+ // The marketing site's shared footer star. Reads and spins live on
+ // separate paths because the limiter keys on path and IP.
+ r.With(siteStarReadRL).Get("/api/site/star", h.GetSiteStar)
+ r.With(siteStarSpinRL).Post("/api/site/star/turns", h.AddSiteStarTurns)
// Public share-link preview — no auth: shows the workspace name/slug and
// inviter so a not-yet-logged-in visitor can see what they're joining.
r.Get("/api/share-links/{code}", h.GetShareLinkInfo)
diff --git a/server/internal/handler/reserved_slugs.json b/server/internal/handler/reserved_slugs.json
index f80db5476d..7445ad5f81 100644
--- a/server/internal/handler/reserved_slugs.json
+++ b/server/internal/handler/reserved_slugs.json
@@ -51,7 +51,217 @@
"careers",
"press",
"download",
- "usecases"
+ "usecases",
+ "product",
+ "solutions",
+ "customers"
+ ]
+ },
+ {
+ "label": "Marketing site language prefixes",
+ "description": "The marketing pages in other languages live under `/zh`, `/ko` and `/ja` (apps/web/lib/landing-locale-path.ts), matching the docs. A workspace with one of these slugs would have its root shadowed by that language's homepage.",
+ "slugs": [
+ "zh",
+ "ko",
+ "ja"
+ ]
+ },
+ {
+ "label": "Future marketing site languages",
+ "description": "Every ISO 639-1 language code, plus the script and region tags a language URL is likely to use (`zh-hant`, `pt-br`, ...), so a new language prefix like `/de` or `/zh-hant` never has to take a slug from a workspace. `zh`, `ko` and `ja` are in the group above because they are already live. Workspaces created with one of these slugs before they were reserved keep them: reservation only blocks creation.",
+ "slugs": [
+ "aa",
+ "ab",
+ "ae",
+ "af",
+ "ak",
+ "am",
+ "an",
+ "ar",
+ "as",
+ "av",
+ "ay",
+ "az",
+ "ba",
+ "be",
+ "bg",
+ "bi",
+ "bm",
+ "bn",
+ "bo",
+ "br",
+ "bs",
+ "ca",
+ "ce",
+ "ch",
+ "co",
+ "cr",
+ "cs",
+ "cu",
+ "cv",
+ "cy",
+ "da",
+ "de",
+ "dv",
+ "dz",
+ "ee",
+ "el",
+ "en",
+ "eo",
+ "es",
+ "et",
+ "eu",
+ "fa",
+ "ff",
+ "fi",
+ "fj",
+ "fo",
+ "fr",
+ "fy",
+ "ga",
+ "gd",
+ "gl",
+ "gn",
+ "gu",
+ "gv",
+ "ha",
+ "he",
+ "hi",
+ "ho",
+ "hr",
+ "ht",
+ "hu",
+ "hy",
+ "hz",
+ "ia",
+ "id",
+ "ie",
+ "ig",
+ "ii",
+ "ik",
+ "io",
+ "is",
+ "it",
+ "iu",
+ "jv",
+ "ka",
+ "kg",
+ "ki",
+ "kj",
+ "kk",
+ "kl",
+ "km",
+ "kn",
+ "kr",
+ "ks",
+ "ku",
+ "kv",
+ "kw",
+ "ky",
+ "la",
+ "lb",
+ "lg",
+ "li",
+ "ln",
+ "lo",
+ "lt",
+ "lu",
+ "lv",
+ "mg",
+ "mh",
+ "mi",
+ "mk",
+ "ml",
+ "mn",
+ "mr",
+ "ms",
+ "mt",
+ "my",
+ "na",
+ "nb",
+ "nd",
+ "ne",
+ "ng",
+ "nl",
+ "nn",
+ "no",
+ "nr",
+ "nv",
+ "ny",
+ "oc",
+ "oj",
+ "om",
+ "or",
+ "os",
+ "pa",
+ "pi",
+ "pl",
+ "ps",
+ "pt",
+ "qu",
+ "rm",
+ "rn",
+ "ro",
+ "ru",
+ "rw",
+ "sa",
+ "sc",
+ "sd",
+ "se",
+ "sg",
+ "si",
+ "sk",
+ "sl",
+ "sm",
+ "sn",
+ "so",
+ "sq",
+ "sr",
+ "ss",
+ "st",
+ "su",
+ "sv",
+ "sw",
+ "ta",
+ "te",
+ "tg",
+ "th",
+ "ti",
+ "tk",
+ "tl",
+ "tn",
+ "to",
+ "tr",
+ "ts",
+ "tt",
+ "tw",
+ "ty",
+ "ug",
+ "uk",
+ "ur",
+ "uz",
+ "ve",
+ "vi",
+ "vo",
+ "wa",
+ "wo",
+ "xh",
+ "yi",
+ "yo",
+ "za",
+ "zu",
+ "zh-hans",
+ "zh-hant",
+ "zh-cn",
+ "zh-tw",
+ "zh-hk",
+ "pt-br",
+ "pt-pt",
+ "es-419",
+ "es-mx",
+ "en-us",
+ "en-gb",
+ "fr-ca"
]
},
{
diff --git a/server/internal/handler/site_star.go b/server/internal/handler/site_star.go
new file mode 100644
index 0000000000..d2487a8e59
--- /dev/null
+++ b/server/internal/handler/site_star.go
@@ -0,0 +1,62 @@
+package handler
+
+import (
+ "encoding/json"
+ "errors"
+ "log/slog"
+ "net/http"
+
+ "github.com/jackc/pgx/v5"
+ "github.com/multica-ai/multica/server/internal/logger"
+ db "github.com/multica-ai/multica/server/pkg/db/generated"
+)
+
+// The marketing site's footer star, which every visitor blows round together.
+// The total is a public, anonymous counter: each request may add only a few
+// turns, the route is rate limited per IP, and nothing about the visitor is
+// stored.
+const (
+ siteStarCounter = "footer_star_turns"
+ // A visitor spins the star at most about six turns a second and the page
+ // reports every couple of seconds; this leaves headroom for a late flush.
+ siteStarMaxTurnsPerRequest = 30
+ siteStarBodyLimit = 1 << 10
+)
+
+type siteStarResponse struct {
+ Turns int64 `json:"turns"`
+}
+
+type addSiteStarTurnsRequest struct {
+ Turns int64 `json:"turns"`
+}
+
+func (h *Handler) GetSiteStar(w http.ResponseWriter, r *http.Request) {
+ turns, err := h.Queries.GetSiteCounter(r.Context(), siteStarCounter)
+ if err != nil && !errors.Is(err, pgx.ErrNoRows) {
+ slog.Warn("get site star failed", append(logger.RequestAttrs(r), "error", err)...)
+ writeError(w, http.StatusInternalServerError, "failed to read star")
+ return
+ }
+ writeJSON(w, http.StatusOK, siteStarResponse{Turns: turns})
+}
+
+func (h *Handler) AddSiteStarTurns(w http.ResponseWriter, r *http.Request) {
+ r.Body = http.MaxBytesReader(w, r.Body, siteStarBodyLimit)
+ var req addSiteStarTurnsRequest
+ if err := json.NewDecoder(r.Body).Decode(&req); err != nil {
+ writeError(w, http.StatusBadRequest, "invalid request body")
+ return
+ }
+ if req.Turns < 1 || req.Turns > siteStarMaxTurnsPerRequest {
+ writeError(w, http.StatusBadRequest, "turns is out of range")
+ return
+ }
+ turns, err := h.Queries.AddSiteCounter(r.Context(), db.AddSiteCounterParams{Name: siteStarCounter, Value: req.Turns})
+ if err != nil {
+ slog.Warn("add site star turns failed", append(logger.RequestAttrs(r), "error", err)...)
+ writeError(w, http.StatusInternalServerError, "failed to spin star")
+ return
+ }
+ writeJSON(w, http.StatusOK, siteStarResponse{Turns: turns})
+}
diff --git a/server/internal/handler/site_star_test.go b/server/internal/handler/site_star_test.go
new file mode 100644
index 0000000000..b62f87e998
--- /dev/null
+++ b/server/internal/handler/site_star_test.go
@@ -0,0 +1,81 @@
+package handler
+
+import (
+ "context"
+ "encoding/json"
+ "net/http"
+ "net/http/httptest"
+ "strings"
+ "testing"
+)
+
+func resetSiteStar(t *testing.T) {
+ t.Helper()
+ clear := func() error {
+ _, err := testPool.Exec(context.Background(), `DELETE FROM site_counter WHERE name = $1`, siteStarCounter)
+ return err
+ }
+ if err := clear(); err != nil {
+ t.Fatalf("clear site_counter: %v", err)
+ }
+ t.Cleanup(func() { _ = clear() })
+}
+
+func siteStarTurns(t *testing.T, w *httptest.ResponseRecorder) int64 {
+ t.Helper()
+ if w.Code != http.StatusOK {
+ t.Fatalf("expected 200, got %d: %s", w.Code, w.Body.String())
+ }
+ var resp siteStarResponse
+ if err := json.NewDecoder(w.Body).Decode(&resp); err != nil {
+ t.Fatalf("decode response: %v", err)
+ }
+ return resp.Turns
+}
+
+func addSiteStarTurns(body string) *httptest.ResponseRecorder {
+ w := httptest.NewRecorder()
+ req := httptest.NewRequest("POST", "/api/site/star/turns", strings.NewReader(body))
+ req.Header.Set("Content-Type", "application/json")
+ testHandler.AddSiteStarTurns(w, req)
+ return w
+}
+
+func TestSiteStarStartsAtZeroAndAccumulates(t *testing.T) {
+ resetSiteStar(t)
+
+ w := httptest.NewRecorder()
+ testHandler.GetSiteStar(w, httptest.NewRequest("GET", "/api/site/star", nil))
+ if got := siteStarTurns(t, w); got != 0 {
+ t.Fatalf("expected 0 turns before any spin, got %d", got)
+ }
+
+ if got := siteStarTurns(t, addSiteStarTurns(`{"turns":3}`)); got != 3 {
+ t.Fatalf("expected 3 turns after the first spin, got %d", got)
+ }
+ if got := siteStarTurns(t, addSiteStarTurns(`{"turns":4}`)); got != 7 {
+ t.Fatalf("expected 7 turns after the second spin, got %d", got)
+ }
+
+ w = httptest.NewRecorder()
+ testHandler.GetSiteStar(w, httptest.NewRequest("GET", "/api/site/star", nil))
+ if got := siteStarTurns(t, w); got != 7 {
+ t.Fatalf("expected the total to read back as 7, got %d", got)
+ }
+}
+
+func TestSiteStarRejectsOutOfRangeTurns(t *testing.T) {
+ resetSiteStar(t)
+
+ for _, body := range []string{`{"turns":0}`, `{"turns":-5}`, `{"turns":31}`, `{}`, `not json`} {
+ if w := addSiteStarTurns(body); w.Code != http.StatusBadRequest {
+ t.Fatalf("body %s: expected 400, got %d: %s", body, w.Code, w.Body.String())
+ }
+ }
+
+ w := httptest.NewRecorder()
+ testHandler.GetSiteStar(w, httptest.NewRequest("GET", "/api/site/star", nil))
+ if got := siteStarTurns(t, w); got != 0 {
+ t.Fatalf("rejected spins must not count, got %d", got)
+ }
+}
diff --git a/server/internal/handler/workspace_delete_manifest_test.go b/server/internal/handler/workspace_delete_manifest_test.go
index 3079f8ac22..9426b25eb9 100644
--- a/server/internal/handler/workspace_delete_manifest_test.go
+++ b/server/internal/handler/workspace_delete_manifest_test.go
@@ -125,6 +125,7 @@ var workspaceDeletionManifest = map[string]workspaceDeleteAction{
"search_index_change": workspaceDelete,
"search_index_prune_mark": workspaceDeleteKeep,
"seat_capacity_outbox": workspaceDeleteSettle,
+ "site_counter": workspaceDeleteKeep,
"skill": workspaceDelete,
"skill_file": workspaceDelete,
"skill_to_label": workspaceDelete,
diff --git a/server/migrations/636_site_counter.down.sql b/server/migrations/636_site_counter.down.sql
new file mode 100644
index 0000000000..bc8e995bf4
--- /dev/null
+++ b/server/migrations/636_site_counter.down.sql
@@ -0,0 +1 @@
+DROP TABLE IF EXISTS site_counter;
diff --git a/server/migrations/636_site_counter.up.sql b/server/migrations/636_site_counter.up.sql
new file mode 100644
index 0000000000..ca3657d2c5
--- /dev/null
+++ b/server/migrations/636_site_counter.up.sql
@@ -0,0 +1,8 @@
+-- Running totals shown on the public marketing site, keyed by name (e.g. how
+-- many turns every visitor together has blown the footer star). Rows are
+-- created on first increment.
+CREATE TABLE IF NOT EXISTS site_counter (
+ name TEXT PRIMARY KEY,
+ value BIGINT NOT NULL DEFAULT 0,
+ updated_at TIMESTAMPTZ NOT NULL DEFAULT now()
+);
diff --git a/server/pkg/db/generated/models.go b/server/pkg/db/generated/models.go
index 24e0576c65..8699b49de5 100644
--- a/server/pkg/db/generated/models.go
+++ b/server/pkg/db/generated/models.go
@@ -1579,6 +1579,12 @@ type SeatCapacityOutbox struct {
UpdatedAt pgtype.Timestamptz `json:"updated_at"`
}
+type SiteCounter struct {
+ Name string `json:"name"`
+ Value int64 `json:"value"`
+ UpdatedAt pgtype.Timestamptz `json:"updated_at"`
+}
+
type Skill struct {
ID pgtype.UUID `json:"id"`
WorkspaceID pgtype.UUID `json:"workspace_id"`
diff --git a/server/pkg/db/generated/site_counter.sql.go b/server/pkg/db/generated/site_counter.sql.go
new file mode 100644
index 0000000000..cf05a9057e
--- /dev/null
+++ b/server/pkg/db/generated/site_counter.sql.go
@@ -0,0 +1,41 @@
+// Code generated by sqlc. DO NOT EDIT.
+// versions:
+// sqlc v1.31.1
+// source: site_counter.sql
+
+package db
+
+import (
+ "context"
+)
+
+const addSiteCounter = `-- name: AddSiteCounter :one
+INSERT INTO site_counter (name, value)
+VALUES ($1, $2)
+ON CONFLICT (name) DO UPDATE
+SET value = site_counter.value + EXCLUDED.value, updated_at = now()
+RETURNING value
+`
+
+type AddSiteCounterParams struct {
+ Name string `json:"name"`
+ Value int64 `json:"value"`
+}
+
+func (q *Queries) AddSiteCounter(ctx context.Context, arg AddSiteCounterParams) (int64, error) {
+ row := q.db.QueryRow(ctx, addSiteCounter, arg.Name, arg.Value)
+ var value int64
+ err := row.Scan(&value)
+ return value, err
+}
+
+const getSiteCounter = `-- name: GetSiteCounter :one
+SELECT value FROM site_counter WHERE name = $1
+`
+
+func (q *Queries) GetSiteCounter(ctx context.Context, name string) (int64, error) {
+ row := q.db.QueryRow(ctx, getSiteCounter, name)
+ var value int64
+ err := row.Scan(&value)
+ return value, err
+}
diff --git a/server/pkg/db/queries/site_counter.sql b/server/pkg/db/queries/site_counter.sql
new file mode 100644
index 0000000000..b3ea418b14
--- /dev/null
+++ b/server/pkg/db/queries/site_counter.sql
@@ -0,0 +1,9 @@
+-- name: GetSiteCounter :one
+SELECT value FROM site_counter WHERE name = $1;
+
+-- name: AddSiteCounter :one
+INSERT INTO site_counter (name, value)
+VALUES ($1, $2)
+ON CONFLICT (name) DO UPDATE
+SET value = site_counter.value + EXCLUDED.value, updated_at = now()
+RETURNING value;
diff --git a/turbo.json b/turbo.json
index 4c6a5227a4..e3eec62032 100644
--- a/turbo.json
+++ b/turbo.json
@@ -12,6 +12,7 @@
"FRONTEND_ORIGIN",
"NEXT_PUBLIC_API_URL",
"NEXT_PUBLIC_WS_URL",
+ "NEXT_PUBLIC_SITE_PREVIEW",
"MULTICA_SERVER_URL",
"DOCS_URL",
"COMPOSE_PROJECT_NAME",