Files
workspace/code/allapp/allapp-rn/test.html
T
2026-04-15 17:28:13 +08:00

165 lines
3.7 KiB
HTML
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
<!DOCTYPE html>
<html lang="zh">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>个人中心</title>
<style>
* {
margin: 0;
padding: 0;
box-sizing: border-box;
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto;
}
body {
background: #f5f6f8;
}
.container {
max-width: 420px;
margin: 0 auto;
}
/* ===== Header ===== */
.header {
height: 180px;
padding: 20px;
background: linear-gradient(135deg, #4f8cff, #6ed0ff);
color: #fff;
position: relative;
}
.user {
display: flex;
align-items: center;
margin-top: 40px;
}
.avatar {
width: 64px;
height: 64px;
border-radius: 50%;
background: rgba(255, 255, 255, 0.3);
}
.info {
margin-left: 14px;
}
.name {
font-size: 18px;
font-weight: 600;
}
.desc {
font-size: 13px;
opacity: 0.9;
margin-top: 4px;
}
/* ===== Card ===== */
.card {
background: #fff;
margin: -40px 16px 16px;
border-radius: 16px;
box-shadow: 0 6px 20px rgba(0, 0, 0, 0.06);
overflow: hidden;
}
.section {
margin: 16px;
background: #fff;
border-radius: 16px;
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
overflow: hidden;
}
/* ===== Item ===== */
.item {
display: flex;
justify-content: space-between;
align-items: center;
padding: 16px;
font-size: 15px;
border-bottom: 1px solid #f0f0f0;
}
.item:last-child {
border-bottom: none;
}
.item span {
color: #333;
}
.arrow {
color: #bbb;
}
/* Danger */
.danger {
color: #ff4d4f;
}
</style>
</head>
<body>
<div class="container">
```
<!-- Header -->
<div class="header">
<div class="user">
<div class="avatar"></div>
<div class="info">
<div class="name">张三</div>
<div class="desc">让工具更高效 ⚡</div>
</div>
</div>
</div>
<!-- 功能区 -->
<div class="card">
<div class="item">
<span>我的工具</span>
<span class="arrow">›</span>
</div>
<div class="item">
<span>数据管理</span>
<span class="arrow">›</span>
</div>
<div class="item">
<span>云同步</span>
<span class="arrow">›</span>
</div>
</div>
<!-- 设置区 -->
<div class="section">
<div class="item">
<span>深色模式</span>
<span class="arrow">›</span>
</div>
<div class="item">
<span>通知设置</span>
<span class="arrow">›</span>
</div>
<div class="item">
<span>关于应用</span>
<span class="arrow">›</span>
</div>
<div class="item">
<span class="danger">退出登录</span>
</div>
</div>
```
</div>
</body>
</html>