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.
 
 

379 lines
13 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">
<link rel="stylesheet" href="../colors_and_type.css">
<title>青核 Youthome - 发布选择</title>
<style>
* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
body {
font-family: var(--youth-font-base);
background: var(--youth-bg-page);
color: var(--youth-text-secondary);
overflow-x: hidden;}
.page-container {
width: 375px;
height: 812px;
margin: 0 auto;
background: var(--youth-bg-page);
position: relative;
overflow: hidden;
}
/* 状态栏 */
.status-bar {
height: 36px;
display: flex;
align-items: center;
justify-content: space-between;
padding: 0 16px;
font-size: 14px;
font-weight: 600;
color: var(--youth-text-primary);
}
/* 模拟背景(首页的模糊效果) */
.bg-mock {
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
background: var(--youth-bg-page);
filter: blur(2px);
opacity: 0.9;
}
.bg-card {
position: absolute;
background: var(--youth-bg-card);
border-radius: 12px;
opacity: 0.5;
}
.bg-card.c1 { width: 343px; height: 120px; top: 100px; left: 16px; }
.bg-card.c2 { width: 343px; height: 200px; top: 240px; left: 16px; }
.bg-card.c3 { width: 343px; height: 160px; top: 460px; left: 16px; }
/* 遮罩 */
.overlay {
position: fixed;
top: 0;
left: 0;
right: 0;
bottom: 0;
width: 100%;
height: 100%;
background: rgba(0, 0, 0, 0.45);
backdrop-filter: blur(6px);
z-index: 998;
}
/* 底部弹窗 */
.bottom-sheet {
position: fixed;
bottom: 0;
left: 0;
right: 0;
background: var(--youth-bg-card);
border-radius: 20px 20px 0 0;
padding: 12px 20px 28px;
z-index: 999;
animation: slideUp 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.12);
}
@keyframes slideUp {
from { transform: translateY(100%); opacity: 0; }
to { transform: translateY(0); opacity: 1; }
}
.sheet-handle {
width: 36px;
height: 4px;
background: var(--youth-border-light);
border-radius: 2px;
margin: 0 auto 12px;
}
.sheet-title {
font-size: 17px;
font-weight: 700;
color: var(--youth-text-primary);
text-align: center;
margin-bottom: 2px;
}
.sheet-subtitle {
font-size: 12px;
color: var(--youth-text-tertiary);
text-align: center;
margin-bottom: 16px;
}
/* 发布选项网格 */
.publish-grid {
display: grid;
grid-template-columns: repeat(4, 1fr);
gap: 14px 10px;
margin-bottom: 16px;
}
.publish-item {
display: flex;
flex-direction: column;
align-items: center;
gap: 6px;
cursor: pointer;
transition: transform 0.2s ease;
}
.publish-item:active { transform: scale(0.92); }
.publish-icon {
width: 48px;
height: 48px;
border-radius: 14px;
display: flex;
align-items: center;
justify-content: center;
position: relative;
box-shadow: 0 4px 12px rgba(0,0,0,0.08);
overflow: hidden;
}
.publish-icon::before {
content: '';
position: absolute;
top: 0;
left: 0;
right: 0;
height: 50%;
background: linear-gradient(180deg, rgba(255,255,255,0.25) 0%, rgba(255,255,255,0) 100%);
pointer-events: none;
}
.publish-icon svg {
color: #fff;
position: relative;
z-index: 1;
}
.publish-icon.c1 { background: linear-gradient(135deg, #54CAC5 0%, #26C2BB 100%); box-shadow: 0 4px 12px rgba(38, 194, 187, 0.25); }
.publish-icon.c2 { background: linear-gradient(135deg, #FF9A8B 0%, #FF6A88 100%); box-shadow: 0 4px 12px rgba(255, 106, 136, 0.25); }
.publish-icon.c3 { background: linear-gradient(135deg, #A8B5FF 0%, #6366F1 100%); box-shadow: 0 4px 12px rgba(99, 102, 241, 0.25); }
.publish-icon.c4 { background: linear-gradient(135deg, #FFD666 0%, #FAAD14 100%); box-shadow: 0 4px 12px rgba(250, 173, 20, 0.25); }
.publish-icon.c5 { background: linear-gradient(135deg, #8B5CF6 0%, #6366F1 100%); box-shadow: 0 4px 12px rgba(139, 92, 246, 0.25); }
.publish-icon.c6 { background: linear-gradient(135deg, #34D399 0%, #10B981 100%); box-shadow: 0 4px 12px rgba(16, 185, 129, 0.25); }
.publish-icon.c7 { background: linear-gradient(135deg, #F472B6 0%, #EC4899 100%); box-shadow: 0 4px 12px rgba(236, 72, 153, 0.25); }
.publish-icon.c8 { background: linear-gradient(135deg, #60A5FA 0%, #3B82F6 100%); box-shadow: 0 4px 12px rgba(59, 130, 246, 0.25); }
.publish-name {
font-size: 12px;
color: var(--youth-text-primary);
font-weight: 500;
text-align: center;
}
/* 分隔 */
.divider {
height: 1px;
background: var(--youth-border-light);
margin: 0 0 16px;
}
/* 取消按钮 */
.cancel-btn {
width: 100%;
height: 48px;
background: var(--youth-bg-page);
border: 1px solid var(--youth-border-light);
border-radius: 8px;
font-size: 15px;
font-weight: 600;
color: var(--youth-text-secondary);
cursor: pointer;
font-family: inherit;
transition: all 0.2s ease;
}
.cancel-btn:active {
background: var(--youth-border-light);
}
/* SVG 图标统一尺寸 */
.icon-svg {
display: inline-flex;
align-items: center;
justify-content: center;
width: 1em;
height: 1em;
vertical-align: middle;
line-height: 1;
}
.icon-svg svg {
width: 100%;
height: 100%;
stroke: currentColor;
}
/* 侧栏图标 */
.sidebar-icon .icon-svg { width: 22px; height: 22px; font-size: 22px; }
/* 社团logo图标 */
.club-logo .icon-svg { width: 28px; height: 28px; font-size: 28px; color: #fff; }
/* 头图大图标 */
.hero-icon .icon-svg { width: 56px; height: 56px; font-size: 56px; opacity: 0.3; }
/* meta 小图标 */
.club-meta .icon-svg { width: 12px; height: 12px; font-size: 12px; }
/* 分类选择网格图标 */
.cat-option .icon-svg { width: 26px; height: 26px; font-size: 26px; }
/* logo预览图标 */
.logo-preview .icon-svg { width: 40px; height: 40px; font-size: 40px; color: #fff; }
/* 提示图标 */
.notice-icon .icon-svg { width: 18px; height: 18px; font-size: 18px; }
</style>
</head>
<body>
<div class="page-container" data-dom-id="page-container">
<div class="status-bar">
<span>9:41</span>
<div style="display:flex;align-items:center;gap:6px;">
<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 x="4.5" y="5" width="3" height="6" rx="0.5"/><rect x="9" y="2.5" width="3" height="8.5" rx="0.5"/><rect x="13.5" y="0" width="3" height="11" rx="0.5"/></svg>
<svg width="25" height="12" viewBox="0 0 25 12"><rect x="0.5" y="0.5" width="21" height="11" rx="2.5" stroke="currentColor" opacity="0.5"/><rect x="2" y="2" width="18" height="8" rx="1.5" fill="currentColor"/><rect x="22.5" y="4" width="1.5" height="4" rx="0.5" fill="currentColor" opacity="0.5"/></svg>
</div>
</div>
<!-- 模拟背景 -->
<div class="bg-mock">
<div class="bg-card c1"></div>
<div class="bg-card c2"></div>
<div class="bg-card c3"></div>
</div>
<div class="overlay" onclick="closeSheet()"></div>
<!-- 底部弹窗 -->
<div class="bottom-sheet">
<div class="sheet-handle"></div>
<div class="sheet-title">选择发布类型</div>
<div class="sheet-subtitle">想发布什么内容?</div>
<div class="publish-grid">
<div class="publish-item" onclick="goPublish('dynamic')">
<div class="publish-icon c1">
<svg width="26" height="26" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
<path d="M17 3a2.85 2.83 0 1 1 4 4L7.5 20.5 2 22l1.5-5.5Z"></path>
</svg>
</div>
<span class="publish-name">发布动态</span>
</div>
<div class="publish-item" onclick="goPublish('activity')">
<div class="publish-icon c2">
<svg width="26" height="26" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" 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>
<path d="M8 14h8M8 18h5"></path>
</svg>
</div>
<span class="publish-name">发起活动</span>
</div>
<div class="publish-item" onclick="goPublish('announcement')">
<div class="publish-icon c3">
<svg width="26" height="26" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
<path d="M4 22h16a2 2 0 0 0 2-2V4a2 2 0 0 0-2-2H8a2 2 0 0 0-2 2v16a2 2 0 0 1-2 2zm0 0a2 2 0 0 1-2-2v-9c0-1.1.9-2 2-2h2"></path>
<path d="M8 6h8M8 10h8M8 14h5"></path>
</svg>
</div>
<span class="publish-name">发布公告</span>
</div>
<div class="publish-item" onclick="goPublish('topic')">
<div class="publish-icon c4">
<svg width="26" height="26" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
<path d="M20.59 13.41l-7.17 7.17a2 2 0 0 1-2.83 0L2 12V2h10l8.59 8.59a2 2 0 0 1 0 2.82z"></path>
<line x1="7" y1="7" x2="7.01" y2="7"></line>
</svg>
</div>
<span class="publish-name">发起话题</span>
</div>
<div class="publish-item" onclick="goPublish('group')">
<div class="publish-icon c5">
<svg width="26" height="26" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" 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>
<span class="publish-name">创建群组</span>
</div>
<div class="publish-item" onclick="goPublish('vote')">
<div class="publish-icon c6">
<svg width="26" height="26" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
<polyline points="20 6 9 17 4 12"></polyline>
</svg>
</div>
<span class="publish-name">发起投票</span>
</div>
<div class="publish-item" onclick="goPublish('video')">
<div class="publish-icon c7">
<svg width="26" height="26" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
<polygon points="23 7 16 12 23 17 23 7"></polygon>
<rect x="1" y="5" width="15" height="14" rx="2" ry="2"></rect>
</svg>
</div>
<span class="publish-name">发布视频</span>
</div>
<div class="publish-item" onclick="goPublish('photo')">
<div class="publish-icon c8">
<svg width="26" height="26" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
<rect x="3" y="3" width="18" height="18" rx="2" ry="2"></rect>
<circle cx="8.5" cy="8.5" r="1.5"></circle>
<polyline points="21 15 16 10 5 21"></polyline>
</svg>
</div>
<span class="publish-name">发布图片</span>
</div>
</div>
<div class="divider"></div>
<button class="cancel-btn" onclick="closeSheet()">取消</button>
</div>
</div>
<script> icon.innerHTML = '<path d="M21 12.79A9 9 0 1 1 11.21 3 7 7 0 0 0 21 12.79z"></path>';
}
}
function closeSheet() { alert('关闭弹窗'); }
function goPublish(type) {
const names = {
dynamic: '发布动态',
activity: '发起活动',
announcement: '发布公告',
topic: '发起话题',
group: '创建群组',
vote: '发起投票',
video: '发布视频',
photo: '发布图片'
};
alert('跳转' + names[type] + '页');
}</script>
</body>
</html>