mirror of
https://github.com/jarodlee/web_tool.git
synced 2026-12-02 01:49:19 +08:00
211 lines
5.9 KiB
HTML
211 lines
5.9 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>亭花小宝--高花亭小学校园智能体应用</title>
|
||
|
||
<!-- Google Fonts:更现代的界面字体 -->
|
||
<link href="https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600&display=swap" rel="stylesheet">
|
||
|
||
<style>
|
||
:root {
|
||
--bg-overlay: rgba(255,255,255,0.20);
|
||
--card-bg: rgba(255,255,255,0.55);
|
||
--text-color: #222;
|
||
--link-color: #005eff;
|
||
}
|
||
|
||
body.dark {
|
||
--bg-overlay: rgba(0,0,0,0.28);
|
||
--card-bg: rgba(0,0,0,0.50);
|
||
--text-color: #e8e8e8;
|
||
--link-color: #4da3ff;
|
||
}
|
||
|
||
body {
|
||
margin: 0;
|
||
font-family: "Inter", "Helvetica", "Arial", sans-serif;
|
||
color: var(--text-color);
|
||
transition: background 0.4s, color 0.4s;
|
||
}
|
||
|
||
/* 背景图由淡到深 */
|
||
.bg {
|
||
position: fixed;
|
||
inset: 0;
|
||
background-size: cover;
|
||
background-position: center;
|
||
background-repeat: no-repeat;
|
||
background-attachment: fixed;
|
||
z-index: -2;
|
||
filter: brightness(0.95);
|
||
opacity: 0;
|
||
animation: bgFadeIn 1.8s ease-in-out forwards;
|
||
}
|
||
|
||
@keyframes bgFadeIn {
|
||
from { opacity: 0; }
|
||
to { opacity: 1; }
|
||
}
|
||
|
||
/* 移动端避免背景抖动 */
|
||
@media (max-width: 768px) {
|
||
.bg {
|
||
background-attachment: scroll;
|
||
}
|
||
}
|
||
|
||
/* 透明轻遮罩(非模糊) */
|
||
.overlay {
|
||
position: fixed;
|
||
inset: 0;
|
||
background: var(--bg-overlay);
|
||
z-index: -1;
|
||
}
|
||
|
||
.container {
|
||
max-width: 900px;
|
||
margin: auto;
|
||
padding: 25px;
|
||
}
|
||
|
||
header {
|
||
text-align: center;
|
||
margin: 20px 0 35px;
|
||
}
|
||
|
||
header h1 {
|
||
margin: 0;
|
||
font-size: 2.1rem;
|
||
font-weight: 600;
|
||
letter-spacing: 1px;
|
||
}
|
||
|
||
header h1 a {
|
||
color: inherit;
|
||
font-weight: inherit;
|
||
}
|
||
|
||
.card {
|
||
background: var(--card-bg);
|
||
padding: 25px;
|
||
border-radius: 18px;
|
||
box-shadow: 0 6px 18px rgba(0,0,0,0.18);
|
||
margin-bottom: 25px;
|
||
transition: background 0.4s;
|
||
}
|
||
|
||
ul { padding-left: 20px; }
|
||
|
||
.qr {
|
||
width: 180px;
|
||
display: block;
|
||
margin: 20px auto;
|
||
border-radius: 12px;
|
||
}
|
||
|
||
footer {
|
||
text-align: center;
|
||
padding: 25px 0;
|
||
font-size: 0.9rem;
|
||
opacity: 0.8;
|
||
}
|
||
|
||
a {
|
||
color: var(--link-color);
|
||
text-decoration: none;
|
||
font-weight: 500;
|
||
}
|
||
a:hover { opacity: 0.75; }
|
||
|
||
.theme-toggle {
|
||
position: fixed;
|
||
top: 20px;
|
||
right: 20px;
|
||
padding: 8px 15px;
|
||
border-radius: 10px;
|
||
border: none;
|
||
background: rgba(255,255,255,0.65);
|
||
cursor: pointer;
|
||
font-size: 0.9rem;
|
||
transition: 0.3s;
|
||
box-shadow: 0 3px 10px rgba(0,0,0,0.2);
|
||
}
|
||
body.dark .theme-toggle {
|
||
background: rgba(30,30,30,0.65);
|
||
color: #eee;
|
||
}
|
||
.theme-toggle:hover { transform: translateY(-2px); }
|
||
</style>
|
||
</head>
|
||
|
||
<body>
|
||
<div class="bg"></div>
|
||
<div class="overlay"></div>
|
||
|
||
<button id="themeToggle" class="theme-toggle">切换主题</button>
|
||
|
||
<div class="container">
|
||
<header>
|
||
<h1><a href="/">亭花小宝--高花亭小学校园智能体应用</a></h1>
|
||
</header>
|
||
|
||
<div class="card">
|
||
<h2 style="margin-top:0;">关于作者</h2>
|
||
<p>大家好,我是 <strong>小花</strong>。熟练使用 MySQL、Oracle 等数据库,注重协作与代码质量,热爱新技术与教育结合。</p>
|
||
<p>本平台基于我校 <strong>2025 年焕新升级的报告厅</strong> 建设,旨在提供现代化教学支持,包括:</p>
|
||
<ul>
|
||
<li>在线课堂与教学辅导</li>
|
||
<li>教学资源共享</li>
|
||
<li>设备预约与技术支持</li>
|
||
</ul>
|
||
|
||
<h3>联系方式</h3>
|
||
<p>微信:anqingdeyun<br>
|
||
开源代码:<a href="http://192.168.110.19:3000/jarod/web_tool">http://192.168.110.19:3000/jarod/web_tool</a><br>
|
||
邮箱:lxj@ghtxx.cn(侵权请联系删除)
|
||
</p>
|
||
|
||
<img src="img/contact-qr.jpg" class="qr" alt="微信联系二维码" />
|
||
</div>
|
||
|
||
<footer>
|
||
© 2024 - 2025 高花亭小学 | 宇宙ICP备20250626号
|
||
</footer>
|
||
</div>
|
||
|
||
<script>
|
||
// ========== 自动加载 年月背景图 ==========
|
||
|
||
const now = new Date();
|
||
const y = now.getFullYear();
|
||
const m = String(now.getMonth() + 1).padStart(2, '0');
|
||
const bgUrl = `img/${y}${m}.jpg`;
|
||
const fallbackUrl = "img/default.jpg";
|
||
|
||
const bgEl = document.querySelector(".bg");
|
||
const testImg = new Image();
|
||
|
||
testImg.onload = () => {
|
||
bgEl.style.backgroundImage = `url(${bgUrl})`;
|
||
};
|
||
testImg.onerror = () => {
|
||
bgEl.style.backgroundImage = `url(${fallbackUrl})`;
|
||
};
|
||
testImg.src = bgUrl;
|
||
|
||
// ========== 跟随系统深色模式 ==========
|
||
if (window.matchMedia("(prefers-color-scheme: dark)").matches) {
|
||
document.body.classList.add("dark");
|
||
}
|
||
|
||
// ========== 手动切换深色模式 ==========
|
||
document.getElementById("themeToggle").onclick = () => {
|
||
document.body.classList.toggle("dark");
|
||
};
|
||
</script>
|
||
|
||
</body>
|
||
</html>
|