feat(ui): 完成【版型切换】与【心率区间设置】页面 UI 重构及标准物料交付
This commit is contained in:
@@ -0,0 +1,225 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="zh-CN">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>方案 1:M3 Expressive 竖向卡片流 (Vertical Stack)</title>
|
||||
<style>
|
||||
:root {
|
||||
--color-primary: #3949AB;
|
||||
--color-primary-container: #EEF2FF;
|
||||
--color-on-primary-container: #1A237E;
|
||||
--color-secondary: #00897B;
|
||||
--color-secondary-container: #E0F2F1;
|
||||
--color-surface: #FFFFFF;
|
||||
--color-background: #F8FAFC;
|
||||
--text-primary: #0F172A;
|
||||
--text-secondary: #475569;
|
||||
--divider: #E2E8F0;
|
||||
--outline: #CBD5E1;
|
||||
--corner-card: 16px;
|
||||
--corner-btn: 12px;
|
||||
--content-max-width: 840px;
|
||||
}
|
||||
* { box-sizing: border-box; margin: 0; padding: 0; }
|
||||
body {
|
||||
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang SC", "Microsoft YaHei", sans-serif;
|
||||
background: var(--color-background);
|
||||
color: var(--text-primary);
|
||||
min-height: 100vh;
|
||||
-webkit-font-smoothing: antialiased;
|
||||
}
|
||||
.device-container {
|
||||
width: 100%;
|
||||
max-width: 1024px;
|
||||
margin: 20px auto;
|
||||
background: var(--color-surface);
|
||||
border-radius: 16px;
|
||||
border: 1px solid var(--divider);
|
||||
overflow: hidden;
|
||||
box-shadow: 0 4px 20px rgba(15, 23, 42, 0.05);
|
||||
}
|
||||
.appbar {
|
||||
height: 60px;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
padding: 0 24px;
|
||||
background: var(--color-surface);
|
||||
border-bottom: 1px solid var(--divider);
|
||||
}
|
||||
.appbar-nav {
|
||||
width: 38px;
|
||||
height: 38px;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
border-radius: 10px;
|
||||
cursor: pointer;
|
||||
background: #F1F5F9;
|
||||
transition: all 0.15s ease;
|
||||
}
|
||||
.appbar-nav:hover { background: #E2E8F0; }
|
||||
.appbar-nav svg { width: 20px; height: 20px; fill: var(--text-primary); }
|
||||
.appbar-title {
|
||||
font-size: 19px;
|
||||
font-weight: 600;
|
||||
margin-left: 14px;
|
||||
}
|
||||
.page-body {
|
||||
padding: 36px 24px 48px;
|
||||
max-width: var(--content-max-width);
|
||||
margin: 0 auto;
|
||||
}
|
||||
.hero {
|
||||
text-align: center;
|
||||
margin-bottom: 32px;
|
||||
}
|
||||
.hero-icon {
|
||||
width: 64px;
|
||||
height: 64px;
|
||||
margin: 0 auto 16px;
|
||||
border-radius: 16px;
|
||||
background: #FEE2E2;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
}
|
||||
.hero-icon svg { width: 34px; height: 34px; fill: #EF4444; }
|
||||
.hero-title {
|
||||
font-size: 22px;
|
||||
font-weight: 700;
|
||||
color: var(--text-primary);
|
||||
margin-bottom: 8px;
|
||||
}
|
||||
.hero-sub {
|
||||
font-size: 14px;
|
||||
color: var(--text-secondary);
|
||||
}
|
||||
.card-stack {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 16px;
|
||||
margin-bottom: 32px;
|
||||
}
|
||||
.edition-card {
|
||||
background: #FFFFFF;
|
||||
border: 1.5px solid var(--divider);
|
||||
border-radius: var(--corner-card);
|
||||
padding: 20px 24px;
|
||||
display: flex;
|
||||
align-items: flex-start;
|
||||
gap: 16px;
|
||||
cursor: pointer;
|
||||
transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
|
||||
box-shadow: 0 1px 3px rgba(0,0,0,0.02);
|
||||
}
|
||||
.edition-card:hover {
|
||||
border-color: #94A3B8;
|
||||
background: #F8FAFC;
|
||||
}
|
||||
.edition-card.is-selected {
|
||||
border-color: var(--color-primary);
|
||||
background: var(--color-primary-container);
|
||||
box-shadow: 0 4px 16px rgba(57, 73, 171, 0.1);
|
||||
}
|
||||
.radio-outer {
|
||||
width: 22px;
|
||||
height: 22px;
|
||||
border-radius: 50%;
|
||||
border: 2px solid var(--outline);
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
margin-top: 2px;
|
||||
flex-shrink: 0;
|
||||
background: #FFFFFF;
|
||||
transition: all 0.2s ease;
|
||||
}
|
||||
.edition-card.is-selected .radio-outer {
|
||||
border-color: var(--color-primary);
|
||||
}
|
||||
.radio-inner {
|
||||
width: 10px;
|
||||
height: 10px;
|
||||
border-radius: 50%;
|
||||
background: var(--color-primary);
|
||||
opacity: 0;
|
||||
transform: scale(0.3);
|
||||
transition: all 0.2s ease;
|
||||
}
|
||||
.edition-card.is-selected .radio-inner {
|
||||
opacity: 1;
|
||||
transform: scale(1);
|
||||
}
|
||||
.edition-info { flex: 1; }
|
||||
.edition-name {
|
||||
font-size: 17px;
|
||||
font-weight: 600;
|
||||
color: var(--text-primary);
|
||||
margin-bottom: 6px;
|
||||
}
|
||||
.edition-card.is-selected .edition-name {
|
||||
color: var(--color-on-primary-container);
|
||||
}
|
||||
.edition-desc {
|
||||
font-size: 13.5px;
|
||||
color: var(--text-secondary);
|
||||
line-height: 1.55;
|
||||
}
|
||||
.btn-confirm {
|
||||
width: 100%;
|
||||
height: 48px;
|
||||
background: var(--color-secondary-container);
|
||||
color: var(--color-secondary);
|
||||
border: none;
|
||||
border-radius: var(--corner-btn);
|
||||
font-size: 16px;
|
||||
font-weight: 600;
|
||||
cursor: pointer;
|
||||
transition: all 0.15s ease;
|
||||
}
|
||||
.btn-confirm:hover {
|
||||
background: #CCECE8;
|
||||
transform: translateY(-1px);
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<div class="device-container">
|
||||
<div class="appbar">
|
||||
<div 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></div>
|
||||
<div class="appbar-title">选择版型</div>
|
||||
</div>
|
||||
<div class="page-body">
|
||||
<div class="hero">
|
||||
<div class="hero-icon"><svg viewBox="0 0 24 24"><path d="M5 9.2h3V19H5zM10.6 5h2.8v14h-2.8zm5.6 8H19v6h-2.8z"/></svg></div>
|
||||
<div class="hero-title">选择版型</div>
|
||||
<div class="hero-sub">请选择适合您使用场景的版型,后续可在设置中更改</div>
|
||||
</div>
|
||||
<div class="card-stack" id="editionList">
|
||||
<div class="edition-card" onclick="selectEdition(this)">
|
||||
<div class="radio-outer"><div class="radio-inner"></div></div>
|
||||
<div class="edition-info">
|
||||
<div class="edition-name">专业版</div>
|
||||
<div class="edition-desc">为专业场馆管理员设计,布局固定专业化,核心数据字段默认全开,开箱即用</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="edition-card is-selected" onclick="selectEdition(this)">
|
||||
<div class="radio-outer"><div class="radio-inner"></div></div>
|
||||
<div class="edition-info">
|
||||
<div class="edition-name">自定义功能版</div>
|
||||
<div class="edition-desc">高度可配置,所有高级功能开放,适合研究员和高级用户</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<button class="btn-confirm">确定</button>
|
||||
</div>
|
||||
</div>
|
||||
<script>
|
||||
function selectEdition(el) {
|
||||
document.querySelectorAll('.edition-card').forEach(c => c.classList.remove('is-selected'));
|
||||
el.classList.add('is-selected');
|
||||
}
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user