Files
script/nginx/37point2.cn/404.html
牡蛎 d47715ee40 refactor/nginx: 优化 404 页面和首页的样式
- 重新设计了 404 页面的布局和样式,使其更加简洁和响应式
- 添加了暗黑模式支持,提升用户体验
- 优化了首页的样式,增加了链接的视觉效果
2025-06-08 11:42:47 +08:00

64 lines
1.3 KiB
HTML

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>404 Not Found</title>
<style>
:root {
--bg-light: #ffffff;
--bg-dark: #0d1117;
--text-light: #0d1117;
--text-dark: #c9d1d9;
--accent: #3b82f6;
}
body {
margin: 0;
padding: 0;
display: grid;
place-items: center;
height: 100vh;
font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
background-color: var(--bg-light);
color: var(--text-light);
transition: background-color 0.3s, color 0.3s;
}
h1 {
font-size: 4rem;
margin: 0;
}
p {
font-size: 1.2rem;
margin: 1rem 0;
}
a {
color: var(--accent);
text-decoration: none;
font-weight: 500;
}
a:hover {
text-decoration: underline;
}
@media (prefers-color-scheme: dark) {
body {
background-color: var(--bg-dark);
color: var(--text-dark);
}
}
</style>
</head>
<body>
<main>
<h1>404</h1>
<p>页面未找到,可能已被移除或不存在。</p>
<p><a href="/">返回首页</a></p>
</main>
</body>
</html>