-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
492 lines (428 loc) · 15.2 KB
/
index.html
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
<!DOCTYPE html>
<html>
<head>
<title>伊洺驿站</title>
<meta charset="UTF-8">
<link href="https://fonts.googleapis.com/css2?family=ZCOOL+KuaiLe&display=swap" rel="stylesheet">
<link rel="icon" href="favicon.ico" type="image/x-icon">
<link rel="shortcut icon" href="favicon.ico" type="image/x-icon">
<style>
body {
font-family: 'ZCOOL KuaiLe', cursive;
text-align: center;
background-image: url('background.mp4');
background-repeat: no-repeat;
background-size: cover;
background-position: center;
background-attachment: fixed;
margin:0;
}
/* 通用样式 */
.container {
display: flex;
flex-direction: column;
align-items: center;
width: 80%;
margin:auto;
}
/* 手机竖屏样式 */
@media only screen and (max-width: 600px)and (orientation:portrait){
.container {
width: 90%; /* 调整手机样式的宽度 */
}
}
/* 横屏状态下的样式调整 */
@media only screen and (max-width:1024px) and (orientation: landscape) {
.container {
width: 70%; /* 调整容器的宽度 */
}
.nav-link1,
.nav-link2,
.nav-link3,
.nav-link4,
.nav-link5,
.nav-link6,
.nav-link7 {
margin: 10px 5px; /* 调整按钮之间的间距 */
}
}
/* 电脑样式 */
@media only screen and (min-width: 601px) {
.container {
width: 50%; /* 调整电脑样式的宽度 */
}
}
/* 平板样式 */
@media only screen and (min-width: 601px) and (max-width: 1024px) {
.container {
width: 70%; /* 调整平板样式的宽度 */
}
}
nav {
background-color: rgba(248, 249, 250, 0.8);
padding: 10px;
position: relative;
}
nav a {
margin-right: 10px;
}
/* 公共标题样式 */
.title {
font-size: 2em;
color: white;
text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
height: 20vh;
}
#bilibili-videos {
margin-top: 20px;
}
.navbar {
position:relative;
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
height: 100vh;
font-size: 2em;
}
.nav-link1 {
text-decoration: none;
/* Existing styles... */
opacity: 0; /* Initially set the opacity to 0 */
transform: translateY(20px); /* Move the button down by 20px */
transition: opacity 0.5s ease, transform 0.5s ease; /* Add transition effects */
color:rgb(39, 134, 242)
}
/* Add animation for the entrance effect */
.nav-link1.animate {
opacity: 1;
transform: translateY(0);
}
/* Add button halo effect on hover */
.nav-link1:hover::before {
transform: scale(1.3);
}
.nav-link-container {
background-color: pink;
border-radius: 20px; /* Adjust the radius as needed */
padding: 5px 15px; /* Adjust padding as needed */
margin: 10px 0; /* Adjust margin as needed */
display: inline-block; /* Display as inline block */
}
.arrow {
position: fixed;
width: 1px;
top:40px;
right:400px;
border-top: 8px solid transparent;
border-bottom: 8px solid transparent;
border-left: 15px solid white; /* 可以根据需要调整箭头的大小和颜色 */
}
.nav-link2{
position:fixed; /* 将元素定位为绝对定位 */
top: 20px; /* 距离顶部的距离 */
right: 325px; /* 距离右侧的距离 */
font-size:12px;
margin: 10px 10px;
color: rgb(119, 64, 238);
border: 1px solid black; /* 添加一个橙色的边框 */
border-radius: 50px; /* 设置边框的圆角 */
padding: 10px; /* 添加一些内边距,使文本离边框有一些距离 */
display:inline-block;
background-color: rgb(240, 228, 163);
text-decoration: none; /* 移除链接的下划线 */
font-size: 15px;
}
.nav-link3{
position:fixed; /* 将元素定位为绝对定位 */
top: 20px; /* 距离顶部的距离 */
right: 255px; /* 距离右侧的距离 */
font-size:12px;
margin: 10px 10px;
color: rgb(119, 64, 238);
border: 1px solid black; /* 添加一个橙色的边框 */
border-radius: 50px; /* 设置边框的圆角 */
padding: 10px; /* 添加一些内边距,使文本离边框有一些距离 */
display:inline-block;
background-color: rgb(240, 228, 163);
text-decoration: none; /* 移除链接的下划线 */
font-size: 15px;
}
.nav-link4{
position:fixed; /* 将元素定位为绝对定位 */
top: 19px; /* 距离顶部的距离 */
right: 85px; /* 距离右侧的距离 */
font-size:12px;
margin: 10px 10px;
color: rgb(119, 64, 238);
border: 1px solid black; /* 添加一个橙色的边框 */
border-radius: 50px; /* 设置边框的圆角 */
padding: 10px; /* 添加一些内边距,使文本离边框有一些距离 */
display:inline-block;
background-color:rgb(240, 228, 163);
text-decoration: none; /* 移除链接的下划线 */
font-size: 15px;
}
.nav-link5{
position:fixed; /* 将元素定位为绝对定位 */
top: 19px; /* 距离顶部的距离 */
right: 180px; /* 距离右侧的距离 */
font-size:12px;
margin: 10px 10px;
color: rgb(119, 64, 238);
border: 1px solid black; /* 添加一个橙色的边框 */
border-radius: 50px; /* 设置边框的圆角 */
padding: 10px; /* 添加一些内边距,使文本离边框有一些距离 */
display:inline-block;
background-color: rgb(240, 228, 163);
text-decoration: none; /* 移除链接的下划线 */
font-size: 15px;
}
.nav-link6 {
position: fixed;
top: 19px;
right: 5px;
font-size: 12px;
margin: 10px;
color: rgb(119, 64, 238);
border: 1px solid black;
border-radius: 50px;
padding: 10px;
display: inline-block;
background-color: rgb(240, 228, 163);
text-decoration: none;
font-size: 15px;
}
.nav-link7 {
position: absolute;
top:260px;
left: 110px;
font-size: 40px;
font-weight: bold;
color: rgb(119, 64, 238);
text-decoration: none; /* 移除链接的下划线 */
}
.nav-link1:hover, .nav-link2:hover,.nav-link3:hover,.nav-link4:hover,.nav-link5:hover,.nav-link6:hover,.nav-link7:hover,.toggle-button:hover {
background-color: rgb(180, 94, 77); /* 鼠标悬停时的背景颜色 */
color: white; /* 鼠标悬停时的文字颜色 */
}
.background-video {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
object-fit: cover;
z-index: -1;
}
.title1 {
font-size: 2em;
color: white;
text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
height: 20vh;
opacity: 0; /* 初始透明度设置为 0 */
transform: translateX(-20px); /* 初始位置向左偏移 */
transition: opacity 1s ease-in-out, transform 1s ease-in-out; /* 添加渐变动画效果 */
}
.small-text2 {
position: fixed;
bottom: 44px;
left: 40px;
font-size: 30px;
color: white;
}
.small-text3{
position:fixed;
top:38px;
right:428px;
color:white;
font-size: 18px;
}
nav, #bilibili-videos {
background-color: transparent;
}
#bilibili-videos iframe {
width: 500px;
height: 200px;
float:right;
margin-right:0px;
}
.sidebar-container {
position: fixed;
top: 390px;
right: 0px;
height: 20%;
}
.sidebar {
width: 250px;
height: 100%;
background-color: rgba(0, 0, 0, 0.7);
transform: translateX(100%);
transition: transform 0.5s;
font-size: 16px;
color: white;
font-weight: bold;
text-align: center;
line-height: 1.5;
}
.sidebar.sidebar-open {
transform: translateX(0);
}
/* 可爱风格的按钮样式 */
.toggle-button {
position: absolute;
top: 70px;
right: 250px;
background-color: #ff6b6b; /* 按钮背景颜色 */
color: white;
padding: 10px;
border: none;
cursor: pointer;
font-size: 15px;
font-weight: bold;
border-radius: 50px; /* 圆角 */
}
.sidebar.sidebar-open {
transform: translateX(0);
}
.music-toggle-container {
position: absolute;
top: 20px;
left: 20px;
}
.music-toggle-button {
background-color: #ff6b6b; /* 按钮背景颜色 */
color: white;
padding: 10px 20px;
border: none;
cursor: pointer;
font-size: 15px;
font-weight: bold;
border-radius: 50px; /* 圆角 */
transition: background-color 0.3s ease, transform 0.3s ease;
}
.music-toggle-button:hover {
background-color: #ff4f4f; /* 鼠标悬停时的背景颜色 */
}
.music-toggle-button:focus {
outline: none;
}
</style>
</head>
<body>
<audio id="bg-music" loop>
<source src="music.mp3" type="audio/mpeg">
<!-- 你也可以在这里添加其他音频格式的 source 元素 -->
</audio>
<div class="music-toggle-container">
<button id="music-toggle" class="music-toggle-button">点击屏幕播放音乐🎵</button>
</div>
<video class="background-video" autoplay loop muted>
<source src="background.mp4" type="video/mp4">
<!-- 你也可以在这里添加其他视频格式的 source 元素 -->
</video>
<div class="overlay"></div>
<div class="small-text2">YIZHAN.YIMING430</div>
<div class="small-text3">其他网址</div>
<div class="arrow"></div>
<nav class="navbar">
<a class="nav-link2" href="https://www.baidu.com">百度</a>
<a class="nav-link3" href="https://www.google.com">谷歌</a>
<a class="nav-link4" href="https://www.bilibili.com">哔哩哔哩</a>
<a class="nav-link5" href="https://www.douyin.com">抖音</a>
<a class="nav-link6" href="https://github.com">Github</a>
<a class="nav-link7" href="about.html">一个小白的小窝<br>点这里_(•̀ω•́ 」∠)_</a>
<div class="title1">欢迎你来到伊洺驿站<br> yizhan.yiming430.xyz</div>
<div class="nav-link-container">
<a class="nav-link1" href="index.html">主页</a>
</div>
<div id="bilibili-videos">
<iframe src="https://player.bilibili.com/player.html?aid=659738412&bvid=BV1bh4y1Q7fV&cid=1230784022&page=1" scrolling="no" border="0" frameborder="no" framespacing="0" allowfullscreen="true"> </iframe>
</div>
<div class="nav-link-container">
<a class="nav-link1" href="https://space.bilibili.com/442149069">bilibili小屋</a>
</div>
<div class="nav-link-container">
<a class="nav-link1" href="https://bing.yiming430.xyz">BingAI(伊洺部署,不需魔法,但不稳定)</a>
</div>
<div class="nav-link-container">
<a class="nav-link1" href="https://www.bing.com/search?q=Bing+AI&showconv=1&FORM=hpcodx">Bing AI(官网,需要魔法)</a>
</div>
<div class="nav-link-container">
<a class="nav-link1" href="https://evndt.aitianhu.site/#/chat/1002 ">GPT3.5/4.0(免费无限制,不稳定)</a>
</div>
<div class="nav-link-container">
<a class="nav-link1" href="https://gpt.yiming430.xyz/">GPT3.5(伊洺部署,免费无限制)</a>
</div>
<div class="nav-link-container">
<a class="nav-link1" href="https://ncml.yiming430.xyz/zh">chimera3.5/4.0(伊洺部署,免费够用)</a>
</div>
<div class="nav-link-container">
<a class="nav-link1" href="https://c.binjie.fun/#/chat/1692438393770">GPT3.5(免费无限制)</a>
</div>
</nav>
<div class="sidebar-container">
<div class="sidebar">
<ul>
<li>作者:伊洺</li>
<li>联系QQ:2143998586</li>
<li>说明:这是小白第一次搭建自己的网站,可供大家使用,关于添加内容和外观修改如果大家有什么好的建议可以联系上面的QQ哦
</ul>
<button class="toggle-button" onclick="toggleSidebar()">更多</button>
</div>
<script>
document.addEventListener("DOMContentLoaded", function() {
const title = document.querySelector('.title1');
// 使用 setTimeout 设置一个延迟,以触发渐变动画
setTimeout(() => {
title.style.opacity = 1; // 设置透明度为 1,实现渐现效果
title.style.transform = 'translateX(0)'; // 将位置恢复到原始位置
}, 500); // 延迟 500 毫秒(0.5 秒)
});
const toggleButton = document.querySelector('.toggle-button');
const sidebar = document.querySelector('.sidebar');
toggleButton.addEventListener('click', () => {
sidebar.classList.toggle('sidebar-open');
});
// Add a JavaScript function to trigger the entrance animation
document.addEventListener("DOMContentLoaded", function() {
const navLinks = document.querySelectorAll('.nav-link1');
navLinks.forEach((link, index) => {
setTimeout(() => {
link.classList.add('animate');
}, index * 150); // Add a delay for each button
});
});
document.addEventListener("DOMContentLoaded", function() {
// Rest of your existing code...
const bgMusic = document.getElementById('bg-music');
const musicToggle = document.getElementById('music-toggle');
let isMusicPlaying = false;
musicToggle.addEventListener('click', function(event) {
event.stopPropagation();
if (isMusicPlaying) {
bgMusic.pause();
isMusicPlaying = false;
} else {
bgMusic.play();
isMusicPlaying = true;
}
});
bgMusic.addEventListener('ended', function() {
bgMusic.currentTime = 0;
bgMusic.play();
});
bgMusic.muted = true;
document.addEventListener('click', function() {
if (bgMusic.paused) {
bgMusic.muted = false;
bgMusic.play();
}
});
// Rest of your existing code...
});
</script>
</nav>
</nav>
</body>
</html>