323 lines
No EOL
9.2 KiB
HTML
323 lines
No EOL
9.2 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>好友页面布局预览</title>
|
||
<style>
|
||
* {
|
||
margin: 0;
|
||
padding: 0;
|
||
box-sizing: border-box;
|
||
}
|
||
|
||
body {
|
||
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
|
||
background-color: #f5f5f5;
|
||
height: 100vh;
|
||
overflow: hidden;
|
||
}
|
||
|
||
.friends-container {
|
||
height: 100vh;
|
||
background-color: #f5f5f5;
|
||
display: flex;
|
||
flex-direction: column;
|
||
}
|
||
|
||
.nav-bar {
|
||
background-color: #fff;
|
||
border-bottom: 1px solid #e5e5e5;
|
||
padding-top: 44px;
|
||
}
|
||
|
||
.nav-content {
|
||
display: flex;
|
||
align-items: center;
|
||
justify-content: space-between;
|
||
padding: 12px 16px;
|
||
height: 44px;
|
||
}
|
||
|
||
.nav-title {
|
||
font-size: 20px;
|
||
font-weight: 600;
|
||
color: #333;
|
||
}
|
||
|
||
.nav-subtitle {
|
||
font-size: 12px;
|
||
color: #999;
|
||
margin-top: 2px;
|
||
}
|
||
|
||
.nav-actions {
|
||
display: flex;
|
||
gap: 8px;
|
||
}
|
||
|
||
.nav-btn {
|
||
width: 36px;
|
||
height: 36px;
|
||
border-radius: 18px;
|
||
background-color: #f0f0f0;
|
||
display: flex;
|
||
align-items: center;
|
||
justify-content: center;
|
||
cursor: pointer;
|
||
}
|
||
|
||
.content-area {
|
||
flex: 1;
|
||
overflow-y: auto;
|
||
}
|
||
|
||
.function-section {
|
||
background-color: #fff;
|
||
margin-bottom: 12px;
|
||
}
|
||
|
||
.function-item {
|
||
display: flex;
|
||
align-items: center;
|
||
padding: 16px;
|
||
border-bottom: 1px solid #f0f0f0;
|
||
cursor: pointer;
|
||
}
|
||
|
||
.function-icon {
|
||
width: 40px;
|
||
height: 40px;
|
||
border-radius: 8px;
|
||
display: flex;
|
||
align-items: center;
|
||
justify-content: center;
|
||
margin-right: 12px;
|
||
position: relative;
|
||
color: #fff;
|
||
font-size: 20px;
|
||
}
|
||
|
||
.function-icon.new-friends {
|
||
background-color: #4CAF50;
|
||
}
|
||
|
||
.function-icon.groups {
|
||
background-color: #2196F3;
|
||
}
|
||
|
||
.badge {
|
||
position: absolute;
|
||
top: -4px;
|
||
right: -4px;
|
||
min-width: 18px;
|
||
height: 18px;
|
||
background-color: #ff4444;
|
||
border-radius: 9px;
|
||
display: flex;
|
||
align-items: center;
|
||
justify-content: center;
|
||
font-size: 10px;
|
||
color: #fff;
|
||
font-weight: 600;
|
||
border: 2px solid #fff;
|
||
}
|
||
|
||
.function-info {
|
||
flex: 1;
|
||
}
|
||
|
||
.function-title {
|
||
font-size: 16px;
|
||
font-weight: 500;
|
||
color: #333;
|
||
margin-bottom: 2px;
|
||
}
|
||
|
||
.function-desc {
|
||
font-size: 12px;
|
||
color: #999;
|
||
}
|
||
|
||
.function-arrow {
|
||
font-size: 18px;
|
||
color: #ccc;
|
||
}
|
||
|
||
.friends-section {
|
||
background-color: #fff;
|
||
}
|
||
|
||
.section-header {
|
||
padding: 12px 16px 8px 16px;
|
||
background-color: #f8f8f8;
|
||
border-bottom: 1px solid #e5e5e5;
|
||
}
|
||
|
||
.section-title {
|
||
font-size: 14px;
|
||
color: #666;
|
||
font-weight: 500;
|
||
}
|
||
|
||
.friend-item {
|
||
display: flex;
|
||
align-items: center;
|
||
padding: 12px 16px;
|
||
border-bottom: 1px solid #f0f0f0;
|
||
cursor: pointer;
|
||
}
|
||
|
||
.friend-avatar {
|
||
width: 48px;
|
||
height: 48px;
|
||
border-radius: 24px;
|
||
margin-right: 12px;
|
||
position: relative;
|
||
background: linear-gradient(135deg, #667eea, #764ba2);
|
||
display: flex;
|
||
align-items: center;
|
||
justify-content: center;
|
||
color: #fff;
|
||
font-size: 18px;
|
||
font-weight: 600;
|
||
}
|
||
|
||
.online-dot {
|
||
position: absolute;
|
||
bottom: 2px;
|
||
right: 2px;
|
||
width: 12px;
|
||
height: 12px;
|
||
border-radius: 6px;
|
||
background-color: #4CAF50;
|
||
border: 2px solid #fff;
|
||
}
|
||
|
||
.friend-info {
|
||
flex: 1;
|
||
}
|
||
|
||
.friend-name {
|
||
font-size: 16px;
|
||
font-weight: 500;
|
||
color: #333;
|
||
margin-bottom: 4px;
|
||
}
|
||
|
||
.friend-status {
|
||
font-size: 12px;
|
||
color: #999;
|
||
}
|
||
|
||
.friend-actions {
|
||
display: flex;
|
||
gap: 8px;
|
||
}
|
||
|
||
.action-btn {
|
||
width: 32px;
|
||
height: 32px;
|
||
border-radius: 16px;
|
||
background-color: #f0f0f0;
|
||
display: flex;
|
||
align-items: center;
|
||
justify-content: center;
|
||
cursor: pointer;
|
||
font-size: 14px;
|
||
}
|
||
</style>
|
||
</head>
|
||
<body>
|
||
<div class="friends-container">
|
||
<!-- 导航栏 -->
|
||
<div class="nav-bar">
|
||
<div class="nav-content">
|
||
<div class="nav-left">
|
||
<div class="nav-title">好友</div>
|
||
<div class="nav-subtitle">5 位联系人</div>
|
||
</div>
|
||
<div class="nav-actions">
|
||
<div class="nav-btn">🔍</div>
|
||
<div class="nav-btn">➕</div>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
|
||
<!-- 内容区域 -->
|
||
<div class="content-area">
|
||
<!-- 功能入口 -->
|
||
<div class="function-section">
|
||
<div class="function-item">
|
||
<div class="function-icon new-friends">
|
||
👥
|
||
<div class="badge">3</div>
|
||
</div>
|
||
<div class="function-info">
|
||
<div class="function-title">新的朋友</div>
|
||
<div class="function-desc">3 个新请求</div>
|
||
</div>
|
||
<div class="function-arrow">›</div>
|
||
</div>
|
||
|
||
<div class="function-item">
|
||
<div class="function-icon groups">👨👩👧👦</div>
|
||
<div class="function-info">
|
||
<div class="function-title">群聊</div>
|
||
<div class="function-desc">查看群聊列表</div>
|
||
</div>
|
||
<div class="function-arrow">›</div>
|
||
</div>
|
||
</div>
|
||
|
||
<!-- 好友列表 -->
|
||
<div class="friends-section">
|
||
<div class="section-header">
|
||
<div class="section-title">联系人</div>
|
||
</div>
|
||
|
||
<div class="friends-list">
|
||
<div class="friend-item">
|
||
<div class="friend-avatar">
|
||
张
|
||
<div class="online-dot"></div>
|
||
</div>
|
||
<div class="friend-info">
|
||
<div class="friend-name">张三</div>
|
||
<div class="friend-status">在线</div>
|
||
</div>
|
||
<div class="friend-actions">
|
||
<div class="action-btn">💬</div>
|
||
<div class="action-btn">📹</div>
|
||
</div>
|
||
</div>
|
||
|
||
<div class="friend-item">
|
||
<div class="friend-avatar">李</div>
|
||
<div class="friend-info">
|
||
<div class="friend-name">李四</div>
|
||
<div class="friend-status">今天很开心</div>
|
||
</div>
|
||
<div class="friend-actions">
|
||
<div class="action-btn">💬</div>
|
||
<div class="action-btn">📹</div>
|
||
</div>
|
||
</div>
|
||
|
||
<div class="friend-item">
|
||
<div class="friend-avatar">王</div>
|
||
<div class="friend-info">
|
||
<div class="friend-name">王五</div>
|
||
<div class="friend-status">离线</div>
|
||
</div>
|
||
<div class="friend-actions">
|
||
<div class="action-btn">💬</div>
|
||
<div class="action-btn">📹</div>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
</body>
|
||
</html> |