-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtest_page.html
More file actions
178 lines (159 loc) · 5.17 KB
/
test_page.html
File metadata and controls
178 lines (159 loc) · 5.17 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
<!DOCTYPE html>
<html lang="zh-CN">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>本地测试页面</title>
<style>
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+SC:wght@300;500;700&display=swap');
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
font-family: 'Noto Sans SC', sans-serif;
min-height: 100vh;
background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
display: flex;
justify-content: center;
align-items: center;
overflow: hidden;
}
.container {
text-align: center;
padding: 3rem;
background: rgba(255, 255, 255, 0.05);
border-radius: 24px;
backdrop-filter: blur(10px);
border: 1px solid rgba(255, 255, 255, 0.1);
box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
animation: fadeIn 0.8s ease-out;
}
@keyframes fadeIn {
from {
opacity: 0;
transform: translateY(30px);
}
to {
opacity: 1;
transform: translateY(0);
}
}
.icon {
font-size: 5rem;
margin-bottom: 1.5rem;
animation: bounce 2s infinite;
}
@keyframes bounce {
0%, 100% { transform: translateY(0); }
50% { transform: translateY(-15px); }
}
h1 {
color: #e94560;
font-size: 2.5rem;
font-weight: 700;
margin-bottom: 1rem;
text-shadow: 0 0 30px rgba(233, 69, 96, 0.5);
}
p {
color: rgba(255, 255, 255, 0.8);
font-size: 1.2rem;
font-weight: 300;
margin-bottom: 2rem;
line-height: 1.8;
}
.status {
display: inline-flex;
align-items: center;
gap: 0.5rem;
padding: 0.75rem 1.5rem;
background: linear-gradient(135deg, #00b894, #00cec9);
color: white;
border-radius: 50px;
font-weight: 500;
box-shadow: 0 10px 30px rgba(0, 206, 201, 0.3);
}
.status::before {
content: '';
width: 10px;
height: 10px;
background: white;
border-radius: 50%;
animation: pulse 1.5s infinite;
}
@keyframes pulse {
0%, 100% { opacity: 1; transform: scale(1); }
50% { opacity: 0.5; transform: scale(1.2); }
}
.time {
margin-top: 2rem;
color: rgba(255, 255, 255, 0.5);
font-size: 0.9rem;
}
.particles {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
pointer-events: none;
overflow: hidden;
z-index: -1;
}
.particle {
position: absolute;
width: 4px;
height: 4px;
background: rgba(233, 69, 96, 0.6);
border-radius: 50%;
animation: float 15s infinite;
}
@keyframes float {
0%, 100% {
transform: translateY(100vh) rotate(0deg);
opacity: 0;
}
10% { opacity: 1; }
90% { opacity: 1; }
100% {
transform: translateY(-100vh) rotate(720deg);
opacity: 0;
}
}
</style>
</head>
<body>
<div class="particles" id="particles"></div>
<div class="container">
<div class="icon">🚀</div>
<h1>连接成功!</h1>
<p>
恭喜!你的本地服务器运行正常<br>
这是一个测试页面
</p>
<div class="status">服务器在线</div>
<div class="time" id="time"></div>
</div>
<script>
// 更新时间
function updateTime() {
const now = new Date();
document.getElementById('time').textContent =
'当前时间: ' + now.toLocaleString('zh-CN');
}
updateTime();
setInterval(updateTime, 1000);
// 创建粒子效果
const particlesContainer = document.getElementById('particles');
for (let i = 0; i < 20; i++) {
const particle = document.createElement('div');
particle.className = 'particle';
particle.style.left = Math.random() * 100 + '%';
particle.style.animationDelay = Math.random() * 15 + 's';
particle.style.animationDuration = (10 + Math.random() * 10) + 's';
particlesContainer.appendChild(particle);
}
</script>
</body>
</html>