Files
workspace/code/allapp/allapp-rn/test.html
T
2026-03-02 17:29:51 +08:00

121 lines
2.4 KiB
HTML

<!DOCTYPE html>
<html lang="zh-CN">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Space Card</title>
<style>
* {
box-sizing: border-box;
margin: 0;
padding: 0;
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
body {
background: #f4f6f8;
padding: 40px;
}
.space-card {
width: 380px;
background: #fff;
border-radius: 16px;
padding: 18px;
border: 1px solid #eee;
box-shadow: 0 8px 20px rgba(0, 0, 0, 0.04);
transition: all 0.25s ease;
cursor: pointer;
}
.space-card:hover {
transform: translateY(-3px);
box-shadow: 0 14px 28px rgba(0, 0, 0, 0.08);
border-color: #ddd;
}
.space-card.selected {
border: 1px solid #111;
box-shadow: 0 12px 28px rgba(0, 0, 0, 0.12);
}
.space-header {
display: flex;
align-items: center;
gap: 10px;
margin-bottom: 12px;
}
.space-avatar {
width: 40px;
height: 40px;
border-radius: 12px;
background: linear-gradient(135deg, #667eea, #764ba2);
display: flex;
align-items: center;
justify-content: center;
color: #fff;
font-weight: 600;
font-size: 16px;
}
.space-name {
font-size: 16px;
font-weight: 600;
color: #111;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
max-width: 200px;
}
.badge {
font-size: 11px;
padding: 3px 8px;
border-radius: 999px;
background: #f0f2f5;
color: #555;
}
.badge.primary {
background: #e8f0ff;
color: #3b6cff;
}
.space-info {
display: flex;
justify-content: space-between;
font-size: 13px;
color: #666;
}
</style>
</head>
<body>
<div class="space-card selected">
<div class="space-header">
<div class="space-avatar">工</div>
<div>
<div style="display:flex; align-items:center; gap:6px;">
<div class="space-name">
我的超级长长长长长长工作空间
</div>
<span class="badge">创建者</span>
<span class="badge primary">默认</span>
</div>
</div>
</div>
<div class="space-info">
<div>昵称:张三</div>
<div>成员:8人</div>
</div>
</div>
</body>
</html>