Files
clawpanel/docs/engine-select-mockups/v2-monolith.html
晴天 6a0d87479c feat(engine-select): Monolith 对角线全屏选择屏
替换原卡片网格为「左上 OpenClaw(石墨黑)vs 右下 Hermes(象牙白)」对角线全屏设计。
启动屏 / 引擎切换时给用户一个有冲击力的「选择时刻」。

## 核心设计
- position: fixed 跳出 #content 范围,覆盖整个 viewport(含 sidebar)
- 双三角形 clip-path: polygon (0 0, 0 100%, 100% 0) / (100% 0, 100% 100%, 0 100%)
- 内容用 absolute 定位到三角形质心(左上 11%/6.5% / 右下 11%/6.5%),永不重叠
- 微妙的 60px 网格纹 + 角落极光(紫蓝 / 橙金)+ 极细中线分割
- clamp(80px, 13vw, 200px) 巨字标题 + 序号 + Logo + tagline + 特性列表 + CTA

## 交互
- hover 联动:用 [data-hover] attribute 替代 :has(),兼容旧 WebKit
  - 鼠标悬停一侧 → 该侧亮起 + 内容平移 + CTA 反白;另一侧变暗 + 内容模糊缩小
- 点击三角形 → 三角形 clip-path 扩满(0.8s)→ 中心圆扩散(0.9s)→ 进入主页
- reveal 节点 attach 到 body,跨路由切换存活,新页面渲染后再淡出

## Both / Later 处理
- 两个次级选项保留,做成底部居中的玻璃 pill 链接(不抢戏)
- 不走对角线扩散动画,点击后直接 applyEngineSelection + navigate

## 兼容性
- prefers-reduced-motion: reduce → 关闭所有动画
- 移动端响应式:< 760px 调整字号 / 边距 / 角标
- 用 Vite define 注入的 __APP_VERSION__ 显示版本号(与 main.js / sidebar.js 一致)

## i18n
- engine.choiceTopBanner / choiceCtaEnter
- choiceOpenclaw{Tagline,Feat1,Feat2,Feat3,Category}
- choiceHermes{Tagline,Feat1,Feat2,Feat3,Category}
- choiceSecondary{Both,Later}
- 三语完整(zh-CN / en / zh-TW)

## 抽卡 prototype
保留 docs/engine-select-mockups/ 下的 V2 4 张设计 + 索引页(v2-monolith.html
即本次接入的最终版本)。
2026-05-14 06:22:32 +08:00

