193 lines
6.3 KiB
HTML
193 lines
6.3 KiB
HTML
<!DOCTYPE html>
|
||
<html lang="zh-CN">
|
||
<head>
|
||
<meta charset="UTF-8">
|
||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||
<title>语言设置 - 渲染图竞标 (Design Bake-off 5 选 1)</title>
|
||
<style>
|
||
:root {
|
||
--primary: #3949AB;
|
||
--bg: #0B0F19;
|
||
--panel: #161F30;
|
||
--border: #2A3854;
|
||
--text: #F8FAFC;
|
||
--text-dim: #94A3B8;
|
||
}
|
||
* { box-sizing: border-box; margin: 0; padding: 0; }
|
||
body {
|
||
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang SC", sans-serif;
|
||
background: var(--bg);
|
||
color: var(--text);
|
||
min-height: 100vh;
|
||
display: flex;
|
||
flex-direction: column;
|
||
}
|
||
header {
|
||
padding: 16px 28px;
|
||
background: var(--panel);
|
||
border-bottom: 1px solid var(--border);
|
||
display: flex;
|
||
align-items: center;
|
||
justify-content: space-between;
|
||
gap: 16px;
|
||
flex-wrap: wrap;
|
||
}
|
||
.brand {
|
||
font-size: 18px;
|
||
font-weight: 700;
|
||
color: #38BDF8;
|
||
display: flex;
|
||
align-items: center;
|
||
gap: 12px;
|
||
}
|
||
.brand span {
|
||
font-size: 12px;
|
||
font-weight: 500;
|
||
color: #E2E8F0;
|
||
background: #1E293B;
|
||
border: 1px solid var(--border);
|
||
padding: 3px 10px;
|
||
border-radius: 6px;
|
||
}
|
||
.nav-tabs {
|
||
display: flex;
|
||
gap: 6px;
|
||
background: #0B0F19;
|
||
padding: 4px;
|
||
border-radius: 12px;
|
||
border: 1px solid var(--border);
|
||
}
|
||
.tab-btn {
|
||
padding: 8px 14px;
|
||
border: none;
|
||
background: transparent;
|
||
color: var(--text-dim);
|
||
border-radius: 8px;
|
||
cursor: pointer;
|
||
font-size: 13.5px;
|
||
font-weight: 500;
|
||
transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
|
||
white-space: nowrap;
|
||
}
|
||
.tab-btn:hover { color: #FFFFFF; background: rgba(255,255,255,0.05); }
|
||
.tab-btn.active {
|
||
background: #2563EB;
|
||
color: #FFFFFF;
|
||
font-weight: 600;
|
||
box-shadow: 0 2px 10px rgba(37,99,235,0.4);
|
||
}
|
||
.main-content {
|
||
flex: 1;
|
||
display: flex;
|
||
flex-direction: column;
|
||
padding: 20px 28px;
|
||
align-items: center;
|
||
}
|
||
.desc-card {
|
||
width: 100%;
|
||
max-width: 1100px;
|
||
background: var(--panel);
|
||
border: 1px solid var(--border);
|
||
border-radius: 14px;
|
||
padding: 16px 24px;
|
||
margin-bottom: 16px;
|
||
display: flex;
|
||
align-items: center;
|
||
justify-content: space-between;
|
||
gap: 16px;
|
||
}
|
||
.desc-title { font-size: 16px; font-weight: 600; color: #F8FAFC; }
|
||
.desc-text { font-size: 13px; color: var(--text-dim); margin-top: 4px; line-height: 1.4; }
|
||
.iframe-container {
|
||
width: 100%;
|
||
max-width: 1100px;
|
||
height: 660px;
|
||
border-radius: 14px;
|
||
overflow: hidden;
|
||
border: 1px solid var(--border);
|
||
background: #FFF;
|
||
box-shadow: 0 16px 36px rgba(0,0,0,0.4);
|
||
}
|
||
iframe {
|
||
width: 100%;
|
||
height: 100%;
|
||
border: none;
|
||
}
|
||
</style>
|
||
</head>
|
||
<body>
|
||
<header>
|
||
<div class="brand">
|
||
🎨 语言设置 · 渲染图竞标 (Design Bake-off)
|
||
<span>严格保持 9 个原始字段与 AppBar 结构</span>
|
||
</div>
|
||
<div class="nav-tabs">
|
||
<button class="tab-btn active" onclick="switchOption(1, this)">方案 1:M3 Expressive</button>
|
||
<button class="tab-btn" onclick="switchOption(2, this)">方案 2:Neo-Card 群岛卡片</button>
|
||
<button class="tab-btn" onclick="switchOption(3, this)">方案 3:Bento 双列磁贴</button>
|
||
<button class="tab-btn" onclick="switchOption(4, this)">方案 4:Split 双栏沉浸分栏</button>
|
||
<button class="tab-btn" onclick="switchOption(5, this)">方案 5:Minimalist 微卡片</button>
|
||
</div>
|
||
</header>
|
||
|
||
<div class="main-content">
|
||
<div class="desc-card" id="descCard">
|
||
<div>
|
||
<div class="desc-title" id="descTitle">方案 1:Material 3 Expressive(旗舰级 M3 经典演进)</div>
|
||
<div class="desc-text" id="descDetail">840dp 宽屏栅格收敛,60dp 行高,选中项 PrimaryContainer 浅紫蓝底 + 深蓝字 + 动态胶囊标,对齐 Android 15 现代规范。</div>
|
||
</div>
|
||
<a id="directLink" href="option_1_m3_expressive.html" target="_blank" style="color: #38BDF8; font-size: 13px; text-decoration: none; border: 1px solid #38BDF8; padding: 7px 14px; border-radius: 8px; white-space: nowrap;">独立打开 ↗</a>
|
||
</div>
|
||
|
||
<div class="iframe-container">
|
||
<iframe id="previewFrame" src="option_1_m3_expressive.html"></iframe>
|
||
</div>
|
||
</div>
|
||
|
||
<script>
|
||
const options = [
|
||
{
|
||
id: 1,
|
||
file: 'option_1_m3_expressive.html',
|
||
title: '方案 1:Material 3 Expressive(旗舰级 M3 经典演进 · 推荐)',
|
||
detail: '840dp 宽屏栅格收敛,60dp 从容行高,选中态为 PrimaryContainer 浅蓝底 + 深色文字 + 主色 Active 指示胶囊,缩进分割线,原生 Android 沉浸感最高。'
|
||
},
|
||
{
|
||
id: 2,
|
||
file: 'option_2_neo_card.html',
|
||
title: '方案 2:Neo-Card 现代悬浮圆角群岛卡片 (Island Group)',
|
||
detail: '740dp 居中纯白悬浮大卡片,多层微阴影与 16px 圆角,消弭超宽平板空旷感,呈现 iPadOS / HarmonyOS 旗舰平板设置卡片的高端质感。'
|
||
},
|
||
{
|
||
id: 3,
|
||
file: 'option_3_bento_grid.html',
|
||
title: '方案 3:Bento Grid 响应式双列磁贴矩阵 (Responsive Dual-Column)',
|
||
detail: '为 16:10 / 16:9 横屏平板量身定制,9 个选项对称排为 2 列磁贴,一屏完全容纳免滚动,双手握持时两侧拇指均可轻松点按,工控/管理设备效率最高。'
|
||
},
|
||
{
|
||
id: 4,
|
||
file: 'option_4_split_layout.html',
|
||
title: '方案 4:Split Master-Detail 双栏沉浸分栏 (Professional Console)',
|
||
detail: '左侧 280dp 语言状态面板(实时联动当前选中语言) + 右侧 560dp 选择列表,彻底告别平板宽屏单列失衡问题,专业控制台范式。'
|
||
},
|
||
{
|
||
id: 5,
|
||
file: 'option_5_minimal_slate.html',
|
||
title: '方案 5:Minimalist Precision 独立微卡片 (Refined Pill List)',
|
||
detail: '每个语种为独立 12px 圆角条目 (gap 10px),选中项带左侧 4px 垂直主色光条与精致 Checkmark 动效,层次极其鲜明。'
|
||
}
|
||
];
|
||
|
||
function switchOption(id, btn) {
|
||
document.querySelectorAll('.tab-btn').forEach(b => b.classList.remove('active'));
|
||
btn.classList.add('active');
|
||
const opt = options.find(o => o.id === id);
|
||
document.getElementById('descTitle').innerText = opt.title;
|
||
document.getElementById('descDetail').innerText = opt.detail;
|
||
document.getElementById('directLink').href = opt.file;
|
||
document.getElementById('previewFrame').src = opt.file;
|
||
}
|
||
</script>
|
||
</body>
|
||
</html>
|