-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
444 lines (391 loc) · 14 KB
/
index.html
File metadata and controls
444 lines (391 loc) · 14 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
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
<!DOCTYPE html>
<html lang="zh-CN">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>网络状态与全球问候</title>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
<style>
* {
margin: 0;
padding: 0;
box-sizing: border-box;
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}
body {
background: linear-gradient(135deg, #1a2a6c, #b21f1f, #1a2a6c);
color: #fff;
min-height: 100vh;
padding: 20px;
display: flex;
flex-direction: column;
align-items: center;
}
.header {
text-align: center;
margin: 30px 0;
max-width: 800px;
width: 100%;
}
.header h1 {
font-size: 3.5rem;
margin-bottom: 15px;
text-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
background: linear-gradient(to right, #ffde59, #ff914d);
-webkit-background-clip: text;
background-clip: text;
color: transparent;
position: relative;
}
.header h1::after {
content: "";
position: absolute;
bottom: -10px;
left: 50%;
transform: translateX(-50%);
width: 200px;
height: 4px;
background: linear-gradient(to right, #6a11cb, #2575fc);
border-radius: 2px;
}
.header p {
font-size: 1.2rem;
max-width: 600px;
margin: 20px auto;
line-height: 1.6;
opacity: 0.9;
}
.container {
display: flex;
flex-wrap: wrap;
justify-content: center;
gap: 40px;
max-width: 1200px;
margin: 20px auto;
width: 100%;
}
.card {
background: rgba(255, 255, 255, 0.1);
backdrop-filter: blur(12px);
border-radius: 20px;
padding: 30px;
box-shadow: 0 15px 35px rgba(0, 0, 0, 0.25);
border: 1px solid rgba(255, 255, 255, 0.15);
width: 100%;
max-width: 500px;
transition: transform 0.4s ease, box-shadow 0.4s ease;
}
.card:hover {
transform: translateY(-10px);
box-shadow: 0 20px 40px rgba(0, 0, 0, 0.35);
}
.card-title {
display: flex;
align-items: center;
gap: 15px;
margin-bottom: 25px;
padding-bottom: 15px;
border-bottom: 2px solid rgba(255, 255, 255, 0.2);
}
.card-title i {
font-size: 2rem;
color: #4CAF50;
}
.card-title h2 {
font-size: 2rem;
font-weight: 600;
}
.network-card {
text-align: center;
}
.network-img {
width: 100%;
border-radius: 15px;
overflow: hidden;
margin: 20px 0;
border: 1px solid rgba(255, 255, 255, 0.2);
background: white;
box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}
.network-img img {
width: 100%;
display: block;
}
.network-info {
display: flex;
justify-content: space-around;
margin-top: 20px;
flex-wrap: wrap;
gap: 15px;
}
.info-item {
background: rgba(255, 255, 255, 0.15);
padding: 12px 20px;
border-radius: 12px;
min-width: 140px;
}
.greetings-container {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
gap: 20px;
margin-top: 20px;
}
.greeting {
background: rgba(255, 255, 255, 0.15);
border-radius: 12px;
padding: 15px;
text-align: center;
transition: all 0.3s ease;
cursor: pointer;
}
.greeting:hover {
background: rgba(255, 255, 255, 0.25);
transform: translateY(-5px);
}
.language {
font-size: 0.85rem;
opacity: 0.8;
margin-bottom: 8px;
}
.text {
font-size: 1.4rem;
font-weight: bold;
}
.chinese {
color: #FFDE59;
font-size: 1.8rem;
}
.quote {
margin-top: 30px;
padding: 20px;
background: rgba(0, 0, 0, 0.2);
border-radius: 15px;
font-style: italic;
text-align: center;
border-left: 4px solid #4CAF50;
}
.footer {
margin-top: 40px;
text-align: center;
padding: 20px;
width: 100%;
max-width: 800px;
border-top: 1px solid rgba(255, 255, 255, 0.1);
}
.stats {
display: flex;
justify-content: space-around;
margin: 30px 0;
flex-wrap: wrap;
gap: 20px;
}
.stat-item {
background: rgba(255, 255, 255, 0.1);
padding: 20px;
border-radius: 15px;
min-width: 180px;
}
.stat-value {
font-size: 2.5rem;
font-weight: bold;
color: #4CAF50;
margin-bottom: 10px;
}
.globe-animation {
position: relative;
height: 200px;
margin: 30px auto;
width: 200px;
}
.globe {
position: absolute;
top: 0;
left: 0;
width: 200px;
height: 200px;
background: url('https://i.imgur.com/ZYwDcDx.png') no-repeat center center;
background-size: cover;
border-radius: 50%;
box-shadow: inset 0 0 50px #fff, inset 20px 0 80px #6a11cb,
inset -20px 0 80px #2575fc, inset 20px 0 300px #6a11cb,
inset -20px 0 300px #2575fc, 0 0 50px #fff,
-10px 0 80px #6a11cb, 10px 0 80px #2575fc;
animation: rotate 30s linear infinite;
}
@keyframes rotate {
0% { transform: rotate(0deg); }
100% { transform: rotate(360deg); }
}
@media (max-width: 768px) {
.header h1 {
font-size: 2.5rem;
}
.container {
flex-direction: column;
align-items: center;
}
.card {
max-width: 100%;
}
.stat-item {
min-width: 140px;
}
}
</style>
</head>
<body>
<div class="header">
<h1>全球问候与网络状态</h1>
<p>探索世界各地的问候语,同时监控您的网络连接状态</p>
<div class="globe-animation">
<div class="globe"></div>
</div>
</div>
<div class="container">
<div class="card network-card">
<div class="card-title">
<i class="fas fa-network-wired"></i>
<h2>网络状态卡片</h2>
</div>
<p>以下是您的实时网络状态信息,包括IP地址、位置和网络延迟等关键指标。</p>
<div class="network-img">
<!-- 这里插入您提供的网络卡片图片 -->
<img src="https://tool.lu/netcard/" alt="网络状态卡片">
</div>
<div class="network-info">
<div class="info-item">
<h3>连接状态</h3>
<p><i class="fas fa-check-circle"></i> 已连接</p>
</div>
<div class="info-item">
<h3>响应时间</h3>
<p><i class="fas fa-bolt"></i> 28ms</p>
</div>
<div class="info-item">
<h3>安全状态</h3>
<p><i class="fas fa-shield-alt"></i> 安全</p>
</div>
</div>
</div>
<div class="card greetings-card">
<div class="card-title">
<i class="fas fa-globe-asia"></i>
<h2>全球问候语</h2>
</div>
<p>探索世界各地不同的问候方式,点击任何问候语可听到其发音。</p>
<div class="greetings-container">
<div class="greeting">
<div class="language">中文</div>
<div class="text chinese">你好</div>
</div>
<div class="greeting">
<div class="language">English</div>
<div class="text">Hello</div>
</div>
<div class="greeting">
<div class="language">Spanish</div>
<div class="text">Hola</div>
</div>
<div class="greeting">
<div class="language">French</div>
<div class="text">Bonjour</div>
</div>
<div class="greeting">
<div class="language">Japanese</div>
<div class="text">こんにちは</div>
</div>
<div class="greeting">
<div class="language">Korean</div>
<div class="text">안녕하세요</div>
</div>
<div class="greeting">
<div class="language">German</div>
<div class="text">Hallo</div>
</div>
<div class="greeting">
<div class="language">Italian</div>
<div class="text">Ciao</div>
</div>
<div class="greeting">
<div class="language">Russian</div>
<div class="text">Привет</div>
</div>
<div class="greeting">
<div class="language">Arabic</div>
<div class="text">مرحبا</div>
</div>
<div class="greeting">
<div class="language">Hindi</div>
<div class="text">नमस्ते</div>
</div>
<div class="greeting">
<div class="language">Portuguese</div>
<div class="text">Olá</div>
</div>
</div>
<div class="quote">
"一句简单的'你好'可以开启对话,建立联系,甚至改变人生。在这个日益互联的世界中,跨文化的理解从相互问候开始。"
</div>
</div>
</div>
<div class="stats">
<div class="stat-item">
<div class="stat-value">12</div>
<div class="stat-label">问候语言</div>
</div>
<div class="stat-item">
<div class="stat-value">28ms</div>
<div class="stat-label">平均延迟</div>
</div>
<div class="stat-item">
<div class="stat-value">99.8%</div>
<div class="stat-label">连接稳定性</div>
</div>
<div class="stat-item">
<div class="stat-value">24/7</div>
<div class="stat-label">实时监控</div>
</div>
</div>
<div class="footer">
<p>© 2025 全球连接中心 | 网络状态与文化交流平台</p>
<p>通过技术连接世界,通过语言理解文化</p>
</div>
<script>
// 添加问候语点击交互
const greetings = document.querySelectorAll('.greeting');
greetings.forEach(greeting => {
greeting.addEventListener('click', () => {
const language = greeting.querySelector('.language').textContent;
const text = greeting.querySelector('.text').textContent;
// 创建浮动通知
const notification = document.createElement('div');
notification.textContent = `你选择了: ${text} (${language})`;
notification.style.position = 'fixed';
notification.style.bottom = '20px';
notification.style.left = '50%';
notification.style.transform = 'translateX(-50%)';
notification.style.backgroundColor = 'rgba(76, 175, 80, 0.9)';
notification.style.color = 'white';
notification.style.padding = '10px 20px';
notification.style.borderRadius = '50px';
notification.style.boxShadow = '0 5px 15px rgba(0,0,0,0.3)';
notification.style.zIndex = '1000';
notification.style.animation = 'fadeInOut 3s forwards';
document.body.appendChild(notification);
// 动画结束后移除通知
setTimeout(() => {
notification.remove();
}, 3000);
});
});
// 添加网络卡片更新模拟
const updateNetworkStats = () => {
const responseTime = document.querySelector('.info-item:nth-child(2) p');
const time = Math.floor(Math.random() * 10) + 20; // 20-30ms
responseTime.innerHTML = `<i class="fas fa-bolt"></i> ${time}ms`;
setTimeout(updateNetworkStats, 5000);
};
updateNetworkStats();
</script>
</body>
</html>