-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
346 lines (258 loc) · 12.6 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
<html>
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<title>断极悬桥</title>
<meta name="description" content="一身紫荆洗因果,命性后道皆率衷" />
<link rel="shortcut icon" href="https://kqwqk.github.io/favicon.ico?v=1708679981489">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/KaTeX/0.10.0/katex.min.css">
<link href="https://cdn.jsdelivr.net/npm/remixicon@2.3.0/fonts/remixicon.css" rel="stylesheet">
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Droid+Serif:400,700">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/animate.css/3.7.2/animate.min.css">
<link rel="stylesheet" href="https://kqwqk.github.io/styles/main.css">
</head>
<body>
<div class="main px-4 flex flex-col lg:flex-row">
<div id="sidebar" class="sidebar-wrapper lg:static lg:w-1/4">
<div class="lg:sticky top-0">
<div class="sidebar-content">
<div class="flex lg:block p-4 lg:px-0 items-center fixed lg:static lg:block top-0 right-0 left-0 bg-white z-50">
<i class="ri-menu-2-line lg:mt-4 text-2xl cursor-pointer animated fadeIn" onclick="openMenu()"></i>
<a href="https://kqwqk.github.io">
<img class="animated fadeInLeft avatar rounded-lg mx-4 lg:mt-32 lg:mx-0 mt-0 lg:w-24 lg:h-24 w-12 w-12" src="https://kqwqk.github.io/images/avatar.png?v=1708679981489" alt="">
</a>
<h1 class="animated fadeInLeft lg:text-4xl font-extrabold lg:mt-8 mt-0 text-xl" style="animation-delay: 0.2s">断极悬桥</h1>
</div>
<div class="animated fadeInLeft" style="animation-delay: 0.4s">
<p class="my-4 text-gray-600 font-light hidden lg:block">
一身紫荆洗因果,命性后道皆率衷
</p>
<div class="animated fadeInLeft social-container hidden lg:block" style="animation-delay: 0.6s">
</div>
</div>
</div>
</div>
</div>
<div class="menu-container">
<i class="ri-arrow-left-line text-2xl cursor-pointer animated fadeIn close-menu-btn" onclick="closeMenu()"></i>
<div>
<a href="/" class="menu" style="animation-delay: 0s">
首页
</a>
<a href="/archives" class="menu" style="animation-delay: 0.2s">
归档
</a>
<a href="/post/about" class="menu" style="animation-delay: 0.4s">
关于
</a>
<a href="/hzgta" class="menu" style="animation-delay: 0.6000000000000001s">
旧站
</a>
</div>
<div class="site-footer">
<div class="py-4 text-gray-700">Powered by <a href="https://github.com/getgridea/gridea" target="_blank">Gridea</a></div>
<a class="rss" href="https://kqwqk.github.io/atom.xml" target="_blank">RSS</a>
</div>
</div>
<div class="mask" onclick="closeMenu()">
</div>
<div class="content-wrapper py-32 lg:p-8 lg:w-3/4">
<h2 class="latest-article text-lg text-gray-700 mb-8">
<i class="ri-article-line"></i>
最新文章
</h2>
<section class="post-item md:flex pb-12 animated fadeIn" :style="{ 'animation-delay': `${0 * 0.2}s` }">
<a href="https://kqwqk.github.io/Ozr0lc89D/" class="feature-image-wrapper bg-gray-100 rounded-lg flex-shrink-0 mr-8 w-full h-56 h-32 md:w-56 md:h-40">
<div class="post-feature-image lazy w-full h-56 h-32 md:w-56 md:h-40" data-bg="'https://kqwqk.github.io/post-images/Ozr0lc89D.jpg'">
</div>
</a>
<div class="content">
<a href="https://kqwqk.github.io/Ozr0lc89D/">
<h2 class="post-title text-xl font-extrabold mt-5 md:mt-0">AE动效设计教程</h2>
</a>
<div class="post-abstract text-gray-700 font-light my-4">
</div>
<div class="text-gray-400 text-sm font-light">2024-02-23 / 1 min read</div>
</div>
</section>
<section class="post-item md:flex pb-12 animated fadeIn" :style="{ 'animation-delay': `${1 * 0.2}s` }">
<a href="https://kqwqk.github.io/P9d8k4-WA/" class="feature-image-wrapper bg-gray-100 rounded-lg flex-shrink-0 mr-8 w-full h-56 h-32 md:w-56 md:h-40">
<div class="post-feature-image lazy w-full h-56 h-32 md:w-56 md:h-40" data-bg="'https://bkimg.cdn.bcebos.com/pic/8c1001e93901213feb055d8250e736d12f2e95bd?x-bce-process=image/format,f_auto/watermark,image_d2F0ZXIvYmFpa2UyNzI,g_7,xp_5,yp_5,P_20/resize,m_lfit,limit_1,h_1080'">
</div>
</a>
<div class="content">
<a href="https://kqwqk.github.io/P9d8k4-WA/">
<h2 class="post-title text-xl font-extrabold mt-5 md:mt-0">经乱离后天恩流夜郎忆旧游书怀赠江夏韦太守良宰</h2>
</a>
<div class="post-abstract text-gray-700 font-light my-4">
</div>
<div class="text-gray-400 text-sm font-light">2024-02-05 / 3 min read</div>
</div>
</section>
<section class="post-item md:flex pb-12 animated fadeIn" :style="{ 'animation-delay': `${2 * 0.2}s` }">
<a href="https://kqwqk.github.io/dQOmLLtGX/" class="feature-image-wrapper bg-gray-100 rounded-lg flex-shrink-0 mr-8 w-full h-56 h-32 md:w-56 md:h-40">
<div class="post-feature-image lazy w-full h-56 h-32 md:w-56 md:h-40" data-bg="'https://kqwqk.github.io/post-images/dQOmLLtGX.png'">
</div>
</a>
<div class="content">
<a href="https://kqwqk.github.io/dQOmLLtGX/">
<h2 class="post-title text-xl font-extrabold mt-5 md:mt-0">Markdown 测试文章</h2>
</a>
<div class="post-abstract text-gray-700 font-light my-4">
</div>
<div class="text-gray-400 text-sm font-light">2024-02-05 / 2 min read</div>
</div>
</section>
<section class="post-item md:flex pb-12 animated fadeIn" :style="{ 'animation-delay': `${3 * 0.2}s` }">
<a href="https://kqwqk.github.io/MB1J39DZI/" class="feature-image-wrapper bg-gray-100 rounded-lg flex-shrink-0 mr-8 w-full h-56 h-32 md:w-56 md:h-40">
<div class="post-feature-image lazy w-full h-56 h-32 md:w-56 md:h-40" data-bg="'https://kqwqk.github.io/post-images/MB1J39DZI.jpg'">
</div>
</a>
<div class="content">
<a href="https://kqwqk.github.io/MB1J39DZI/">
<h2 class="post-title text-xl font-extrabold mt-5 md:mt-0">data-visual-var-dark.css</h2>
</a>
<div class="post-abstract text-gray-700 font-light my-4">
</div>
<div class="text-gray-400 text-sm font-light">2023-11-08 / 4 min read</div>
</div>
</section>
<section class="post-item md:flex pb-12 animated fadeIn" :style="{ 'animation-delay': `${4 * 0.2}s` }">
<a href="https://kqwqk.github.io/teR-DJg44/" class="feature-image-wrapper bg-gray-100 rounded-lg flex-shrink-0 mr-8 w-full h-56 h-32 md:w-56 md:h-40">
<div class="post-feature-image lazy w-full h-56 h-32 md:w-56 md:h-40" data-bg="'https://kqwqk.github.io/post-images/teR-DJg44.jpg'">
</div>
</a>
<div class="content">
<a href="https://kqwqk.github.io/teR-DJg44/">
<h2 class="post-title text-xl font-extrabold mt-5 md:mt-0">Hello Cat</h2>
</a>
<div class="post-abstract text-gray-700 font-light my-4">
</div>
<div class="text-gray-400 text-sm font-light">2023-11-08 / 3 min read</div>
</div>
</section>
<section class="post-item md:flex pb-12 animated fadeIn" :style="{ 'animation-delay': `${5 * 0.2}s` }">
<a href="https://kqwqk.github.io/about/" class="feature-image-wrapper bg-gray-100 rounded-lg flex-shrink-0 mr-8 w-full h-56 h-32 md:w-56 md:h-40">
<div class="post-feature-image lazy w-full h-56 h-32 md:w-56 md:h-40" data-bg="'https://images.unsplash.com/photo-1505739998589-00fc191ce01d?ixlib=rb-1.2.1&ixid=eyJhcHBfaWQiOjEyMDd9&auto=format&fit=crop&w=2100&q=80'">
</div>
</a>
<div class="content">
<a href="https://kqwqk.github.io/about/">
<h2 class="post-title text-xl font-extrabold mt-5 md:mt-0">关于</h2>
</a>
<div class="post-abstract text-gray-700 font-light my-4">
</div>
<div class="text-gray-400 text-sm font-light">2019-01-25 / 1 min read</div>
</div>
</section>
<section class="post-item md:flex pb-12 animated fadeIn" :style="{ 'animation-delay': `${6 * 0.2}s` }">
<a href="https://kqwqk.github.io/hello-gridea/" class="feature-image-wrapper bg-gray-100 rounded-lg flex-shrink-0 mr-8 w-full h-56 h-32 md:w-56 md:h-40">
<div class="post-feature-image lazy w-full h-56 h-32 md:w-56 md:h-40" data-bg="'https://kqwqk.github.io/post-images/hello-gridea.png'">
</div>
</a>
<div class="content">
<a href="https://kqwqk.github.io/hello-gridea/">
<h2 class="post-title text-xl font-extrabold mt-5 md:mt-0">Hello Gridea</h2>
</a>
<div class="post-abstract text-gray-700 font-light my-4">
<p>👏 欢迎使用 <strong>Gridea</strong> !<br>
✍️ <strong>Gridea</strong> 一个静态博客写作客户端。你可以用它来记录你的生活、心情、知识、笔记、创意... ...</p>
</div>
<div class="text-gray-400 text-sm font-light">2018-12-12 / 2 min read</div>
</div>
</section>
<div class="read-more">
</div>
<div class="index-page">
<div class="pagination-container animated fadeIn">
</div>
</div>
</div>
</div>
<script src="https://kqwqk.github.io/media/prism.js"></script>
<script>
Prism.highlightAll()
let mainNavLinks = document.querySelectorAll(".markdownIt-TOC a");
// This should probably be throttled.
// Especially because it triggers during smooth scrolling.
// https://lodash.com/docs/4.17.10#throttle
// You could do like...
// window.addEventListener("scroll", () => {
// _.throttle(doThatStuff, 100);
// });
// Only not doing it here to keep this Pen dependency-free.
window.addEventListener("scroll", event => {
let fromTop = window.scrollY;
mainNavLinks.forEach((link, index) => {
let section = document.getElementById(decodeURI(link.hash).substring(1));
let nextSection = null
if (mainNavLinks[index + 1]) {
nextSection = document.getElementById(decodeURI(mainNavLinks[index + 1].hash).substring(1));
}
if (section.offsetTop <= fromTop) {
if (nextSection) {
if (nextSection.offsetTop > fromTop) {
link.classList.add("current");
} else {
link.classList.remove("current");
}
} else {
link.classList.add("current");
}
} else {
link.classList.remove("current");
}
});
});
document.addEventListener("DOMContentLoaded", function() {
var lazyImages = [].slice.call(document.querySelectorAll(".post-feature-image.lazy"));
if ("IntersectionObserver" in window) {
let lazyImageObserver = new IntersectionObserver(function(entries, observer) {
entries.forEach(function(entry) {
if (entry.isIntersecting) {
let lazyImage = entry.target
lazyImage.style.backgroundImage = `url(${lazyImage.dataset.bg})`
lazyImage.classList.remove("lazy")
lazyImageObserver.unobserve(lazyImage)
}
});
});
lazyImages.forEach(function(lazyImage) {
lazyImageObserver.observe(lazyImage)
})
} else {
// Possibly fall back to a more compatible method here
}
});
const menuContainer = document.querySelector('.menu-container')
const menus = document.querySelectorAll('.menu-container .menu')
const mask = document.querySelector('.mask')
const contentWrapper = document.querySelector('.content-wrapper')
const latestArticle = document.querySelector('.latest-article')
const readMore = document.querySelector('.read-more')
const indexPage = document.querySelector('.index-page')
const isHome = location.pathname === '/'
if (latestArticle) {
latestArticle.style.display = isHome ? 'block' : 'none'
readMore.style.display = isHome ? 'block' : 'none'
indexPage.style.display = isHome ? 'none' : 'block'
}
const openMenu = () => {
menuContainer.classList.add('open')
menus.forEach(menu => {
menu.classList.add('animated', 'fadeInLeft')
})
mask.classList.add('open')
contentWrapper.classList.add('is-second')
}
const closeMenu = () => {
menuContainer.classList.remove('open')
menus.forEach(menu => {
menu.classList.remove('animated', 'fadeInLeft')
})
mask.classList.remove('open')
contentWrapper.classList.remove('is-second')
}
</script>
</body>
</html>