-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
811 lines (712 loc) · 25.4 KB
/
index.html
File metadata and controls
811 lines (712 loc) · 25.4 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
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
<!DOCTYPE html>
<html lang="zh-CN">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>OurWorldNetwork-Create | 机械动力生存服务器</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(rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.8)),
url('https://images.unsplash.com/photo-1542751110-97427bbecf20?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=80');
background-size: cover;
background-position: center;
background-attachment: fixed;
color: #e0e0e0;
min-height: 100vh;
overflow-x: hidden;
}
/* 导航栏样式 */
nav {
display: flex;
justify-content: space-between;
align-items: center;
padding: 1.5rem 5%;
background: rgba(10, 15, 20, 0.85);
backdrop-filter: blur(10px);
position: fixed;
top: 0;
left: 0;
right: 0;
z-index: 1000;
border-bottom: 1px solid rgba(80, 150, 255, 0.3);
}
.logo {
display: flex;
align-items: center;
gap: 15px;
}
.logo img {
height: 50px;
width: auto;
border-radius: 50%;
border: 2px solid #2a9fd6;
}
.logo h1 {
font-size: 1.8rem;
background: linear-gradient(90deg, #2a9fd6, #4bcefa);
-webkit-background-clip: text;
background-clip: text;
-webkit-text-fill-color: transparent;
font-weight: 700;
}
.nav-links {
display: flex;
gap: 2rem;
}
.nav-links a {
text-decoration: none;
color: #e0e0e0;
font-weight: 500;
font-size: 1.1rem;
transition: all 0.3s ease;
padding: 0.5rem 1rem;
border-radius: 5px;
}
.nav-links a:hover {
color: #4bcefa;
background: rgba(80, 150, 255, 0.1);
}
/* 主要内容区域 */
.container {
max-width: 1200px;
margin: 120px auto 50px;
padding: 0 20px;
}
.hero {
text-align: center;
padding: 3rem 0;
margin-bottom: 3rem;
}
.hero h2 {
font-size: 3.5rem;
margin-bottom: 1rem;
background: linear-gradient(90deg, #2a9fd6, #4bcefa);
-webkit-background-clip: text;
background-clip: text;
-webkit-text-fill-color: transparent;
}
.hero p {
font-size: 1.4rem;
max-width: 800px;
margin: 0 auto 2rem;
color: #b0b0b0;
}
/* 服务器状态卡片 */
.server-status {
background: rgba(15, 22, 30, 0.8);
border-radius: 15px;
padding: 2rem;
margin-bottom: 3rem;
border: 1px solid rgba(80, 150, 255, 0.2);
box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
text-align: center;
}
.status-header {
display: flex;
align-items: center;
justify-content: center;
gap: 15px;
margin-bottom: 1.5rem;
}
.status-header h3 {
font-size: 2rem;
color: #4bcefa;
}
.status-icon {
width: 15px;
height: 15px;
border-radius: 50%;
background: #4CAF50;
}
.offline {
background: #f44336;
}
.status-info {
display: flex;
justify-content: space-around;
flex-wrap: wrap;
gap: 1.5rem;
margin-top: 2rem;
}
.status-item {
background: rgba(30, 40, 50, 0.5);
padding: 1.5rem;
border-radius: 10px;
min-width: 200px;
flex: 1;
}
.status-item h4 {
color: #2a9fd6;
margin-bottom: 0.5rem;
font-size: 1.2rem;
}
.status-item p {
font-size: 1.5rem;
font-weight: bold;
}
.player-list {
margin-top: 1.5rem;
max-height: 200px;
overflow-y: auto;
padding: 10px;
background: rgba(20, 30, 40, 0.5);
border-radius: 8px;
}
.player-list ul {
list-style: none;
display: flex;
flex-wrap: wrap;
gap: 10px;
justify-content: center;
}
.player-list li {
background: rgba(42, 159, 214, 0.2);
padding: 5px 15px;
border-radius: 20px;
}
/* 介绍部分 */
.features {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
gap: 2rem;
margin-bottom: 3rem;
}
.feature-card {
background: rgba(15, 22, 30, 0.8);
border-radius: 15px;
padding: 2rem;
border: 1px solid rgba(80, 150, 255, 0.2);
transition: transform 0.3s ease;
}
.feature-card:hover {
transform: translateY(-10px);
border-color: #2a9fd6;
}
.feature-card h3 {
color: #4bcefa;
margin-bottom: 1rem;
display: flex;
align-items: center;
gap: 10px;
}
.feature-card p {
color: #b0b0b0;
line-height: 1.6;
}
/* 下载区域样式 */
.download-section {
background: rgba(15, 22, 30, 0.8);
border-radius: 15px;
padding: 3rem;
text-align: center;
margin-bottom: 3rem;
border: 1px solid rgba(80, 150, 255, 0.2);
}
.download-section h3 {
font-size: 2rem;
margin-bottom: 1.5rem;
color: #4bcefa;
}
.download-description {
max-width: 700px;
margin: 0 auto 2rem;
color: #b0b0b0;
line-height: 1.6;
}
/* 版本列表样式 */
.version-list {
margin: 2rem auto;
max-width: 700px;
}
.version-list h4 {
font-size: 1.4rem;
margin-bottom: 1.5rem;
color: #4bcefa;
text-align: left;
}
.version-item {
background: rgba(30, 40, 50, 0.5);
border-radius: 10px;
padding: 1.2rem;
margin-bottom: 1.2rem;
display: flex;
justify-content: space-between;
align-items: center;
border: 1px solid transparent;
transition: all 0.3s ease;
}
.version-item:hover {
border-color: #2a9fd6;
}
.version-item.latest {
border: 1px solid #4CAF50;
position: relative;
}
.version-item.latest::before {
content: "最新版本";
position: absolute;
top: -10px;
right: 20px;
background: #4CAF50;
color: white;
font-size: 0.8rem;
padding: 2px 10px;
border-radius: 10px;
}
.version-info {
text-align: left;
}
.version-name {
font-size: 1.2rem;
font-weight: bold;
margin-bottom: 5px;
}
.version-details {
font-size: 0.9rem;
color: #b0b0b0;
display: flex;
flex-direction: column;
gap: 3px;
}
/* 下载按钮样式 */
.download-btn {
display: inline-flex;
align-items: center;
gap: 10px;
background: linear-gradient(90deg, #2a9fd6, #4bcefa);
color: white;
padding: 10px 20px;
border-radius: 50px;
font-weight: bold;
text-decoration: none;
transition: all 0.3s ease;
white-space: nowrap;
}
.download-btn:hover {
transform: translateY(-3px);
box-shadow: 0 5px 15px rgba(42, 159, 214, 0.4);
}
/* 安装指南 */
.installation-guide {
background: rgba(30, 40, 50, 0.3);
border-radius: 10px;
padding: 1.5rem;
margin-top: 2rem;
text-align: left;
}
.installation-guide h4 {
font-size: 1.3rem;
margin-bottom: 1rem;
color: #4bcefa;
}
.installation-guide ol {
padding-left: 1.5rem;
line-height: 1.8;
}
.installation-guide li {
margin-bottom: 10px;
}
/* 社区部分 */
.community-section {
margin-top: 3rem;
padding-top: 2rem;
border-top: 1px solid rgba(80, 150, 255, 0.2);
}
.community-section h3 {
font-size: 1.8rem;
margin-bottom: 1.5rem;
color: #4bcefa;
}
.community {
display: flex;
justify-content: center;
gap: 1.5rem;
flex-wrap: wrap;
}
.community-btn {
display: flex;
align-items: center;
gap: 10px;
padding: 10px 20px;
border-radius: 50px;
text-decoration: none;
font-weight: bold;
transition: all 0.3s ease;
}
.discord {
background: #5865F2;
color: white;
}
.qq {
background: #12B7F5;
color: white;
}
.github {
background: #333;
color: white;
}
.community-btn:hover {
transform: translateY(-3px);
box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}
/* 下载通知 */
.notification {
position: fixed;
bottom: 20px;
right: 20px;
padding: 12px 20px;
background: #2a9fd6;
color: white;
border-radius: 8px;
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
display: flex;
align-items: center;
gap: 10px;
transform: translateY(100px);
opacity: 0;
transition: all 0.3s ease;
z-index: 1001;
}
.notification.show {
transform: translateY(0);
opacity: 1;
}
.notification.success {
background: #4CAF50;
}
/* 页脚 */
footer {
background: rgba(10, 15, 20, 0.95);
padding: 2rem;
text-align: center;
margin-top: 3rem;
border-top: 1px solid rgba(80, 150, 255, 0.3);
}
.footer-logo {
font-size: 1.5rem;
font-weight: bold;
margin-bottom: 1rem;
color: #4bcefa;
}
.footer-links {
margin: 1rem 0;
}
.footer-links a {
color: #888;
margin: 0 10px;
text-decoration: none;
}
.footer-links a:hover {
color: #4bcefa;
}
.copyright {
color: #888;
font-size: 0.9rem;
}
/* 响应式设计 */
@media (max-width: 768px) {
.nav-links {
gap: 1rem;
}
.hero h2 {
font-size: 2.5rem;
}
.version-item {
flex-direction: column;
align-items: flex-start;
gap: 15px;
}
.download-btn {
align-self: flex-end;
}
}
@media (max-width: 480px) {
nav {
flex-direction: column;
gap: 1rem;
padding: 1rem 5%;
}
.hero h2 {
font-size: 2rem;
}
.download-section {
padding: 2rem 1rem;
}
.download-btn {
align-self: stretch;
justify-content: center;
}
}
</style>
</head>
<body>
<!-- 导航栏 -->
<nav>
<div class="logo">
<img src="https://i.imgur.com/1fCxZ7C.png" alt="OurWorldNetwork Logo">
<h1>OurWorldNetwork-Create</h1>
</div>
<div class="nav-links">
<a href="#home">首页</a>
<a href="#status">服务器状态</a>
<a href="#features">服务器特色</a>
<a href="#download">下载整合包</a>
</div>
</nav>
<!-- 主要内容 -->
<div class="container">
<!-- 首页横幅 -->
<section id="home" class="hero">
<h2>机械动力创造体验</h2>
<p>欢迎来到OurWorldNetwork-Create服务器!专为机械动力模组设计的1.20.1 Fabric服务器,让您在这里体验到机械动力和原版生存、生电的乐趣!</p>
<div class="ip-address">
<h3>服务器地址: mc.ourworld.cc</h3>
</div>
</section>
<!-- 服务器状态部分 -->
<section id="status" class="server-status">
<div class="status-header">
<div class="status-icon online"></div>
<h3>服务器状态</h3>
</div>
<div id="server-info">
<p>正在获取服务器状态...</p>
</div>
<div class="status-info">
<div class="status-item">
<h4>在线玩家</h4>
<p id="online-players">0</p>
</div>
<div class="status-item">
<h4>服务器版本</h4>
<p id="server-version">1.20.1</p>
</div>
<div class="status-item">
<h4>服务器延迟</h4>
<p id="server-ping">0ms</p>
</div>
</div>
<div class="player-list" id="player-list">
<!-- 玩家列表将由JavaScript填充 -->
</div>
</section>
<!-- 服务器特色介绍 -->
<section id="features" class="features">
<div class="feature-card">
<h3><i class="fas fa-cogs"></i> 核心模组</h3>
<p>以机械动力(Create)模组为核心,提供丰富的自动化、机械装置和创造玩法。感受齿轮转动的魅力,构建复杂的机械系统。</p>
</div>
<div class="feature-card">
<h3><i class="fas fa-tachometer-alt"></i> 优化体验</h3>
<p>添加了锂(Lithium)、磷(Phosphor)等优化模组,确保服务器流畅运行,即使大型机械装置也能保持高帧率。</p>
</div>
<div class="feature-card">
<h3><i class="fab fa-github"></i> 安全下载</h3>
<p>所有整合包均托管于GitHub,确保文件安全可靠,支持版本回溯,方便玩家选择适合的版本。</p>
</div>
</section>
<!-- 下载区域 -->
<section id="download" class="download-section">
<h3>整合包下载</h3>
<p class="download-description">
我们提供基于Fabric 1.20.1的定制整合包,包含所有必要的模组和配置文件。点击下方版本即可下载,所有文件均托管于GitHub,安全可靠。
</p>
<!-- 整合包版本列表 -->
<div class="version-list">
<h4>可用版本</h4>
<!-- 最新版本 -->
<div class="version-item latest">
<div class="version-info">
<div class="version-name">v1.0.2 - 稳定版</div>
<div class="version-details">
<span>更新日期: 2023-11-05</span>
<span>包含机械动力 v0.5.1.f</span>
<span>新增功能: 增加了更多装饰性模组</span>
</div>
</div>
<a href="https://github.com/your-username/your-repo/releases/download/v1.0.2/OurWorld-Create-1.20.1-v1.0.2.zip"
class="download-btn"
data-version="v1.0.2">
<i class="fas fa-download"></i> 下载
</a>
</div>
<!-- 历史版本 -->
<div class="version-item">
<div class="version-info">
<div class="version-name">v1.7.1 - Linux</div>
<div class="version-details">
<span>更新日期: 2025-7-29</span>
<span>包含机械动力 v0.5.1.f</span>
<span>不使用输入法mod,提高对所有Linux发行版的兼容,体验可能变差</span>
</div>
</div>
<a href="https://github.com/your-username/your-repo/releases/download/v1.0.1/OurWorld-Create-1.20.1-v1.0.1.zip"
class="download-btn"
data-version="v1.0.1">
<i class="fas fa-download"></i> 下载
</a>
</div>
<div class="version-item">
<div class="version-info">
<div class="version-name">v1.7.0 - Win</div>
<div class="version-details">
<span>更新日期: 2025-7-23</span>
<span>包含机械动力 v0.5.1.e</span>
<span>兼容windows,使用输入法mod保证您的游玩体验</span>
</div>
</div>
<a href="https://github.com/your-username/your-repo/releases/download/v1.0.0/OurWorld-Create-1.20.1-v1.0.0.zip"
class="download-btn"
data-version="v1.0.0">
<i class="fas fa-download"></i> 下载
</a>
</div>
</div>
<!-- 安装指南 -->
<div class="installation-guide">
<h4>安装指南</h4>
<ol>
<li>下载适合的整合包版本(.zip格式) </li>
<li>登陆正版或离线账号 </li>
<li>将整合包(*.zip)拖入启动器安装,稍等片刻安装完成</li>
<li>启动游戏直接选择服务器进入 </li>
</ol>
</div>
<!-- 社区和仓库链接 -->
<div class="community-section">
<h3>获取更多支持</h3>
<div class="community">
<a href="https://github.com/joset2012/main" class="community-btn github">
<i class="fab fa-github"></i> 查看GitHub仓库
</a>
<a href="https://discord.gg/your-invite-link" class="community-btn discord">
<i class="fab fa-discord"></i> Discord社区
</a>
<a href="https://qm.qq.com/q/UpllOLahWk" class="community-btn qq">
<i class="fab fa-qq"></i> QQ交流群
</a>
</div>
</div>
</section>
</div>
<!-- 下载通知提示 -->
<div class="notification" id="download-notification">
<i class="fas fa-info-circle"></i>
<span id="notification-text"></span>
</div>
<!-- 页脚 -->
<footer>
<div class="footer-logo">OurWorldNetwork-Create</div>
<p>服务器IP: mc.ourworld.cc | 版本: 1.20.1 Fabric</p>
<div class="footer-links">
<a href="https://github.com/your-username/your-repo">GitHub仓库</a>
<a href="#status">服务器状态</a>
<a href="#download">下载整合包</a>
</div>
<p class="copyright">© 2025 OurWorldNetwork-Create 服务器. Github开源项目,遵循MIT开源许可证。</p>
</footer>
<script>
// 服务器状态获取
async function getServerStatus() {
const serverIp = "mc.ourworld.cc";
const statusElement = document.getElementById('server-info');
const onlinePlayersElement = document.getElementById('online-players');
const serverVersionElement = document.getElementById('server-version');
const serverPingElement = document.getElementById('server-ping');
const playerListElement = document.getElementById('player-list');
try {
const response = await fetch(`https://api.mcstatus.io/v2/status/java/${serverIp}`);
const data = await response.json();
if (data.online) {
statusElement.innerHTML = `<p>服务器在线! 欢迎加入游戏</p>`;
onlinePlayersElement.textContent = `${data.players.online}/${data.players.max}`;
serverVersionElement.textContent = data.version.name_clean;
serverPingElement.textContent = `${data.round_trip_latency}ms`;
if (data.players.list && data.players.list.length > 0) {
let playerListHTML = '<h4>在线玩家</h4><ul>';
data.players.list.forEach(player => {
playerListHTML += `<li>${player.name_clean}</li>`;
});
playerListHTML += '</ul>';
playerListElement.innerHTML = playerListHTML;
} else {
playerListElement.innerHTML = '<p>当前没有玩家在线</p>';
}
} else {
statusElement.innerHTML = '<p>服务器当前离线</p>';
playerListElement.innerHTML = '<p>服务器离线</p>';
document.querySelector('.status-icon').classList.add('offline');
}
} catch (error) {
console.error('获取服务器状态失败:', error);
statusElement.innerHTML = '<p>获取服务器状态失败,请稍后再试</p>';
}
}
// 下载功能实现
function setupDownloadFunctionality() {
const downloadButtons = document.querySelectorAll('.download-btn');
const notification = document.getElementById('download-notification');
const notificationText = document.getElementById('notification-text');
downloadButtons.forEach(button => {
button.addEventListener('click', function(e) {
const version = this.getAttribute('data-version');
// 显示下载通知
notificationText.textContent = `正在下载整合包 v${version}...`;
notification.classList.add('show');
// 5秒后隐藏通知
setTimeout(() => {
notification.classList.remove('show');
}, 5000);
});
});
}
// 平滑滚动
function setupSmoothScroll() {
document.querySelectorAll('a[href^="#"]').forEach(anchor => {
anchor.addEventListener('click', function(e) {
e.preventDefault();
const targetId = this.getAttribute('href');
const targetElement = document.querySelector(targetId);
if (targetElement) {
window.scrollTo({
top: targetElement.offsetTop - 80,
behavior: 'smooth'
});
}
});
});
}
// 页面加载完成后初始化
document.addEventListener('DOMContentLoaded', () => {
getServerStatus();
setupDownloadFunctionality();
setupSmoothScroll();
// 每5分钟更新一次服务器状态
setInterval(getServerStatus, 5 * 60 * 1000);
});
/*
配置说明:
1. 将所有GitHub链接替换为实际地址:
- 格式:https://github.com/你的用户名/你的仓库/releases/download/版本号/文件名.zip
- 确保文件已上传到GitHub Releases中
2. 添加新版本的方法:
- 复制一个version-item区块
- 更新版本号、日期、描述和下载链接
- 如果是最新版本,保留latest类,否则移除
3. 整合包准备建议:
- 使用.zip格式压缩
- 包含完整的游戏目录结构
- 预先配置好所有必要的模组和设置
- 在README中说明版本差异和更新内容
*/
</script>
</body>
</html>