feat(foam_roller): 交付【主页面_四个下拉选项页面/泡沫轴】重构方案1A全量6件套并严格区分连接态与原版文字
This commit is contained in:
@@ -0,0 +1,220 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="zh-CN">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>泡沫轴 - 方案 1A (子视图 · 未连接/待机态)</title>
|
||||
<style>
|
||||
:root {
|
||||
--color-primary: #2563EB;
|
||||
--color-primary-dark: #1D4ED8;
|
||||
--color-on-primary-container: #1E40AF;
|
||||
--color-primary-light: #EFF6FF;
|
||||
--color-primary-container: #EFF6FF;
|
||||
--color-primary-border: #DBEAFE;
|
||||
--color-primary-glow: rgba(37, 99, 235, 0.22);
|
||||
--color-primary-gradient: linear-gradient(135deg, #2563EB 0%, #1D4ED8 100%);
|
||||
|
||||
--bg: #EEF2F6;
|
||||
--surface: #FFFFFF;
|
||||
--surface-sub: #F8FAFC;
|
||||
--text-main: #0F172A;
|
||||
--text-sub: #64748B;
|
||||
--text-dim: #94A3B8;
|
||||
--divider: #E2E8F0;
|
||||
|
||||
--content-max-width: 1240px;
|
||||
--content-gutter: clamp(14px, 2vw, 24px);
|
||||
--appbar-height: 56px;
|
||||
}
|
||||
|
||||
* { box-sizing: border-box; margin: 0; padding: 0; }
|
||||
body {
|
||||
font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "PingFang SC", "Segoe UI", Roboto, sans-serif;
|
||||
background: var(--bg); color: var(--text-main); min-height: 100vh;
|
||||
padding: var(--content-gutter); display: flex; flex-direction: column;
|
||||
}
|
||||
|
||||
.device-wrapper {
|
||||
width: 100%; max-width: var(--content-max-width); margin: 0 auto; background: var(--surface);
|
||||
border-radius: 20px; border: 1px solid var(--divider); box-shadow: 0 16px 40px -10px rgba(15, 23, 42, 0.08);
|
||||
overflow: hidden; position: relative; min-height: 720px; display: flex; flex-direction: column;
|
||||
}
|
||||
|
||||
.appbar {
|
||||
height: var(--appbar-height); display: flex; align-items: center; justify-content: space-between;
|
||||
padding: 0 20px; border-bottom: 1px solid var(--divider); background: var(--surface); flex-shrink: 0;
|
||||
}
|
||||
.appbar-left { display: flex; align-items: center; }
|
||||
.appbar-nav, .appbar-more {
|
||||
width: 38px; height: 38px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
|
||||
cursor: pointer; background: transparent; border: none;
|
||||
}
|
||||
.appbar-nav svg, .appbar-more svg { width: 22px; height: 22px; fill: var(--text-main); }
|
||||
.appbar-title { font-size: 18px; font-weight: 700; margin-left: 10px; }
|
||||
|
||||
.tri-body {
|
||||
padding: clamp(16px, 2vw, 24px); background: #F8FAFC; flex: 1; overflow-y: auto;
|
||||
display: grid; grid-template-columns: 310px 1.15fr 1fr; gap: 18px;
|
||||
}
|
||||
|
||||
.panel-card {
|
||||
background: white; border: 1.5px solid var(--divider); border-radius: 16px; padding: 20px;
|
||||
display: flex; flex-direction: column; justify-content: space-between; gap: 16px;
|
||||
box-shadow: 0 4px 14px rgba(15, 23, 42, 0.03);
|
||||
}
|
||||
|
||||
.panel-header-title { font-size: 17px; font-weight: 700; color: var(--text-main); }
|
||||
|
||||
.left-stack { display: flex; flex-direction: column; gap: 16px; }
|
||||
|
||||
.device-status-box {
|
||||
display: flex; flex-direction: column; align-items: center; text-align: center; gap: 12px;
|
||||
padding: 8px 0 16px; border-bottom: 1px solid var(--divider); min-height: 190px; justify-content: center;
|
||||
}
|
||||
.fr100-disconnected-img {
|
||||
width: 140px; height: 70px; display: flex; align-items: center; justify-content: center; opacity: 0.7;
|
||||
}
|
||||
|
||||
.device-meta-list { width: 100%; display: flex; flex-direction: column; gap: 8px; font-size: 13.5px; }
|
||||
.meta-item { display: flex; justify-content: space-between; align-items: center; }
|
||||
.meta-label { color: var(--text-sub); }
|
||||
.meta-val { font-weight: 700; color: var(--text-dim); }
|
||||
|
||||
.device-btn-group { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 6px; }
|
||||
.btn-mini {
|
||||
height: 38px; border-radius: 8px; font-size: 13px; font-weight: 700; cursor: pointer;
|
||||
display: flex; align-items: center; justify-content: center; gap: 6px; border: 1.5px solid transparent;
|
||||
}
|
||||
.btn-primary-blue { background: var(--color-primary-gradient); color: white; box-shadow: 0 4px 10px var(--color-primary-glow); }
|
||||
.btn-disabled { background: #F1F5F9; color: var(--text-dim); border-color: #E2E8F0; cursor: not-allowed; }
|
||||
|
||||
.scan-list-card {
|
||||
background: white; border: 1.5px solid var(--divider); border-radius: 16px; padding: 16px;
|
||||
display: flex; flex-direction: column; gap: 10px; flex: 1;
|
||||
}
|
||||
.scan-item {
|
||||
height: 44px; padding: 0 12px; border-radius: 8px; background: #F8FAFC; border: 1px solid var(--divider);
|
||||
display: flex; align-items: center; justify-content: space-between; cursor: pointer;
|
||||
}
|
||||
.scan-item.highlight { border-color: var(--color-primary); background: var(--color-primary-light); }
|
||||
.scan-name { font-size: 13.5px; font-weight: 700; font-family: ui-monospace, monospace; }
|
||||
|
||||
/* 中栏 (未连接待机) */
|
||||
.center-timer-panel {
|
||||
background: white; border: 1.5px solid var(--divider); border-radius: 16px; padding: 24px;
|
||||
display: flex; flex-direction: column; justify-content: space-between; align-items: center; text-align: center;
|
||||
opacity: 0.8;
|
||||
}
|
||||
.countdown-hero-dim {
|
||||
font-size: clamp(54px, 6.5vw, 80px); font-weight: 900; font-family: monospace; color: var(--text-dim); margin: 12px 0 8px;
|
||||
}
|
||||
|
||||
/* 右栏 (未连接待机) */
|
||||
.right-config-panel {
|
||||
background: white; border: 1.5px solid var(--divider); border-radius: 16px; padding: 22px;
|
||||
display: flex; flex-direction: column; justify-content: space-between; gap: 16px;
|
||||
opacity: 0.8;
|
||||
}
|
||||
.btn-disabled-full {
|
||||
width: 100%; height: 44px; border-radius: 10px; font-size: 14px; font-weight: 700;
|
||||
background: #F1F5F9; color: var(--text-dim); border: 1px solid #E2E8F0; cursor: not-allowed;
|
||||
display: flex; align-items: center; justify-content: center;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<div class="device-wrapper">
|
||||
<header class="appbar">
|
||||
<div class="appbar-left">
|
||||
<button class="appbar-nav"><svg viewBox="0 0 24 24"><path d="M20 11H7.83l5.59-5.59L12 4l-8 8 8 8 1.41-1.41L7.83 13H20v-2z"/></svg></button>
|
||||
<h1 class="appbar-title">泡沫轴</h1>
|
||||
</div>
|
||||
<button class="appbar-more"><svg viewBox="0 0 24 24"><path d="M12 8c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2zm0 2c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm0 6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z"/></svg></button>
|
||||
</header>
|
||||
|
||||
<main class="tri-body">
|
||||
<!-- 左栏:未连接状态与周边列表 -->
|
||||
<div class="left-stack">
|
||||
<div class="panel-card" style="padding: 18px;">
|
||||
<div class="device-status-box">
|
||||
<!-- 未连接专属矢量线框图 (区别于已连接的官方 3D 渲染图) -->
|
||||
<div class="fr100-disconnected-img">
|
||||
<svg width="140" height="60" viewBox="0 0 140 60">
|
||||
<ellipse cx="22" cy="30" rx="12" ry="20" fill="#F1F5F9" stroke="#94A3B8" stroke-width="2"/>
|
||||
<rect x="22" y="10" width="96" height="40" rx="4" fill="#F8FAFC" stroke="#CBD5E1" stroke-width="2"/>
|
||||
<ellipse cx="118" cy="30" rx="12" ry="20" fill="#E2E8F0" stroke="#94A3B8" stroke-width="2"/>
|
||||
<line x1="38" y1="10" x2="38" y2="50" stroke="#CBD5E1" stroke-width="1.5" stroke-dasharray="3 3"/>
|
||||
<line x1="56" y1="10" x2="56" y2="50" stroke="#CBD5E1" stroke-width="1.5" stroke-dasharray="3 3"/>
|
||||
<line x1="74" y1="10" x2="74" y2="50" stroke="#CBD5E1" stroke-width="1.5" stroke-dasharray="3 3"/>
|
||||
<line x1="92" y1="10" x2="92" y2="50" stroke="#CBD5E1" stroke-width="1.5" stroke-dasharray="3 3"/>
|
||||
<circle cx="70" cy="30" r="8" fill="#94A3B8"/>
|
||||
</svg>
|
||||
</div>
|
||||
|
||||
<div class="device-meta-list">
|
||||
<div class="meta-item"><span class="meta-label">ID:</span><span class="meta-val">--</span></div>
|
||||
<div class="meta-item"><span class="meta-label">版本:</span><span class="meta-val">--</span></div>
|
||||
<div class="meta-item"><span class="meta-label">电量:</span><span class="meta-val">未连接</span></div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="device-btn-group">
|
||||
<button class="btn-mini btn-primary-blue">
|
||||
<svg style="width: 14px; height: 14px; fill: currentColor;" viewBox="0 0 24 24"><path d="M17.65 6.35C16.2 4.9 14.21 4 12 4c-4.42 0-7.99 3.58-7.99 8s3.57 8 7.99 8c3.73 0 6.84-2.55 7.73-6h-2.08c-.82 2.33-3.04 4-5.65 4-3.31 0-6-2.69-6-6s2.69-6 6-6c1.66 0 3.14.69 4.22 1.78L13 11h7V4l-2.35 2.35z"/></svg>
|
||||
<span>刷新设备</span>
|
||||
</button>
|
||||
<button class="btn-mini btn-disabled">
|
||||
<span>断开连接</span>
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="scan-list-card">
|
||||
<div style="font-size: 13px; font-weight: 700; color: var(--text-sub); display: flex; align-items: center; justify-content: space-between;">
|
||||
<span>📡 周边设备列表</span>
|
||||
<span style="font-size: 11px; color: var(--color-primary);">点击直连</span>
|
||||
</div>
|
||||
<div class="scan-item highlight">
|
||||
<span class="scan-name" style="color: var(--color-primary);">FR100-12EC</span>
|
||||
<span style="font-size: 12px; color: var(--color-primary); font-weight: 700;">点击连接 ➔</span>
|
||||
</div>
|
||||
<div class="scan-item">
|
||||
<span class="scan-name">FR100-1776</span>
|
||||
<span style="font-size: 12px; color: var(--text-sub);">信号弱</span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- 中栏:开始 (未连接待机态) -->
|
||||
<div class="center-timer-panel">
|
||||
<div style="width: 100%; text-align: left;">
|
||||
<h2 class="panel-header-title">开始</h2>
|
||||
</div>
|
||||
|
||||
<div>
|
||||
<div class="countdown-hero-dim">00:00</div>
|
||||
<div style="font-size: 13px; color: var(--text-dim); margin-top: 4px;">请先在左侧连接泡沫轴硬件设备</div>
|
||||
</div>
|
||||
|
||||
<div style="width: 100%; display: grid; grid-template-columns: 1fr 1fr; gap: 14px;">
|
||||
<button class="btn-disabled-full">开始</button>
|
||||
<button class="btn-disabled-full">暂停</button>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- 右栏:设备信息 (未连接待机态) -->
|
||||
<div class="right-config-panel">
|
||||
<div>
|
||||
<h2 class="panel-header-title">设备信息</h2>
|
||||
<div style="margin-top: 14px; font-size: 13.5px; color: var(--text-dim); line-height: 1.6;">
|
||||
暂无连接设备,请点击左侧列表中的「FR100-12EC」建立蓝牙配对后配置训练参数。
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<button class="btn-disabled-full">保存</button>
|
||||
</div>
|
||||
</main>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user