初始化版本
This commit is contained in:
192
index.php
Normal file
192
index.php
Normal file
@@ -0,0 +1,192 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="zh-CN">
|
||||
<head>
|
||||
<meta charset="utf-8" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||
<title>摸鱼办</title>
|
||||
<link rel="stylesheet" href="assets/style.css" />
|
||||
<script defer src="assets/script.js"></script>
|
||||
<style>
|
||||
:root {
|
||||
--red: #e32626;
|
||||
--border: 2px solid var(--red);
|
||||
--gap: 32px;
|
||||
--page-max: 1200px;
|
||||
--radius: 14px;
|
||||
--card-bg: #ffffff;
|
||||
--text: #2b2b2b;
|
||||
--soft-red: #fff1f1;
|
||||
}
|
||||
|
||||
* { box-sizing: border-box; }
|
||||
body {
|
||||
margin: 0;
|
||||
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto,
|
||||
'Helvetica Neue', Arial, 'Noto Sans', 'PingFang SC', 'Microsoft YaHei',
|
||||
sans-serif;
|
||||
color: var(--text);
|
||||
background:
|
||||
radial-gradient(1200px 400px at 10% -20%, #fff5f5 0%, transparent 40%),
|
||||
linear-gradient(#ffffff, #ffffff);
|
||||
}
|
||||
|
||||
.page {
|
||||
max-width: var(--page-max);
|
||||
padding: 16px;
|
||||
margin: 0 auto;
|
||||
}
|
||||
|
||||
/* 顶部菜单条 */
|
||||
.menu {
|
||||
position: sticky;
|
||||
top: 0;
|
||||
z-index: 100;
|
||||
border: var(--border);
|
||||
background: var(--card-bg);
|
||||
min-height: 60px;
|
||||
padding: 10px 16px;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
gap: 12px;
|
||||
margin-bottom: var(--gap);
|
||||
border-radius: var(--radius);
|
||||
box-shadow: 0 10px 24px rgba(226, 38, 38, 0.08);
|
||||
backdrop-filter: saturate(180%) blur(6px);
|
||||
}
|
||||
|
||||
.menu__logo {
|
||||
font-size: 18px;
|
||||
font-weight: 700;
|
||||
color: var(--red);
|
||||
letter-spacing: 0.5px;
|
||||
}
|
||||
|
||||
.menu__logo::before {
|
||||
content: "★";
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
width: 22px;
|
||||
height: 22px;
|
||||
color: #fff;
|
||||
background: var(--red);
|
||||
border-radius: 6px;
|
||||
margin-right: 6px;
|
||||
box-shadow: 0 4px 10px rgba(230, 38, 38, 0.35);
|
||||
}
|
||||
|
||||
.menu__nav {
|
||||
list-style: none;
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 8px;
|
||||
flex-wrap: wrap;
|
||||
}
|
||||
|
||||
.menu__link {
|
||||
display: inline-block;
|
||||
text-decoration: none;
|
||||
color: var(--red);
|
||||
padding: 8px 14px;
|
||||
border-radius: 999px;
|
||||
border: 1px solid var(--red);
|
||||
background: #fff;
|
||||
transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
|
||||
}
|
||||
|
||||
.menu__link:hover,
|
||||
.menu__link:focus-visible {
|
||||
background: #fff1f1;
|
||||
outline: none;
|
||||
box-shadow: 0 6px 14px rgba(226, 38, 38, 0.15);
|
||||
}
|
||||
|
||||
.menu__link.is-active {
|
||||
background: var(--red);
|
||||
color: #fff;
|
||||
border-color: var(--red);
|
||||
box-shadow: 0 6px 14px rgba(226, 38, 38, 0.18);
|
||||
}
|
||||
|
||||
/* 三列区域 */
|
||||
.content {
|
||||
display: grid;
|
||||
grid-template-columns: clamp(180px, 22%, 240px) 1fr clamp(220px, 26%, 300px);
|
||||
gap: var(--gap);
|
||||
}
|
||||
|
||||
.panel {
|
||||
border: var(--border);
|
||||
border-radius: calc(var(--radius) + 2px);
|
||||
background: var(--card-bg);
|
||||
min-height: 380px;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
font-size: 22px;
|
||||
color: var(--red);
|
||||
text-align: center;
|
||||
box-shadow: 0 10px 22px rgba(226, 38, 38, 0.06);
|
||||
transition: transform 0.2s ease, box-shadow 0.2s ease;
|
||||
}
|
||||
|
||||
.panel__title {
|
||||
font-size: 22px;
|
||||
color: var(--red);
|
||||
margin: 0;
|
||||
letter-spacing: 0.8px;
|
||||
}
|
||||
|
||||
.panel:hover {
|
||||
transform: translateY(-2px);
|
||||
box-shadow: 0 14px 28px rgba(226, 38, 38, 0.1);
|
||||
}
|
||||
|
||||
/* 响应式:窄屏改为纵向排列 */
|
||||
@media (max-width: 992px) {
|
||||
.content { grid-template-columns: 1fr; }
|
||||
.panel { min-height: 220px; }
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<div class="page">
|
||||
<header class="menu">
|
||||
<div class="menu__logo">菜单</div>
|
||||
<nav aria-label="主菜单">
|
||||
<ul class="menu__nav">
|
||||
<li><a class="menu__link" href="index.php">首页</a></li>
|
||||
<li><a class="menu__link" href="upload.php">视频</a></li>
|
||||
<li><a class="menu__link is-active" href="upload_text.php">讨论</a></li>
|
||||
<li><a class="menu__link" href="upload_picture.php">图片</a></li>
|
||||
</ul>
|
||||
</nav>
|
||||
<div class="menu__controls" title="包含本地已保存视频到播放列表">
|
||||
<label>
|
||||
<input type="checkbox" id="includeLocalToggle" /> 包含本地
|
||||
</label>
|
||||
</div>
|
||||
</header>
|
||||
|
||||
<main class="content">
|
||||
<section class="panel" id="video" aria-label="视频区域">
|
||||
<div class="video-wrap" id="videoWrap">
|
||||
<video id="player" preload="metadata" playsinline muted></video>
|
||||
</div>
|
||||
</section>
|
||||
<section class="panel" id="discussion" aria-label="讨论区域">
|
||||
<div class="discussion-wrap" id="discussionWrap" aria-live="polite" aria-label="讨论消息列表"></div>
|
||||
</section>
|
||||
<section class="panel" id="gallery" aria-label="图片区域">
|
||||
<div class="picture-wrap" id="pictureWrap" aria-label="自动刷新图片区">
|
||||
<img id="pictureImg" alt="图片" />
|
||||
</div>
|
||||
</section>
|
||||
</main>
|
||||
</div>
|
||||
</body>
|
||||
<!-- 说明:当前为样式占位版本,内容与交互暂未实现。 -->
|
||||
</html>
|
||||
Reference in New Issue
Block a user