920 lines
28 KiB
HTML
920 lines
28 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>STASH - 完整联动与版心对齐布局</title>
|
|
<style>
|
|
* {
|
|
box-sizing: border-box;
|
|
margin: 0;
|
|
padding: 0;
|
|
}
|
|
|
|
html {
|
|
scroll-behavior: smooth; /* 启用原生平滑滚动 */
|
|
}
|
|
|
|
body {
|
|
background-color: #f5f6f8;
|
|
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
|
|
color: #333;
|
|
min-height: 100vh;
|
|
display: flex;
|
|
flex-direction: column;
|
|
}
|
|
|
|
/* 统一版心最大宽度约束 */
|
|
.layout-container {
|
|
max-width: 1380px;
|
|
width: 100%;
|
|
margin: 0 auto;
|
|
padding: 0 20px;
|
|
}
|
|
|
|
/* ------------------ 1. 顶部 Header 组件 (宽度对齐下方) ------------------ */
|
|
.header-outer {
|
|
background-color: #ffffff;
|
|
border-bottom: 1px solid #e8e8e8;
|
|
position: sticky;
|
|
top: 0;
|
|
z-index: 100;
|
|
}
|
|
|
|
.header-inner {
|
|
height: 60px;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
}
|
|
|
|
.header-left {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 10px;
|
|
}
|
|
|
|
.logo-icon {
|
|
width: 32px;
|
|
height: 32px;
|
|
background-color: #0f172a;
|
|
color: #fff;
|
|
border-radius: 50%;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
font-weight: bold;
|
|
font-size: 16px;
|
|
}
|
|
|
|
.logo-text {
|
|
font-size: 18px;
|
|
font-weight: 800;
|
|
color: #0f172a;
|
|
letter-spacing: 0.5px;
|
|
}
|
|
|
|
.header-center-info {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 20px;
|
|
font-size: 13px;
|
|
color: #64748b;
|
|
}
|
|
|
|
.info-tag {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
padding: 2px 8px;
|
|
border-radius: 4px;
|
|
background-color: #e6f4ff;
|
|
color: #1677ff;
|
|
font-size: 12px;
|
|
margin-right: 6px;
|
|
}
|
|
|
|
.info-item {
|
|
display: flex;
|
|
align-items: center;
|
|
}
|
|
|
|
.header-right {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 16px;
|
|
color: #64748b;
|
|
}
|
|
|
|
.header-icon-btn {
|
|
cursor: pointer;
|
|
padding: 6px;
|
|
border-radius: 50%;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
transition: background-color 0.2s;
|
|
}
|
|
|
|
.header-icon-btn:hover {
|
|
background-color: #f1f5f9;
|
|
color: #0f172a;
|
|
}
|
|
|
|
/* 搜索栏区域(宽度与下方卡片版心保持对齐) */
|
|
.search-container {
|
|
padding: 16px 0 0;
|
|
display: flex;
|
|
justify-content: center;
|
|
}
|
|
|
|
.search-box {
|
|
width: 100%;
|
|
max-width: 520px;
|
|
position: relative;
|
|
display: flex;
|
|
align-items: center;
|
|
}
|
|
|
|
.search-input {
|
|
width: 100%;
|
|
height: 40px;
|
|
padding: 0 16px 0 40px;
|
|
border-radius: 20px;
|
|
border: 1px solid #e2e8f0;
|
|
background-color: #ffffff;
|
|
font-size: 13px;
|
|
outline: none;
|
|
transition: all 0.2s;
|
|
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
|
|
}
|
|
|
|
.search-input:focus {
|
|
border-color: #1677ff;
|
|
box-shadow: 0 0 0 3px rgba(22, 119, 255, 0.1);
|
|
}
|
|
|
|
.search-icon {
|
|
position: absolute;
|
|
left: 14px;
|
|
color: #94a3b8;
|
|
font-size: 14px;
|
|
pointer-events: none;
|
|
}
|
|
|
|
/* ------------------ 主体 Layout 布局 ------------------ */
|
|
.main-layout {
|
|
display: flex;
|
|
margin: 20px auto 40px;
|
|
gap: 20px;
|
|
}
|
|
|
|
/* ------------------ 2. 左侧侧边栏组件 ------------------ */
|
|
.sidebar {
|
|
width: 260px;
|
|
flex-shrink: 0;
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 16px;
|
|
position: sticky;
|
|
top: 76px;
|
|
align-self: flex-start;
|
|
}
|
|
|
|
.sidebar-card {
|
|
background-color: #ffffff;
|
|
border-radius: 12px;
|
|
padding: 18px;
|
|
border: 1px solid #f0f0f0;
|
|
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
|
|
}
|
|
|
|
/* 用户卡片 */
|
|
.user-card {
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
text-align: center;
|
|
}
|
|
|
|
.avatar-wrapper {
|
|
position: relative;
|
|
margin-bottom: 10px;
|
|
}
|
|
|
|
.avatar {
|
|
width: 64px;
|
|
height: 64px;
|
|
border-radius: 50%;
|
|
background-color: #dbeafe;
|
|
color: #1d4ed8;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
font-size: 30px;
|
|
}
|
|
|
|
.verified-badge {
|
|
position: absolute;
|
|
bottom: 0;
|
|
right: 2px;
|
|
width: 18px;
|
|
height: 18px;
|
|
background-color: #f59e0b;
|
|
color: #fff;
|
|
border-radius: 50%;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
font-size: 10px;
|
|
border: 2px solid #fff;
|
|
}
|
|
|
|
.user-name {
|
|
font-size: 15px;
|
|
font-weight: 700;
|
|
color: #1e293b;
|
|
}
|
|
|
|
.user-role {
|
|
font-size: 11px;
|
|
color: #64748b;
|
|
background-color: #f1f5f9;
|
|
padding: 2px 8px;
|
|
border-radius: 10px;
|
|
margin: 6px 0 10px;
|
|
border: 1px solid #e2e8f0;
|
|
}
|
|
|
|
.user-desc {
|
|
font-size: 12px;
|
|
color: #64748b;
|
|
line-height: 1.5;
|
|
margin-bottom: 8px;
|
|
}
|
|
|
|
.user-ip {
|
|
font-size: 12px;
|
|
color: #94a3b8;
|
|
}
|
|
|
|
/* 本地服务状态卡片 */
|
|
.status-header {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
margin-bottom: 12px;
|
|
}
|
|
|
|
.status-title {
|
|
font-size: 14px;
|
|
font-weight: 700;
|
|
color: #1e293b;
|
|
}
|
|
|
|
.status-pill {
|
|
font-size: 11px;
|
|
padding: 2px 8px;
|
|
border-radius: 12px;
|
|
background-color: #f1f5f9;
|
|
color: #64748b;
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 4px;
|
|
}
|
|
|
|
.status-pill::before {
|
|
content: '';
|
|
width: 6px;
|
|
height: 6px;
|
|
border-radius: 50%;
|
|
background-color: #94a3b8;
|
|
}
|
|
|
|
.status-info-row {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
font-size: 13px;
|
|
margin-bottom: 8px;
|
|
}
|
|
|
|
.status-label {
|
|
color: #64748b;
|
|
}
|
|
|
|
.status-value {
|
|
font-weight: 600;
|
|
color: #1e293b;
|
|
}
|
|
|
|
.status-actions {
|
|
display: flex;
|
|
gap: 8px;
|
|
margin-top: 14px;
|
|
}
|
|
|
|
.action-btn {
|
|
flex: 1;
|
|
padding: 6px 0;
|
|
border-radius: 16px;
|
|
border: 1px solid #e2e8f0;
|
|
background-color: #fff;
|
|
font-size: 12px;
|
|
color: #475569;
|
|
cursor: pointer;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
gap: 4px;
|
|
transition: all 0.2s;
|
|
}
|
|
|
|
.action-btn:hover {
|
|
border-color: #cbd5e1;
|
|
background-color: #f8fafc;
|
|
}
|
|
|
|
/* 侧边分类导航菜单(对应右侧主标题) */
|
|
.menu-card {
|
|
padding: 10px;
|
|
}
|
|
|
|
.menu-group-title {
|
|
font-size: 12px;
|
|
font-weight: 600;
|
|
color: #94a3b8;
|
|
padding: 6px 10px;
|
|
text-transform: uppercase;
|
|
}
|
|
|
|
.menu-item {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
padding: 10px 12px;
|
|
font-size: 13px;
|
|
color: #334155;
|
|
border-radius: 8px;
|
|
cursor: pointer;
|
|
transition: all 0.2s;
|
|
text-decoration: none;
|
|
margin-bottom: 2px;
|
|
}
|
|
|
|
.menu-item:hover {
|
|
background-color: #f8fafc;
|
|
color: #1677ff;
|
|
}
|
|
|
|
.menu-item.active {
|
|
background-color: #e6f4ff;
|
|
color: #1677ff;
|
|
font-weight: 600;
|
|
}
|
|
|
|
/* ------------------ 3. 右侧主内容区域 ------------------ */
|
|
.content-area {
|
|
flex: 1;
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 20px;
|
|
min-width: 0;
|
|
}
|
|
|
|
/* 大框样式(图二规范) */
|
|
.section-card {
|
|
background-color: #ffffff;
|
|
border-radius: 12px;
|
|
padding: 20px;
|
|
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
|
|
border: 1px solid #f0f0f0;
|
|
scroll-margin-top: 80px; /* 留出顶部固定 Header 的高度避免遮挡 */
|
|
}
|
|
|
|
.section-header {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
margin-bottom: 16px;
|
|
}
|
|
|
|
.section-title-wrapper {
|
|
display: flex;
|
|
align-items: center;
|
|
}
|
|
|
|
.title-bar {
|
|
width: 4px;
|
|
height: 16px;
|
|
background-color: #1677ff;
|
|
border-radius: 2px;
|
|
margin-right: 8px;
|
|
}
|
|
|
|
.title-text-container {
|
|
position: relative;
|
|
display: inline-flex;
|
|
align-items: center;
|
|
}
|
|
|
|
.section-title {
|
|
font-size: 16px;
|
|
font-weight: 600;
|
|
color: #1f2329;
|
|
line-height: 1.2;
|
|
}
|
|
|
|
/* 角标相对于标题右上角定位 */
|
|
.badge {
|
|
position: absolute;
|
|
top: -8px;
|
|
right: -18px;
|
|
background-color: #ff4d4f;
|
|
color: #ffffff;
|
|
font-size: 11px;
|
|
font-weight: bold;
|
|
height: 16px;
|
|
min-width: 16px;
|
|
padding: 0 4px;
|
|
border-radius: 8px;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
line-height: 1;
|
|
box-shadow: 0 1px 3px rgba(255, 77, 79, 0.3);
|
|
}
|
|
|
|
.more-icon {
|
|
color: #8c8c8c;
|
|
font-size: 18px;
|
|
cursor: pointer;
|
|
letter-spacing: 2px;
|
|
padding: 2px 6px;
|
|
border-radius: 4px;
|
|
transition: background 0.2s;
|
|
}
|
|
|
|
.more-icon:hover {
|
|
color: #595959;
|
|
background-color: #f5f5f5;
|
|
}
|
|
|
|
/* 常规卡片网格 */
|
|
.app-grid {
|
|
display: grid;
|
|
grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
|
|
gap: 12px;
|
|
}
|
|
|
|
.app-item {
|
|
display: flex;
|
|
align-items: center;
|
|
padding: 12px 14px;
|
|
background-color: #f9f9fb;
|
|
border-radius: 8px;
|
|
border: 1px solid #f0f0f0;
|
|
transition: all 0.2s ease;
|
|
cursor: pointer;
|
|
}
|
|
|
|
.app-item:hover {
|
|
background-color: #ffffff;
|
|
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
|
|
border-color: #e6e6e6;
|
|
transform: translateY(-1px);
|
|
}
|
|
|
|
.app-icon {
|
|
width: 36px;
|
|
height: 36px;
|
|
border-radius: 8px;
|
|
background-color: #e8f3ff;
|
|
color: #1677ff;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
font-weight: bold;
|
|
font-size: 16px;
|
|
margin-right: 12px;
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.app-info {
|
|
display: flex;
|
|
flex-direction: column;
|
|
overflow: hidden;
|
|
}
|
|
|
|
.app-name {
|
|
font-size: 14px;
|
|
font-weight: 600;
|
|
color: #262626;
|
|
white-space: nowrap;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
}
|
|
|
|
.app-desc {
|
|
font-size: 12px;
|
|
color: #8c8c8c;
|
|
margin-top: 2px;
|
|
white-space: nowrap;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
}
|
|
|
|
/* 推荐电影网格 */
|
|
.movie-grid {
|
|
display: grid;
|
|
grid-template-columns: repeat(6, 1fr);
|
|
gap: 12px;
|
|
}
|
|
|
|
@media (max-width: 1100px) {
|
|
.movie-grid { grid-template-columns: repeat(3, 1fr); }
|
|
}
|
|
|
|
.movie-item {
|
|
position: relative;
|
|
border-radius: 8px;
|
|
overflow: hidden;
|
|
aspect-ratio: 2 / 3;
|
|
background-color: #e0e0e0;
|
|
cursor: pointer;
|
|
transition: transform 0.2s ease;
|
|
}
|
|
|
|
.movie-item:hover {
|
|
transform: translateY(-2px);
|
|
}
|
|
|
|
.movie-cover {
|
|
width: 100%;
|
|
height: 100%;
|
|
object-fit: cover;
|
|
display: block;
|
|
}
|
|
|
|
.movie-info {
|
|
position: absolute;
|
|
bottom: 0;
|
|
left: 0;
|
|
right: 0;
|
|
padding: 20px 8px 8px;
|
|
background: linear-gradient(to top, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.4) 60%, transparent 100%);
|
|
color: #ffffff;
|
|
}
|
|
|
|
.movie-title {
|
|
font-size: 12px;
|
|
font-weight: 500;
|
|
line-height: 1.3;
|
|
display: -webkit-box;
|
|
-webkit-line-clamp: 2;
|
|
-webkit-box-orient: vertical;
|
|
overflow: hidden;
|
|
}
|
|
|
|
/* CES 现场报道网格 */
|
|
.article-grid {
|
|
display: grid;
|
|
grid-template-columns: repeat(6, 1fr);
|
|
gap: 10px;
|
|
}
|
|
|
|
@media (max-width: 1100px) {
|
|
.article-grid { grid-template-columns: repeat(3, 1fr); }
|
|
}
|
|
|
|
.article-item {
|
|
position: relative;
|
|
border-radius: 6px;
|
|
overflow: hidden;
|
|
aspect-ratio: 4 / 3;
|
|
background-color: #e0e0e0;
|
|
cursor: pointer;
|
|
transition: transform 0.2s ease;
|
|
}
|
|
|
|
.article-item:hover {
|
|
transform: translateY(-2px);
|
|
}
|
|
|
|
.article-cover {
|
|
width: 100%;
|
|
height: 100%;
|
|
object-fit: cover;
|
|
display: block;
|
|
}
|
|
|
|
.article-info {
|
|
position: absolute;
|
|
bottom: 0;
|
|
left: 0;
|
|
right: 0;
|
|
padding: 16px 6px 6px;
|
|
background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.3) 70%, transparent 100%);
|
|
color: #ffffff;
|
|
}
|
|
|
|
.article-title {
|
|
font-size: 11px;
|
|
line-height: 1.3;
|
|
display: -webkit-box;
|
|
-webkit-line-clamp: 2;
|
|
-webkit-box-orient: vertical;
|
|
overflow: hidden;
|
|
}
|
|
</style>
|
|
</head>
|
|
<body>
|
|
|
|
<!-- 1. 顶部 Header (固定顶部且与下方容器宽度一致) -->
|
|
<header class="header-outer">
|
|
<div class="layout-container header-inner">
|
|
<div class="header-left">
|
|
<div class="logo-icon">S</div>
|
|
<span class="logo-text">STASH</span>
|
|
</div>
|
|
|
|
<div class="header-center-info">
|
|
<div class="info-item">
|
|
<span>共 1 个本地应用</span>
|
|
</div>
|
|
<div class="info-item">
|
|
<span class="info-tag">本地</span>
|
|
<span>git_helper</span>
|
|
</div>
|
|
<div class="info-item">
|
|
<span class="info-tag" style="background-color: #f0fdf4; color: #16a34a;">状态</span>
|
|
<span>等待服务连接</span>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="header-right">
|
|
<div class="header-icon-btn" title="搜索">🔍</div>
|
|
<div class="header-icon-btn" title="个人账户">👤</div>
|
|
</div>
|
|
</div>
|
|
</header>
|
|
|
|
<!-- 搜索框区域 -->
|
|
<div class="layout-container search-container">
|
|
<div class="search-box">
|
|
<span class="search-icon">🔍</span>
|
|
<input type="text" class="search-input" placeholder="搜索本地项目...">
|
|
</div>
|
|
</div>
|
|
|
|
<!-- 主体布局 -->
|
|
<div class="layout-container main-layout">
|
|
|
|
<!-- 2. 左侧侧边栏组件 -->
|
|
<aside class="sidebar">
|
|
|
|
<!-- 用户信息卡片 -->
|
|
<div class="sidebar-card user-card">
|
|
<div class="avatar-wrapper">
|
|
<div class="avatar">👤</div>
|
|
<div class="verified-badge">✓</div>
|
|
</div>
|
|
<div class="user-name">本地管理员</div>
|
|
<div class="user-role">管理员</div>
|
|
<div class="user-desc">本地静态站点托管与预览,所有项目都运行在这台机器上。</div>
|
|
<div class="user-ip">IP地址: 局域网</div>
|
|
</div>
|
|
|
|
<!-- 本地服务状态卡片 -->
|
|
<div class="sidebar-card">
|
|
<div class="status-header">
|
|
<span class="status-title">本地服务</span>
|
|
<span class="status-pill">未连接</span>
|
|
</div>
|
|
<div class="status-info-row">
|
|
<span class="status-label">项目数</span>
|
|
<span class="status-value">1</span>
|
|
</div>
|
|
<div class="status-info-row">
|
|
<span class="status-label">访问地址</span>
|
|
<span class="status-value">127.0.0.1:8080</span>
|
|
</div>
|
|
<div class="status-actions">
|
|
<button class="action-btn">🔄 重新扫描</button>
|
|
<button class="action-btn">🔗 查看接口</button>
|
|
</div>
|
|
</div>
|
|
|
|
<!-- 分类导航菜单(与右侧主标题一致) -->
|
|
<div class="sidebar-card menu-card">
|
|
<div class="menu-group-title">快速导航</div>
|
|
|
|
<a href="#section-local" class="menu-item active" onclick="setActive(this)">
|
|
<span>本地服务</span>
|
|
<span style="font-size: 11px;">1</span>
|
|
</a>
|
|
<a href="#section-recommend" class="menu-item" onclick="setActive(this)">
|
|
<span>常用推荐</span>
|
|
<span style="font-size: 11px;">4</span>
|
|
</a>
|
|
<a href="#section-movie" class="menu-item" onclick="setActive(this)">
|
|
<span>推荐电影</span>
|
|
<span style="font-size: 11px;">6</span>
|
|
</a>
|
|
<a href="#section-ces" class="menu-item" onclick="setActive(this)">
|
|
<span>CES 现场报道</span>
|
|
<span style="font-size: 11px;">12</span>
|
|
</a>
|
|
</div>
|
|
|
|
</aside>
|
|
|
|
<!-- 3. 右侧主内容区域 -->
|
|
<main class="content-area">
|
|
|
|
<!-- 1. 本地服务 -->
|
|
<section id="section-local" class="section-card">
|
|
<div class="section-header">
|
|
<div class="section-title-wrapper">
|
|
<div class="title-bar"></div>
|
|
<div class="title-text-container">
|
|
<span class="section-title">本地服务</span>
|
|
<span class="badge">1</span>
|
|
</div>
|
|
</div>
|
|
<div class="more-icon" title="更多操作">•••</div>
|
|
</div>
|
|
|
|
<div class="app-grid">
|
|
<div class="app-item">
|
|
<div class="app-icon">G</div>
|
|
<div class="app-info">
|
|
<div class="app-name">git_helper</div>
|
|
<div class="app-desc">/git_helper/</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</section>
|
|
|
|
<!-- 2. 常用推荐 -->
|
|
<section id="section-recommend" class="section-card">
|
|
<div class="section-header">
|
|
<div class="section-title-wrapper">
|
|
<div class="title-bar"></div>
|
|
<div class="title-text-container">
|
|
<span class="section-title">常用推荐</span>
|
|
<span class="badge">4</span>
|
|
</div>
|
|
</div>
|
|
<div class="more-icon" title="更多操作">•••</div>
|
|
</div>
|
|
|
|
<div class="app-grid">
|
|
<div class="app-item">
|
|
<div class="app-icon">G</div>
|
|
<div class="app-info">
|
|
<div class="app-name">GitHub</div>
|
|
<div class="app-desc">代码托管与开源社区</div>
|
|
</div>
|
|
</div>
|
|
<div class="app-item">
|
|
<div class="app-icon" style="background-color: #e6f7ff; color: #1890ff;">Z</div>
|
|
<div class="app-info">
|
|
<div class="app-name">知乎</div>
|
|
<div class="app-desc">深度内容问答社区</div>
|
|
</div>
|
|
</div>
|
|
<div class="app-item">
|
|
<div class="app-icon" style="background-color: #fff0f6; color: #eb2f96;">B</div>
|
|
<div class="app-info">
|
|
<div class="app-name">哔哩哔哩</div>
|
|
<div class="app-desc">弹幕视频分享网站</div>
|
|
</div>
|
|
</div>
|
|
<div class="app-item">
|
|
<div class="app-icon" style="background-color: #f6ffed; color: #52c41a;">V</div>
|
|
<div class="app-info">
|
|
<div class="app-name">V2EX</div>
|
|
<div class="app-desc">创意工作者讨论社区</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</section>
|
|
|
|
<!-- 3. 推荐电影 -->
|
|
<section id="section-movie" class="section-card">
|
|
<div class="section-header">
|
|
<div class="section-title-wrapper">
|
|
<div class="title-bar" style="background-color: #722ed1;"></div>
|
|
<div class="title-text-container">
|
|
<span class="section-title">推荐电影</span>
|
|
<span class="badge">6</span>
|
|
</div>
|
|
</div>
|
|
<div class="more-icon" title="更多操作">•••</div>
|
|
</div>
|
|
|
|
<div class="movie-grid">
|
|
<div class="movie-item">
|
|
<img class="movie-cover" src="https://picsum.photos/seed/m1/300/450" alt="海报">
|
|
<div class="movie-info">
|
|
<div class="movie-title">千与千寻 千と千尋の神隠し (2001)</div>
|
|
</div>
|
|
</div>
|
|
<div class="movie-item">
|
|
<img class="movie-cover" src="https://picsum.photos/seed/m2/300/450" alt="海报">
|
|
<div class="movie-info">
|
|
<div class="movie-title">美丽人生 La vita è bella (1997)</div>
|
|
</div>
|
|
</div>
|
|
<div class="movie-item">
|
|
<img class="movie-cover" src="https://picsum.photos/seed/m3/300/450" alt="海报">
|
|
<div class="movie-info">
|
|
<div class="movie-title">这个杀手不太冷 Léon (1994)</div>
|
|
</div>
|
|
</div>
|
|
<div class="movie-item">
|
|
<img class="movie-cover" src="https://picsum.photos/seed/m4/300/450" alt="海报">
|
|
<div class="movie-info">
|
|
<div class="movie-title">阿甘正传 Forrest Gump (1994)</div>
|
|
</div>
|
|
</div>
|
|
<div class="movie-item">
|
|
<img class="movie-cover" src="https://picsum.photos/seed/m5/300/450" alt="海报">
|
|
<div class="movie-info">
|
|
<div class="movie-title">霸王别姬 (1993)</div>
|
|
</div>
|
|
</div>
|
|
<div class="movie-item">
|
|
<img class="movie-cover" src="https://picsum.photos/seed/m6/300/450" alt="海报">
|
|
<div class="movie-info">
|
|
<div class="movie-title">肖申克的救赎 The Shawshank...</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</section>
|
|
|
|
<!-- 4. CES 现场报道 -->
|
|
<section id="section-ces" class="section-card">
|
|
<div class="section-header">
|
|
<div class="section-title-wrapper">
|
|
<div class="title-bar" style="background-color: #fa8c16;"></div>
|
|
<div class="title-text-container">
|
|
<span class="section-title">CES 现场报道</span>
|
|
<span class="badge">12</span>
|
|
</div>
|
|
</div>
|
|
<div class="more-icon" title="更多操作">•••</div>
|
|
</div>
|
|
|
|
<div class="article-grid">
|
|
<div class="article-item">
|
|
<img class="article-cover" src="https://picsum.photos/seed/a1/300/225" alt="文章图片">
|
|
<div class="article-info">
|
|
<div class="article-title">可塑性极强的玻璃,在设计师手里有了更多可能</div>
|
|
</div>
|
|
</div>
|
|
<div class="article-item">
|
|
<img class="article-cover" src="https://picsum.photos/seed/a2/300/225" alt="文章图片">
|
|
<div class="article-info">
|
|
<div class="article-title">废旧共享单车如何变成微型共享书屋?</div>
|
|
</div>
|
|
</div>
|
|
<div class="article-item">
|
|
<img class="article-cover" src="https://picsum.photos/seed/a3/300/225" alt="文章图片">
|
|
<div class="article-info">
|
|
<div class="article-title">荧光灯管与混凝土块的组合,可以玩出多少花样?</div>
|
|
</div>
|
|
</div>
|
|
<div class="article-item">
|
|
<img class="article-cover" src="https://picsum.photos/seed/a4/300/225" alt="文章图片">
|
|
<div class="article-info">
|
|
<div class="article-title">混凝土做的模块化收纳框,还能改成搁架用</div>
|
|
</div>
|
|
</div>
|
|
<div class="article-item">
|
|
<img class="article-cover" src="https://picsum.photos/seed/a5/300/225" alt="文章图片">
|
|
<div class="article-info">
|
|
<div class="article-title">这个用拉伸材料做的头盔,还能帮你呼叫救护车</div>
|
|
</div>
|
|
</div>
|
|
<div class="article-item">
|
|
<img class="article-cover" src="https://picsum.photos/seed/a6/300/225" alt="文章图片">
|
|
<div class="article-info">
|
|
<div class="article-title">你如何选择字体,简单易读还是好看有趣?</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</section>
|
|
|
|
</main>
|
|
</div>
|
|
|
|
<script>
|
|
// 切换左侧菜单激活高亮样式
|
|
function setActive(element) {
|
|
const items = document.querySelectorAll('.menu-item');
|
|
items.forEach(item => item.classList.remove('active'));
|
|
element.classList.add('active');
|
|
}
|
|
</script>
|
|
</body>
|
|
</html> |