chore: save preview bakeoff prototypes for swimming plan
This commit is contained in:
@@ -0,0 +1,59 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="zh-CN">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>游泳训练计划 - 方案 3:侧边栏抽屉协同台 (Drawer Split)</title>
|
||||
<style>
|
||||
:root { --color-primary: #2563EB; --bg: #EEF2F6; --surface: #FFFFFF; --text-main: #0F172A; --divider: #E2E8F0; --content-max-width: 1240px; }
|
||||
* { box-sizing: border-box; margin: 0; padding: 0; }
|
||||
body { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; background: var(--bg); padding: 20px; }
|
||||
.device-wrapper { width: 100%; max-width: var(--content-max-width); margin: 0 auto; background: var(--surface); border-radius: 20px; border: 1px solid var(--divider); min-height: 740px; display: flex; flex-direction: column; overflow: hidden; position: relative; }
|
||||
.appbar { height: 56px; display: flex; align-items: center; justify-content: space-between; padding: 0 20px; border-bottom: 1px solid var(--divider); }
|
||||
.split-body { padding: 20px; display: grid; grid-template-columns: 1fr 480px; gap: 18px; flex: 1; background: #F8FAFC; }
|
||||
.card { background: white; border: 1.5px solid var(--divider); border-radius: 14px; padding: 18px; margin-bottom: 12px; cursor: pointer; }
|
||||
.card.selected { border-color: var(--color-primary); background: #EFF6FF; }
|
||||
.drawer { background: white; border: 1.5px solid var(--divider); border-radius: 16px; padding: 20px; display: flex; flex-direction: column; gap: 14px; }
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<div class="device-wrapper">
|
||||
<header class="appbar"><h1 style="font-size: 18px; font-weight: 700;">游泳训练计划 · 抽屉协同版</h1></header>
|
||||
<main class="split-body">
|
||||
<div>
|
||||
<div style="font-size: 14px; font-weight: 700; color: #64748B; margin-bottom: 10px;">训练计划列表(点击实时更新右侧)</div>
|
||||
<div class="card selected" onclick="selectItem('郑梅', '108203', '竞技级', '恢复')">
|
||||
<b>郑梅 (108203) · 竞技级</b>
|
||||
<p style="font-size: 13px; color: #64748B; margin-top: 4px;">比赛期 · 恢复 · 长距离 · 单次训练</p>
|
||||
</div>
|
||||
<div class="card" onclick="selectItem('吴静', '103717', '初学者', '耐力')">
|
||||
<b>吴静 (103717) · 初学者</b>
|
||||
<p style="font-size: 13px; color: #64748B; margin-top: 4px;">GPP · 耐力 · 50米 · 单次训练</p>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="drawer">
|
||||
<h3 id="drTitle">配置与 AI 处方 (郑梅)</h3>
|
||||
<div style="display: flex; flex-direction: column; gap: 8px; font-size: 13px;">
|
||||
<div>姓名: <b id="drName">郑梅</b> | ID: <b id="drId">108203</b></div>
|
||||
<div>等级: <b id="drLevel">竞技级</b> | 目标: <b id="drGoal">恢复</b></div>
|
||||
</div>
|
||||
<button style="height: 42px; background: var(--color-primary); color: white; border: none; border-radius: 8px; font-weight: 700;" onclick="alert('AI 分析处方已实时更新!')">⚡ 更新 / 执行 AI 训练计划</button>
|
||||
<div style="background: #F8FAFC; border: 1px solid var(--divider); padding: 12px; border-radius: 8px; font-size: 12.5px;">
|
||||
处方:建议心率 138-156 bpm,主项 2000m 有氧耐力。
|
||||
</div>
|
||||
</div>
|
||||
</main>
|
||||
</div>
|
||||
|
||||
<script>
|
||||
function selectItem(name, id, level, goal) {
|
||||
document.getElementById('drTitle').innerText = `配置与 AI 处方 (${name})`;
|
||||
document.getElementById('drName').innerText = name;
|
||||
document.getElementById('drId').innerText = id;
|
||||
document.getElementById('drLevel').innerText = level;
|
||||
document.getElementById('drGoal').innerText = goal;
|
||||
}
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user