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,147 @@
1
+ #main-container {
2
+ display: flex;
3
+
4
+ align-items: center;
5
+
6
+ flex-direction: column;
7
+
8
+ min-height: 100vh;
9
+
10
+ .hero-shoot {
11
+ position: relative;
12
+
13
+ top: var(--header-nav-height);
14
+
15
+ display: flex;
16
+
17
+ flex-direction: column;
18
+
19
+ width: 100vw;
20
+
21
+ height: calc(100vh - var(--header-nav-height));
22
+
23
+ margin-bottom: 1rem;
24
+
25
+ font-family: var(--heading-font-family-zh);
26
+
27
+ .hero-img {
28
+ position: absolute;
29
+
30
+ z-index: 1;
31
+
32
+ inset: 0;
33
+
34
+ &::after {
35
+ position: absolute;
36
+
37
+ z-index: 2;
38
+
39
+ display: block;
40
+
41
+ content: " ";
42
+
43
+ opacity: 0.2;
44
+
45
+ background: var(--mask-grey);
46
+
47
+ inset: 0;
48
+ }
49
+ }
50
+
51
+ .hero-title {
52
+ position: relative;
53
+
54
+ z-index: 3;
55
+
56
+ display: block;
57
+
58
+ margin: calc(50vh - 80px - var(--header-nav-height) - 2rem) auto 2rem;
59
+
60
+ background: linear-gradient(
61
+ 315deg,
62
+ hsl(323deg 100% 79%) 25%,
63
+ hsl(32deg 100% 61%)
64
+ );
65
+
66
+ -webkit-background-clip: text;
67
+
68
+ background-clip: text;
69
+
70
+ font-size: 80px;
71
+
72
+ -webkit-text-fill-color: transparent;
73
+ }
74
+
75
+ .hero-desc {
76
+ z-index: 3;
77
+
78
+ margin: 0 auto;
79
+
80
+ color: var(--font-white);
81
+
82
+ font-size: 40px;
83
+ }
84
+ }
85
+ }
86
+
87
+ #inner-container {
88
+ justify-content: center;
89
+ flex-grow: 1;
90
+
91
+ display: flex;
92
+
93
+ max-width: 1300px;
94
+
95
+ padding: 4.2rem 1.5rem 0;
96
+
97
+ color: var(--font-black-white);
98
+
99
+ .main-content {
100
+ margin: 0 0.5rem;
101
+
102
+ width: 1000px;
103
+ }
104
+
105
+ .aside-content {
106
+ width: 280px;
107
+
108
+ margin: 0 0.5rem;
109
+ }
110
+ }
111
+
112
+ @media screen and (width <= 1400px) {
113
+ #main-container {
114
+ .hero-shoot {
115
+ display: none;
116
+ }
117
+ }
118
+ #inner-container {
119
+ padding-top: calc(var(--header-nav-height) + 1rem);
120
+ width: 100%;
121
+ .main-content {
122
+ margin: 0 0.5rem;
123
+
124
+ width: 70%;
125
+ }
126
+
127
+ .aside-content {
128
+ max-width: 280px;
129
+ width: 30%;
130
+
131
+ margin: 0 0.5rem;
132
+ }
133
+ }
134
+ }
135
+
136
+ @media screen and (width <= 700px) {
137
+ #inner-container {
138
+ flex-direction: column;
139
+ .main-content {
140
+ width: 100%;
141
+ }
142
+ .aside-content {
143
+ width: 100%;
144
+ max-width: 100%;
145
+ }
146
+ }
147
+ }
@@ -0,0 +1,121 @@
1
+ .pagination {
2
+ display: flex;
3
+
4
+ align-items: center;
5
+
6
+ justify-content: space-between;
7
+
8
+ margin-top: 1rem;
9
+
10
+ transition: opacity 0.3s ease-out 0s, transform 0.3s ease-out 0s;
11
+
12
+ transform-origin: center top;
13
+
14
+ text-align: center;
15
+
16
+ opacity: 1;
17
+
18
+ .disable {
19
+ pointer-events: none;
20
+
21
+ opacity: 0;
22
+ }
23
+
24
+ .pagination-link {
25
+ display: flex;
26
+
27
+ align-items: center;
28
+
29
+ justify-content: center;
30
+
31
+ height: 30px;
32
+
33
+ padding-right: 0.7rem;
34
+
35
+ padding-left: 0.7rem;
36
+
37
+ transition: 0.3s;
38
+
39
+ text-decoration: none;
40
+
41
+ color: var(--font-black-white);
42
+
43
+ border-radius: 15px;
44
+
45
+ background: var(--card-background);
46
+
47
+ box-shadow: 0 4px 10px rgb(0 0 0 / 5%), 0 0 1px rgb(0 0 0 / 10%);
48
+
49
+ &:hover {
50
+ color: white;
51
+
52
+ background: var(--theme-color);
53
+ }
54
+ }
55
+
56
+ .pagination-pre {
57
+ order: 1;
58
+ }
59
+
60
+ .pagination-next {
61
+ order: 3;
62
+ }
63
+
64
+ .pagination-list {
65
+ display: flex;
66
+
67
+ align-items: center;
68
+
69
+ flex-grow: 1;
70
+
71
+ flex-shrink: 1;
72
+
73
+ justify-content: center;
74
+
75
+ order: 2;
76
+
77
+ li {
78
+ .pagination-number {
79
+ display: flex;
80
+
81
+ align-items: center;
82
+
83
+ justify-content: center;
84
+
85
+ width: 30px;
86
+
87
+ height: 30px;
88
+
89
+ margin: 0 5px;
90
+
91
+ transition: 0.3s;
92
+
93
+ text-decoration: none;
94
+
95
+ color: var(--font-black-white);
96
+
97
+ border-radius: 15px;
98
+
99
+ background: var(--card-background);
100
+
101
+ box-shadow: 0 4px 10px rgb(0 0 0 / 5%), 0 0 1px rgb(0 0 0 / 10%);
102
+
103
+ &.active {
104
+ color: white;
105
+
106
+ background: var(--theme-color);
107
+ }
108
+
109
+ &:not(.active):hover {
110
+ margin: 0 10px;
111
+
112
+ transform: scale(1.2);
113
+
114
+ color: white;
115
+
116
+ background: var(--theme-color);
117
+ }
118
+ }
119
+ }
120
+ }
121
+ }
@@ -0,0 +1,349 @@
1
+ #search-bar {
2
+ overflow: hidden;
3
+
4
+ width: 28px;
5
+
6
+ margin: 0 10px;
7
+
8
+ margin-top: 2px;
9
+
10
+ cursor: pointer;
11
+
12
+ transition: 0.4s ease;
13
+
14
+ border-radius: 50px;
15
+ &:hover {
16
+ width: 130px;
17
+ .search-box {
18
+ background: rgba(0 0 0 / 5%);
19
+ .search-hotkey {
20
+ transition-delay: 0.2s;
21
+
22
+ opacity: 1;
23
+ }
24
+ }
25
+ }
26
+ .search-box {
27
+ position: relative;
28
+
29
+ height: 28px;
30
+
31
+ padding: 0 0 0 30px;
32
+
33
+ transition: 0.3s ease;
34
+ .search-icon {
35
+ position: absolute;
36
+
37
+ top: 3px;
38
+
39
+ left: 4px;
40
+
41
+ width: 24px;
42
+
43
+ height: 24px;
44
+
45
+ transition: 0.3s ease;
46
+
47
+ border-radius: 50px;
48
+ }
49
+
50
+ .search-input {
51
+ width: 100%;
52
+
53
+ height: 30px;
54
+
55
+ cursor: pointer;
56
+
57
+ border: none;
58
+
59
+ background: transparent;
60
+ &:focus {
61
+ outline: none;
62
+ }
63
+ }
64
+
65
+ .search-hotkey {
66
+ position: absolute;
67
+
68
+ top: 2px;
69
+
70
+ left: 35px;
71
+
72
+ display: flex;
73
+
74
+ align-items: center;
75
+
76
+ transition: 0.3s ease;
77
+
78
+ opacity: 0;
79
+
80
+ color: #969696;
81
+ kbd {
82
+ margin: 0 4px;
83
+
84
+ margin-top: 2px;
85
+
86
+ font-weight: bold;
87
+ }
88
+ }
89
+ }
90
+ }
91
+
92
+ [data-theme="dark"] {
93
+ #search-bar {
94
+ .search-icon {
95
+ color: white;
96
+ }
97
+ &:hover {
98
+ .search-box {
99
+ background: rgba(255 255 255 / 10%);
100
+ }
101
+ }
102
+ .search-hotkey {
103
+ color: white;
104
+ }
105
+ }
106
+ }
107
+
108
+ #search.hide {
109
+ display: none;
110
+ }
111
+
112
+ #search.begin-to-hide {
113
+ animation: disappear_blur 1.1s ease;
114
+ .search-wrap {
115
+ animation: disappear_fall 1.1s ease-in-out;
116
+ }
117
+ }
118
+
119
+ #search {
120
+ position: fixed;
121
+
122
+ z-index: 110;
123
+
124
+ top: 0;
125
+
126
+ left: 0;
127
+
128
+ display: flex;
129
+
130
+ justify-content: center;
131
+
132
+ width: 100vw;
133
+
134
+ height: 100vh;
135
+
136
+ animation: appear_blur 1s ease;
137
+ .search-wrap {
138
+ z-index: 120;
139
+
140
+ display: flex;
141
+
142
+ flex-direction: column;
143
+
144
+ width: 600px;
145
+
146
+ height: fit-content;
147
+
148
+ max-height: 900px;
149
+
150
+ margin-top: 180px;
151
+
152
+ padding: 0.5rem 1rem;
153
+
154
+ transition: 0.3s ease;
155
+
156
+ animation: appear_rise 1s ease-in-out;
157
+
158
+ border: 1px solid var(--border-light-grey);
159
+
160
+ border-radius: 15px;
161
+
162
+ background: var(--card-background);
163
+ &:hover {
164
+ border: 1px solid var(--theme-color);
165
+ }
166
+ .search-header {
167
+ display: flex;
168
+
169
+ align-items: center;
170
+
171
+ justify-content: space-between;
172
+
173
+ order: 0;
174
+
175
+ margin-bottom: 1rem;
176
+ .search-title {
177
+ color: var(--theme-color);
178
+
179
+ font-size: 28px;
180
+
181
+ font-weight: bold;
182
+ }
183
+ .search-close {
184
+ cursor: pointer;
185
+
186
+ color: var(--font-light-grey);
187
+
188
+ font-size: 20px;
189
+ }
190
+ }
191
+ .search-input {
192
+ order: 1;
193
+
194
+ height: 30px;
195
+
196
+ margin-bottom: 0.6rem;
197
+
198
+ padding: 0 1rem;
199
+
200
+ transition: 0.3s;
201
+
202
+ color: var(--font-black-white);
203
+
204
+ border: 1px solid var(--border-light-grey);
205
+
206
+ border-radius: 10px;
207
+
208
+ background: rgba(0 0 0 / 2%);
209
+
210
+ font-size: 18px;
211
+ &:focus,
212
+ &:hover {
213
+ border: 1px solid var(--theme-color);
214
+
215
+ outline: none;
216
+
217
+ background: rgba(0 0 0 / 5%);
218
+ }
219
+ }
220
+ .search-hits {
221
+ display: flex;
222
+
223
+ order: 2;
224
+ .search-hit {
225
+ margin-right: 10px;
226
+
227
+ padding: 3px 5px;
228
+
229
+ cursor: pointer;
230
+
231
+ transition: 0.3s ease;
232
+
233
+ text-decoration: none;
234
+
235
+ color: var(--font-mid-grey);
236
+
237
+ border: 1px solid var(--border-light-grey);
238
+
239
+ border-radius: 10px;
240
+ &:hover {
241
+ color: white;
242
+
243
+ border: 1px solid var(--theme-color);
244
+
245
+ background: var(--theme-color);
246
+ }
247
+ }
248
+ }
249
+ .search-results {
250
+ order: 3;
251
+
252
+ margin: 0.6rem 0 0 0.6rem;
253
+
254
+ font-weight: bold;
255
+ .search-result {
256
+ display: block;
257
+
258
+ margin: 0.5rem 0;
259
+
260
+ transition: 0.3s ease;
261
+
262
+ text-decoration: none;
263
+
264
+ color: var(--font-black-white);
265
+ &:hover {
266
+ color: var(--theme-color);
267
+ }
268
+ }
269
+ }
270
+ .search-pagination {
271
+ display: flex;
272
+
273
+ align-items: center;
274
+
275
+ justify-content: center;
276
+
277
+ order: 4;
278
+
279
+ margin-bottom: 0.6rem;
280
+ .search-pagenumber {
281
+ display: flex;
282
+
283
+ align-items: center;
284
+
285
+ justify-content: center;
286
+
287
+ width: 24px;
288
+
289
+ height: 24px;
290
+
291
+ margin: 0 5px;
292
+
293
+ cursor: pointer;
294
+
295
+ transition: 0.3s ease;
296
+
297
+ color: var(--font-black-white);
298
+
299
+ border-radius: 5px;
300
+
301
+ font-size: 18px;
302
+ &:hover,
303
+ &.active {
304
+ color: white;
305
+
306
+ background: var(--theme-color);
307
+ }
308
+ }
309
+ }
310
+ .search-comment {
311
+ order: 5;
312
+
313
+ margin-bottom: 0.6rem;
314
+
315
+ padding: 0 0.2rem;
316
+
317
+ color: var(--font-mid-grey);
318
+ a {
319
+ text-decoration: none;
320
+
321
+ color: var(--link-color);
322
+ }
323
+ }
324
+ }
325
+ .search-mask {
326
+ position: absolute;
327
+
328
+ width: 100%;
329
+
330
+ height: 100%;
331
+
332
+ background: rgba(255 255 255 / 10%);
333
+
334
+ backdrop-filter: blur(10px);
335
+ }
336
+ }
337
+
338
+ @media screen and (width <= 700px) {
339
+ #search-bar {
340
+ &:hover {
341
+ width: 28px;
342
+ }
343
+ }
344
+ #search {
345
+ .search-wrap {
346
+ width: 90%;
347
+ }
348
+ }
349
+ }
@@ -0,0 +1,21 @@
1
+ #site-header {
2
+ .menu-items {
3
+ .menu-item {
4
+ &.mine {
5
+ .menu-item-icon {
6
+ width: 20px;
7
+ }
8
+ }
9
+ }
10
+ }
11
+ }
12
+
13
+ .social-media.csdn {
14
+ .social-icon {
15
+ width: 26px !important;
16
+ }
17
+ }
18
+
19
+ .wl-editor {
20
+ transition: height 0s, background 0.25s ease !important;
21
+ }