424 lines
12 KiB
HTML
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
<!DOCTYPE html>
<html lang="zh-CN">
<head>
<meta charset="UTF-8">
<title>V2-C · Monolith — 巨碑感Linear / Vercel 风)</title>
<style>
* { margin: 0; padding: 0; box-sizing: border-box }
html, body { height: 100%; overflow: hidden; font-family: 'Inter', -apple-system, system-ui, sans-serif; background: #000; -webkit-font-smoothing: antialiased }
.stage { position: fixed; inset: 0 }
/* 左上三角:石墨黑 + 紫蓝 accent */
.panel-openclaw {
position: absolute;
inset: 0;
clip-path: polygon(0 0, 0 100%, 100% 0);
cursor: pointer;
transition: filter 0.6s ease;
background: #0c0d12;
}
/* 微妙的网格纹 */
.panel-openclaw::after {
content: '';
position: absolute;
inset: 0;
background-image:
linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
background-size: 60px 60px;
background-position: -1px -1px;
pointer-events: none;
}
/* 右下三角:象牙白 + 黑色 accent */
.panel-hermes {
position: absolute;
inset: 0;
clip-path: polygon(100% 0, 100% 100%, 0 100%);
cursor: pointer;
transition: filter 0.6s ease;
background: #f5f3ee;
}
.panel-hermes::after {
content: '';
position: absolute;
inset: 0;
background-image:
linear-gradient(rgba(0,0,0,0.04) 1px, transparent 1px),
linear-gradient(90deg, rgba(0,0,0,0.04) 1px, transparent 1px);
background-size: 60px 60px;
background-position: -1px -1px;
pointer-events: none;
}
/* 微妙发光(左上:紫蓝 / 右下:金棕) */
.glow-openclaw, .glow-hermes {
position: absolute;
pointer-events: none;
transition: opacity 0.5s ease;
}
.glow-openclaw {
top: -10%;
left: -10%;
width: 50%;
height: 50%;
background: radial-gradient(circle, rgba(110, 100, 255, 0.35) 0%, transparent 60%);
filter: blur(40px);
clip-path: polygon(0 0, 100% 0, 0 100%);
}
.glow-hermes {
bottom: -10%;
right: -10%;
width: 50%;
height: 50%;
background: radial-gradient(circle, rgba(220, 130, 60, 0.25) 0%, transparent 60%);
filter: blur(40px);
clip-path: polygon(100% 100%, 0 100%, 100% 0);
}
/* 中线(极细发光) */
.divider {
position: absolute;
inset: 0;
background: linear-gradient(45deg, transparent calc(50% - 0.5px), rgba(180, 180, 180, 0.6) 50%, transparent calc(50% + 0.5px));
pointer-events: none;
transition: opacity 0.6s;
}
/* 内容定位 */
.content {
position: absolute;
pointer-events: none;
transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.5s, filter 0.5s;
z-index: 3;
}
.content-openclaw {
top: 11%;
left: 6.5%;
color: #fafafa;
text-align: left;
max-width: 44vw;
}
.content-hermes {
bottom: 11%;
right: 6.5%;
color: #18171a;
text-align: right;
max-width: 44vw;
}
/* hover 联动 */
.stage:has(.panel-openclaw:hover) .panel-hermes { filter: brightness(0.94) saturate(0.85) }
.stage:has(.panel-hermes:hover) .panel-openclaw { filter: brightness(0.6) }
.stage:has(.panel-openclaw:hover) .content-hermes,
.stage:has(.panel-hermes:hover) .content-openclaw {
opacity: 0.25;
filter: blur(2px);
}
.stage:has(.panel-openclaw:hover) .content-openclaw,
.stage:has(.panel-hermes:hover) .content-hermes {
transform: translateX(8px);
}
.content-hermes:hover { /* placeholder */ }
.stage:has(.panel-hermes:hover) .content-hermes {
transform: translateX(-8px);
}
/* 顶部 logo + 数字 */
.product-row {
display: flex;
align-items: center;
gap: 16px;
margin-bottom: 28px;
}
.content-hermes .product-row { flex-direction: row-reverse }
.product-icon {
width: 44px;
height: 44px;
border-radius: 12px;
background: rgba(255, 255, 255, 0.08);
border: 1px solid rgba(255, 255, 255, 0.12);
display: grid;
place-items: center;
}
.content-hermes .product-icon {
background: rgba(0, 0, 0, 0.05);
border: 1px solid rgba(0, 0, 0, 0.12);
}
.product-icon svg { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 1.6 }
.product-tag {
font-size: 12px;
font-weight: 500;
letter-spacing: 0.18em;
text-transform: uppercase;
opacity: 0.55;
}
/* 巨字标题 */
.title {
font-size: clamp(80px, 13vw, 200px);
font-weight: 200;
letter-spacing: -0.055em;
line-height: 0.92;
margin-bottom: 28px;
}
/* 副标题 */
.tagline {
font-size: clamp(20px, 1.8vw, 28px);
line-height: 1.4;
font-weight: 300;
max-width: 540px;
margin-bottom: 32px;
opacity: 0.78;
letter-spacing: -0.01em;
}
.content-hermes .tagline { margin-left: auto }
/* 特性列表(垂直线 + 文字) */
.feature-list {
display: flex;
flex-direction: column;
gap: 12px;
margin-bottom: 44px;
font-size: 14px;
font-weight: 400;
line-height: 1.6;
}
.content-hermes .feature-list { align-items: flex-end }
.feature-list li {
list-style: none;
display: flex;
align-items: center;
gap: 12px;
opacity: 0.7;
}
.content-hermes .feature-list li { flex-direction: row-reverse }
.feature-list li::before {
content: '';
width: 16px;
height: 1px;
background: currentColor;
opacity: 0.4;
}
/* CTA 按钮 */
.cta {
display: inline-flex;
align-items: center;
gap: 12px;
padding: 16px 28px;
border-radius: 8px;
font-size: 13px;
font-weight: 600;
letter-spacing: 0.04em;
transition: all 0.35s ease;
}
.content-openclaw .cta {
background: rgba(255, 255, 255, 0.08);
color: #fff;
border: 1px solid rgba(255, 255, 255, 0.18);
}
.content-hermes .cta {
background: rgba(0, 0, 0, 0.06);
color: #18171a;
border: 1px solid rgba(0, 0, 0, 0.18);
flex-direction: row-reverse;
}
.stage:has(.panel-openclaw:hover) .content-openclaw .cta {
background: #fff;
color: #0a0a0a;
border-color: #fff;
}
.stage:has(.panel-hermes:hover) .content-hermes .cta {
background: #0a0a0a;
color: #fff;
border-color: #0a0a0a;
}
.cta .arrow {
width: 18px;
height: 18px;
display: grid;
place-items: center;
transition: transform 0.3s;
}
.stage:has(.panel-openclaw:hover) .content-openclaw .cta .arrow { transform: translateX(4px) }
.stage:has(.panel-hermes:hover) .content-hermes .cta .arrow { transform: translateX(-4px) }
/* 角标 */
.corner-mark {
position: absolute;
font-size: 11px;
letter-spacing: 0.32em;
text-transform: uppercase;
pointer-events: none;
z-index: 4;
font-weight: 500;
}
.corner-tl { top: 32px; left: 36px; color: rgba(255, 255, 255, 0.45) }
.corner-br { bottom: 32px; right: 36px; color: rgba(0, 0, 0, 0.45) }
.top-center {
position: fixed;
top: 32px;
left: 50%;
transform: translateX(-50%);
color: rgba(180, 180, 180, 0.7);
font-size: 11px;
letter-spacing: 0.4em;
text-transform: uppercase;
z-index: 5;
pointer-events: none;
font-weight: 500;
}
/* —— 选中展开动画 —— */
.panel.expanding { clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%); z-index: 5 }
.panel { transition: clip-path 0.8s cubic-bezier(0.7, 0, 0.3, 1), filter 0.5s }
.reveal {
position: fixed;
top: 50%;
left: 50%;
width: 0;
height: 0;
border-radius: 50%;
transform: translate(-50%, -50%);
z-index: 20;
pointer-events: none;
transition: width 0.9s cubic-bezier(0.65, 0, 0.35, 1), height 0.9s cubic-bezier(0.65, 0, 0.35, 1);
}
.reveal.active { width: 260vmax; height: 260vmax }
.home-mock {
position: fixed;
inset: 0;
z-index: 30;
display: flex;
align-items: center;
justify-content: center;
flex-direction: column;
gap: 14px;
opacity: 0;
pointer-events: none;
transition: opacity 0.6s ease;
}
.home-mock.show { opacity: 1; pointer-events: auto }
.home-mock .ht { font-size: 64px; font-weight: 200; letter-spacing: -0.04em }
.home-mock .hs { font-size: 12px; letter-spacing: 0.45em; text-transform: uppercase; opacity: 0.5 }
.reset-hint {
position: fixed;
bottom: 24px;
left: 50%;
transform: translateX(-50%);
color: rgba(150, 150, 150, 0.6);
font-size: 11px;
letter-spacing: 0.2em;
text-transform: uppercase;
z-index: 40;
pointer-events: none;
}
</style>
</head>
<body>
<div class="stage" id="stage">
<div class="panel panel-openclaw" data-engine="openclaw">
<div class="glow-openclaw"></div>
</div>
<div class="panel panel-hermes" data-engine="hermes">
<div class="glow-hermes"></div>
</div>
<div class="divider"></div>
<div class="top-center">— Pick your path —</div>
<div class="corner-mark corner-tl">CLAWPANEL</div>
<div class="corner-mark corner-br">v0.15.3</div>
<div class="content content-openclaw">
<div class="product-row">
<div class="product-icon">
<svg viewBox="0 0 24 24"><path d="M12 2L2 7l10 5 10-5-10-5z"/><path d="M2 17l10 5 10-5"/><path d="M2 12l10 5 10-5"/></svg>
</div>
<div class="product-tag">01 · 通用助理</div>
</div>
<div class="title">OpenClaw</div>
<div class="tagline">从模型到智能体,一站式打造你的 AI 工作台。</div>
<ul class="feature-list">
<li>多模型 / 多渠道并行管理</li>
<li>持久化记忆 + 上下文工程</li>
<li>无代码搭建智能体</li>
</ul>
<div class="cta">
Enter OpenClaw
<span class="arrow"></span>
</div>
</div>
<div class="content content-hermes">
<div class="product-row">
<div class="product-icon">
<svg viewBox="0 0 24 24"><path d="M13 2L3 14h9l-1 8 10-12h-9l1-8z"/></svg>
</div>
<div class="product-tag">Agent 工作流 · 02</div>
</div>
<div class="title">Hermes</div>
<div class="tagline">让 Agent 真正能干活。工具调用、Profile、Kanban 一应俱全。</div>
<ul class="feature-list">
<li>原生工具调用 + Approval Flow</li>
<li>多 Profile 隔离 + 多 Gateway</li>
<li>内置 Kanban / Skills / OAuth</li>
</ul>
<div class="cta">
<span class="arrow"></span>
Enter Hermes
</div>
</div>
</div>
<div class="reveal" id="reveal"></div>
<div class="home-mock" id="home">
<div class="ht" id="home-name"></div>
<div class="hs">Initializing workspace</div>
</div>
<div class="reset-hint">Click a side · Press R to reset</div>
<script>
const stage = document.getElementById('stage')
const reveal = document.getElementById('reveal')
const home = document.getElementById('home')
const homeName = document.getElementById('home-name')
const colors = {
openclaw: { bg: '#0c0d12', text: '#fff' },
hermes: { bg: '#f5f3ee', text: '#18171a' },
}
document.querySelectorAll('.panel').forEach(panel => {
panel.addEventListener('click', () => {
const engine = panel.dataset.engine
const other = stage.querySelector(`.panel:not([data-engine="${engine}"])`)
panel.classList.add('expanding')
other.style.opacity = '0'
stage.querySelectorAll('.content, .corner-mark, .top-center, .glow-openclaw, .glow-hermes').forEach(c => c.style.opacity = '0')
stage.querySelector('.divider').style.opacity = '0'
setTimeout(() => {
reveal.style.background = colors[engine].bg
home.style.background = colors[engine].bg
home.style.color = colors[engine].text
homeName.textContent = engine === 'openclaw' ? 'OpenClaw' : 'Hermes'
reveal.classList.add('active')
}, 700)
setTimeout(() => home.classList.add('show'), 1500)
})
})
document.addEventListener('keydown', (e) => {
if (e.key.toLowerCase() === 'r') location.reload()
})
</script>
</body>
</html>