front/index.html
2024-06-19 17:14:21 +08:00

480 lines
15 KiB
HTML

<!DOCTYPE html>
<html lang="en" dir="auto">
<head>
<meta name="generator" content="Hugo 0.127.0"><meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<meta name="robots" content="index, follow">
<title>NEU小站</title>
<meta name="description" content="">
<meta name="author" content="
">
<link rel="canonical" href="https://xn--xhq44jb2fzpc.com/">
<link rel="stylesheet" href="/css/custom.css">
<link crossorigin="anonymous" href="/assets/css/stylesheet.css" rel="preload stylesheet" as="style">
<link rel="icon" href="https://xn--xhq44jb2fzpc.com/icons/favicon.ico">
<link rel="icon" type="image/png" sizes="16x16" href="https://xn--xhq44jb2fzpc.com/icons/favicon-16x16.png">
<link rel="icon" type="image/png" sizes="32x32" href="https://xn--xhq44jb2fzpc.com/icons/favicon-32x32.png">
<link rel="apple-touch-icon" href="https://xn--xhq44jb2fzpc.com/icons/apple-touch-icon.png">
<link rel="mask-icon" href="https://xn--xhq44jb2fzpc.com/safari-pinned-tab.svg">
<meta name="theme-color" content="#2e2e33">
<meta name="msapplication-TileColor" content="#2e2e33">
<link rel="alternate" type="application/rss+xml" href="https://xn--xhq44jb2fzpc.com/index.xml">
<link rel="alternate" type="application/json" href="https://xn--xhq44jb2fzpc.com/index.json">
<link rel="alternate" hreflang="en" href="https://xn--xhq44jb2fzpc.com/">
<noscript>
<style>
#theme-toggle,
.top-link {
display: none;
}
</style>
<style>
@media (prefers-color-scheme: dark) {
:root {
--theme: rgb(29, 30, 32);
--entry: rgb(46, 46, 51);
--primary: rgb(218, 218, 219);
--secondary: rgb(155, 156, 157);
--tertiary: rgb(65, 66, 68);
--content: rgb(196, 196, 197);
--code-block-bg: rgb(46, 46, 51);
--code-bg: rgb(55, 56, 62);
--border: rgb(51, 51, 51);
}
.list {
background: var(--theme);
}
.list:not(.dark)::-webkit-scrollbar-track {
background: 0 0;
}
.list:not(.dark)::-webkit-scrollbar-thumb {
border-color: var(--theme);
}
}
</style>
</noscript>
<meta property="og:title" content="" />
<meta property="og:description" content="" />
<meta property="og:type" content="website" />
<meta property="og:url" content="https://xn--xhq44jb2fzpc.com/" />
<meta name="twitter:card" content="summary"/>
<meta name="twitter:title" content=""/>
<meta name="twitter:description" content=""/>
<script type="application/ld+json">
{
"@context": "https://schema.org",
"@type": "Organization",
"name": "NEU小站",
"url": "https://xn--xhq44jb2fzpc.com/",
"description": "",
"thumbnailUrl": "https://xn--xhq44jb2fzpc.com/icons/favicon.ico",
"sameAs": [
]
}
</script>
<link rel="stylesheet" href="/css/custom.css">
</head>
<body class="list" id="top">
<script>
if (localStorage.getItem("pref-theme") === "dark") {
document.body.classList.add('dark');
} else if (localStorage.getItem("pref-theme") === "light") {
document.body.classList.remove('dark')
} else if (window.matchMedia('(prefers-color-scheme: dark)').matches) {
document.body.classList.add('dark');
}
</script>
<header class="header">
<nav class="nav">
<div class="logo">
<a href="https://xn--xhq44jb2fzpc.com/" accesskey="h" title="NEU小站 (Alt + H)">NEU小站</a>
<div class="logo-switches">
<button id="theme-toggle" accesskey="t" title="(Alt + T)">
<svg id="moon" xmlns="http://www.w3.org/2000/svg" width="24" height="18" viewBox="0 0 24 24"
fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round"
stroke-linejoin="round">
<path d="M21 12.79A9 9 0 1 1 11.21 3 7 7 0 0 0 21 12.79z"></path>
</svg>
<svg id="sun" xmlns="http://www.w3.org/2000/svg" width="24" height="18" viewBox="0 0 24 24"
fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round"
stroke-linejoin="round">
<circle cx="12" cy="12" r="5"></circle>
<line x1="12" y1="1" x2="12" y2="3"></line>
<line x1="12" y1="21" x2="12" y2="23"></line>
<line x1="4.22" y1="4.22" x2="5.64" y2="5.64"></line>
<line x1="18.36" y1="18.36" x2="19.78" y2="19.78"></line>
<line x1="1" y1="12" x2="3" y2="12"></line>
<line x1="21" y1="12" x2="23" y2="12"></line>
<line x1="4.22" y1="19.78" x2="5.64" y2="18.36"></line>
<line x1="18.36" y1="5.64" x2="19.78" y2="4.22"></line>
</svg>
</button>
</div>
</div>
<ul id="menu">
<li>
<a href="https://xn--xhq44jb2fzpc.com/" title="主页">
<span class="active">主页</span>
</a>
</li>
<li>
<a href="https://xn--xhq44jb2fzpc.com/rapidlinks/%E5%BF%AB%E9%80%9F%E9%93%BE%E6%8E%A5/" title="快速链接">
<span>快速链接</span>
</a>
</li>
<li>
<a href="https://xn--xhq44jb2fzpc.com/resources/" title="资源共享">
<span>资源共享</span>
</a>
</li>
<li>
<a href="https://xn--xhq44jb2fzpc.com/search/" title="搜索">
<span>搜索</span>
</a>
</li>
<li>
<a href="https://xn--xhq44jb2fzpc.com/ratings/" title="选修课评分">
<span>选修课评分</span>
</a>
</li>
<li>
<a href="https://f.wps.cn/g/QuaZnovL/" title="意见反馈"target="_blank">
<span>意见反馈</span>&nbsp;
<svg fill="none" shape-rendering="geometricPrecision" stroke="currentColor" stroke-linecap="round"
stroke-linejoin="round" stroke-width="2.5" viewBox="0 0 24 24" height="12" width="12">
<path d="M18 13v6a2 2 0 01-2 2H5a2 2 0 01-2-2V8a2 2 0 012-2h6"></path>
<path d="M15 3h6v6"></path>
<path d="M10 14L21 3"></path>
</svg>
</a>
</li>
</ul>
</nav>
</header>
<main class="main">
<div class="post-content">
<div class="container">
<div class="top-row">
<div class="text-container first">
<h1>🤗 欢迎访问</h1>
<h2>NEU小站</h2>
</div>
<img src="icons/HDlogo.png" alt="NEU小站 LOGO" class="logo-image">
</div>
<div class="text-container">
<h1>这是什么网站?</h1>
<p><strong>NEU 小站</strong>由东北大学的学生开发和维护,旨在为大家提供丰富的学习资源和实用的工具,助您在学业和生活中更加得心应手。</p>
</div>
<div class="text-container">
<h3>🌐 快速链接 <a href="/rapidLinks/快速链接/" class="my-button">前往</a></h3>
<p>直达有用的工具!</p>
</div>
<div class="text-container">
<h3>📚 资源共享 <a href="/resources/" class="my-button">前往</a></h3>
<p>获取丰富的学习资料。您也是分享者,可以投稿任何资源。</p>
</div>
<div class="text-container centered-text">
<p>更多功能正在开发中,敬请期待……</p>
</div>
</div>
<style>
.container {
display: flex;
flex-direction: column;
align-items: center;
padding: 20px;
background-color: rgba(245, 245, 245, 0.9);
border-radius: 15px;
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
width: 98%;
height: auto; /* 自动适应内容高度 */
}
.top-row {
display: flex;
justify-content: center;
align-items: center;
width: 100%;
}
.text-container {
margin-bottom: 20px;
padding: 20px;
background-color: white;
border-radius: 15px;
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
width: calc(100% - 40px); /* 留出左右各20px的间距 */
height: auto; /* 自动适应内容高度 */
}
.text-container.first {
margin-left: -3px;
width: calc(100% - 200px); /* 总宽度减去图片容器宽度和间距 */
margin-right: 15px; /* 右侧间距 */
text-align: center;
}
.logo-image {
margin-right: 20px;
max-width: 145px; /* 图片的最大宽度 */
height: auto;
border-radius: 15px;
/* box-shadow: 0 0px 8px rgba(236, 227, 207); */
position: relative;
top: -9px;
}
.text-container h1 {
margin: 0;
font-size: 32px;
margin-bottom: 12px; /* 增加h1的下边距 */
}
.text-container h2 {
margin: 0;
font-size: 54px;
font-weight: bold;
}
.text-container h3 {
margin-top: 0px; /* 调整此值以减少空间 */
font-size: 28px; /* 示例字体大小,根据需要调整 */
display: flex;
align-items: center;
}
.text-container p {
margin: 0;
font-size: 18px;
}
.my-button {
display: inline-flex;
align-items: center;
justify-content: center;
margin-left: 5px;
padding: 0;
background-color: #007bff;
color: white;
text-decoration: none;
border-radius: 5px;
transition: background-color 0.3s, color 0.3s;
width: 70px;
height: 40px;
font-size: 20px;
position: relative;
top: -2px;
}
.my-button:hover {
background-color: #0056b3;
}
.my-button:active {
background-color: #003d80;
}
/* 暗黑模式样式 */
.dark .container,
.dark .text-container {
background-color: #333;
color: white;
box-shadow: 0 4px 8px rgba(255, 255, 255, 0.2);
}
.dark .logo-image {
box-shadow: 0 4px 8px rgba(255, 255, 255, 0.2);
}
.dark .my-button {
background-color: #73767a;
color: white;
box-shadow: 0 4px 8px #73767a; /* 暗黑模式下的更暗阴影 */
}
.dark .my-button:hover {
background-color: #161b21;
}
.dark .my-button:active {
background-color: #020203;
}
.centered-text {
text-align: center;
}
@media (max-width: 768px) {
.logo-image {
display: none;
}
.text-container.first {
width: calc(100% - 40px);
margin-left: 0;
margin-right: 0;
}
}
</style>
</div>
</main>
<footer class="footer">
<span>&copy; 2024 <a href="https://xn--xhq44jb2fzpc.com/">NEU小站</a></span> ·
<span id="ember-container">
Ember
<div id="qr-code" class="hidden">
<img src="https://www.xn--xhq44jb2fzpc.com/qrcode/ember.png" alt="QR Code" />
</div>
</span>
</footer>
<a href="#top" aria-label="go to top" title="Go to Top (Alt + G)" class="top-link" id="top-link" accesskey="g">
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 12 6" fill="currentColor">
<path d="M12 6H0l6-6z" />
</svg>
</a>
<style>
#ember-container {
position: relative;
display: inline-block;
cursor: pointer;
}
#qr-code {
position: absolute;
bottom: 100%;
left: 50%;
transform: translateX(-50%);
padding: 10px;
background-color: #fff;
border: 1px solid #ccc;
border-radius: 10px;
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
width: 200px;
height: 200px;
display: flex;
justify-content: center;
align-items: center;
opacity: 0;
visibility: hidden;
transition: opacity 0.3s ease-in-out, visibility 0.3s ease-in-out;
}
#qr-code img {
max-width: 100%;
max-height: 100%;
border-radius: 10px;
}
#ember-container:hover #qr-code,
#ember-container:focus #qr-code {
opacity: 1;
visibility: visible;
}
</style>
<script>
let menu = document.getElementById('menu')
if (menu) {
menu.scrollLeft = localStorage.getItem("menu-scroll-position");
menu.onscroll = function () {
localStorage.setItem("menu-scroll-position", menu.scrollLeft);
}
}
document.querySelectorAll('a[href^="#"]').forEach(anchor => {
anchor.addEventListener("click", function (e) {
e.preventDefault();
var id = this.getAttribute("href").substr(1);
if (!window.matchMedia('(prefers-reduced-motion: reduce)').matches) {
document.querySelector(`[id='${decodeURIComponent(id)}']`).scrollIntoView({
behavior: "smooth"
});
} else {
document.querySelector(`[id='${decodeURIComponent(id)}']`).scrollIntoView();
}
if (id === "top") {
history.replaceState(null, null, " ");
} else {
history.pushState(null, null, `#${id}`);
}
});
});
document.addEventListener('DOMContentLoaded', function() {
var emberContainer = document.getElementById('ember-container');
emberContainer.addEventListener('mouseenter', function() {
var qrCode = document.getElementById('qr-code');
qrCode.classList.remove('hidden');
});
emberContainer.addEventListener('mouseleave', function() {
var qrCode = document.getElementById('qr-code');
qrCode.classList.add('hidden');
});
});
</script>
<script>
var mybutton = document.getElementById("top-link");
window.onscroll = function () {
if (document.body.scrollTop > 800 || document.documentElement.scrollTop > 800) {
mybutton.style.visibility = "visible";
mybutton.style.opacity = "1";
} else {
mybutton.style.visibility = "hidden";
mybutton.style.opacity = "0";
}
};
</script>
<script>
document.getElementById("theme-toggle").addEventListener("click", () => {
if (document.body.className.includes("dark")) {
document.body.classList.remove('dark');
localStorage.setItem("pref-theme", 'light');
} else {
document.body.classList.add('dark');
localStorage.setItem("pref-theme", 'dark');
}
})
</script>
</body>
</html>