Feat: Fallback Page

增加服务关闭页面
This commit is contained in:
奇趣保罗 2022-08-02 22:55:04 +08:00
parent b47fbfc03b
commit 0a9dc1388d
2 changed files with 67 additions and 1 deletions

63
failback.html Normal file
View File

@ -0,0 +1,63 @@
<!DOCTYPE html>
<html lang="zh-cmn-Hans">
<head>
<meta charset="UTF-8">
<title>遇到了点问题</title>
<meta name="viewport" content="width=device-width, maximum-scale=1, initial-scale=1"/>
<style>
html, body, main{
height: 100%;
}
body{
margin: 0;
color: #333;
user-select: none;
font: lighter 20px "微软雅黑";
}
a{
color: #3498db;
text-decoration: none;
}
h1{
margin-top: 0;
font-size: 3.5em;
}
main{
display: table;
margin: 0 auto;
}
.content{
padding: 3em 0;
text-align: center;
display: table-cell;
vertical-align: middle;
}
.btn{
color: #fff;
padding: .75em 1em;
background: #3498db;
border-radius: 1.5em;
display: inline-block;
transition: opacity .3s, transform .3s;
}
.btn:hover{
transform: scale(1.1);
}
.btn:active{
opacity: .7;
}
</style>
</head>
<body>
<main>
<div class="content">
<h1>:&lt;</h1>
<p>可能是保罗正在维护中</p>
<p>又或许是运行过程遇到了 Bug请耐心等候恢复</p>
<a class="btn" href="https://paul.ren">探索作者主页</a>
</div>
</main>
</body>
</html>

View File

@ -5,7 +5,10 @@
"scripts": {
"start": "hooks start",
"dev": "hooks dev",
"build": "hooks build"
"build": "hooks build",
"db-seed": "prisma db seed",
"db-pull": "prisma db pull",
"db-push": "prisma db push"
},
"dependencies": {
"@midwayjs/hooks": "^3.0.0",