Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file added forum/static/img/1.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added forum/static/img/10.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added forum/static/img/11.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added forum/static/img/12.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added forum/static/img/13.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added forum/static/img/14.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added forum/static/img/15.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added forum/static/img/16.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added forum/static/img/17.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added forum/static/img/18.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added forum/static/img/19.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added forum/static/img/2.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added forum/static/img/3.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added forum/static/img/4.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added forum/static/img/5.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added forum/static/img/6.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added forum/static/img/7.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added forum/static/img/8.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added forum/static/img/9.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
75 changes: 75 additions & 0 deletions forum/templates/404.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,75 @@
<!DOCTYPE html>
<html lang="zh-CN">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>404 - 页面未找到</title>
<link href="https://cdn.jsdelivr.net.cn/npm/bootstrap@5.3.3/dist/css/bootstrap.min.css" rel="stylesheet">
<link href="https://cdn.jsdelivr.net/npm/bootstrap-icons/font/bootstrap-icons.css" rel="stylesheet">
<style>
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
min-height: 100vh;
display: flex;
align-items: center;
justify-content: center;
background: #1a1a2e url() no-repeat center/cover fixed;
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}
.overlay {
position: fixed;
inset: 0;
background: rgba(0,0,0,.45);
backdrop-filter: blur(3px);
}
.error-card {
position: relative;
z-index: 1;
background: rgba(255,255,255,.15);
backdrop-filter: blur(20px);
border: 1px solid rgba(255,255,255,.25);
border-radius: 20px;
padding: 50px 40px;
text-align: center;
color: #fff;
max-width: 480px;
box-shadow: 0 8px 32px rgba(0,0,0,.3);
}
.error-code {
font-size: 7rem;
font-weight: 800;
line-height: 1;
text-shadow: 0 4px 20px rgba(0,0,0,.3);
}
.error-msg {
font-size: 1.3rem;
margin: 15px 0 30px;
opacity: .9;
}
.btn-home {
background: rgba(255,255,255,.2);
border: 1px solid rgba(255,255,255,.4);
color: #fff;
padding: 10px 30px;
border-radius: 50px;
text-decoration: none;
transition: all .3s;
}
.btn-home:hover { background: rgba(255,255,255,.35); color: #fff; }
</style>
</head>
<body>
<div class="overlay"></div>
<div class="error-card">
<div class="error-code">404</div>
<div class="error-msg">页面走丢了 <i class="bi bi-emoji-dizzy"></i></div>
<p style="opacity:.7;margin-bottom:25px">你访问的页面不存在或已被移除</p>
<a href="/" class="btn-home"><i class="bi bi-house-door"></i> 返回首页</a>
</div>
<script>
const n = 19, exts = {7:"png",8:"png",19:"png"};
const i = Math.floor(Math.random()*n)+1;
document.body.style.backgroundImage = 'url(/static/img/'+i+'.'+(exts[i]||'jpg')+')';
</script>
</body>
</html>
75 changes: 75 additions & 0 deletions forum/templates/500.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,75 @@
<!DOCTYPE html>
<html lang="zh-CN">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>500 - 服务器错误</title>
<link href="https://cdn.jsdelivr.net.cn/npm/bootstrap@5.3.3/dist/css/bootstrap.min.css" rel="stylesheet">
<link href="https://cdn.jsdelivr.net/npm/bootstrap-icons/font/bootstrap-icons.css" rel="stylesheet">
<style>
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
min-height: 100vh;
display: flex;
align-items: center;
justify-content: center;
background: #1a1a2e url() no-repeat center/cover fixed;
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}
.overlay {
position: fixed;
inset: 0;
background: rgba(0,0,0,.45);
backdrop-filter: blur(3px);
}
.error-card {
position: relative;
z-index: 1;
background: rgba(255,255,255,.15);
backdrop-filter: blur(20px);
border: 1px solid rgba(255,255,255,.25);
border-radius: 20px;
padding: 50px 40px;
text-align: center;
color: #fff;
max-width: 480px;
box-shadow: 0 8px 32px rgba(0,0,0,.3);
}
.error-code {
font-size: 7rem;
font-weight: 800;
line-height: 1;
text-shadow: 0 4px 20px rgba(0,0,0,.3);
}
.error-msg {
font-size: 1.3rem;
margin: 15px 0 30px;
opacity: .9;
}
.btn-home {
background: rgba(255,255,255,.2);
border: 1px solid rgba(255,255,255,.4);
color: #fff;
padding: 10px 30px;
border-radius: 50px;
text-decoration: none;
transition: all .3s;
}
.btn-home:hover { background: rgba(255,255,255,.35); color: #fff; }
</style>
</head>
<body>
<div class="overlay"></div>
<div class="error-card">
<div class="error-code">500</div>
<div class="error-msg">服务器开小差了 <i class="bi bi-wrench"></i></div>
<p style="opacity:.7;margin-bottom:25px">服务器遇到了内部错误,请稍后再试</p>
<a href="/" class="btn-home"><i class="bi bi-house-door"></i> 返回首页</a>
</div>
<script>
const n = 19, exts = {7:"png",8:"png",19:"png"};
const i = Math.floor(Math.random()*n)+1;
document.body.style.backgroundImage = 'url(/static/img/'+i+'.'+(exts[i]||'jpg')+')';
</script>
</body>
</html>