|
5 | 5 | <meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=0"> |
6 | 6 | <title>{{.Title}} | Nginx UI</title> |
7 | 7 | <style> |
| 8 | + * { |
| 9 | + box-sizing: border-box; |
| 10 | + } |
| 11 | + |
8 | 12 | body { |
9 | 13 | 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; |
11 | 15 | color: #333; |
12 | 16 | display: flex; |
13 | 17 | align-items: center; |
14 | 18 | justify-content: center; |
15 | | - height: 100vh; |
| 19 | + min-height: 100vh; |
16 | 20 | margin: 0; |
| 21 | + padding: 20px; |
17 | 22 | text-align: center; |
18 | 23 | flex-direction: column; |
19 | 24 | } |
| 25 | + |
20 | 26 | .maintenance-container { |
21 | 27 | 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); |
29 | 33 | margin-bottom: 20px; |
| 34 | + border: 1px solid #e8e8e8; |
30 | 35 | } |
| 36 | + |
31 | 37 | 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; |
39 | 43 | } |
| 44 | + |
40 | 45 | p { |
41 | 46 | font-size: 14px; |
42 | 47 | line-height: 1.6; |
43 | | - margin-bottom: 20px; |
| 48 | + margin-bottom: 12px; |
| 49 | + color: #666; |
44 | 50 | } |
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; |
48 | 61 | } |
| 62 | + |
49 | 63 | .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; |
53 | 75 | } |
| 76 | + |
54 | 77 | .beian-info { |
55 | | - font-size: 12px; |
56 | | - color: #888; |
57 | | - margin-top: 10px; |
| 78 | + font-size: 13px; |
| 79 | + color: #999; |
| 80 | + margin-top: 16px; |
58 | 81 | } |
| 82 | + |
59 | 83 | .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; |
61 | 92 | } |
| 93 | + |
| 94 | + .beian-info a:hover { |
| 95 | + color: #666; |
| 96 | + } |
| 97 | + |
62 | 98 | .beian-info img { |
63 | 99 | 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 | + } |
65 | 129 | } |
66 | 130 | </style> |
67 | 131 | </head> |
68 | 132 | <body> |
69 | 133 | <div> |
70 | 134 | <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> |
87 | 150 | </div> |
88 | 151 | </body> |
89 | 152 | </html> |
0 commit comments