minearm-website 0.0.3-beta.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (123) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +67 -0
  3. package/astro.config.ts +33 -0
  4. package/minearm.ts +174 -0
  5. package/package.json +64 -0
  6. package/public/13.jpg +0 -0
  7. package/public/1937daxue.png +0 -0
  8. package/public/3.png +0 -0
  9. package/public/404.png +0 -0
  10. package/public/5.jpg +0 -0
  11. package/public/BC.png +0 -0
  12. package/public/Chinese.png +0 -0
  13. package/public/avatar.avif +0 -0
  14. package/public/avatar.jpg +0 -0
  15. package/public/c++1.png +0 -0
  16. package/public/docker-hub.png +0 -0
  17. package/public/favicon.png +0 -0
  18. package/public/help1.png +0 -0
  19. package/public/heroimg.jpg +0 -0
  20. package/public/logo.png +0 -0
  21. package/public/mail.png +0 -0
  22. package/public/nahida.png +0 -0
  23. package/public/pojipao.avif +0 -0
  24. package/public/rust1.png +0 -0
  25. package/public/scripts/mdata.json +4 -0
  26. package/public/scripts/utils.js +190 -0
  27. package/public/xmrig.jpg +0 -0
  28. package/src/components/BodyInject.astro +5 -0
  29. package/src/components/HeadInject.astro +16 -0
  30. package/src/components/Search.astro +30 -0
  31. package/src/components/animation/bubbles.astro +82 -0
  32. package/src/components/animation/wave.astro +81 -0
  33. package/src/components/aside/announcement.astro +25 -0
  34. package/src/components/aside/aside.astro +32 -0
  35. package/src/components/aside/asideComps.astro +26 -0
  36. package/src/components/aside/authorInfo.astro +54 -0
  37. package/src/components/aside/blogToc.astro +26 -0
  38. package/src/components/aside/countScript.astro +18 -0
  39. package/src/components/aside/customCard.astro +23 -0
  40. package/src/components/aside/siteInfo.astro +51 -0
  41. package/src/components/client/searchCore.vue +77 -0
  42. package/src/components/client/themeControl.vue +77 -0
  43. package/src/components/footer/Footer.astro +32 -0
  44. package/src/components/header/Header.astro +40 -0
  45. package/src/components/header/HeaderButton.astro +59 -0
  46. package/src/components/header/HeaderItem.astro +63 -0
  47. package/src/components/header/heroWave.astro +19 -0
  48. package/src/components/header/searchBar.astro +21 -0
  49. package/src/components/icons/bilibili.astro +10 -0
  50. package/src/components/icons/c.astro +10 -0
  51. package/src/components/icons/code.astro +37 -0
  52. package/src/components/icons/computer.astro +4 -0
  53. package/src/components/icons/cube.astro +10 -0
  54. package/src/components/icons/game.astro +10 -0
  55. package/src/components/icons/getIcon.astro +64 -0
  56. package/src/components/icons/github.astro +10 -0
  57. package/src/components/icons/hardDriver.astro +10 -0
  58. package/src/components/icons/home.astro +14 -0
  59. package/src/components/icons/icon.ts +33 -0
  60. package/src/components/icons/icons.json +91961 -0
  61. package/src/components/icons/link.astro +4 -0
  62. package/src/components/icons/mail.astro +10 -0
  63. package/src/components/icons/paperPlane.astro +4 -0
  64. package/src/components/icons/pen.astro +14 -0
  65. package/src/components/icons/person.astro +14 -0
  66. package/src/components/icons/searchicon.astro +23 -0
  67. package/src/components/icons/tags.astro +10 -0
  68. package/src/components/icons/toTop.astro +10 -0
  69. package/src/components/icons/tools.astro +1 -0
  70. package/src/components/loading/loading.vue +185 -0
  71. package/src/components/postComment.astro +62 -0
  72. package/src/components/postlist/pagination.astro +40 -0
  73. package/src/components/postlist/postsList.astro +57 -0
  74. package/src/content/blog/default/Extended Search.md +50 -0
  75. package/src/content/blog/default/Mail.md +15 -0
  76. package/src/content/blog/default/history//345/205/254/345/205/203/345/211/215//347/247/246/345/247/213/347/232/207/347/273/237/344/270/200/345/205/255/345/233/275.md +40 -0
  77. package/src/content/blog/default/history//350/277/221/344/273/243/347/257/207//344/270/255/345/233/275/345/205/261/344/272/247/345/205/232/345/205/232/345/217/262.md +2361 -0
  78. package/src/content/blog/default/it/Rust/345/237/272/346/234/254/350/257/255/346/263/225.md +298 -0
  79. package/src/content/config.ts +38 -0
  80. package/src/env.d.ts +148 -0
  81. package/src/layouts/BaseLayout.astro +67 -0
  82. package/src/layouts/DefaultMdLayout.astro +46 -0
  83. package/src/layouts/HomeLayout.astro +27 -0
  84. package/src/layouts/PostLayout.astro +60 -0
  85. package/src/layouts/TagsLayout.astro +44 -0
  86. package/src/layouts/c.astro +42 -0
  87. package/src/layouts/h.astro +60 -0
  88. package/src/pages/404.md +10 -0
  89. package/src/pages/[...page].astro +46 -0
  90. package/src/pages/about/index.md +90 -0
  91. package/src/pages/blog/[...slug].astro +68 -0
  92. package/src/pages/categories/[category]/[...page].astro +45 -0
  93. package/src/pages/categories/index.astro +20 -0
  94. package/src/pages/friends/index.md +24 -0
  95. package/src/pages/rss.xml.js +20 -0
  96. package/src/pages/tags/[tag]/[...page].astro +42 -0
  97. package/src/pages/tags/index.astro +19 -0
  98. package/src/site_config.ts +15 -0
  99. package/src/styles/animation.scss +94 -0
  100. package/src/styles/blog/blog.scss +124 -0
  101. package/src/styles/blog/code.scss +111 -0
  102. package/src/styles/blog/directives.scss +356 -0
  103. package/src/styles/blog/index.scss +4 -0
  104. package/src/styles/blog/post.scss +474 -0
  105. package/src/styles/components/aside.scss +178 -0
  106. package/src/styles/components/footer.scss +74 -0
  107. package/src/styles/components/header.scss +421 -0
  108. package/src/styles/components/heroWave.scss +24 -0
  109. package/src/styles/components/main.scss +275 -0
  110. package/src/styles/components/page-content.scss +147 -0
  111. package/src/styles/components/pagination.scss +121 -0
  112. package/src/styles/components/search.scss +349 -0
  113. package/src/styles/custom.scss +21 -0
  114. package/src/styles/global.scss +167 -0
  115. package/src/styles/mixin.scss +17 -0
  116. package/src/styles/tags/tags.scss +83 -0
  117. package/src/theme_config.ts +178 -0
  118. package/src/utils/generateSearchData.ts +30 -0
  119. package/src/utils/md.ts +114 -0
  120. package/src/utils/processMd.ts +278 -0
  121. package/src/utils/utils.ts +87 -0
  122. package/tsconfig.json +32 -0
  123. package/vercel.json +26 -0
