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.
 
 

346 lines
12 KiB

<!DOCTYPE html>
<html lang="zh-CN">
<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;
}
.page-container {
width: 375px;
margin: 0 auto;
min-height: 812px;
background: var(--youth-bg-page);
position: relative;
display: flex;
flex-direction: column;
overflow: hidden;
}
/* 状态栏 */
.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 {
display: flex;
align-items: center;
gap: 10px;
padding: 0 16px 12px;
flex-shrink: 0;
}
.location-btn {
display: flex;
align-items: center;
gap: 4px;
font-size: 14px;
font-weight: 600;
color: var(--youth-text-primary);
cursor: pointer;
flex-shrink: 0;
}
.location-btn svg.chevron {
width: 12px;
height: 12px;
color: var(--youth-text-tertiary);
}
.search-box {
flex: 1;
display: flex;
align-items: center;
gap: 6px;
padding: 0 14px;
height: 38px;
background: var(--youth-bg-card, #fff);
border-radius: 20px;
border: 1px solid var(--youth-border-light, #E8E8E8);
cursor: pointer;
transition: all 0.2s ease;
}
.search-box svg {
width: 16px;
height: 16px;
color: var(--youth-text-tertiary);
flex-shrink: 0;
}
.search-box span {
font-size: 13px;
color: var(--youth-text-placeholder, #B0B0B0);
}
.filter-btn {
width: 38px;
height: 38px;
border-radius: 50%;
background: var(--youth-bg-card, #fff);
border: 1px solid var(--youth-border-light, #E8E8E8);
display: flex;
align-items: center;
justify-content: center;
cursor: pointer;
flex-shrink: 0;
color: var(--youth-text-primary);
transition: all 0.2s ease;
}
.filter-btn svg {
width: 18px;
height: 18px;
}
/* 分类筛选 - 横向滚动 */
.category-bar {
display: flex;
gap: 8px;
padding: 0 16px 14px;
overflow-x: auto;
flex-shrink: 0;
scrollbar-width: none;
-ms-overflow-style: none;
}
.category-bar::-webkit-scrollbar {
display: none;
}
.cat-tag {
flex-shrink: 0;
padding: 6px 14px;
border-radius: 16px;
font-size: 13px;
font-weight: 500;
color: var(--youth-text-secondary);
background: var(--youth-bg-card, #fff);
border: 1px solid var(--youth-border-light, #E8E8E8);
cursor: pointer;
transition: all 0.2s ease;
}
.cat-tag.active {
background: var(--youth-primary, #26C2BB);
color: #fff;
border-color: var(--youth-primary, #26C2BB);
box-shadow: 0 2px 8px rgba(38, 194, 187, 0.25);
font-weight: 600;
}
/* 空数据状态 */
.empty-state {
flex: 1;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
padding: 0 40px 120px;
text-align: center;
}
.empty-icon-wrap {
width: 120px;
height: 120px;
margin-bottom: 24px;
display: flex;
align-items: center;
justify-content: center;
background: var(--youth-primary-bg, #E6FAF9);
border-radius: 50%;
position: relative;
}
.empty-icon-wrap::before {
content: '';
position: absolute;
width: 100%;
height: 100%;
border-radius: 50%;
background: radial-gradient(circle, rgba(38, 194, 187, 0.1) 0%, transparent 70%);
}
.empty-icon-wrap svg {
width: 56px;
height: 56px;
color: var(--youth-primary, #26C2BB);
position: relative;
z-index: 1;
}
.empty-title {
font-size: 17px;
font-weight: 600;
color: var(--youth-text-primary);
margin-bottom: 10px;
}
.empty-desc {
font-size: 13px;
color: var(--youth-text-tertiary, #8C8C8C);
line-height: 1.6;
margin-bottom: 28px;
}
.empty-action-btn {
padding: 10px 28px;
background: var(--youth-primary, #26C2BB);
color: #fff;
font-size: 14px;
font-weight: 600;
border-radius: 20px;
border: none;
cursor: pointer;
box-shadow: 0 4px 12px rgba(38, 194, 187, 0.3);
transition: all 0.2s ease;
}
.empty-action-btn:active {
transform: scale(0.96);
}
/* 浮动发布按钮 */
.fab-btn {
position: absolute;
right: 16px;
bottom: 32px;
width: 52px;
height: 52px;
border-radius: 50%;
background: linear-gradient(135deg, #3FCFCA 0%, #26C2BB 100%);
display: flex;
align-items: center;
justify-content: center;
color: #fff;
box-shadow: 0 6px 20px rgba(38, 194, 187, 0.35);
cursor: pointer;
z-index: 60;
transition: all 0.2s ease;
border: none;
}
.fab-btn svg {
width: 24px;
height: 24px;
stroke-width: 2.5;
}
</style>
</head>
<body>
<div class="page-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">
<div class="location-btn">
<svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
<path d="M20 10c0 6-8 12-8 12s-8-6-8-12a8 8 0 0 1 16 0Z"></path>
<circle cx="12" cy="10" r="3"></circle>
</svg>
<span>清华大学</span>
<svg class="chevron" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round">
<path d="m6 9 6 6 6-6"></path>
</svg>
</div>
<div class="search-box">
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
<circle cx="11" cy="11" r="8"></circle>
<path d="m21 21-4.3-4.3"></path>
</svg>
<span>搜索活动名称/主办方</span>
</div>
<button class="filter-btn" aria-label="筛选">
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
<path d="M22 3H2l8 9.46V19l4 2v-8.54L22 3z"></path>
</svg>
</button>
</div>
<!-- 分类筛选 -->
<div class="category-bar">
<div class="cat-tag active" data-cat="all">全部</div>
<div class="cat-tag" data-cat="thought">思想成长</div>
<div class="cat-tag" data-cat="innovation">创新创业</div>
<div class="cat-tag" data-cat="academic">学术科技</div>
<div class="cat-tag" data-cat="culture">文化艺术</div>
<div class="cat-tag" data-cat="sports">体育健康</div>
<div class="cat-tag" data-cat="volunteer">志愿公益</div>
<div class="cat-tag" data-cat="practice">社会实践</div>
</div>
<!-- 空数据状态 -->
<div class="empty-state">
<div class="empty-icon-wrap">
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round">
<rect x="3" y="4" width="18" height="18" rx="2" ry="2"></rect>
<line x1="16" y1="2" x2="16" y2="6"></line>
<line x1="8" y1="2" x2="8" y2="6"></line>
<line x1="3" y1="10" x2="21" y2="10"></line>
<path d="M8 14h.01M12 14h.01M16 14h.01M8 18h.01M12 18h.01M16 18h.01"></path>
</svg>
</div>
<div class="empty-title">暂无相关活动</div>
<div class="empty-desc">当前分类下还没有活动<br>试试切换其他分类或调整筛选条件</div>
<button class="empty-action-btn">发起一个活动</button>
</div>
<!-- 浮动发布按钮 -->
<button class="fab-btn" aria-label="发布活动">
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round">
<path d="M12 5v14"></path>
<path d="M5 12h14"></path>
</svg>
</button>
</div>
</body>
</html>