You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
619 lines
17 KiB
619 lines
17 KiB
<!DOCTYPE html>
|
|
<html lang="zh-CN" data-theme="light">
|
|
<head>
|
|
<meta charset="UTF-8">
|
|
<meta name="viewport" content="width=375, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
|
|
<title>青核 Youthome - 用户资料</title>
|
|
<link rel="stylesheet" href="../colors_and_type.css">
|
|
<style>
|
|
* {
|
|
margin: 0;
|
|
padding: 0;
|
|
box-sizing: border-box;
|
|
-webkit-tap-highlight-color: transparent;
|
|
}
|
|
|
|
html, body {
|
|
font-family: -apple-system, BlinkMacSystemFont, 'PingFang SC', 'SF Pro Display', 'Helvetica Neue', sans-serif;
|
|
background: var(--youth-bg-page);
|
|
color: var(--youth-text-primary);
|
|
min-height: 100vh;
|
|
overflow-x: hidden;
|
|
}
|
|
|
|
.app-container {
|
|
width: 375px;
|
|
margin: 0 auto;
|
|
background: var(--youth-bg-page);
|
|
position: relative;
|
|
min-height: 812px;
|
|
display: flex;
|
|
flex-direction: column;
|
|
}
|
|
|
|
/* 状态栏 */
|
|
.status-bar {
|
|
height: 44px;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
padding: 0 20px;
|
|
font-size: 15px;
|
|
font-weight: 600;
|
|
color: var(--youth-text-primary);
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.status-bar .right-icons {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 6px;
|
|
}
|
|
|
|
/* 顶部导航 */
|
|
.top-nav {
|
|
height: 44px;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
padding: 0 8px;
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.nav-btn {
|
|
width: 36px;
|
|
height: 36px;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
border-radius: 50%;
|
|
color: var(--youth-text-primary);
|
|
cursor: pointer;
|
|
border: none;
|
|
background: transparent;
|
|
transition: background 0.2s ease;
|
|
}
|
|
|
|
.nav-btn:active {
|
|
background: var(--youth-bg-hover);
|
|
}
|
|
|
|
.nav-right-group {
|
|
display: flex;
|
|
gap: 2px;
|
|
}
|
|
|
|
/* 滚动区 */
|
|
.scroll-area {
|
|
flex: 1;
|
|
overflow-y: auto;
|
|
padding-bottom: 100px;
|
|
}
|
|
|
|
.scroll-area::-webkit-scrollbar {
|
|
display: none;
|
|
}
|
|
|
|
/* 个人信息区 */
|
|
.profile-header {
|
|
padding: 8px 20px 20px;
|
|
text-align: center;
|
|
}
|
|
|
|
.avatar {
|
|
width: 80px;
|
|
height: 80px;
|
|
border-radius: 50%;
|
|
margin: 0 auto 14px;
|
|
background: linear-gradient(135deg, #54CAC5 0%, #26C2BB 100%);
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
color: #fff;
|
|
font-size: 32px;
|
|
font-weight: 700;
|
|
box-shadow: 0 4px 16px rgba(38, 194, 187, 0.25);
|
|
position: relative;
|
|
}
|
|
|
|
.avatar .online-dot {
|
|
position: absolute;
|
|
bottom: 2px;
|
|
right: 2px;
|
|
width: 16px;
|
|
height: 16px;
|
|
border-radius: 50%;
|
|
background: #52C41A;
|
|
border: 3px solid var(--youth-bg-page);
|
|
}
|
|
|
|
.user-name {
|
|
font-size: 20px;
|
|
font-weight: 700;
|
|
color: var(--youth-text-primary);
|
|
margin-bottom: 6px;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
gap: 8px;
|
|
}
|
|
|
|
.gender-tag {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: 2px;
|
|
padding: 2px 8px;
|
|
background: rgba(255, 107, 157, 0.1);
|
|
color: #FF6B9D;
|
|
border-radius: 10px;
|
|
font-size: 11px;
|
|
font-weight: 600;
|
|
}
|
|
|
|
.user-school {
|
|
font-size: 13px;
|
|
color: var(--youth-text-secondary);
|
|
margin-bottom: 10px;
|
|
}
|
|
|
|
.badge-row {
|
|
display: flex;
|
|
justify-content: center;
|
|
gap: 6px;
|
|
flex-wrap: wrap;
|
|
}
|
|
|
|
.badge {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: 4px;
|
|
padding: 3px 10px;
|
|
background: var(--youth-primary-bg);
|
|
color: var(--youth-primary-dark);
|
|
border-radius: 10px;
|
|
font-size: 11px;
|
|
font-weight: 500;
|
|
}
|
|
|
|
.badge svg {
|
|
width: 11px;
|
|
height: 11px;
|
|
}
|
|
|
|
/* 数据统计 */
|
|
.stats-row {
|
|
display: flex;
|
|
padding: 16px 0;
|
|
margin: 0 20px;
|
|
border-top: 1px solid var(--youth-border-light, #E8E8E8);
|
|
border-bottom: 1px solid var(--youth-border-light, #E8E8E8);
|
|
}
|
|
|
|
.stats-item {
|
|
flex: 1;
|
|
text-align: center;
|
|
cursor: pointer;
|
|
}
|
|
|
|
.stats-num {
|
|
font-size: 18px;
|
|
font-weight: 700;
|
|
color: var(--youth-text-primary);
|
|
margin-bottom: 3px;
|
|
}
|
|
|
|
.stats-label {
|
|
font-size: 12px;
|
|
color: var(--youth-text-tertiary);
|
|
}
|
|
|
|
/* 关于我 */
|
|
.about-section {
|
|
padding: 18px 20px;
|
|
}
|
|
|
|
.section-label {
|
|
font-size: 13px;
|
|
font-weight: 600;
|
|
color: var(--youth-text-primary);
|
|
margin-bottom: 10px;
|
|
}
|
|
|
|
.about-text {
|
|
font-size: 13px;
|
|
line-height: 1.7;
|
|
color: var(--youth-text-secondary);
|
|
}
|
|
|
|
/* 兴趣标签 */
|
|
.tags-section {
|
|
padding: 0 20px 18px;
|
|
}
|
|
|
|
.tags-wrap {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
gap: 8px;
|
|
}
|
|
|
|
.tag {
|
|
padding: 5px 12px;
|
|
background: var(--youth-primary-bg);
|
|
color: var(--youth-primary-dark);
|
|
border-radius: 14px;
|
|
font-size: 12px;
|
|
font-weight: 500;
|
|
}
|
|
|
|
.tag.orange {
|
|
background: rgba(255, 159, 69, 0.1);
|
|
color: #FF9F45;
|
|
}
|
|
|
|
.tag.purple {
|
|
background: rgba(155, 122, 214, 0.1);
|
|
color: #9B7AD6;
|
|
}
|
|
|
|
.tag.pink {
|
|
background: rgba(255, 107, 157, 0.1);
|
|
color: #FF6B9D;
|
|
}
|
|
|
|
.tag.green {
|
|
background: rgba(82, 196, 26, 0.1);
|
|
color: #52C41A;
|
|
}
|
|
|
|
/* 基本信息列表 */
|
|
.info-section {
|
|
padding: 18px 20px;
|
|
background: var(--youth-bg-card);
|
|
margin: 0 16px;
|
|
border-radius: 12px;
|
|
box-shadow: 0 2px 12px rgba(0, 0, 0, 0.03);
|
|
}
|
|
|
|
.info-list {
|
|
display: flex;
|
|
flex-direction: column;
|
|
}
|
|
|
|
.info-row {
|
|
display: flex;
|
|
align-items: center;
|
|
padding: 10px 0;
|
|
font-size: 13px;
|
|
}
|
|
|
|
.info-row + .info-row {
|
|
border-top: 1px solid var(--youth-border-lighter, #F0F0F0);
|
|
}
|
|
|
|
.info-label {
|
|
width: 70px;
|
|
color: var(--youth-text-tertiary);
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.info-value {
|
|
flex: 1;
|
|
color: var(--youth-text-primary);
|
|
font-weight: 500;
|
|
text-align: right;
|
|
}
|
|
|
|
/* 动态预览 */
|
|
.moments-section {
|
|
padding: 18px 20px 0;
|
|
}
|
|
|
|
.moment-preview {
|
|
display: flex;
|
|
gap: 6px;
|
|
margin-top: 10px;
|
|
}
|
|
|
|
.moment-thumb {
|
|
flex: 1;
|
|
aspect-ratio: 1;
|
|
border-radius: 8px;
|
|
overflow: hidden;
|
|
}
|
|
|
|
.moment-thumb svg {
|
|
width: 100%;
|
|
height: 100%;
|
|
display: block;
|
|
}
|
|
|
|
.moment-count {
|
|
position: relative;
|
|
flex: 1;
|
|
aspect-ratio: 1;
|
|
border-radius: 8px;
|
|
overflow: hidden;
|
|
background: rgba(0, 0, 0, 0.4);
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
color: #fff;
|
|
font-size: 14px;
|
|
font-weight: 600;
|
|
}
|
|
|
|
.moment-count svg {
|
|
position: absolute;
|
|
inset: 0;
|
|
width: 100%;
|
|
height: 100%;
|
|
opacity: 0.5;
|
|
}
|
|
|
|
.moment-count span {
|
|
position: relative;
|
|
z-index: 1;
|
|
}
|
|
|
|
/* 底部操作栏 */
|
|
.bottom-bar {
|
|
position: absolute;
|
|
bottom: 0;
|
|
left: 0;
|
|
right: 0;
|
|
padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
|
|
background: var(--youth-bg-card);
|
|
border-top: 1px solid var(--youth-border-light, #E8E8E8);
|
|
display: flex;
|
|
gap: 10px;
|
|
z-index: 50;
|
|
}
|
|
|
|
.btn-chat {
|
|
flex: 1;
|
|
height: 44px;
|
|
border-radius: 22px;
|
|
border: 1.5px solid var(--youth-primary);
|
|
background: transparent;
|
|
color: var(--youth-primary);
|
|
font-size: 14px;
|
|
font-weight: 600;
|
|
cursor: pointer;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
gap: 6px;
|
|
transition: all 0.2s ease;
|
|
}
|
|
|
|
.btn-chat:active {
|
|
background: var(--youth-primary-bg);
|
|
transform: scale(0.97);
|
|
}
|
|
|
|
.btn-add {
|
|
flex: 1.3;
|
|
height: 44px;
|
|
border-radius: 22px;
|
|
border: none;
|
|
background: linear-gradient(135deg, #54CAC5 0%, #26C2BB 100%);
|
|
color: #fff;
|
|
font-size: 14px;
|
|
font-weight: 600;
|
|
cursor: pointer;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
gap: 6px;
|
|
box-shadow: 0 2px 8px rgba(38, 194, 187, 0.3);
|
|
transition: all 0.2s ease;
|
|
}
|
|
|
|
.btn-add:active {
|
|
transform: scale(0.97);
|
|
box-shadow: 0 1px 4px rgba(38, 194, 187, 0.2);
|
|
}
|
|
</style>
|
|
</head>
|
|
<body>
|
|
<div class="app-container">
|
|
<!-- 状态栏 -->
|
|
<div class="status-bar">
|
|
<span>9:41</span>
|
|
<div class="right-icons">
|
|
<svg width="17" height="11" viewBox="0 0 17 11" fill="currentColor">
|
|
<rect x="0" y="7" width="3" height="4" rx="0.5"></rect>
|
|
<rect x="4.5" y="5" width="3" height="6" rx="0.5"></rect>
|
|
<rect x="9" y="2.5" width="3" height="8.5" rx="0.5"></rect>
|
|
<rect x="13.5" y="0" width="3" height="11" rx="0.5"></rect>
|
|
</svg>
|
|
<svg width="15" height="11" viewBox="0 0 15 11" fill="currentColor">
|
|
<path d="M7.5 1C5.3 1 3.2 1.7 1.5 3C-0.5 4.7 -0.5 7.5 1.5 9.2C1.9 9.6 2.5 9.6 2.9 9.2C3.3 8.8 3.3 8.2 2.9 7.8C1.6 6.5 1.6 4.4 2.9 3.1C4.2 1.8 6.3 1.4 8 2C10.1 2.7 11.7 4.4 12.2 6.5C12.5 7.3 12.4 8.1 11.8 8.7C11.4 9.1 11.4 9.7 11.8 10.1C12.2 10.5 12.8 10.5 13.2 10.1C14.2 9.1 14.5 7.7 14.2 6.3C13.6 4 12.1 2.3 10.2 1.3C9.3 1 8.4 0.9 7.5 1Z"></path>
|
|
</svg>
|
|
<svg width="25" height="12" viewBox="0 0 25 12" fill="none">
|
|
<rect x="0.5" y="0.5" width="21" height="11" rx="2.5" stroke="currentColor" opacity="0.5"></rect>
|
|
<rect x="2" y="2" width="18" height="8" rx="1.5" fill="currentColor"></rect>
|
|
<rect x="22.5" y="4" width="1.5" height="4" rx="0.5" fill="currentColor" opacity="0.5"></rect>
|
|
</svg>
|
|
</div>
|
|
</div>
|
|
|
|
<!-- 顶部导航 -->
|
|
<div class="top-nav">
|
|
<button class="nav-btn" onclick="goBack()">
|
|
<svg width="22" height="22" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
|
|
<polyline points="15 18 9 12 15 6"></polyline>
|
|
</svg>
|
|
</button>
|
|
<div class="nav-right-group">
|
|
<button class="nav-btn" onclick="handleShare()">
|
|
<svg width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
|
|
<circle cx="18" cy="5" r="3"></circle>
|
|
<circle cx="6" cy="12" r="3"></circle>
|
|
<circle cx="18" cy="19" r="3"></circle>
|
|
<line x1="8.59" y1="13.51" x2="15.42" y2="17.49"></line>
|
|
<line x1="15.41" y1="6.51" x2="8.59" y2="10.49"></line>
|
|
</svg>
|
|
</button>
|
|
<button class="nav-btn" onclick="showMore()">
|
|
<svg width="20" height="20" viewBox="0 0 24 24" fill="currentColor">
|
|
<circle cx="12" cy="5" r="2"></circle>
|
|
<circle cx="12" cy="12" r="2"></circle>
|
|
<circle cx="12" cy="19" r="2"></circle>
|
|
</svg>
|
|
</button>
|
|
</div>
|
|
</div>
|
|
|
|
<!-- 滚动区域 -->
|
|
<div class="scroll-area">
|
|
<!-- 个人信息 -->
|
|
<div class="profile-header">
|
|
<div class="avatar">
|
|
林
|
|
<div class="online-dot"></div>
|
|
</div>
|
|
<div class="user-name">
|
|
林诗涵
|
|
<span class="gender-tag">
|
|
<svg width="10" height="10" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="3" stroke-linecap="round" stroke-linejoin="round">
|
|
<circle cx="12" cy="8" r="4"></circle>
|
|
<path d="M12 12v8M9 17h6"></path>
|
|
</svg>
|
|
21
|
|
</span>
|
|
</div>
|
|
<div class="user-school">浙江大学 · 计算机科学与技术 · 大三</div>
|
|
<div class="badge-row">
|
|
<span class="badge">
|
|
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round">
|
|
<path d="M22 11.08V12a10 10 0 1 1-5.93-9.14"></path>
|
|
<polyline points="22 4 12 14.01 9 11.01"></polyline>
|
|
</svg>
|
|
本校认证
|
|
</span>
|
|
<span class="badge" style="background: rgba(255, 159, 69, 0.1); color: #FF9F45;">
|
|
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round">
|
|
<path d="M20 21v-2a4 4 0 0 0-4-4H8a4 4 0 0 0-4 4v2"></path>
|
|
<circle cx="12" cy="7" r="4"></circle>
|
|
</svg>
|
|
实名已认证
|
|
</span>
|
|
</div>
|
|
</div>
|
|
|
|
<!-- 数据统计 -->
|
|
<div class="stats-row">
|
|
<div class="stats-item" onclick="viewFollowing()">
|
|
<div class="stats-num">128</div>
|
|
<div class="stats-label">关注</div>
|
|
</div>
|
|
<div class="stats-item" onclick="viewFollowers()">
|
|
<div class="stats-num">256</div>
|
|
<div class="stats-label">粉丝</div>
|
|
</div>
|
|
<div class="stats-item" onclick="viewMutual()">
|
|
<div class="stats-num">12</div>
|
|
<div class="stats-label">共同好友</div>
|
|
</div>
|
|
<div class="stats-item" onclick="viewMoments()">
|
|
<div class="stats-num">36</div>
|
|
<div class="stats-label">动态</div>
|
|
</div>
|
|
</div>
|
|
|
|
<!-- 关于我 -->
|
|
<div class="about-section">
|
|
<div class="section-label">关于我</div>
|
|
<p class="about-text">
|
|
热爱音乐和摄影的计算机系学生,喜欢探索城市角落,周末常泡图书馆。性格开朗乐观,期待认识更多有趣的朋友~
|
|
</p>
|
|
</div>
|
|
|
|
<!-- 兴趣爱好 -->
|
|
<div class="tags-section">
|
|
<div class="section-label">兴趣爱好</div>
|
|
<div class="tags-wrap">
|
|
<span class="tag">音乐</span>
|
|
<span class="tag orange">摄影</span>
|
|
<span class="tag green">篮球</span>
|
|
<span class="tag purple">阅读</span>
|
|
<span class="tag pink">电影</span>
|
|
<span class="tag">旅行</span>
|
|
<span class="tag orange">美食</span>
|
|
<span class="tag green">吉他</span>
|
|
</div>
|
|
</div>
|
|
|
|
<!-- 基本信息卡片 -->
|
|
|
|
|
|
<!-- 动态预览 -->
|
|
<div class="moments-section">
|
|
<div class="section-label">动态</div>
|
|
<div class="moment-preview">
|
|
<div class="moment-thumb">
|
|
<svg viewBox="0 0 100 100" xmlns="http://www.w3.org/2000/svg">
|
|
<rect width="100" height="100" fill="#FFF5E5"></rect>
|
|
<path d="M0 70 L25 40 L45 55 L60 35 L100 65 L100 100 L0 100 Z" fill="#FFB96B"></path>
|
|
<path d="M0 80 L20 55 L40 70 L55 50 L80 65 L100 75 L100 100 L0 100 Z" fill="#FF9F45"></path>
|
|
</svg>
|
|
</div>
|
|
<div class="moment-thumb">
|
|
<svg viewBox="0 0 100 100" xmlns="http://www.w3.org/2000/svg">
|
|
<rect width="100" height="100" fill="#E6F7F6"></rect>
|
|
<rect x="30" y="30" width="40" height="55" fill="#A5E3E0"></rect>
|
|
<path d="M0 80 L20 65 L40 75 L60 60 L80 70 L100 55 L100 100 L0 100 Z" fill="#3FCFCA" opacity="0.5"></path>
|
|
</svg>
|
|
</div>
|
|
<div class="moment-thumb">
|
|
<svg viewBox="0 0 100 100" xmlns="http://www.w3.org/2000/svg">
|
|
<rect width="100" height="100" fill="#FFE5F0"></rect>
|
|
<circle cx="50" cy="45" r="18" fill="#FFC2D9"></circle>
|
|
<rect x="30" y="60" width="40" height="25" rx="6" fill="#FF8AAE" opacity="0.5"></rect>
|
|
</svg>
|
|
</div>
|
|
<div class="moment-count">
|
|
<svg viewBox="0 0 100 100" xmlns="http://www.w3.org/2000/svg">
|
|
<rect width="100" height="100" fill="#E5FFF0"></rect>
|
|
<path d="M0 75 L20 50 L35 60 L55 35 L100 70 L100 100 L0 100 Z" fill="#67E188"></path>
|
|
</svg>
|
|
<span>+33</span>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<!-- 底部操作栏 -->
|
|
<div class="bottom-bar">
|
|
<button class="btn-chat" onclick="handleChat()">
|
|
<svg width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
|
|
<path d="M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z"></path>
|
|
</svg>
|
|
发消息
|
|
</button>
|
|
<button class="btn-add" onclick="handleAdd()">
|
|
<svg width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round">
|
|
<path d="M16 21v-2a4 4 0 0 0-4-4H5a4 4 0 0 0-4 4v2"></path>
|
|
<circle cx="8.5" cy="7" r="4"></circle>
|
|
<line x1="20" y1="8" x2="20" y2="14"></line>
|
|
<line x1="23" y1="11" x2="17" y2="11"></line>
|
|
</svg>
|
|
加好友
|
|
</button>
|
|
</div>
|
|
</div>
|
|
|
|
<script>
|
|
function goBack() { window.history.back(); }
|
|
function handleShare() { alert('分享'); }
|
|
function showMore() { alert('更多操作'); }
|
|
function viewFollowing() { alert('关注列表'); }
|
|
function viewFollowers() { alert('粉丝列表'); }
|
|
function viewMutual() { alert('共同好友'); }
|
|
function viewMoments() { alert('全部动态'); }
|
|
function handleChat() { alert('发起聊天'); }
|
|
function handleAdd() { alert('发送好友申请'); }
|
|
</script>
|
|
</body>
|
|
</html>
|
|
|