Skip to content

Commit cc8b820

Browse files
committed
style: improved maintenance page styles
1 parent 918642f commit cc8b820

File tree

1 file changed

+107
-44
lines changed

1 file changed

+107
-44
lines changed

api/pages/maintenance.tmpl

Lines changed: 107 additions & 44 deletions
Original file line numberDiff line numberDiff line change
@@ -5,85 +5,148 @@
55
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=0">
66
<title>{{.Title}} | Nginx UI</title>
77
<style>
8+
* {
9+
box-sizing: border-box;
10+
}
11+
812
body {
913
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
10-
background-color: #f4f5f7;
14+
background-color: #f5f5f5;
1115
color: #333;
1216
display: flex;
1317
align-items: center;
1418
justify-content: center;
15-
height: 100vh;
19+
min-height: 100vh;
1620
margin: 0;
21+
padding: 20px;
1722
text-align: center;
1823
flex-direction: column;
1924
}
25+
2026
.maintenance-container {
2127
max-width: 600px;
22-
padding: 40px;
23-
background: white;
24-
border-radius: 8px;
25-
@media (max-width: 768px) {
26-
border-radius: 0;
27-
}
28-
box-shadow: 0 0 30px #c8c8c840;
28+
width: 100%;
29+
padding: 48px 40px;
30+
background: #ffffff;
31+
border-radius: 12px;
32+
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
2933
margin-bottom: 20px;
34+
border: 1px solid #e8e8e8;
3035
}
36+
3137
h1 {
32-
color:rgb(0, 128, 247);
33-
margin-bottom: 20px;
34-
font-size: 28px;
35-
}
36-
a {
37-
color: #1890ff;
38-
text-decoration: none;
38+
color: #1a1a1a;
39+
margin-bottom: 16px;
40+
font-size: 32px;
41+
font-weight: 600;
42+
letter-spacing: -0.5px;
3943
}
44+
4045
p {
4146
font-size: 14px;
4247
line-height: 1.6;
43-
margin-bottom: 20px;
48+
margin-bottom: 12px;
49+
color: #666;
4450
}
45-
.icon {
46-
font-size: 64px;
47-
margin-bottom: 20px;
51+
52+
a {
53+
color: #0080f7;
54+
text-decoration: none;
55+
font-weight: 500;
56+
transition: color 0.2s ease;
57+
}
58+
59+
a:hover {
60+
color: #0066cc;
4861
}
62+
4963
.footer {
50-
margin-top: 30px;
51-
font-size: 12px;
52-
color: #888;
64+
margin-top: 32px;
65+
padding-top: 24px;
66+
font-size: 13px;
67+
color: #999;
68+
border-top: 1px solid #f0f0f0;
69+
}
70+
71+
.footer p {
72+
margin: 0;
73+
font-size: 14px;
74+
color: #999;
5375
}
76+
5477
.beian-info {
55-
font-size: 12px;
56-
color: #888;
57-
margin-top: 10px;
78+
font-size: 13px;
79+
color: #999;
80+
margin-top: 16px;
5881
}
82+
5983
.beian-info p {
60-
margin: 5px 0;
84+
margin: 8px 0;
85+
font-size: 13px;
86+
color: #999;
87+
}
88+
89+
.beian-info a {
90+
color: #999;
91+
font-weight: 400;
6192
}
93+
94+
.beian-info a:hover {
95+
color: #666;
96+
}
97+
6298
.beian-info img {
6399
vertical-align: middle;
64-
margin-right: 5px;
100+
margin-right: 6px;
101+
}
102+
103+
@media (max-width: 768px) {
104+
.maintenance-container {
105+
padding: 40px 24px;
106+
}
107+
108+
h1 {
109+
font-size: 24px;
110+
}
111+
}
112+
113+
@media (max-width: 480px) {
114+
body {
115+
padding: 12px;
116+
}
117+
118+
.maintenance-container {
119+
padding: 32px 20px;
120+
}
121+
122+
h1 {
123+
font-size: 22px;
124+
}
125+
126+
p {
127+
font-size: 15px;
128+
}
65129
}
66130
</style>
67131
</head>
68132
<body>
69133
<div>
70134
<div class="maintenance-container">
71-
<div class="icon">🛠️</div>
72-
<h1>{{.Title}}</h1>
73-
<p>{{.Message}}</p>
74-
<p>{{.Description}}</p>
75-
<div class="footer">
76-
<p>Powered by <a href="https://nginxui.com" target="_blank">Nginx UI</a></p>
77-
</div>
78-
</div>
79-
<div class="beian-info">
80-
{{if .ICPNumber}}
81-
<p><a href="https://beian.miit.gov.cn/" target="_blank">{{.ICPNumber}}</a></p>
82-
{{end}}
83-
{{if .PublicSecurityNumber}}
84-
<p><img src="//www.beian.gov.cn/img/new/gongan.png" alt="公安备案"><a href="http://www.beian.gov.cn/portal/index" target="_blank">{{.PublicSecurityNumber}}</a></p>
85-
{{end}}
86-
</div>
135+
<h1>{{.Title}}</h1>
136+
<p>{{.Message}}</p>
137+
<p>{{.Description}}</p>
138+
<div class="footer">
139+
<p>Powered by <a href="https://nginxui.com" target="_blank">Nginx UI</a></p>
140+
</div>
141+
</div>
142+
<div class="beian-info">
143+
{{if .ICPNumber}}
144+
<p><a href="https://beian.miit.gov.cn/" target="_blank">{{.ICPNumber}}</a></p>
145+
{{end}}
146+
{{if .PublicSecurityNumber}}
147+
<p><img src="//www.beian.gov.cn/img/new/gongan.png" alt="公安备案"><a href="http://www.beian.gov.cn/portal/index" target="_blank">{{.PublicSecurityNumber}}</a></p>
148+
{{end}}
149+
</div>
87150
</div>
88151
</body>
89152
</html>

0 commit comments

Comments
 (0)