-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
462 lines (221 loc) · 11.4 KB
/
index.html
File metadata and controls
462 lines (221 loc) · 11.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
<!DOCTYPE html>
<html lang='en' ><meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<title>Eighthoursleep</title>
<meta name="generator" content="Hugo Eureka 0.8.2" />
<link rel="stylesheet" href="/css/eureka.min.css">
<script defer src="/js/eureka.min.js"></script>
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link rel="preload"
href="https://fonts.googleapis.com/css2?family=Lora:wght@400;600;700&family=Noto+Serif+SC:wght@400;600;700&display=swap"
as="style" onload="this.onload=null;this.rel='stylesheet'">
<link rel="stylesheet" href="https://cdn.jsdelivr.net/gh/highlightjs/cdn-release@10.1.0/build/styles/solarized-light.min.css"
media="print"
onload="this.media='all';this.onload=null" crossorigin>
<script defer src="https://cdn.jsdelivr.net/gh/highlightjs/cdn-release@10.1.0/build/highlight.min.js"
crossorigin></script>
<script defer src="https://cdn.jsdelivr.net/gh/highlightjs/cdn-release@10.1.0/build/languages/dart.min.js"
crossorigin></script>
<script defer src="https://cdn.jsdelivr.net/npm/@fortawesome/fontawesome-free@5.14.0/js/all.min.js"
integrity="sha256-uNYoXefWRqv+PsIF/OflNmwtKM4lStn9yrz2gVl6ymo=" crossorigin></script>
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/katex@0.12.0/dist/katex.min.css"
integrity="sha384-AfEj0r4/OFrOo5t7NnNe46zW/tFgW6x/bCJG8FqQCEo3+Aro6EYUG4+cU+KJWu/X" media="print"
onload="this.media='all';this.onload=null" crossorigin>
<script defer src="https://cdn.jsdelivr.net/npm/katex@0.12.0/dist/katex.min.js"
integrity="sha384-g7c+Jr9ZivxKLnZTDUhnkOnsh30B4H0rpLUpJ4jAIKs4fnJI+sEnkvrMWph2EDg4" crossorigin></script>
<script defer src="https://cdn.jsdelivr.net/npm/katex@0.12.0/dist/contrib/auto-render.min.js"
integrity="sha384-mll67QQFJfxn0IYznZYonOWZ644AWYC+Pt2cHqMaRhXVrursRwvLnLaebdGIlYNa" crossorigin></script>
<script>
document.addEventListener("DOMContentLoaded", function () {
renderMathInElement(document.body, {
delimiters: [
{ left: "$$", right: "$$", display: true },
{ left: "$", right: "$", display: false },
{ left: "\\(", right: "\\)", display: false },
{ left: "\\[", right: "\\]", display: true }
],
});
});
</script>
<script defer src="https://cdn.jsdelivr.net/npm/mermaid@8.9.2/dist/mermaid.min.js"
integrity="sha256-Zmpaaj+GXFsPF5WdPArSrnW3b30dovldeKsW00xBVwE=" crossorigin></script>
<link rel="icon" type="image/png" sizes="32x32" href="/images/QuestIcon_hu003e7ef65d85521c4c760772b45a3f36_59284_32x32_fill_box_center_2.png">
<link rel="apple-touch-icon" sizes="180x180" href="/images/QuestIcon_hu003e7ef65d85521c4c760772b45a3f36_59284_180x180_fill_box_center_2.png">
<meta name="description"
content="Eureka is a elegant and powerful theme for Hugo.">
<meta property="og:title" content="Eighthoursleep" />
<meta property="og:type" content="website" />
<meta property="og:image" content="/images/QuestIcon.png">
<meta property="og:url" content="/" />
<meta property="og:description" content="Eureka is a elegant and powerful theme for Hugo." />
<meta property="og:locale" content="en" />
<meta property="og:site_name" content="Eighthoursleep" />
<meta property="og:updated_time" content="2021-07-18T13:43:43+08:00" />
<meta property="article:section" content="" />
<link rel="alternate" type="application/rss+xml" href="/index.xml" title="Eighthoursleep" />
<body class="flex flex-col min-h-screen">
<header class="fixed flex items-center w-full min-h-16 pl-scrollbar z-50 bg-secondary-bg shadow-sm">
<div class="w-full max-w-screen-xl mx-auto"><script>
let storageColorScheme = localStorage.getItem("lightDarkMode")
if (((storageColorScheme == 'Auto' || storageColorScheme == null) && window.matchMedia("(prefers-color-scheme: dark)").matches) || storageColorScheme == "Dark") {
document.getElementsByTagName('html')[0].classList.add('dark')
}
</script>
<nav class="flex items-center justify-between flex-wrap px-4 py-4 md:py-0">
<a href="/" class="mr-6 text-primary-text text-xl font-bold">Eighthoursleep</a>
<button id="navbar-btn" class="md:hidden flex items-center px-3 py-2" aria-label="Open Navbar">
<i class="fas fa-bars"></i>
</button>
<div id="target"
class="hidden block md:flex md:flex-grow md:justify-between md:items-center w-full md:w-auto text-primary-text z-20">
<div class="md:flex md:h-16 text-sm md:flex-grow pb-4 md:pb-0 border-b md:border-b-0">
<a href="/#about" class="block mt-4 md:inline-block md:mt-0 md:h-(16-4px) md:leading-(16-4px) box-border md:border-t-2 md:border-b-2 border-transparent mr-4">关于我</a>
<a href="/posts/" class="block mt-4 md:inline-block md:mt-0 md:h-(16-4px) md:leading-(16-4px) box-border md:border-t-2 md:border-b-2 border-transparent mr-4">文章</a>
<a href="/docs/" class="block mt-4 md:inline-block md:mt-0 md:h-(16-4px) md:leading-(16-4px) box-border md:border-t-2 md:border-b-2 border-transparent mr-4">文档</a>
</div>
<div class="flex">
<div class="relative pt-4 md:pt-0">
<div class="cursor-pointer hover:text-eureka" id="lightDarkMode">
<i class="fas fa-adjust"></i>
</div>
<div class="fixed hidden inset-0 opacity-0 h-full w-full cursor-default z-30" id="is-open">
</div>
<div class="absolute flex flex-col left-0 md:left-auto right-auto md:right-0 hidden bg-secondary-bg w-48 rounded py-2 border border-tertiary-bg cursor-pointer z-40"
id='lightDarkOptions'>
<span class="px-4 py-1 hover:text-eureka" name="Light">Light</span>
<span class="px-4 py-1 hover:text-eureka" name="Dark">Dark</span>
<span class="px-4 py-1 hover:text-eureka" name="Auto">Auto</span>
</div>
</div>
</div>
</div>
<div class="fixed hidden inset-0 opacity-0 h-full w-full cursor-default z-0" id="is-open-mobile">
</div>
</nav>
<script>
let element = document.getElementById('lightDarkMode')
if (storageColorScheme == null || storageColorScheme == 'Auto') {
document.addEventListener('DOMContentLoaded', () => {
window.matchMedia("(prefers-color-scheme: dark)").addEventListener('change', switchDarkMode)
})
} else if (storageColorScheme == "Light") {
element.firstElementChild.classList.remove('fa-adjust')
element.firstElementChild.setAttribute("data-icon", 'sun')
element.firstElementChild.classList.add('fa-sun')
} else if (storageColorScheme == "Dark") {
element.firstElementChild.classList.remove('fa-adjust')
element.firstElementChild.setAttribute("data-icon", 'moon')
element.firstElementChild.classList.add('fa-moon')
}
document.addEventListener('DOMContentLoaded', () => {
getcolorscheme();
switchBurger();
});
</script>
</div>
</header>
<main class="flex-grow pt-16">
<div class="pl-scrollbar bg-secondary-bg"
>
<div class="max-w-screen-xl mx-auto">
<div id="about" class="lg:w-3/4 mx-auto px-6 md:px-8 xl:px-12 py-12">
<div class="flex flex-col md:flex-row items-center justify-center mb-12">
<div class="flex-none w-48 mx-auto md:ml-0 md:mr-8 md:pr-8 md:border-r">
<img src="/images/dovahkiin.jpg" class="rounded-full" alt="Avatar">
</div>
<div class="flex-grow mt-4 md:mt-0">
<div class="text-3xl py-4">Eighthoursleep</div>
<div class="w-3/12 xl:w-2/12 border-b"></div>
<div class="flex items-center pt-4">
<i class="fas fa-user"></i>
<div class="flex flex-wrap">
<span class="pl-4">游戏客户端开发</span>
<a href="" class="pl-4">深圳某游戏公司</a>
</div>
</div>
</div>
<div class="flex md:flex-col justify-center items-end ml-8">
<div class="pb-2 pr-4 md:pr-0 pt-4 md:pt-0">
<a href="mailto:mingjun4503@163.com"><i class="fas fa-envelope"></i></a>
</div>
<div class="pb-2 pr-4 md:pr-0 pt-4 md:pt-0">
<a href="https://space.bilibili.com/31805388"><i class="fab fa-youtube"></i></a>
</div>
<div class="pb-2 pr-4 md:pr-0 pt-4 md:pt-0">
<a href="https://github.com/weimingjuncn"><i class="fab fa-github"></i></a>
</div>
</div>
</div>
<div class="content">
<h2 id="自我介绍">自我介绍</h2>
<p>玩过各类单机游戏,不论冷门或热门。熟悉:Unity, UE, Laya。</p>
</div>
</div>
</div>
</div>
<div class="pl-scrollbar bg-primary-bg"
>
<div class="max-w-screen-xl mx-auto">
<div id="pages" class="lg:w-3/4 mx-auto px-6 md:px-8 xl:px-12 py-12">
<h2 class=" font-bold text-3xl my-4">最近文章</h2>
<div class="overflow-hidden divide-y">
<div class="py-6">
<div class="flex flex-col-reverse lg:flex-row justify-between">
<div class="w-full ">
<div class="mb-4">
<a href="/posts/%E5%A6%82%E4%BD%95%E6%90%AD%E5%BB%BAhugo%E5%8D%9A%E5%AE%A2/" class="font-bold text-xl hover:text-eureka">如何搭建Hugo博客</a>
</div>
<div class="content">
梗概
</div>
<div class="flex flex-wrap flex-row items-center mt-2 text-tertiary-text">
<div class="mr-6 my-2">
<i class="fas fa-calendar mr-1"></i>
<span>2021-07-18</span>
</div>
<div class="mr-6 my-2">
<i class="fas fa-clock mr-1"></i>
<span>1 min read</span>
</div>
</div>
</div>
</div>
</div>
<div class="py-6">
<div class="flex flex-col-reverse lg:flex-row justify-between">
<div class="w-full ">
<div class="mb-4">
<a href="/posts/%E7%BC%96%E8%AF%91%E5%92%8C%E8%BF%90%E8%A1%8C%E4%B8%80%E4%B8%AAcpp%E6%96%87%E4%BB%B6/" class="font-bold text-xl hover:text-eureka">编译和运行一个Cpp文件</a>
</div>
<div class="content">
</div>
<div class="flex flex-wrap flex-row items-center mt-2 text-tertiary-text">
<div class="mr-6 my-2">
<i class="fas fa-calendar mr-1"></i>
<span>2021-07-11</span>
</div>
<div class="mr-6 my-2">
<i class="fas fa-clock mr-1"></i>
<span>1 min read</span>
</div>
</div>
</div>
</div>
</div>
</div>
<div class="pt-2 hover:text-eureka">
<a href="/posts/" class="font-semibold">Read More</a>
<i class="fas fa-caret-right ml-1"></i>
</div>
</div>
</div>
</div>
</main>
<footer class="pl-scrollbar">
<div class="w-full max-w-screen-xl mx-auto"><div class="text-center p-6 pin-b">
<p class="text-sm text-tertiary-text">© 2021 <a href="https://eighthoursleep.gitee.io">Eighthoursleep</a>
· Powered by the <a href="https://github.com/wangchucheng/hugo-eureka" class="hover:text-eureka">Eureka</a> theme for <a href="https://gohugo.io" class="hover:text-eureka">Hugo</a></p>
</div></div>
</footer>
</body>
</html>