A local-first multi-agent app development platform, built on PenguinHarness
fix(landing): refine mobile layouts (#475)
Yaowei Zheng79cf847332f6
diff --git a/README.md b/README.mdindex d1371b6f..178d327f 100644--- a/README.md+++ b/README.md@@ -4,7 +4,7 @@<h1 align="center">PenguinHarness</h1>-<p align="center"><strong>Open-source, local-first platform for automated agent app development</strong><br />Fully automate <strong>building</strong> · <strong>optimizing</strong> · <strong>deploying</strong> AI applications</p>+<p align="center"><strong>Open-source, local-first multi-agent app development platform</strong><br />Fully automate <strong>building</strong> · <strong>optimizing</strong> · <strong>deploying</strong> AI applications</p><p align="center"><a href="https://penguin.ooo/download">diff --git a/README.zh.md b/README.zh.mdindex 83b8cc55..f9572d3e 100644--- a/README.zh.md+++ b/README.zh.md@@ -4,7 +4,7 @@<h1 align="center">PenguinHarness</h1>-<p align="center"><strong>开源、本地的 Agent 应用自动开发平台</strong><br />全自动<strong>创建</strong> · <strong>优化</strong> · <strong>部署</strong> AI 应用</p>+<p align="center"><strong>开源、本地的多 Agent 应用自动开发平台</strong><br />全自动<strong>创建</strong> · <strong>优化</strong> · <strong>部署</strong> AI 应用</p><p align="center"><a href="https://penguin.ooo/download">diff --git a/changelog/unreleased/2026-08-27-landing-mobile-layout.md b/changelog/unreleased/2026-08-27-landing-mobile-layout.mdnew file mode 100644index 00000000..0424e566--- /dev/null+++ b/changelog/unreleased/2026-08-27-landing-mobile-layout.md@@ -0,0 +1,18 @@+# Mobile landing layouts++- **Date:** 2026-08-27+- **Type:** fix+- **Scope:** `landing`+- **PR:** [#475](https://github.com/Prism-Shadow/penguin-harness/pull/475)++[中文版](2026-08-27-landing-mobile-layout.zh.md)++Refined the landing page for narrow phone viewports while preserving the desktop presentation and page narrative.++## Details++- Kept the announcement carousel inside its mobile clipping boundary and condensed the expanded navigation into a two-column menu.+- Aligned the landing page and bilingual README positioning around open-source, local-first multi-agent app development.+- Let the hero positioning lines and four title-cased platform proof points wrap at a consistent scale instead of clipping at 320–390 px widths, and centered the supported-model marks in predictable rows.+- Let case prompts wrap on phones, added a compact mobile self-improvement flow, and replaced horizontally clipped benchmark tables with readable result cards.+- Tightened scenario-card padding so production stories remain easy to scan on narrow screens.diff --git a/changelog/unreleased/2026-08-27-landing-mobile-layout.zh.md b/changelog/unreleased/2026-08-27-landing-mobile-layout.zh.mdnew file mode 100644index 00000000..464a848b--- /dev/null+++ b/changelog/unreleased/2026-08-27-landing-mobile-layout.zh.md@@ -0,0 +1,18 @@+# 落地页移动端布局++- **Date:** 2026-08-27+- **Type:** fix+- **Scope:** `landing`+- **PR:** [#475](https://github.com/Prism-Shadow/penguin-harness/pull/475)++[English](2026-08-27-landing-mobile-layout.md)++优化了落地页在窄屏手机上的布局,同时保留桌面端展示与页面叙事。++## 细节++- 将公告轮播严格裁切在移动端内容区内,并把展开导航收拢为两列菜单。+- 将落地页与中英文 README 的产品定位统一为开源、本地优先的多 Agent 应用开发平台。+- 让首屏定位文案与四项首字母大写的英文平台特点在 320–390 px 宽度下保持统一字号并自然换行,同时让支持模型的图标按稳定行列居中展示。+- 让案例提示词在手机端自动换行,新增紧凑的移动端自进化流程,并用易读的结果卡片替代横向截断的 Benchmark 表格。+- 收紧应用场景卡片的内边距,让生产案例在窄屏下仍便于浏览。diff --git a/packages/landing/src/components/announcement-bar.tsx b/packages/landing/src/components/announcement-bar.tsxindex 9b61bce0..bf2327b4 100644--- a/packages/landing/src/components/announcement-bar.tsx+++ b/packages/landing/src/components/announcement-bar.tsx@@ -91,34 +91,38 @@ export function AnnouncementBar() {onBlurCapture={() => setFocused(false)}className="border-b border-brand-100 bg-brand-50 dark:border-brand-950 dark:bg-brand-950/50">- <div className="mx-auto h-9 max-w-6xl overflow-hidden px-4 sm:px-6">- <div- className={`flex h-full ${animate ? "transition-transform duration-500 ease-out" : ""}`}- style={{ transform: `translateX(-${pos * 100}%)` }}- onTransitionEnd={(e) => {- if (e.target !== e.currentTarget || e.propertyName !== "transform") return;- if (pos === ITEMS.length) {- setAnimate(false);- setPos(0);- }- }}- >- {slides.map((item, i) => (- <div- key={`${item.key}-${i}`}- aria-hidden={i !== pos}- className="flex w-full shrink-0 items-center justify-center"- >- <Link- to={item.to}- tabIndex={i === pos ? 0 : -1}- className="inline-flex min-w-0 items-center gap-1.5 text-[13px] font-medium text-brand-800 underline-offset-2 hover:underline dark:text-brand-200"+ <div className="mx-auto h-9 max-w-6xl px-4 sm:px-6">+ {/* Clip inside the horizontal padding. Otherwise the next slide peeks through+ the padding box on narrow screens before its turn. */}+ <div className="h-full overflow-hidden">+ <div+ className={`flex h-full ${animate ? "transition-transform duration-500 ease-out" : ""}`}+ style={{ transform: `translateX(-${pos * 100}%)` }}+ onTransitionEnd={(e) => {+ if (e.target !== e.currentTarget || e.propertyName !== "transform") return;+ if (pos === ITEMS.length) {+ setAnimate(false);+ setPos(0);+ }+ }}+ >+ {slides.map((item, i) => (+ <div+ key={`${item.key}-${i}`}+ aria-hidden={i !== pos}+ className="flex w-full shrink-0 items-center justify-center">- <span className="truncate">{texts[item.key]}</span>- <ArrowRightIcon className="h-3.5 w-3.5 shrink-0" aria-hidden="true" />- </Link>- </div>- ))}+ <Link+ to={item.to}+ tabIndex={i === pos ? 0 : -1}+ className="inline-flex min-w-0 items-center gap-1.5 text-[13px] font-medium text-brand-800 underline-offset-2 hover:underline dark:text-brand-200"+ >+ <span className="truncate">{texts[item.key]}</span>+ <ArrowRightIcon className="h-3.5 w-3.5 shrink-0" aria-hidden="true" />+ </Link>+ </div>+ ))}+ </div></div></div></div>diff --git a/packages/landing/src/components/nav.tsx b/packages/landing/src/components/nav.tsxindex bf6587d7..f9f7bbdc 100644--- a/packages/landing/src/components/nav.tsx+++ b/packages/landing/src/components/nav.tsx@@ -59,7 +59,7 @@ function GitHubStarsLink() {className="inline-flex h-9 min-w-9 items-center justify-center gap-1.5 rounded-lg border border-gray-200 bg-white px-2.5 text-xs font-medium text-gray-700 transition-colors hover:bg-gray-50 hover:text-gray-950 dark:border-gray-800 dark:bg-gray-900 dark:text-gray-300 dark:hover:bg-gray-800 dark:hover:text-white"><GitHubIcon className="h-[18px] w-[18px]" />- <span className="min-w-8 tabular-nums">{count ?? "-"}</span>+ <span className="hidden min-w-8 tabular-nums min-[360px]:inline">{count ?? "-"}</span></a>);}@@ -247,7 +247,7 @@ export function Nav() {className="anim-fade border-t border-gray-200 bg-white px-4 py-2 xl:hidden dark:border-gray-800 dark:bg-gray-950"aria-label="Mobile">- <div className="flex flex-col py-1">{mobileLinks}</div>+ <div className="grid grid-cols-2 gap-1 py-1">{mobileLinks}</div></nav>)}</header>diff --git a/packages/landing/src/lib/strings-en.ts b/packages/landing/src/lib/strings-en.tsindex 06fe0345..df9f38d6 100644--- a/packages/landing/src/lib/strings-en.ts+++ b/packages/landing/src/lib/strings-en.ts@@ -48,7 +48,7 @@ export const en: Strings = {},hero: {- platformLead: "The open-source, local-first agent app ",+ platformLead: "Open-source, local-first multi-agent app ",platformAccent: "development",platformTail: " platform",automationLead: "Fully automated ",@@ -57,10 +57,10 @@ export const en: Strings = {downloadCta: "Download desktop",cliInstall: "Command-line install",stats: [- { value: "1000+ models", label: "Support for major providers" },- { value: "Local on every platform", label: "Linux · Windows · macOS" },- { value: "100% open source", label: "Apache 2.0 licensed" },- { value: "First self-evolving harness", label: "native agent self-evolution engine" },+ { value: "1000+ Models", label: "Support for Major Providers" },+ { value: "Local on Every Platform", label: "Linux · Windows · macOS" },+ { value: "100% Open Source", label: "Apache 2.0 Licensed" },+ { value: "First Self-Evolving Harness", label: "Native Agent Self-Evolution Engine" },],supportedModelsLabel: "Supported models",supportedModels: [diff --git a/packages/landing/src/lib/strings.ts b/packages/landing/src/lib/strings.tsindex ca28e9f0..5bfa7d88 100644--- a/packages/landing/src/lib/strings.ts+++ b/packages/landing/src/lib/strings.ts@@ -49,7 +49,7 @@ export const zh = {},hero: {- platformLead: "开源、本地的 Agent 应用",+ platformLead: "开源、本地的多 Agent 应用",platformAccent: "自动开发",platformTail: "平台",automationLead: "全自动",diff --git a/packages/landing/src/sections/benchmark.tsx b/packages/landing/src/sections/benchmark.tsxindex 0eafb35a..5139979a 100644--- a/packages/landing/src/sections/benchmark.tsx+++ b/packages/landing/src/sections/benchmark.tsx@@ -202,7 +202,53 @@ function SuiteBlock({format={(v) => formatUsd(v, costDp)}/></div>- <div className="mt-5 overflow-x-auto rounded-xl border border-gray-200 bg-white dark:border-gray-800 dark:bg-gray-900">+ <div className="mt-5 grid gap-2 sm:hidden">+ {rows.map((r) => (+ <article+ key={r.framework}+ className={`rounded-xl border p-4 ${+ r.emphasized+ ? "border-brand-200 bg-brand-25 dark:border-brand-800 dark:bg-brand-950/40"+ : "border-gray-200 bg-white dark:border-gray-800 dark:bg-gray-900"+ }`}+ >+ <div className="flex min-w-0 items-center gap-2">+ <HarnessLogo kind={r.kind} className="h-4 w-4 shrink-0" />+ <strong className="truncate text-sm">{r.framework}</strong>+ <span className="ml-auto truncate text-xs text-gray-500 dark:text-gray-400">+ {r.model}+ </span>+ </div>+ <dl className="mt-3 grid grid-cols-3 gap-2 text-center">+ <div>+ <dt className="text-[10px] leading-4 text-gray-500 dark:text-gray-400">+ {S.benchmark.colAccuracy}+ </dt>+ <dd className="mt-0.5 text-sm font-semibold tabular-nums">+ {formatAccuracy(r.accuracyPct, accDp)}+ </dd>+ </div>+ <div>+ <dt className="text-[10px] leading-4 text-gray-500 dark:text-gray-400">+ {S.benchmark.colTokens}+ </dt>+ <dd className="mt-0.5 text-sm font-semibold tabular-nums">+ {r.tokensM.toFixed(tokenDp)}+ </dd>+ </div>+ <div>+ <dt className="text-[10px] leading-4 text-gray-500 dark:text-gray-400">+ {S.benchmark.colCost}+ </dt>+ <dd className="mt-0.5 text-sm font-semibold tabular-nums">+ {r.costUsd.toFixed(costDp)}+ </dd>+ </div>+ </dl>+ </article>+ ))}+ </div>+ <div className="mt-5 hidden overflow-x-auto rounded-xl border border-gray-200 bg-white sm:block dark:border-gray-800 dark:bg-gray-900"><table className="w-full min-w-[38rem] text-sm"><thead><tr className="border-b border-gray-200 text-left text-xs text-gray-500 dark:border-gray-800 dark:text-gray-400">diff --git a/packages/landing/src/sections/cases.tsx b/packages/landing/src/sections/cases.tsxindex 23c7f8b8..8f13261e 100644--- a/packages/landing/src/sections/cases.tsx+++ b/packages/landing/src/sections/cases.tsx@@ -80,8 +80,8 @@ export function Cases() {</div><figure role="tabpanel" className="anim-fade mx-auto mt-8 max-w-5xl" key={tab.label}>- <div className="mx-auto mb-5 w-fit max-w-full overflow-x-auto rounded-xl border border-gray-200 bg-gray-50 px-4 py-2.5 dark:border-gray-800 dark:bg-gray-900">- <code className="font-mono text-[13px] whitespace-nowrap text-gray-800 dark:text-gray-200">+ <div className="mx-auto mb-5 w-full rounded-xl border border-gray-200 bg-gray-50 px-4 py-2.5 text-left sm:w-fit sm:max-w-full sm:overflow-x-auto dark:border-gray-800 dark:bg-gray-900">+ <code className="font-mono text-[12px] leading-5 whitespace-pre-wrap text-gray-800 sm:text-[13px] sm:whitespace-nowrap dark:text-gray-200"><span className="mr-2 text-gray-400 select-none dark:text-gray-500">></span>{tab.prompt}</code>diff --git a/packages/landing/src/sections/hero.tsx b/packages/landing/src/sections/hero.tsxindex 1ec413c2..ea483382 100644--- a/packages/landing/src/sections/hero.tsx+++ b/packages/landing/src/sections/hero.tsx@@ -19,18 +19,20 @@ export function Hero() {return (<section className="relative overflow-hidden"><div className="hero-dots pointer-events-none absolute inset-0" aria-hidden="true" />- <div className="relative mx-auto max-w-6xl px-4 pt-16 pb-12 text-center sm:px-6 sm:pt-24 sm:pb-14">- <h1 className="anim-rise flex items-center justify-center gap-3.5">+ <div className="relative mx-auto max-w-6xl px-4 pt-12 pb-12 text-center sm:px-6 sm:pt-24 sm:pb-14">+ <h1 className="anim-rise flex items-center justify-center gap-2.5 sm:gap-3.5"><imgsrc={`${import.meta.env.BASE_URL}penguin-logo.svg`}alt=""- className="h-14 w-14 sm:h-16 sm:w-16"+ className="h-12 w-12 sm:h-16 sm:w-16"/>- <span className="text-3xl font-semibold tracking-tight sm:text-4xl">{S.siteName}</span>+ <span className="text-[1.7rem] font-semibold tracking-tight sm:text-4xl">+ {S.siteName}+ </span></h1><p- className="hero-positioning anim-rise mx-auto mt-6 whitespace-nowrap leading-tight font-semibold tracking-[-0.035em]"+ className="hero-positioning anim-rise mx-auto mt-6 leading-tight font-semibold tracking-[-0.035em] text-balance"style={{ animationDelay: "70ms" }}>{S.hero.platformLead}@@ -39,7 +41,7 @@ export function Hero() {</p><p- className="hero-automation anim-rise mt-5 leading-8 text-gray-600 dark:text-gray-300"+ className="hero-automation anim-rise mt-5 leading-6 text-balance text-gray-600 sm:leading-8 dark:text-gray-300"style={{ animationDelay: "120ms" }}>{S.hero.automationLead}@@ -76,15 +78,15 @@ export function Hero() {</div><dl- className="anim-rise mx-auto mt-12 grid max-w-5xl grid-cols-2 gap-x-6 gap-y-8 sm:grid-cols-4"+ className="anim-rise mx-auto mt-10 grid max-w-6xl grid-cols-2 gap-x-4 gap-y-7 sm:mt-12 sm:gap-x-6 sm:gap-y-8 xl:grid-cols-4 xl:gap-x-2"style={{ animationDelay: "250ms" }}>{S.hero.stats.map((stat) => (<div key={stat.value} className="min-w-0">- <dt className="mt-1 text-xs leading-5 text-gray-500 dark:text-gray-400">+ <dt className="mx-auto mt-1 max-w-56 text-xs leading-5 text-gray-500 dark:text-gray-400">{stat.label}</dt>- <dd className="whitespace-nowrap text-2xl font-semibold tracking-tight text-gray-900 dark:text-gray-100">+ <dd className="hero-stat-value mx-auto mt-0.5 max-w-64 text-[19px] leading-tight font-semibold tracking-tight text-balance text-gray-900 sm:text-2xl xl:max-w-none dark:text-gray-100">{stat.value}</dd></div>@@ -92,10 +94,10 @@ export function Hero() {</dl><div- className="anim-rise mx-auto mt-12 flex max-w-5xl flex-wrap items-center justify-center gap-x-6 gap-y-4 text-center text-sm"+ className="anim-rise mx-auto mt-12 flex max-w-5xl flex-wrap items-center justify-center gap-x-5 gap-y-4 text-center text-sm sm:gap-x-6"style={{ animationDelay: "300ms" }}>- <span className="mr-1 text-xs font-semibold tracking-wide text-gray-400 uppercase dark:text-gray-500">+ <span className="mr-1 basis-full text-xs font-semibold tracking-wide text-gray-400 uppercase sm:basis-auto dark:text-gray-500">{S.hero.supportedModelsLabel}</span>{MODEL_PROVIDERS.map((provider, index) => (@@ -108,7 +110,7 @@ export function Hero() {<ModelProviderLogo provider={provider} className="h-6 w-6" /></span>))}- <span className="whitespace-nowrap font-medium text-gray-400 dark:text-gray-500">+ <span className="basis-full whitespace-nowrap font-medium text-gray-400 sm:basis-auto dark:text-gray-500">{S.hero.supportedModelsMore}</span></div>diff --git a/packages/landing/src/sections/scenarios.tsx b/packages/landing/src/sections/scenarios.tsxindex fdbbb63f..eb92001f 100644--- a/packages/landing/src/sections/scenarios.tsx+++ b/packages/landing/src/sections/scenarios.tsx@@ -70,7 +70,7 @@ export function Scenarios() {loading="lazy"className="aspect-[16/9] w-full object-cover md:aspect-auto md:w-[48%]"/>- <figcaption className="p-7 md:flex md:flex-1 md:flex-col md:justify-center md:p-12">+ <figcaption className="p-5 sm:p-7 md:flex md:flex-1 md:flex-col md:justify-center md:p-12"><h3 className="text-xl font-semibold sm:text-2xl">{c.title}</h3><p className="mt-4 text-[15px] leading-7 text-gray-600 dark:text-gray-400">{c.body}diff --git a/packages/landing/src/sections/self-improve.tsx b/packages/landing/src/sections/self-improve.tsxindex 395f493c..609a3055 100644--- a/packages/landing/src/sections/self-improve.tsx+++ b/packages/landing/src/sections/self-improve.tsx@@ -359,6 +359,73 @@ const TRENDS: Array<{},];+function MobileFlowNode({+ label,+ badge,+ accent = false,+}: {+ label: string;+ badge?: string;+ accent?: boolean;+}) {+ return (+ <div+ className={`flex min-w-0 items-center justify-center gap-2 rounded-lg border px-3 py-3 text-center text-xs font-semibold ${+ accent+ ? "border-brand-300 bg-brand-50 text-brand-800 dark:border-brand-800 dark:bg-brand-950 dark:text-brand-200"+ : "border-gray-200 bg-gray-50 text-gray-900 dark:border-gray-700 dark:bg-gray-800 dark:text-gray-100"+ }`}+ >+ <span>{label}</span>+ {badge && (+ <span+ className={`shrink-0 rounded-full px-1.5 py-0.5 text-[10px] ${+ accent+ ? "bg-brand-600 text-white dark:bg-brand-400 dark:text-gray-950"+ : "bg-gray-400 text-white dark:bg-gray-600"+ }`}+ >+ {badge}+ </span>+ )}+ </div>+ );+}++/** Compact reading order for phones; the full SVG remains visible from sm upward. */+function MobileEvolutionFlow() {+ return (+ <div+ role="img"+ aria-label={S.selfImprove.diagramLabel}+ className="rounded-xl border border-gray-200 bg-white p-4 sm:hidden dark:border-gray-800 dark:bg-gray-900"+ >+ <MobileFlowNode label={S.selfImprove.nodeOptimizer} accent />+ <div className="my-2 flex flex-col items-center text-[10px] leading-4 text-gray-500 dark:text-gray-400">+ <span>{S.selfImprove.edgeSpawn}</span>+ <span aria-hidden="true">↓</span>+ </div>+ <MobileFlowNode label={S.selfImprove.nodeEvaluator} />+ <div className="my-2 flex flex-col items-center text-[10px] leading-4 text-gray-500 dark:text-gray-400">+ <span>+ {S.selfImprove.edgeFeedback} · {S.selfImprove.edgeBench}+ </span>+ <span aria-hidden="true">↓</span>+ </div>+ <div className="grid grid-cols-[minmax(0,1fr)_3.5rem_minmax(0,1fr)] items-center gap-2">+ <MobileFlowNode label={S.selfImprove.nodeTarget} badge={S.selfImprove.badgeOld} />+ <div className="text-center text-[10px] leading-4 font-medium text-brand-700 dark:text-brand-300">+ <span className="block">{S.selfImprove.edgeImprove}</span>+ <span className="block text-base" aria-hidden="true">+ →+ </span>+ </div>+ <MobileFlowNode label={S.selfImprove.nodeTarget} badge={S.selfImprove.badgeNew} accent />+ </div>+ </div>+ );+}+export function SelfImprove() {const { locale } = useLocale();return (@@ -369,7 +436,8 @@ export function SelfImprove() {subtitle={S.selfImprove.subtitle}><div className="mx-auto grid max-w-5xl items-center gap-6 lg:grid-cols-[minmax(0,1fr)_15.5rem]">- <div className="overflow-x-auto rounded-xl border border-gray-200 bg-white p-4 dark:border-gray-800 dark:bg-gray-900">+ <MobileEvolutionFlow />+ <div className="hidden overflow-x-auto rounded-xl border border-gray-200 bg-white p-4 sm:block dark:border-gray-800 dark:bg-gray-900"><svgviewBox="0 0 720 380"role="img"diff --git a/packages/landing/src/styles.css b/packages/landing/src/styles.cssindex 12860777..d5501768 100644--- a/packages/landing/src/styles.css+++ b/packages/landing/src/styles.css@@ -138,19 +138,12 @@background-image: radial-gradient(rgb(138 180 248 / 0.16) 1px, transparent 1px);}-/* Keep the two concise hero lines on one line in English without widening the page. */+/* Keep the hero hierarchy consistent across languages and let narrow screens wrap naturally. */.hero-positioning {- font-size: clamp(0.95rem, 4.3vw, 3rem);-}-:lang(en) .hero-positioning {- font-size: clamp(0.72rem, 3.3vw, 2.6rem);+ font-size: clamp(1.5rem, 4vw, 2.6rem);}.hero-automation {- font-size: clamp(0.8rem, 3.5vw, 1.125rem);-}-:lang(en) .hero-automation {- font-size: clamp(0.64rem, 2.1vw, 1.125rem);- white-space: nowrap;+ font-size: clamp(1rem, 2.1vw, 1.125rem);}/* ---------- Ambient neon backdrop: blurred glows wandering across the screen ----------