feat(ui): 完成 [用户管理] (含添加用户/用户表管理) UI重构与全套6件交付物
- 统一采用 Fluid Studio 现代健康工作台设计体系与 #2563EB 核心品牌蓝标准 - 实现主界面、添加/编辑用户表单、用户表管理三视图无缝 SPA 状态机闭环 - 支持真实头像流展示与优质默认 SVG 头像回退 - 精确隔离添加用户(清空)与编辑用户(回填)状态逻辑 - 产出 baseline_ui.html, image.png, DESIGN_SPEC.md, implementation_plan.md, CARD-20260817-UITask-用户管理.md - 更新 README.md 页面完工状态 (第 7 页已完工)
This commit is contained in:
@@ -0,0 +1,81 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="zh-CN">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>方案 4:Neo-Bento 现代工控磁贴看板</title>
|
||||
<style>
|
||||
:root {
|
||||
--color-primary: #2563EB;
|
||||
--bg: #EEF2F6;
|
||||
--surface: #FFFFFF;
|
||||
--text-main: #0F172A;
|
||||
--text-sub: #64748B;
|
||||
--divider: #E2E8F0;
|
||||
}
|
||||
* { box-sizing: border-box; margin: 0; padding: 0; }
|
||||
body {
|
||||
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
|
||||
background: var(--bg); color: var(--text-main); min-height: 100vh;
|
||||
padding: clamp(16px, 2.5vw, 32px); display: flex; flex-direction: column;
|
||||
}
|
||||
.device-wrapper {
|
||||
width: 100%; max-width: min(100%, 1160px); 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: 660px; display: flex; flex-direction: column;
|
||||
}
|
||||
.appbar {
|
||||
height: 60px; display: flex; align-items: center; justify-content: space-between;
|
||||
padding: 0 20px; border-bottom: 1px solid var(--divider); background: var(--surface);
|
||||
}
|
||||
.appbar-left { display: flex; align-items: center; }
|
||||
.appbar-nav, .appbar-more {
|
||||
width: 40px; height: 40px; 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: 19px; font-weight: 700; margin-left: 10px; }
|
||||
|
||||
.bento-body {
|
||||
padding: clamp(20px, 2.5vw, 30px); background: #F8FAFC; flex: 1; overflow-y: auto;
|
||||
display: flex; flex-direction: column; gap: 16px;
|
||||
}
|
||||
.bento-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
|
||||
.bento-tile { background: white; border: 1.5px solid var(--divider); border-radius: 12px; padding: 14px; }
|
||||
</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="bento-body">
|
||||
<div class="bento-stats">
|
||||
<div class="bento-tile"><div style="font-size: 17px; font-weight: 800; color: var(--color-primary);">UserDatabase_CHINA</div><div style="font-size: 12px; color: var(--text-sub);">当前数据库</div></div>
|
||||
<div class="bento-tile"><div style="font-size: 17px; font-weight: 800; color: var(--color-primary);">6 人</div><div style="font-size: 12px; color: var(--text-sub);">学员总数</div></div>
|
||||
<div class="bento-tile"><div style="font-size: 17px; font-weight: 800; color: var(--color-primary);">60 / 188 bpm</div><div style="font-size: 12px; color: var(--text-sub);">平均心率读数</div></div>
|
||||
</div>
|
||||
|
||||
<div style="background: white; border: 1.5px solid var(--divider); border-radius: 16px; padding: 20px; display: flex; flex-direction: column; gap: 12px;">
|
||||
<div style="display: flex; justify-content: space-between; align-items: center;">
|
||||
<span style="font-weight: 700; font-size: 15px;">学员名单</span>
|
||||
<div style="display: flex; gap: 8px;">
|
||||
<button style="background: var(--color-primary); color: white; border: none; padding: 6px 14px; border-radius: 6px; font-weight: 700; cursor: pointer;">添加</button>
|
||||
<button style="background: #F1F5F9; border: 1px solid var(--divider); padding: 6px 14px; border-radius: 6px; font-weight: 700; cursor: pointer;">导入</button>
|
||||
<button style="background: #0D9488; color: white; border: none; padding: 6px 14px; border-radius: 6px; font-weight: 700; cursor: pointer;">用户表管理</button>
|
||||
</div>
|
||||
</div>
|
||||
<div style="border: 1px solid var(--divider); border-radius: 10px; padding: 14px; display: flex; justify-content: space-between; align-items: center;">
|
||||
<div><b>孙伟 (女)</b> · 学号: 10229 · 25岁 · 167cm/117kg</div>
|
||||
<div>静息 60 / 最大 188 · ✏️ 🗑️</div>
|
||||
</div>
|
||||
</div>
|
||||
</main>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user