-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
411 lines (371 loc) · 13.6 KB
/
Copy pathindex.html
File metadata and controls
411 lines (371 loc) · 13.6 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<script src="https://cdn.tailwindcss.com"></script>
<link href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.7.2/css/all.min.css" rel="stylesheet">
<title>welcome to my world</title>
<style>
/* 通用样式 */
body {
font-family: 'Inter', sans-serif;
margin: 0;
padding: 0;
color: white;
background-color: #1a202c;
}
/* 导航栏样式 */
.header-bg {
background-color: rgba(0, 0, 0, 0.3);
backdrop-filter: blur(8px);
transition: background-color 0.3s ease;
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}
.header-bg:hover {
background-color: rgba(0, 0, 0, 0.4);
}
/* 导航栏容器样式 */
.nav-container {
max-width: 1280px;
margin: 0 auto;
padding: 0 1.5rem;
display: flex;
justify-content: space-between;
align-items: center;
height: 4rem;
}
/* 导航栏 logo 样式 */
.nav-logo {
font-size: 1.5rem;
font-weight: 700;
color: white;
cursor: pointer;
transition: color 0.3s ease;
}
.nav-logo:hover {
color: #3b82f6;
}
/* 桌面端导航菜单样式 */
.nav-menu {
display: none;
@media (min-width: 768px) {
display: flex;
}
}
.nav-list {
list-style: none;
margin: 0;
padding: 0;
display: flex;
gap: 1.5rem;
}
.nav-link {
display: block;
color: white;
text-decoration: none;
padding: 0.5rem 1rem;
border-radius: 0.375rem;
transition: all 0.3s ease;
}
.nav-link:hover {
background-color: rgba(255, 255, 255, 0.1);
color: #3b82f6;
}
/* 移动端菜单按钮样式 */
.menu-button {
display: block;
@media (min-width: 768px) {
display: none;
}
background: none;
border: none;
color: white;
font-size: 1.5rem;
cursor: pointer;
transition: transform 0.3s ease;
}
.menu-button:active {
transform: scale(0.9);
}
/* 移动端菜单样式 */
.mobile-menu {
display: none;
background-color: rgba(0, 0, 0, 0.3);
backdrop-filter: blur(8px);
position: absolute;
top: 4rem;
left: 0;
right: 0;
padding: 1.5rem;
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}
.mobile-menu.open {
display: block;
}
.mobile-nav-list {
list-style: none;
margin: 0;
padding: 0;
display: flex;
flex-direction: column;
gap: 1rem;
}
.mobile-nav-link {
display: block;
color: white;
text-decoration: none;
padding: 0.5rem 1rem;
border-radius: 0.375rem;
transition: all 0.3s ease;
}
.mobile-nav-link:hover {
background-color: rgba(255, 255, 255, 0.1);
color: #3b82f6;
}
/* 各部分通用容器样式 */
.section-container {
max-width: 1280px;
margin: 0 auto;
padding: 4rem 1.5rem;
}
/* 第一部分样式 */
.part_1 {
background-color: #1a202c;
text-align: center;
padding: 10rem 0;
}
.part_1_title h2 {
font-size: 2.25rem;
font-weight: 700;
margin-bottom: 1rem;
}
.part_1_title p {
font-size: 1.25rem;
line-height: 1.75rem;
margin-bottom: 0.5rem;
}
.guide {
margin-top: 2rem;
}
.guide a {
color: white;
transition: color 0.3s ease;
}
.guide a:hover {
color: #3b82f6;
}
/* 其他部分样式 */
.brief_major {
font-size: 1.5rem;
font-weight: 700;
margin-bottom: 1rem;
}
.brief_paragraph p {
margin-bottom: 1rem;
}
/* 工具列表样式 */
.list ul {
list-style: none;
margin: 0;
padding: 0;
display: grid;
grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
gap: 1.5rem;
}
.list li {
background-color: rgba(255, 255, 255, 0.1);
border-radius: 0.375rem;
overflow: hidden;
transition: transform 0.3s ease;
}
.list li:hover {
transform: scale(1.05);
}
.list figcaption {
padding: 1rem;
text-align: center;
}
.list img {
display: block;
width: 100%;
height: auto;
}
/* 页脚样式 */
footer {
background-color: rgba(0, 0, 0, 0.3);
padding: 2rem 0;
text-align: center;
}
footer .copyright {
color: white;
}
</style>
</head>
<body onclick="click_fun(event)">
<nav class="header-bg">
<div class="nav-container">
<!-- 导航栏 logo -->
<div class="nav-logo">为你筑梦</div>
<!-- 桌面端导航菜单 -->
<div class="nav-menu">
<ul class="nav-list">
<li><a href="#part_1" class="nav-link">首页</a></li>
<li><a href="https://www.csdn.net/" class="nav-link">CSDN</a></li>
<li><a href="#part_3" class="nav-link">自我介绍</a></li>
<li><a href="https://www.runoob.com/tags/att-a-href.html" class="nav-link">Runoob</a></li>
<li><a href="#part_2" class="nav-link">致最真挚的</a></li>
<li><a href="#part_5" class="nav-link">关于</a></li>
</ul>
</div>
<!-- 移动端菜单按钮 -->
<button class="menu-button" id="menu-toggle">
<i class="fas fa-bars"></i>
</button>
</div>
<!-- 移动端菜单 -->
<div class="mobile-menu" id="mobile-menu">
<ul class="mobile-nav-list">
<li><a href="#part_1" class="mobile-nav-link">首页</a></li>
<li><a href="https://www.csdn.net/" class="mobile-nav-link">CSDN</a></li>
<li><a href="#part_3" class="mobile-nav-link">自我介绍</a></li>
<li><a href="https://www.runoob.com/tags/att-a-href.html" class="mobile-nav-link">Runoob</a></li>
<li><a href="#part_2" class="mobile-nav-link">致最真挚的</a></li>
<li><a href="#part_5" class="mobile-nav-link">关于</a></li>
</ul>
</div>
</nav>
<script>
const menuToggle = document.getElementById('menu-toggle');
const mobileMenu = document.getElementById('mobile-menu');
menuToggle.addEventListener('click', () => {
mobileMenu.classList.toggle('open');
});
// 原生js写法
window.onload = function () {
// 设置点击nav-list的样式
let navUl = document.getElementById("nav-list");
let navLi = navUl.getElementsByTagName("li");
for (let index = 0; index < navLi.length; index++) {
navLi[index].onclick = function () {
for (let i = 0; i < navLi.length; i++) {
navLi[i].className = "";
}
this.className = "current";
};
}
}
</script>
<div class="part_1" id="part_1">
<div class="part_1_title">
<div class="inner">
<h2>今日心情</h2>
</div>
<div class="title">
<p>与天奋斗,其乐无穷</p>
<p>与地奋斗,其乐无穷</p>
<p>与人奋斗,其乐无穷</p>
<p>热爱生活,勤学笃志</p>
<p>排除万难去争取胜利</p>
</div>
</div>
<div class="guide">
<a href="javascript:void(0);">
<span class="down">
<!-- svg矢量图 -->
<svg viewBox="0 0 1792 1024" width="16" height="16">
<path d="M21.824 126.208L834.624 998.656a92.672 92.672 0 0 0 126.976 0L1770.304 126.208C1819.2 77.568 1780.544 0 1706.816 0H85.312C11.84 0 -27.328 77.312 21.824 126.208z" fill="#ffffff" p-id="3369"></path>
</svg>
</span>
</a>
</div>
</div>
<div class="part_2 section-container" id="part_2">
<div class="brief_major">
— 学习 —
</div>
<div class="brief_paragraph">
<p>谁是我们的敌人,谁是我们的朋友,这个问题是革命的首要问题。</p>
<p>什么叫问题?问题就是事物的矛盾。哪里有没有解决的矛盾,哪里就有问题。因为我们是为人民服务的,所以,我们如果有缺点就不怕别人批评</p>
<p>我们走过了许多弯路。但错误常常是正确的先导。错误能帮助人头脑清醒。</p>
<p>世界上只有猫和猫做朋友的事,没有猫和老鼠做朋友的事</p>
<p>待人以诚而去其诈,待人以宽而去其隘</p>
<p>凡有损人利己之心的人,其结果都不妙</p>
<p>研究任何过程,如果是存在两个以上矛盾的复杂过程的话,就要用全力去找出它的主要矛盾。捉住了这个主要矛盾,一切问题就迎刃而结解了</p>
<p>一切新的东西都是从艰苦斗争中锻炼出来的</p>
<p>我认为聪明、老实二义,足以解决一切困难问题。……聪谓多问多思,实谓实事求是。持之以恒,行之有素,总是比较能够做好事情的。</p>
</div>
</div>
<div class="part_3 section-container" id="part_3">
<div>自我介绍和个人项目 待更新</div>
</div>
<div class="part_4 section-container" id="part_4">
<div class="brief_major">
— 工具 —
</div>
<div class="list">
<ul>
<li>
<figcaption>
<a href="https://www.acwing.com/activity/content/introduction/48/" target="_blank">算法学习</a>
<img src="static/images/acwing.jpg" width="100%" height="220" />
</figcaption>
</li>
<li>
<figcaption>
<a href="https://www.geogebra.org/calculator" target="_blank">3D计算器</a>
<img src="static/images/爱的艺术.jpg" width="100%" height="220" />
</figcaption>
</li>
<li>
<figcaption>
<a href="https://www.planbingo.com/" target="_blank">长难句练习</a>
<img src="static/images/english.jpg" width="100%" height="220" />
</figcaption>
</li>
<li>
<figcaption>
<a href="https://kingpolewang.github.io/" target="_blank">请务必刷新1000000次</a>
<img src="static/images/zhishixingqiu.jpg" width="100%" height="220" />
</figcaption>
</li>
<li>
<figcaption>
<a href="https://weread.qq.com/web/reader/d7d32d70722dd429d7d723d?" target="_blank">书-爱的艺术</a>
<img src="static/images/gudu.jpg" width="100%" height="220" />
</figcaption>
</li>
<li>
<figcaption>
<a href="https://kingpolewang.github.io/#part_3" target="_blank">个人项目</a>
<img src="static/images/qingchun.jpg" width="100%" height="220" />
</figcaption>
</li>
</ul>
</div>
</div>
<div class="part_5 section-container" id="part_5">
<div class="brief_major">
— 自我叙述 —
</div>
<div class="brief_paragraph">
<p>一名计算机科学与技术专业在读硕士研究生</p>
<p>擅长技术:SpringBoot+Vue+Mybatis ,Django</p>
<p>专业兴趣:算法,机器学习,深度学习,大数据处理</p>
<p>任一兴趣交流请致:w_king0831@163.com</p>
<p>目前在学习:人工智能,Unit3D</p>
<p>保持年轻的秘诀:谎报年龄,还有每天都偷着乐!</p>
</div>
</div>
<footer>
<div class="container">
<div class="more"></div>
<div class="copyright">Copyright © 20250 保持热爱</div>
</div>
</footer>
<!-- 背景雪花特效 -->
<script src="static/js/snowflakes.min.js"></script>
<script src="static/js/snow_load.js"></script>
<script src="https://api.vvhan.com/api/script/yinghua"></script>
</body>
</html>