Shared task board where people and AI coding agents work as teammates. Source-available, self-hostable.
Go
refactor(landing): tighten hero — CTAs, install copy, works-with wrap, LCP priority (#1227)
Jiayuan Zhangd7a8e9041e34
diff --git a/apps/web/features/landing/components/landing-hero.tsx b/apps/web/features/landing/components/landing-hero.tsxindex 7138d2add3..70d83e2574 100644--- a/apps/web/features/landing/components/landing-hero.tsx+++ b/apps/web/features/landing/components/landing-hero.tsx@@ -1,6 +1,5 @@"use client";-import { useCallback, useState } from "react";import Image from "next/image";import Link from "next/link";import { useAuthStore } from "@multica/core/auth";@@ -11,8 +10,6 @@ import {GeminiCliLogo,OpenClawLogo,OpenCodeLogo,- GitHubMark,- githubUrl,heroButtonClassName,} from "./shared";@@ -66,25 +63,14 @@ export function LandingHero() {</svg>{t.hero.downloadDesktop}</Link>- <Link- href={githubUrl}- target="_blank"- rel="noreferrer"- className={heroButtonClassName("ghost")}- >- <GitHubMark className="size-4" />- GitHub- </Link></div>-- <InstallCommand /></div>- <div className="mt-10 flex items-center justify-center gap-8">+ <div className="mt-10 flex flex-wrap items-center justify-center gap-x-6 gap-y-3"><span className="text-[15px] text-white/50">{t.hero.worksWith}</span>- <div className="flex items-center gap-6">+ <div className="flex flex-wrap items-center justify-center gap-x-5 gap-y-3"><div className="flex items-center gap-2.5 text-white/80"><ClaudeCodeLogo className="size-5" /><span className="text-[15px] font-medium">Claude Code</span>@@ -117,64 +103,6 @@ export function LandingHero() {);}-const INSTALL_COMMAND =- "curl -fsSL https://raw.githubusercontent.com/multica-ai/multica/main/scripts/install.sh | bash";--function InstallCommand() {- const [copied, setCopied] = useState(false);-- const handleCopy = useCallback(async () => {- try {- await navigator.clipboard.writeText(INSTALL_COMMAND);- setCopied(true);- setTimeout(() => setCopied(false), 2000);- } catch {- // ignore- }- }, []);-- return (- <div className="mx-auto mt-6 max-w-fit">- <button- type="button"- onClick={handleCopy}- className="group flex items-center gap-3 rounded-lg border border-white/10 bg-white/5 px-4 py-2.5 font-mono text-[13px] text-white/70 backdrop-blur-sm transition-colors hover:border-white/20 hover:bg-white/8 hover:text-white/90"- >- <span className="text-white/40">$</span>- <span className="select-all">{INSTALL_COMMAND}</span>- <span className="ml-1 flex size-5 shrink-0 items-center justify-center text-white/40 transition-colors group-hover:text-white/70">- {copied ? (- <svg- viewBox="0 0 24 24"- fill="none"- stroke="currentColor"- strokeWidth="2"- strokeLinecap="round"- strokeLinejoin="round"- className="size-3.5 text-green-400"- >- <polyline points="20 6 9 17 4 12" />- </svg>- ) : (- <svg- viewBox="0 0 24 24"- fill="none"- stroke="currentColor"- strokeWidth="2"- strokeLinecap="round"- strokeLinejoin="round"- className="size-3.5"- >- <rect x="9" y="9" width="13" height="13" rx="2" ry="2" />- <path d="M5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1" />- </svg>- )}- </span>- </button>- </div>- );-}-function LandingBackdrop() {return (<div className="pointer-events-none absolute inset-0">@@ -182,7 +110,6 @@ function LandingBackdrop() {src="/images/landing-bg.jpg"alt=""fill- priorityclassName="object-cover object-center"/></div>@@ -198,6 +125,7 @@ function ProductImage({ alt }: { alt: string }) {alt={alt}width={3532}height={2382}+ priorityclassName="block h-auto w-full"sizes="(max-width: 1320px) 100vw, 1320px"quality={85}