@@ -0,0 +1,474 @@
1
+ @import "./directives.scss";
2
+ .post-main {
3
+ display: flex;
4
+
5
+ flex-direction: column;
6
+
7
+ color: var(--font-black-white);
8
+
9
+ font-size: var(--font-post-size);
10
+
11
+ h1,
12
+ h2,
13
+ h3,
14
+ h4,
15
+ h5,
16
+ h6 {
17
+ cursor: default;
18
+
19
+ user-select: none;
20
+
21
+ transition: 0.3s ease;
22
+
23
+ font-family: var(--heading-font-family);
24
+
25
+ &:before {
26
+ content: "#";
27
+ }
28
+
29
+ &:hover {
30
+ margin-left: 10px;
31
+
32
+ color: var(--theme-color);
33
+ }
34
+ }
35
+
36
+ hr {
37
+ margin: 1rem 0;
38
+
39
+ border: 1px solid var(--border-light-grey);
40
+ }
41
+
42
+ p {
43
+ display: inline-table;
44
+ }
45
+ .image {
46
+ display: flex;
47
+
48
+ align-items: center;
49
+
50
+ flex-direction: column;
51
+
52
+ margin-top: 2rem;
53
+
54
+ .img-wrap {
55
+ display: flex;
56
+
57
+ overflow: hidden;
58
+
59
+ max-width: 80%;
60
+
61
+ border-radius: 15px;
62
+
63
+ @include card-style();
64
+
65
+ img {
66
+ width: 100%;
67
+
68
+ cursor: pointer;
69
+
70
+ transition: 0.3s;
71
+
72
+ &:hover {
73
+ transform: scale(1.03);
74
+
75
+ filter: brightness(0.8);
76
+ }
77
+ }
78
+ }
79
+
80
+ .img-comment {
81
+ margin-top: 5px;
82
+
83
+ color: var(--font-dark-grey);
84
+ }
85
+ }
86
+
87
+ code {
88
+ margin: 0 3px;
89
+
90
+ padding: 0px 5px 2px 5px;
91
+
92
+ color: var(--font-code-color);
93
+
94
+ border-radius: 4px;
95
+
96
+ background: var(--font-code-background);
97
+
98
+ font-family: var(--code-font-family);
99
+
100
+ font-size: 16px;
101
+ }
102
+
103
+ blockquote {
104
+ display: flex;
105
+
106
+ justify-content: center;
107
+
108
+ margin: 0;
109
+
110
+ margin: 0.5rem 0;
111
+
112
+ padding: 0.5rem 2rem;
113
+
114
+ i {
115
+ margin: 0 1rem;
116
+
117
+ color: var(--font-light-grey);
118
+
119
+ font-size: 24px;
120
+ }
121
+
122
+ i.fa-quote-right {
123
+ align-self: end;
124
+ }
125
+
126
+ p {
127
+ margin: 0;
128
+ }
129
+ }
130
+
131
+ ul {
132
+ padding-left: 20px;
133
+
134
+ list-style-type: disc;
135
+ }
136
+
137
+ ol {
138
+ padding-left: 20px;
139
+ }
140
+
141
+ .table-wrap {
142
+ overflow: hidden;
143
+
144
+ margin: 1rem auto;
145
+
146
+ user-select: none;
147
+
148
+ border-radius: 10px;
149
+
150
+ @include card-style();
151
+ }
152
+
153
+ table {
154
+ display: table;
155
+
156
+ empty-cells: show;
157
+
158
+ border-spacing: 0px;
159
+
160
+ border-collapse: collapse;
161
+
162
+ thead {
163
+ background: #eee;
164
+ }
165
+
166
+ th,
167
+ td {
168
+ padding: 0.3rem 0.6rem;
169
+
170
+ vertical-align: middle;
171
+
172
+ border: 1px solid #e3e8f7;
173
+ }
174
+ }
175
+
176
+ mark {
177
+ position: relative;
178
+
179
+ background: none;
180
+
181
+ &:before {
182
+ position: absolute;
183
+
184
+ top: calc((var(--font-post-size) / 2));
185
+
186
+ left: 0;
187
+
188
+ width: 100%;
189
+
190
+ height: calc((var(--font-post-size) / 2));
191
+
192
+ content: "";
193
+
194
+ opacity: 0.4;
195
+
196
+ background: var(--mark-background);
197
+ }
198
+ }
199
+
200
+ strong {
201
+ margin: 0 3px;
202
+ }
203
+
204
+ a {
205
+ text-decoration: none;
206
+
207
+ color: var(--link-color);
208
+ }
209
+
210
+ .link {
211
+ margin-right: 2px;
212
+
213
+ margin-left: 2px;
214
+ i {
215
+ height: 100%;
216
+
217
+ margin-left: 4px;
218
+
219
+ font-size: 16px;
220
+ }
221
+ }
222
+
223
+ .contains-task-list {
224
+ padding: 0;
225
+
226
+ list-style-type: none;
227
+ }
228
+ }
229
+
230
+ .post-aside {
231
+ width: 280px;
232
+
233
+ margin-top: 1rem;
234
+
235
+ .card-toc {
236
+ padding: 0.5rem 1rem;
237
+
238
+ font-size: 16px;
239
+
240
+ .card-toc-header {
241
+ margin: 10px 0;
242
+
243
+ font-size: 18px;
244
+
245
+ font-weight: 600;
246
+ }
247
+
248
+ .toc {
249
+ margin: 0;
250
+
251
+ margin-left: 5px;
252
+
253
+ padding: 0;
254
+
255
+ padding-left: 10px;
256
+
257
+ list-style-type: none;
258
+
259
+ border-left: 1px solid var(--border-light-grey);
260
+
261
+ .toc-item {
262
+ transition: 0.2s;
263
+
264
+ .toc-link {
265
+ display: block;
266
+
267
+ max-width: 90%;
268
+
269
+ transition: 0.3s;
270
+
271
+ text-decoration: none;
272
+
273
+ color: var(--font-black-white);
274
+
275
+ .toc-text {
276
+ display: inline-block;
277
+
278
+ overflow: hidden;
279
+
280
+ width: 100%;
281
+
282
+ transition: 0.2s;
283
+
284
+ white-space: nowrap;
285
+
286
+ text-overflow: ellipsis;
287
+
288
+ color: var(--font-light-grey);
289
+ }
290
+
291
+ .toc-text:before {
292
+ display: inline;
293
+
294
+ content: "#";
295
+ }
296
+ }
297
+
298
+ &:hover {
299
+ .toc-link {
300
+ .toc-text {
301
+ padding-left: 10px;
302
+
303
+ color: var(--theme-color);
304
+ }
305
+ }
306
+ }
307
+ }
308
+ }
309
+ }
310
+ }
311
+
312
+ .code-block {
313
+ position: relative;
314
+
315
+ overflow: hidden;
316
+
317
+ margin: 1rem 3rem;
318
+
319
+ user-select: none;
320
+
321
+ border-radius: 10px;
322
+
323
+ @include card-style();
324
+
325
+ .code-lang {
326
+ height: var(--code-lang-height);
327
+
328
+ padding: calc((var(--code-lang-height) - 22px) / 2) 1rem;
329
+
330
+ color: var(--font-dark-grey);
331
+
332
+ background: var(--codeblock-background-grey);
333
+
334
+ font-size: 18px;
335
+
336
+ font-weight: 600;
337
+ }
338
+
339
+ .code-wrap {
340
+ padding: 0 0 0 2.4rem;
341
+
342
+ transition: 0.3s ease;
343
+
344
+ background: var(--astro-code-color-background);
345
+
346
+ font-size: var(--font-code-size);
347
+
348
+ .astro-code {
349
+ margin: 0;
350
+
351
+ padding: 1rem;
352
+
353
+ transition: 0.3s ease;
354
+
355
+ code {
356
+ background: transparent;
357
+ }
358
+ }
359
+ }
360
+
361
+ .code-wrap {
362
+ font-size: 18px;
363
+ .line {
364
+ display: inline-block;
365
+
366
+ height: 24px;
367
+
368
+ font-family: var(--code-font-family);
369
+ }
370
+ &::after {
371
+ position: absolute;
372
+
373
+ z-index: 2;
374
+
375
+ top: 0;
376
+
377
+ left: 0;
378
+
379
+ width: 2.4rem;
380
+
381
+ height: calc(100% - var(--code-lang-height));
382
+
383
+ margin-top: var(--code-lang-height);
384
+
385
+ content: "";
386
+
387
+ border-right: 1px solid var(--font-light-grey);
388
+
389
+ border-radius: 6px 0 0 6px;
390
+ }
391
+ .line-numbers {
392
+ position: absolute;
393
+
394
+ top: 0;
395
+
396
+ left: 0;
397
+
398
+ width: 2.4rem;
399
+
400
+ padding: 1rem 0;
401
+
402
+ counter-reset: line-number;
403
+
404
+ transform: translateY(var(--code-lang-height));
405
+
406
+ text-align: center;
407
+
408
+ color: var(--font-light-grey);
409
+
410
+ line-height: 24px;
411
+
412
+ .line-number {
413
+ position: relative;
414
+
415
+ z-index: 4;
416
+
417
+ height: 24px;
418
+
419
+ -webkit-user-select: none;
420
+
421
+ -moz-user-select: none;
422
+
423
+ user-select: none;
424
+
425
+ &::before {
426
+ content: counter(line-number);
427
+
428
+ counter-increment: line-number;
429
+
430
+ font-size: 0.85em;
431
+ }
432
+ }
433
+ }
434
+ }
435
+
436
+ .code-copy {
437
+ position: absolute;
438
+
439
+ top: 45px;
440
+
441
+ right: 5px;
442
+
443
+ width: 24px;
444
+
445
+ height: 24px;
446
+
447
+ cursor: pointer;
448
+
449
+ transition: 0.3s;
450
+
451
+ opacity: 0;
452
+
453
+ color: var(--codeblock-copybutton-grey);
454
+
455
+ i {
456
+ font-size: 24px;
457
+ }
458
+ }
459
+ &:hover .code-copy {
460
+ opacity: 1;
461
+ }
462
+ }
463
+
464
+ .target-to {
465
+ animation: 0.5s blink 3;
466
+ }
467
+
468
+ [data-theme="dark"] {
469
+ .post-main {
470
+ img {
471
+ filter: brightness(0.7);
472
+ }
473
+ }
474
+ }
@@ -0,0 +1,178 @@
1
+ @import "../mixin.scss";
2
+ .aside-content {
3
+ user-select: none;
4
+
5
+ color: var(--font-black-white);
6
+
7
+ font-family: var(--heading-font-family-zh);
8
+
9
+ .sticky-container {
10
+ position: sticky;
11
+
12
+ top: calc(var(--header-nav-height) + 1rem);
13
+ }
14
+
15
+ .aside-card {
16
+ width: 100%;
17
+
18
+ height: fit-content;
19
+
20
+ margin-bottom: 1rem;
21
+
22
+ border-radius: 15px;
23
+
24
+ background: var(--card-background);
25
+
26
+ @include card-style();
27
+
28
+ .aside-card-link {
29
+ color: var(--aside-link-color);
30
+ text-decoration: none;
31
+ margin-left: 2px;
32
+ margin-right: 2px;
33
+ }
34
+ }
35
+ }
36
+
37
+ .author-info-card {
38
+ padding: 1rem 0.5rem;
39
+
40
+ .author-info {
41
+ display: flex;
42
+
43
+ align-items: center;
44
+
45
+ flex-direction: column;
46
+
47
+ margin: 0 auto 1rem;
48
+
49
+ .author-avatar {
50
+ width: 128px;
51
+
52
+ height: 128px;
53
+
54
+ margin-bottom: 1rem;
55
+
56
+ border-radius: 50%;
57
+ }
58
+
59
+ .author-name {
60
+ margin: 0 auto 1rem;
61
+
62
+ font-size: 22px;
63
+ }
64
+
65
+ .author-desc {
66
+ width: 100%;
67
+
68
+ text-align: center;
69
+
70
+ font-size: 16px;
71
+ }
72
+ }
73
+
74
+ .blog-counts {
75
+ display: flex;
76
+
77
+ align-items: center;
78
+
79
+ width: 85%;
80
+
81
+ margin: 0 auto 1rem;
82
+
83
+ .blog-count {
84
+ display: block;
85
+
86
+ flex: 1;
87
+
88
+ cursor: pointer;
89
+
90
+ text-decoration: none;
91
+
92
+ color: var(--font-black-white);
93
+
94
+ .count {
95
+ text-align: center;
96
+ }
97
+
98
+ .tag {
99
+ text-align: center;
100
+ }
101
+ }
102
+ }
103
+
104
+ .social-medias {
105
+ display: flex;
106
+
107
+ align-items: center;
108
+
109
+ justify-content: center;
110
+
111
+ height: 36px;
112
+
113
+ .social-media {
114
+ margin: 0 0.3rem;
115
+
116
+ .social-link {
117
+ .social-icon {
118
+ width: 34px;
119
+
120
+ height: 34px;
121
+
122
+ padding: 4px;
123
+
124
+ transition: 0.3s;
125
+
126
+ color: var(--button-background-black);
127
+
128
+ border-radius: 5px;
129
+ }
130
+
131
+ &:hover .social-icon {
132
+ animation: var(--shak-hard-animation);
133
+ }
134
+ }
135
+ }
136
+ }
137
+ }
138
+
139
+ .aside-card {
140
+ padding: 0.5rem 1rem;
141
+
142
+ .aside-card-headline {
143
+ display: flex;
144
+
145
+ margin-bottom: 0.2rem;
146
+
147
+ font-size: var(--header-button-icon-size);
148
+
149
+ .aside-card-title {
150
+ margin-left: 5px;
151
+
152
+ font-weight: 600;
153
+ }
154
+
155
+ .aside-card-icon {
156
+ width: var(--header-button-icon-size);
157
+
158
+ height: var(--header-button-icon-size);
159
+ }
160
+ }
161
+ .aside-card-content {
162
+ margin-top: 5px;
163
+ }
164
+ }
165
+
166
+ .announcement-headline {
167
+ &:hover .announcement-icon {
168
+ animation: var(--shak-hard-animation);
169
+ }
170
+ }
171
+
172
+ .siteinfo-card {
173
+ .siteinfo-item {
174
+ display: flex;
175
+
176
+ justify-content: space-between;
177
+ }
178
+ }
@@ -0,0 +1,74 @@
1
+ #site-footer {
2
+ z-index: 210;
3
+ position: relative;
4
+
5
+ bottom: 0;
6
+
7
+ display: flex;
8
+
9
+ align-items: center;
10
+
11
+ justify-content: center;
12
+
13
+ width: 100%;
14
+
15
+ margin-top: 1rem;
16
+
17
+ padding: 15px 25px;
18
+
19
+ user-select: none;
20
+
21
+ background: var(--background-white);
22
+
23
+ .footer-container {
24
+ display: flex;
25
+
26
+ flex-basis: auto;
27
+
28
+ justify-content: space-between;
29
+
30
+ width: 100%;
31
+
32
+ max-width: 1400px;
33
+
34
+ padding: 0 2rem;
35
+
36
+ color: var(--font-black-white);
37
+
38
+ justify-items: center;
39
+
40
+ .footer-link {
41
+ text-decoration: none;
42
+
43
+ color: var(--font-black-white);
44
+
45
+ font-weight: 600;
46
+
47
+ transition: 0.3s ease;
48
+
49
+ &:hover {
50
+ color: var(--theme-color);
51
+ }
52
+ }
53
+ }
54
+ }
55
+
56
+ @media screen and (width <= 1100px) {
57
+ #site-footer {
58
+ .footer-container {
59
+ flex-direction: column;
60
+ align-items: center;
61
+ & > * {
62
+ margin: 0.2rem auto;
63
+ }
64
+ }
65
+ }
66
+ }
67
+ @media screen and (width <= 700px) {
68
+ #site-footer {
69
+ padding: 15px 0;
70
+ .footer-container {
71
+ padding: 0;
72
+ }
73
+ }
74
+ }