File tree Expand file tree Collapse file tree 2 files changed +45
-4
lines changed Expand file tree Collapse file tree 2 files changed +45
-4
lines changed Original file line number Diff line number Diff line change @@ -3,7 +3,25 @@ import ErrorLayout from "../layouts/ErrorLayout.astro";
3
3
---
4
4
5
5
<ErrorLayout title =" 404" >
6
- <h1 >这里啥都没有 - 404</h1 >
6
+ <div class =" main" >
7
+ <h1 >这里啥都没有 - 404</h1 >
8
+ <a href =" /" >点我返回主页</a >
9
+ </div >
7
10
</ErrorLayout >
8
11
9
- <style ></style >
12
+ <style >
13
+ .main {
14
+ display: flex;
15
+ flex-direction: column;
16
+ justify-content: center; /* 水平居中 */
17
+ align-items: center; /* 垂直居中 */
18
+ }
19
+ h1 {
20
+ }
21
+ a{
22
+ text-decoration: none;
23
+ }
24
+ a:hover{
25
+ color: gray;
26
+ }
27
+ </style >
Original file line number Diff line number Diff line change @@ -3,7 +3,30 @@ import ErrorLayout from "../layouts/ErrorLayout.astro";
3
3
---
4
4
5
5
<ErrorLayout title =" 500" >
6
- <h1 >爆炸了! - 500</h1 >
6
+ <div class =" main" >
7
+ <h1 >爆炸了!- 500</h1 >
8
+ <p >
9
+ 一般情况你不会看到这个页面,如果你看到了,拜托<a
10
+
11
+ target =" _blank"
12
+ class =" info" ><h3 >联系我</h3 ></a
13
+ >吧,我什么都会做的!
14
+ </p >
15
+ </div >
7
16
</ErrorLayout >
8
17
9
- <style ></style >
18
+ <style >
19
+ .main {
20
+ display: flex;
21
+ flex-direction: column;
22
+ justify-content: center; /* 水平居中 */
23
+ align-items: center; /* 垂直居中 */
24
+ }
25
+ .info {
26
+ color: red;
27
+ text-decoration: none;
28
+ }
29
+ .info:hover {
30
+ text-decoration: underline;
31
+ }
32
+ </style >
You can’t perform that action at this time.
0 commit comments