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.
782 lines
24 KiB
782 lines
24 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>
|
|
<script src="https://cdn.tailwindcss.com"></script>
|
|
<link rel="stylesheet" href="../colors_and_type.css">
|
|
<style>
|
|
* {
|
|
margin: 0;
|
|
padding: 0;
|
|
box-sizing: border-box;
|
|
-webkit-tap-highlight-color: transparent;
|
|
}
|
|
|
|
:root {
|
|
--radius-xs: 4px;
|
|
--radius-sm: 8px;
|
|
--radius-md: 12px;
|
|
--radius-lg: 16px;
|
|
--radius-xl: 20px;
|
|
--radius-full: 9999px;
|
|
--height-btn: 44px;
|
|
--height-input: 44px;
|
|
--height-nav: 64px;
|
|
--space-1: 4px;
|
|
--space-2: 8px;
|
|
--space-3: 12px;
|
|
--space-4: 16px;
|
|
--space-5: 20px;
|
|
--space-6: 24px;
|
|
--shadow-card: 0 2px 12px rgba(0, 0, 0, 0.04);
|
|
--shadow-btn: 0 2px 8px rgba(38, 194, 187, 0.25);
|
|
}
|
|
|
|
html, body {
|
|
font-family: -apple-system, BlinkMacSystemFont, 'PingFang SC', 'SF Pro Display', 'Helvetica Neue', 'Segoe UI', Roboto, sans-serif;
|
|
background: var(--youth-bg-page);
|
|
color: var(--youth-text-primary);
|
|
min-height: 100vh;
|
|
overflow-x: hidden;
|
|
}
|
|
|
|
.app-container {
|
|
width: 375px;
|
|
height: 812px;
|
|
margin: 0 auto;
|
|
background: var(--youth-bg-page);
|
|
position: relative;
|
|
overflow: hidden;
|
|
}
|
|
|
|
/* ===== 状态栏 ===== */
|
|
.status-bar {
|
|
height: 24px;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
padding: 0 20px;
|
|
font-size: 12px;
|
|
font-weight: 600;
|
|
color: var(--youth-text-primary);
|
|
background: var(--youth-bg-page);
|
|
position: relative;
|
|
z-index: 30;
|
|
}
|
|
|
|
.status-bar .right-icons {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 6px;
|
|
}
|
|
|
|
.status-bar svg {
|
|
width: 16px;
|
|
height: 16px;
|
|
}
|
|
|
|
/* ===== 顶部导航栏 ===== */
|
|
.top-nav {
|
|
height: 44px;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
padding: 0 8px;
|
|
background: var(--youth-bg-page);
|
|
position: relative;
|
|
z-index: 20;
|
|
}
|
|
|
|
.nav-icon-btn {
|
|
width: 34px;
|
|
height: 34px;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
border-radius: 50%;
|
|
cursor: pointer;
|
|
transition: all 0.15s ease;
|
|
color: var(--youth-text-primary);
|
|
}
|
|
|
|
.nav-icon-btn:active {
|
|
transform: scale(0.92);
|
|
}
|
|
|
|
.nav-icon-btn svg {
|
|
width: 22px;
|
|
height: 22px;
|
|
stroke-width: 2px;
|
|
}
|
|
|
|
.nav-title {
|
|
font-size: 17px;
|
|
font-weight: 600;
|
|
color: var(--youth-text-primary);
|
|
}
|
|
|
|
.nav-right-group {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 4px;
|
|
}
|
|
|
|
/* ===== 统计概览 ===== */
|
|
.stats-section {
|
|
padding: 8px 16px 16px;
|
|
}
|
|
|
|
.stats-card {
|
|
background: linear-gradient(135deg, rgba(38, 194, 187, 0.1) 0%, rgba(38, 194, 187, 0.04) 100%);
|
|
border-radius: var(--youth-radius-md);
|
|
padding: 16px;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-around;
|
|
}
|
|
|
|
.stat-item {
|
|
text-align: center;
|
|
cursor: pointer;
|
|
}
|
|
|
|
.stat-number {
|
|
font-size: 20px;
|
|
font-weight: 700;
|
|
color: var(--youth-primary);
|
|
margin-bottom: 2px;
|
|
}
|
|
|
|
.stat-label {
|
|
font-size: 11px;
|
|
color: var(--youth-text-secondary);
|
|
}
|
|
|
|
.stat-divider {
|
|
width: 1px;
|
|
height: 32px;
|
|
background: rgba(38, 194, 187, 0.2);
|
|
}
|
|
|
|
/* ===== 分组标题 ===== */
|
|
.section-header {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
padding: 0 16px 12px;
|
|
}
|
|
|
|
.section-title {
|
|
font-size: 15px;
|
|
font-weight: 600;
|
|
color: var(--youth-text-primary);
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 6px;
|
|
}
|
|
|
|
.section-title-icon {
|
|
width: 18px;
|
|
height: 18px;
|
|
color: var(--youth-primary);
|
|
}
|
|
|
|
.section-title-icon svg {
|
|
width: 18px;
|
|
height: 18px;
|
|
stroke-width: 2px;
|
|
}
|
|
|
|
.section-count {
|
|
font-size: 12px;
|
|
color: var(--youth-text-tertiary);
|
|
margin-left: 2px;
|
|
}
|
|
|
|
/* ===== 话题列表 ===== */
|
|
.topic-list {
|
|
padding: 0 16px;
|
|
}
|
|
|
|
.topic-item {
|
|
display: flex;
|
|
align-items: center;
|
|
padding: 14px 0;
|
|
border-bottom: 1px solid var(--youth-border-light);
|
|
gap: 12px;
|
|
cursor: pointer;
|
|
transition: opacity 0.15s ease;
|
|
}
|
|
|
|
.topic-item:last-child {
|
|
border-bottom: none;
|
|
}
|
|
|
|
.topic-item:active {
|
|
opacity: 0.7;
|
|
}
|
|
|
|
.topic-icon {
|
|
width: 44px;
|
|
height: 44px;
|
|
border-radius: var(--youth-radius-sm);
|
|
flex-shrink: 0;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
position: relative;
|
|
}
|
|
|
|
.topic-icon svg {
|
|
width: 22px;
|
|
height: 22px;
|
|
stroke-width: 2px;
|
|
color: #FFFFFF;
|
|
}
|
|
|
|
.topic-new-dot {
|
|
position: absolute;
|
|
top: -2px;
|
|
right: -2px;
|
|
width: 10px;
|
|
height: 10px;
|
|
background: #FF4D4F;
|
|
border-radius: 50%;
|
|
border: 2px solid var(--youth-bg-page);
|
|
}
|
|
|
|
.topic-content {
|
|
flex: 1;
|
|
min-width: 0;
|
|
}
|
|
|
|
.topic-name {
|
|
font-size: 15px;
|
|
font-weight: 500;
|
|
color: var(--youth-text-primary);
|
|
margin-bottom: 4px;
|
|
white-space: nowrap;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 6px;
|
|
}
|
|
|
|
.topic-badge {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
height: 16px;
|
|
padding: 0 6px;
|
|
border-radius: 8px;
|
|
font-size: 10px;
|
|
font-weight: 500;
|
|
flex-shrink: 0;
|
|
background: linear-gradient(135deg, #FFE5D9, #FFCCB3);
|
|
color: #E87040;
|
|
}
|
|
|
|
.topic-desc {
|
|
font-size: 12px;
|
|
color: var(--youth-text-tertiary);
|
|
white-space: nowrap;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
margin-bottom: 6px;
|
|
}
|
|
|
|
.topic-meta {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 12px;
|
|
font-size: 11px;
|
|
color: var(--youth-text-tertiary);
|
|
}
|
|
|
|
.topic-meta span {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 3px;
|
|
}
|
|
|
|
.topic-meta svg {
|
|
width: 11px;
|
|
height: 11px;
|
|
stroke-width: 2px;
|
|
}
|
|
|
|
.topic-meta .new-posts {
|
|
color: var(--youth-primary);
|
|
font-weight: 500;
|
|
}
|
|
|
|
.topic-action {
|
|
flex-shrink: 0;
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
}
|
|
|
|
.unfollow-btn {
|
|
height: 26px;
|
|
padding: 0 12px;
|
|
border-radius: var(--youth-radius-full);
|
|
background: var(--youth-bg-page);
|
|
color: var(--youth-text-tertiary);
|
|
font-size: 11px;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
cursor: pointer;
|
|
border: 1px solid var(--youth-border-light);
|
|
transition: all 0.2s ease;
|
|
}
|
|
|
|
.unfollow-btn:active {
|
|
transform: scale(0.92);
|
|
}
|
|
|
|
.topic-arrow {
|
|
color: var(--youth-text-tertiary);
|
|
}
|
|
|
|
.topic-arrow svg {
|
|
width: 16px;
|
|
height: 16px;
|
|
stroke-width: 2px;
|
|
}
|
|
|
|
/* ===== 空状态 ===== */
|
|
.empty-state {
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
justify-content: center;
|
|
padding: 60px 20px;
|
|
}
|
|
|
|
.empty-icon {
|
|
width: 64px;
|
|
height: 64px;
|
|
margin-bottom: 16px;
|
|
color: #D9D9D9;
|
|
}
|
|
|
|
.empty-icon svg {
|
|
width: 64px;
|
|
height: 64px;
|
|
stroke-width: 1.5px;
|
|
}
|
|
|
|
.empty-text {
|
|
font-size: 14px;
|
|
color: var(--youth-text-tertiary);
|
|
margin-bottom: 16px;
|
|
}
|
|
|
|
.empty-btn {
|
|
height: 36px;
|
|
padding: 0 20px;
|
|
border-radius: var(--youth-radius-full);
|
|
background: var(--youth-primary);
|
|
color: #FFFFFF;
|
|
font-size: 13px;
|
|
font-weight: 500;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
cursor: pointer;
|
|
box-shadow: var(--shadow-btn);
|
|
}
|
|
|
|
.empty-btn:active {
|
|
transform: scale(0.95);
|
|
}
|
|
|
|
/* ===== 话题颜色 ===== */
|
|
.bg-daily { background: linear-gradient(135deg, #A5E3E0, #54CAC5); }
|
|
.bg-study { background: linear-gradient(135deg, #B3C7FF, #7A95E8); }
|
|
.bg-food { background: linear-gradient(135deg, #FFD4A3, #FF9F45); }
|
|
.bg-sport { background: linear-gradient(135deg, #FFB3B3, #FF8080); }
|
|
.bg-music { background: linear-gradient(135deg, #D4B8FF, #A78BFA); }
|
|
.bg-photo { background: linear-gradient(135deg, #82DDF0, #36BFFA); }
|
|
.bg-travel { background: linear-gradient(135deg, #B3E5C8, #52C41A); }
|
|
.bg-love { background: linear-gradient(135deg, #FFB3D1, #FF80B3); }
|
|
.bg-club { background: linear-gradient(135deg, #FFE5A3, #FFC94D); }
|
|
</style>
|
|
</head>
|
|
<body>
|
|
<div class="app-container">
|
|
<!-- 状态栏 -->
|
|
<div class="status-bar">
|
|
<span>9:41</span>
|
|
<div class="right-icons">
|
|
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round">
|
|
<path d="M1 9l2 2c4.97-4.97 13.03-4.97 18 0l2-2C16.93 2.93 7.08 2.93 1 9z"></path>
|
|
<path d="M5 12.55l2 2a7 7 0 0 1 10 0l2-2C15.14 9.14 8.87 9.14 5 12.55z"></path>
|
|
<path d="M8.5 16l3.5 3.5 3.5-3.5"></path>
|
|
</svg>
|
|
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round">
|
|
<rect x="1" y="6" width="18" height="12" rx="2"></rect>
|
|
<line x1="23" y1="10" x2="23" y2="14"></line>
|
|
</svg>
|
|
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round">
|
|
<rect x="2" y="7" width="18" height="12" rx="2"></rect>
|
|
<path d="M22 11V9a2 2 0 0 0-2-2H4a2 2 0 0 0-2 2v10a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-2"></path>
|
|
<path d="M6 7V5a2 2 0 0 1 2-2h8a2 2 0 0 1 2 2v2"></path>
|
|
</svg>
|
|
</div>
|
|
</div>
|
|
|
|
<!-- 顶部导航栏 -->
|
|
<div class="top-nav">
|
|
<div class="nav-icon-btn" onclick="goBack()">
|
|
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round">
|
|
<polyline points="15 18 9 12 15 6"></polyline>
|
|
</svg>
|
|
</div>
|
|
<div class="nav-title">我的话题</div>
|
|
<div class="nav-right-group">
|
|
<div class="nav-icon-btn" onclick="manageTopics()">
|
|
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round">
|
|
<line x1="4" y1="6" x2="20" y2="6"></line>
|
|
<line x1="4" y1="12" x2="20" y2="12"></line>
|
|
<line x1="4" y1="18" x2="20" y2="18"></line>
|
|
</svg>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<!-- 统计概览 -->
|
|
<div class="stats-section">
|
|
<div class="stats-card">
|
|
<div class="stat-item" onclick="filterTopics('followed')">
|
|
<div class="stat-number">8</div>
|
|
<div class="stat-label">关注话题</div>
|
|
</div>
|
|
<div class="stat-divider"></div>
|
|
<div class="stat-item" onclick="filterTopics('created')">
|
|
<div class="stat-number">2</div>
|
|
<div class="stat-label">发起话题</div>
|
|
</div>
|
|
<div class="stat-divider"></div>
|
|
<div class="stat-item" onclick="filterTopics('participated')">
|
|
<div class="stat-number">15</div>
|
|
<div class="stat-label">参与话题</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<!-- 最近访问 -->
|
|
<div class="section-header">
|
|
<div class="section-title">
|
|
<div class="section-title-icon">
|
|
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round">
|
|
<circle cx="12" cy="12" r="10"></circle>
|
|
<polyline points="12 6 12 12 16 14"></polyline>
|
|
</svg>
|
|
</div>
|
|
最近访问
|
|
<span class="section-count">· 3个有新动态</span>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="topic-list">
|
|
<div class="topic-item" onclick="openTopic('期末加油打卡挑战')">
|
|
<div class="topic-icon bg-study">
|
|
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round">
|
|
<path d="M4 19.5A2.5 2.5 0 0 1 6.5 17H20"></path>
|
|
<path d="M6.5 2H20v20H6.5A2.5 2.5 0 0 1 4 19.5v-15A2.5 2.5 0 0 1 6.5 2z"></path>
|
|
</svg>
|
|
<div class="topic-new-dot"></div>
|
|
</div>
|
|
<div class="topic-content">
|
|
<div class="topic-name">
|
|
#期末加油打卡挑战
|
|
<span class="topic-badge">热门</span>
|
|
</div>
|
|
<div class="topic-desc">期末复习打卡,互相监督一起冲</div>
|
|
<div class="topic-meta">
|
|
<span class="new-posts">+128 新动态</span>
|
|
<span>
|
|
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round">
|
|
<path d="M17 21v-2a4 4 0 0 0-4-4H5a4 4 0 0 0-4 4v2"></path>
|
|
<circle cx="9" cy="7" r="4"></circle>
|
|
</svg>
|
|
2.3万人
|
|
</span>
|
|
</div>
|
|
</div>
|
|
<div class="topic-arrow">
|
|
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round">
|
|
<polyline points="9 18 15 12 9 6"></polyline>
|
|
</svg>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="topic-item" onclick="openTopic('校园日常')">
|
|
<div class="topic-icon bg-daily">
|
|
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round">
|
|
<rect x="3" y="4" width="18" height="18" rx="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>
|
|
</svg>
|
|
<div class="topic-new-dot"></div>
|
|
</div>
|
|
<div class="topic-content">
|
|
<div class="topic-name">#校园日常</div>
|
|
<div class="topic-desc">记录校园生活的每一天</div>
|
|
<div class="topic-meta">
|
|
<span class="new-posts">+56 新动态</span>
|
|
<span>
|
|
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round">
|
|
<path d="M17 21v-2a4 4 0 0 0-4-4H5a4 4 0 0 0-4 4v2"></path>
|
|
<circle cx="9" cy="7" r="4"></circle>
|
|
</svg>
|
|
5.6万人
|
|
</span>
|
|
</div>
|
|
</div>
|
|
<div class="topic-arrow">
|
|
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round">
|
|
<polyline points="9 18 15 12 9 6"></polyline>
|
|
</svg>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="topic-item" onclick="openTopic('秋日校园摄影大赛')">
|
|
<div class="topic-icon bg-photo">
|
|
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round">
|
|
<path d="M23 19a2 2 0 0 1-2 2H3a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h4l2-3h6l2 3h4a2 2 0 0 1 2 2z"></path>
|
|
<circle cx="12" cy="13" r="4"></circle>
|
|
</svg>
|
|
<div class="topic-new-dot"></div>
|
|
</div>
|
|
<div class="topic-content">
|
|
<div class="topic-name">
|
|
#秋日校园摄影大赛
|
|
</div>
|
|
<div class="topic-desc">用镜头捕捉校园最美秋色</div>
|
|
<div class="topic-meta">
|
|
<span class="new-posts">+23 新动态</span>
|
|
<span>
|
|
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round">
|
|
<path d="M17 21v-2a4 4 0 0 0-4-4H5a4 4 0 0 0-4 4v2"></path>
|
|
<circle cx="9" cy="7" r="4"></circle>
|
|
</svg>
|
|
1.8万人
|
|
</span>
|
|
</div>
|
|
</div>
|
|
<div class="topic-arrow">
|
|
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round">
|
|
<polyline points="9 18 15 12 9 6"></polyline>
|
|
</svg>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<!-- 全部关注 -->
|
|
<div class="section-header" style="margin-top: 16px;">
|
|
<div class="section-title">
|
|
<div class="section-title-icon">
|
|
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round">
|
|
<path d="M19 21l-7-5-7 5V5a2 2 0 0 1 2-2h10a2 2 0 0 1 2 2z"></path>
|
|
</svg>
|
|
</div>
|
|
全部关注
|
|
<span class="section-count">· 8个</span>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="topic-list">
|
|
<div class="topic-item" onclick="openTopic('图书馆自习打卡')">
|
|
<div class="topic-icon bg-study">
|
|
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round">
|
|
<path d="M2 3h6a4 4 0 0 1 4 4v14a3 3 0 0 0-3-3H2z"></path>
|
|
<path d="M22 3h-6a4 4 0 0 0-4 4v14a3 3 0 0 1 3-3h7z"></path>
|
|
</svg>
|
|
</div>
|
|
<div class="topic-content">
|
|
<div class="topic-name">#图书馆自习打卡</div>
|
|
<div class="topic-desc">自习室占座、学习打卡</div>
|
|
<div class="topic-meta">
|
|
<span>
|
|
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round">
|
|
<path d="M17 21v-2a4 4 0 0 0-4-4H5a4 4 0 0 0-4 4v2"></path>
|
|
<circle cx="9" cy="7" r="4"></circle>
|
|
</svg>
|
|
1.5万人
|
|
</span>
|
|
<span>
|
|
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round">
|
|
<path d="M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z"></path>
|
|
<polyline points="14 2 14 8 20 8"></polyline>
|
|
</svg>
|
|
3.2万动态
|
|
</span>
|
|
</div>
|
|
</div>
|
|
<div class="unfollow-btn" onclick="event.stopPropagation(); unfollowTopic(this)">已关注</div>
|
|
</div>
|
|
|
|
<div class="topic-item" onclick="openTopic('食堂美食测评')">
|
|
<div class="topic-icon bg-food">
|
|
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round">
|
|
<path d="M12 2v20"></path>
|
|
<path d="M7 8v8a5 5 0 0 0 10 0V8"></path>
|
|
<path d="M7 8h10"></path>
|
|
</svg>
|
|
</div>
|
|
<div class="topic-content">
|
|
<div class="topic-name">#食堂美食测评</div>
|
|
<div class="topic-desc">校园周边美食地图</div>
|
|
<div class="topic-meta">
|
|
<span>
|
|
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round">
|
|
<path d="M17 21v-2a4 4 0 0 0-4-4H5a4 4 0 0 0-4 4v2"></path>
|
|
<circle cx="9" cy="7" r="4"></circle>
|
|
</svg>
|
|
2.8万人
|
|
</span>
|
|
<span>
|
|
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round">
|
|
<path d="M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z"></path>
|
|
<polyline points="14 2 14 8 20 8"></polyline>
|
|
</svg>
|
|
6.5万动态
|
|
</span>
|
|
</div>
|
|
</div>
|
|
<div class="unfollow-btn" onclick="event.stopPropagation(); unfollowTopic(this)">已关注</div>
|
|
</div>
|
|
|
|
<div class="topic-item" onclick="openTopic('操场夜跑搭子')">
|
|
<div class="topic-icon bg-sport">
|
|
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round">
|
|
<path d="M6.5 6.5l11 11"></path>
|
|
<path d="M18 22l4-4"></path>
|
|
<path d="M2 6l4-4"></path>
|
|
</svg>
|
|
</div>
|
|
<div class="topic-content">
|
|
<div class="topic-name">#操场夜跑搭子</div>
|
|
<div class="topic-desc">跑步健身,找个搭子一起动</div>
|
|
<div class="topic-meta">
|
|
<span>
|
|
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round">
|
|
<path d="M17 21v-2a4 4 0 0 0-4-4H5a4 4 0 0 0-4 4v2"></path>
|
|
<circle cx="9" cy="7" r="4"></circle>
|
|
</svg>
|
|
9,842人
|
|
</span>
|
|
<span>
|
|
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round">
|
|
<path d="M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z"></path>
|
|
<polyline points="14 2 14 8 20 8"></polyline>
|
|
</svg>
|
|
2.1万动态
|
|
</span>
|
|
</div>
|
|
</div>
|
|
<div class="unfollow-btn" onclick="event.stopPropagation(); unfollowTopic(this)">已关注</div>
|
|
</div>
|
|
|
|
<div class="topic-item" onclick="openTopic('音乐艺术')">
|
|
<div class="topic-icon bg-music">
|
|
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round">
|
|
<path d="M9 18V5l12-2v13"></path>
|
|
<circle cx="6" cy="18" r="3"></circle>
|
|
<circle cx="18" cy="16" r="3"></circle>
|
|
</svg>
|
|
</div>
|
|
<div class="topic-content">
|
|
<div class="topic-name">#音乐艺术</div>
|
|
<div class="topic-desc">音乐节、演唱会、校园十佳</div>
|
|
<div class="topic-meta">
|
|
<span>
|
|
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round">
|
|
<path d="M17 21v-2a4 4 0 0 0-4-4H5a4 4 0 0 0-4 4v2"></path>
|
|
<circle cx="9" cy="7" r="4"></circle>
|
|
</svg>
|
|
1.5万人
|
|
</span>
|
|
<span>
|
|
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round">
|
|
<path d="M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z"></path>
|
|
<polyline points="14 2 14 8 20 8"></polyline>
|
|
</svg>
|
|
2.8万动态
|
|
</span>
|
|
</div>
|
|
</div>
|
|
<div class="unfollow-btn" onclick="event.stopPropagation(); unfollowTopic(this)">已关注</div>
|
|
</div>
|
|
|
|
<div class="topic-item" onclick="openTopic('社团招新')">
|
|
<div class="topic-icon bg-club">
|
|
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round">
|
|
<path d="M17 21v-2a4 4 0 0 0-4-4H5a4 4 0 0 0-4 4v2"></path>
|
|
<circle cx="9" cy="7" r="4"></circle>
|
|
<path d="M23 21v-2a4 4 0 0 0-3-3.87"></path>
|
|
<path d="M16 3.13a4 4 0 0 1 0 7.75"></path>
|
|
</svg>
|
|
</div>
|
|
<div class="topic-content">
|
|
<div class="topic-name">#社团招新</div>
|
|
<div class="topic-desc">百团大战,寻找志同道合的伙伴</div>
|
|
<div class="topic-meta">
|
|
<span>
|
|
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round">
|
|
<path d="M17 21v-2a4 4 0 0 0-4-4H5a4 4 0 0 0-4 4v2"></path>
|
|
<circle cx="9" cy="7" r="4"></circle>
|
|
</svg>
|
|
1.8万人
|
|
</span>
|
|
<span>
|
|
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round">
|
|
<path d="M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z"></path>
|
|
<polyline points="14 2 14 8 20 8"></polyline>
|
|
</svg>
|
|
3.2万动态
|
|
</span>
|
|
</div>
|
|
</div>
|
|
<div class="unfollow-btn" onclick="event.stopPropagation(); unfollowTopic(this)">已关注</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<script>
|
|
function goBack() {
|
|
window.history.back();
|
|
}
|
|
|
|
function openTopic(name) {
|
|
window.location.href = 'topic-detail.html?name=' + encodeURIComponent(name);
|
|
}
|
|
|
|
function manageTopics() {
|
|
console.log('管理话题');
|
|
}
|
|
|
|
function unfollowTopic(el) {
|
|
if (confirm('确定取消关注该话题吗?')) {
|
|
const item = el.closest('.topic-item');
|
|
item.style.opacity = '0.5';
|
|
el.textContent = '关注';
|
|
el.style.background = 'var(--youth-primary)';
|
|
el.style.color = '#FFFFFF';
|
|
el.style.border = 'none';
|
|
}
|
|
}
|
|
|
|
function filterTopics(type) {
|
|
console.log('筛选:' + type);
|
|
}
|
|
</script>
|
|
</body>
|
|
</html>
|
|
|