feat(ui): 完成【版型切换】与【心率区间设置】页面 UI 重构及标准物料交付
This commit is contained in:
@@ -0,0 +1,246 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="zh-CN">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>方案 1:Frosted Glass 现代微质感毛玻璃风</title>
|
||||
<style>
|
||||
:root {
|
||||
--primary: #3B82F6;
|
||||
--primary-glow: rgba(59, 130, 246, 0.15);
|
||||
--confirm: #10B981;
|
||||
--confirm-glow: rgba(16, 185, 129, 0.2);
|
||||
--text-main: #0F172A;
|
||||
--text-sub: #64748B;
|
||||
--glass-bg: rgba(255, 255, 255, 0.85);
|
||||
--glass-border: rgba(255, 255, 255, 0.6);
|
||||
}
|
||||
* { box-sizing: border-box; margin: 0; padding: 0; }
|
||||
body {
|
||||
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang SC", "Microsoft YaHei", sans-serif;
|
||||
background: linear-gradient(135deg, #F1F5F9 0%, #E2E8F0 100%);
|
||||
color: var(--text-main);
|
||||
min-height: 100vh;
|
||||
padding: 24px;
|
||||
-webkit-font-smoothing: antialiased;
|
||||
}
|
||||
.device-container {
|
||||
width: 100%;
|
||||
max-width: 1040px;
|
||||
margin: 0 auto;
|
||||
background: rgba(255, 255, 255, 0.7);
|
||||
backdrop-filter: blur(20px);
|
||||
-webkit-backdrop-filter: blur(20px);
|
||||
border-radius: 24px;
|
||||
border: 1px solid var(--glass-border);
|
||||
box-shadow: 0 20px 40px -15px rgba(15, 23, 42, 0.08);
|
||||
overflow: hidden;
|
||||
}
|
||||
.appbar {
|
||||
height: 64px;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
padding: 0 28px;
|
||||
background: rgba(255, 255, 255, 0.6);
|
||||
border-bottom: 1px solid rgba(226, 232, 240, 0.6);
|
||||
}
|
||||
.appbar-nav {
|
||||
width: 40px;
|
||||
height: 40px;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
border-radius: 12px;
|
||||
cursor: pointer;
|
||||
background: rgba(255, 255, 255, 0.9);
|
||||
border: 1px solid rgba(226, 232, 240, 0.8);
|
||||
box-shadow: 0 2px 6px rgba(0,0,0,0.03);
|
||||
}
|
||||
.appbar-nav svg { width: 20px; height: 20px; fill: var(--text-main); }
|
||||
.appbar-title {
|
||||
font-size: 19px;
|
||||
font-weight: 700;
|
||||
margin-left: 14px;
|
||||
letter-spacing: -0.2px;
|
||||
}
|
||||
.page-body {
|
||||
padding: 40px 28px 52px;
|
||||
max-width: 820px;
|
||||
margin: 0 auto;
|
||||
}
|
||||
.hero {
|
||||
text-align: center;
|
||||
margin-bottom: 34px;
|
||||
}
|
||||
.hero-icon {
|
||||
width: 56px;
|
||||
height: 56px;
|
||||
margin: 0 auto 16px;
|
||||
border: 2.5px solid #FF5252;
|
||||
border-radius: 14px;
|
||||
display: flex;
|
||||
align-items: flex-end;
|
||||
justify-content: center;
|
||||
padding: 8px 6px;
|
||||
gap: 4px;
|
||||
background: #FFFFFF;
|
||||
box-shadow: 0 8px 16px rgba(255, 82, 82, 0.15);
|
||||
}
|
||||
.hero-icon .bar {
|
||||
width: 6px;
|
||||
background: #FF5252;
|
||||
border-radius: 2px 2px 0 0;
|
||||
}
|
||||
.hero-icon .b1 { height: 14px; }
|
||||
.hero-icon .b2 { height: 28px; }
|
||||
.hero-icon .b3 { height: 18px; }
|
||||
|
||||
.hero-title {
|
||||
font-size: 24px;
|
||||
font-weight: 800;
|
||||
letter-spacing: -0.02em;
|
||||
margin-bottom: 8px;
|
||||
}
|
||||
.hero-sub {
|
||||
font-size: 14.5px;
|
||||
color: var(--text-sub);
|
||||
}
|
||||
.cards-group {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 16px;
|
||||
margin-bottom: 36px;
|
||||
}
|
||||
.glass-card {
|
||||
background: rgba(255, 255, 255, 0.9);
|
||||
backdrop-filter: blur(10px);
|
||||
border: 1.5px solid rgba(226, 232, 240, 0.8);
|
||||
border-radius: 20px;
|
||||
padding: 22px 26px;
|
||||
display: flex;
|
||||
align-items: flex-start;
|
||||
gap: 18px;
|
||||
cursor: pointer;
|
||||
transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
|
||||
box-shadow: 0 4px 12px rgba(15, 23, 42, 0.03);
|
||||
position: relative;
|
||||
}
|
||||
.glass-card:hover {
|
||||
transform: translateY(-2px);
|
||||
box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
|
||||
border-color: #CBD5E1;
|
||||
}
|
||||
.glass-card.is-selected {
|
||||
background: linear-gradient(135deg, rgba(239, 246, 255, 0.95) 0%, rgba(255, 255, 255, 0.95) 100%);
|
||||
border-color: var(--primary);
|
||||
box-shadow: 0 0 0 1px var(--primary), 0 12px 30px var(--primary-glow);
|
||||
}
|
||||
.radio-slot {
|
||||
margin-top: 2px;
|
||||
}
|
||||
.radio-ring {
|
||||
width: 22px;
|
||||
height: 22px;
|
||||
border-radius: 50%;
|
||||
border: 2px solid #CBD5E1;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
background: #FFF;
|
||||
transition: all 0.2s ease;
|
||||
}
|
||||
.glass-card.is-selected .radio-ring {
|
||||
border-color: var(--primary);
|
||||
background: var(--primary);
|
||||
}
|
||||
.radio-dot {
|
||||
width: 8px;
|
||||
height: 8px;
|
||||
border-radius: 50%;
|
||||
background: #FFF;
|
||||
opacity: 0;
|
||||
transform: scale(0.3);
|
||||
transition: all 0.2s ease;
|
||||
}
|
||||
.glass-card.is-selected .radio-dot {
|
||||
opacity: 1;
|
||||
transform: scale(1);
|
||||
}
|
||||
.card-body { flex: 1; }
|
||||
.card-h {
|
||||
font-size: 17.5px;
|
||||
font-weight: 700;
|
||||
margin-bottom: 6px;
|
||||
letter-spacing: -0.01em;
|
||||
}
|
||||
.glass-card.is-selected .card-h {
|
||||
color: #1D4ED8;
|
||||
}
|
||||
.card-p {
|
||||
font-size: 14px;
|
||||
color: var(--text-sub);
|
||||
line-height: 1.6;
|
||||
}
|
||||
.btn-glass-confirm {
|
||||
width: 100%;
|
||||
height: 52px;
|
||||
background: linear-gradient(135deg, #10B981 0%, #059669 100%);
|
||||
color: #FFFFFF;
|
||||
border: none;
|
||||
border-radius: 16px;
|
||||
font-size: 16.5px;
|
||||
font-weight: 700;
|
||||
cursor: pointer;
|
||||
box-shadow: 0 8px 20px var(--confirm-glow);
|
||||
transition: all 0.2s ease;
|
||||
letter-spacing: 0.05em;
|
||||
}
|
||||
.btn-glass-confirm:hover {
|
||||
transform: translateY(-2px);
|
||||
box-shadow: 0 12px 28px rgba(16, 185, 129, 0.3);
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<div class="device-container">
|
||||
<header 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>
|
||||
<h1 class="appbar-title">选择版型</h1>
|
||||
</header>
|
||||
<main class="page-body">
|
||||
<div class="hero">
|
||||
<div class="hero-icon">
|
||||
<div class="bar b1"></div>
|
||||
<div class="bar b2"></div>
|
||||
<div class="bar b3"></div>
|
||||
</div>
|
||||
<h2 class="hero-title">选择版型</h2>
|
||||
<p class="hero-sub">请选择适合您使用场景的版型,后续可在设置中更改</p>
|
||||
</div>
|
||||
<div class="cards-group" id="editionList">
|
||||
<div class="glass-card" onclick="selectCard(this)">
|
||||
<div class="radio-slot"><div class="radio-ring"><div class="radio-dot"></div></div></div>
|
||||
<div class="card-body">
|
||||
<h3 class="card-h">专业版</h3>
|
||||
<p class="card-p">为专业场馆管理员设计,布局固定专业化,核心数据字段默认全开,开箱即用</p>
|
||||
</div>
|
||||
</div>
|
||||
<div class="glass-card is-selected" onclick="selectCard(this)">
|
||||
<div class="radio-slot"><div class="radio-ring"><div class="radio-dot"></div></div></div>
|
||||
<div class="card-body">
|
||||
<h3 class="card-h">自定义功能版</h3>
|
||||
<p class="card-p">高度可配置,所有高级功能开放,适合研究员和高级用户</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<button class="btn-glass-confirm">确定</button>
|
||||
</main>
|
||||
</div>
|
||||
<script>
|
||||
function selectCard(el) {
|
||||
document.querySelectorAll('.glass-card').forEach(c => c.classList.remove('is-selected'));
|
||||
el.classList.add('is-selected');
|
||||
}
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user