@mintfolio/theme-verdant 0.2.0

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 (67) hide show
  1. package/LICENSE +674 -0
  2. package/README.md +66 -0
  3. package/THIRD_PARTY_NOTICES.md +11 -0
  4. package/assets/favicon.ico +0 -0
  5. package/assets/favicon.svg +9 -0
  6. package/assets/fonts/Inter-300.woff2 +0 -0
  7. package/assets/fonts/Inter-400.woff2 +0 -0
  8. package/assets/fonts/Inter-500.woff2 +0 -0
  9. package/assets/fonts/Inter-600.woff2 +0 -0
  10. package/assets/fonts/Inter-700.woff2 +0 -0
  11. package/assets/fonts/JetBrainsMono-400.woff2 +0 -0
  12. package/assets/fonts/JetBrainsMono-500.woff2 +0 -0
  13. package/assets/fonts/PlayfairDisplay-400.woff2 +0 -0
  14. package/assets/fonts/PlayfairDisplay-500.woff2 +0 -0
  15. package/assets/fonts/PlayfairDisplay-600.woff2 +0 -0
  16. package/assets/fonts/PlayfairDisplay-700.woff2 +0 -0
  17. package/components/base/Contact.astro +173 -0
  18. package/components/base/Hero.astro +228 -0
  19. package/components/base/Navigation.astro +288 -0
  20. package/components/base/Projects.astro +207 -0
  21. package/components/base/Skills.astro +158 -0
  22. package/components/blog/ArticleProse.astro +217 -0
  23. package/components/blog/CodeBlockEnhancer.astro +310 -0
  24. package/components/blog/PostCard.astro +98 -0
  25. package/components/blog/ProtectedArticle.astro +89 -0
  26. package/config/theme-verdant.config.mjs +74 -0
  27. package/layouts/Base.astro +460 -0
  28. package/lib/palettes.ts +10 -0
  29. package/licenses/Inter-OFL.txt +92 -0
  30. package/licenses/JetBrainsMono-OFL.txt +93 -0
  31. package/licenses/PlayfairDisplay-OFL.txt +191 -0
  32. package/package.json +68 -0
  33. package/pages/archive.astro +384 -0
  34. package/pages/home.astro +2049 -0
  35. package/pages/page.astro +434 -0
  36. package/pages/post.astro +1029 -0
  37. package/scripts/article.ts +42 -0
  38. package/scripts/articleOrigin.ts +31 -0
  39. package/scripts/articleTables.ts +15 -0
  40. package/scripts/blog.ts +26 -0
  41. package/scripts/codeBlocks.ts +172 -0
  42. package/scripts/hero.ts +173 -0
  43. package/scripts/home.ts +12 -0
  44. package/scripts/homePanels.ts +100 -0
  45. package/scripts/hotContent.ts +16 -0
  46. package/scripts/lifecycle.ts +3 -0
  47. package/scripts/lightbox.ts +14 -0
  48. package/scripts/postFilters.ts +101 -0
  49. package/scripts/postList.ts +132 -0
  50. package/scripts/progress.ts +29 -0
  51. package/scripts/protectedArticle.ts +49 -0
  52. package/scripts/protectedToc.ts +29 -0
  53. package/scripts/site.ts +145 -0
  54. package/scripts/tagFold.ts +61 -0
  55. package/scripts/theme.ts +102 -0
  56. package/scripts/toc.ts +149 -0
  57. package/settings.ts +21 -0
  58. package/styles/fonts.css +120 -0
  59. package/styles/global.css +146 -0
  60. package/styles/themes/happyhues/effects.css +62 -0
  61. package/styles/themes/happyhues/index.css +2 -0
  62. package/styles/themes/happyhues/theme.css +225 -0
  63. package/theme.mjs +60 -0
  64. package/utils/blogNavigation.ts +3 -0
  65. package/utils/homeReturnHint.ts +34 -0
  66. package/utils/storage.ts +16 -0
  67. package/utils/types.ts +8 -0
@@ -0,0 +1,92 @@
1
+ Copyright (c) 2016 The Inter Project Authors (https://github.com/rsms/inter)
2
+
3
+ This Font Software is licensed under the SIL Open Font License, Version 1.1.
4
+ This license is copied below, and is also available with a FAQ at:
5
+ http://scripts.sil.org/OFL
6
+
7
+ -----------------------------------------------------------
8
+ SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007
9
+ -----------------------------------------------------------
10
+
11
+ PREAMBLE
12
+ The goals of the Open Font License (OFL) are to stimulate worldwide
13
+ development of collaborative font projects, to support the font creation
14
+ efforts of academic and linguistic communities, and to provide a free and
15
+ open framework in which fonts may be shared and improved in partnership
16
+ with others.
17
+
18
+ The OFL allows the licensed fonts to be used, studied, modified and
19
+ redistributed freely as long as they are not sold by themselves. The
20
+ fonts, including any derivative works, can be bundled, embedded,
21
+ redistributed and/or sold with any software provided that any reserved
22
+ names are not used by derivative works. The fonts and derivatives,
23
+ however, cannot be released under any other type of license. The
24
+ requirement for fonts to remain under this license does not apply
25
+ to any document created using the fonts or their derivatives.
26
+
27
+ DEFINITIONS
28
+ "Font Software" refers to the set of files released by the Copyright
29
+ Holder(s) under this license and clearly marked as such. This may
30
+ include source files, build scripts and documentation.
31
+
32
+ "Reserved Font Name" refers to any names specified as such after the
33
+ copyright statement(s).
34
+
35
+ "Original Version" refers to the collection of Font Software components as
36
+ distributed by the Copyright Holder(s).
37
+
38
+ "Modified Version" refers to any derivative made by adding to, deleting,
39
+ or substituting -- in part or in whole -- any of the components of the
40
+ Original Version, by changing formats or by porting the Font Software to a
41
+ new environment.
42
+
43
+ "Author" refers to any designer, engineer, programmer, technical
44
+ writer or other person who contributed to the Font Software.
45
+
46
+ PERMISSION AND CONDITIONS
47
+ Permission is hereby granted, free of charge, to any person obtaining
48
+ a copy of the Font Software, to use, study, copy, merge, embed, modify,
49
+ redistribute, and sell modified and unmodified copies of the Font
50
+ Software, subject to the following conditions:
51
+
52
+ 1) Neither the Font Software nor any of its individual components,
53
+ in Original or Modified Versions, may be sold by itself.
54
+
55
+ 2) Original or Modified Versions of the Font Software may be bundled,
56
+ redistributed and/or sold with any software, provided that each copy
57
+ contains the above copyright notice and this license. These can be
58
+ included either as stand-alone text files, human-readable headers or
59
+ in the appropriate machine-readable metadata fields within text or
60
+ binary files as long as those fields can be easily viewed by the user.
61
+
62
+ 3) No Modified Version of the Font Software may use the Reserved Font
63
+ Name(s) unless explicit written permission is granted by the corresponding
64
+ Copyright Holder. This restriction only applies to the primary font name as
65
+ presented to the users.
66
+
67
+ 4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font
68
+ Software shall not be used to promote, endorse or advertise any
69
+ Modified Version, except to acknowledge the contribution(s) of the
70
+ Copyright Holder(s) and the Author(s) or with their explicit written
71
+ permission.
72
+
73
+ 5) The Font Software, modified or unmodified, in part or in whole,
74
+ must be distributed entirely under this license, and must not be
75
+ distributed under any other license. The requirement for fonts to
76
+ remain under this license does not apply to any document created
77
+ using the Font Software.
78
+
79
+ TERMINATION
80
+ This license becomes null and void if any of the above conditions are
81
+ not met.
82
+
83
+ DISCLAIMER
84
+ THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
85
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF
86
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT
87
+ OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE
88
+ COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
89
+ INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL
90
+ DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
91
+ FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM
92
+ OTHER DEALINGS IN THE FONT SOFTWARE.
@@ -0,0 +1,93 @@
1
+ Copyright 2020 The JetBrains Mono Project Authors (https://github.com/JetBrains/JetBrainsMono)
2
+
3
+ This Font Software is licensed under the SIL Open Font License, Version 1.1.
4
+ This license is copied below, and is also available with a FAQ at:
5
+ https://openfontlicense.org
6
+
7
+
8
+ -----------------------------------------------------------
9
+ SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007
10
+ -----------------------------------------------------------
11
+
12
+ PREAMBLE
13
+ The goals of the Open Font License (OFL) are to stimulate worldwide
14
+ development of collaborative font projects, to support the font creation
15
+ efforts of academic and linguistic communities, and to provide a free and
16
+ open framework in which fonts may be shared and improved in partnership
17
+ with others.
18
+
19
+ The OFL allows the licensed fonts to be used, studied, modified and
20
+ redistributed freely as long as they are not sold by themselves. The
21
+ fonts, including any derivative works, can be bundled, embedded,
22
+ redistributed and/or sold with any software provided that any reserved
23
+ names are not used by derivative works. The fonts and derivatives,
24
+ however, cannot be released under any other type of license. The
25
+ requirement for fonts to remain under this license does not apply
26
+ to any document created using the fonts or their derivatives.
27
+
28
+ DEFINITIONS
29
+ "Font Software" refers to the set of files released by the Copyright
30
+ Holder(s) under this license and clearly marked as such. This may
31
+ include source files, build scripts and documentation.
32
+
33
+ "Reserved Font Name" refers to any names specified as such after the
34
+ copyright statement(s).
35
+
36
+ "Original Version" refers to the collection of Font Software components as
37
+ distributed by the Copyright Holder(s).
38
+
39
+ "Modified Version" refers to any derivative made by adding to, deleting,
40
+ or substituting -- in part or in whole -- any of the components of the
41
+ Original Version, by changing formats or by porting the Font Software to a
42
+ new environment.
43
+
44
+ "Author" refers to any designer, engineer, programmer, technical
45
+ writer or other person who contributed to the Font Software.
46
+
47
+ PERMISSION & CONDITIONS
48
+ Permission is hereby granted, free of charge, to any person obtaining
49
+ a copy of the Font Software, to use, study, copy, merge, embed, modify,
50
+ redistribute, and sell modified and unmodified copies of the Font
51
+ Software, subject to the following conditions:
52
+
53
+ 1) Neither the Font Software nor any of its individual components,
54
+ in Original or Modified Versions, may be sold by itself.
55
+
56
+ 2) Original or Modified Versions of the Font Software may be bundled,
57
+ redistributed and/or sold with any software, provided that each copy
58
+ contains the above copyright notice and this license. These can be
59
+ included either as stand-alone text files, human-readable headers or
60
+ in the appropriate machine-readable metadata fields within text or
61
+ binary files as long as those fields can be easily viewed by the user.
62
+
63
+ 3) No Modified Version of the Font Software may use the Reserved Font
64
+ Name(s) unless explicit written permission is granted by the corresponding
65
+ Copyright Holder. This restriction only applies to the primary font name as
66
+ presented to the users.
67
+
68
+ 4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font
69
+ Software shall not be used to promote, endorse or advertise any
70
+ Modified Version, except to acknowledge the contribution(s) of the
71
+ Copyright Holder(s) and the Author(s) or with their explicit written
72
+ permission.
73
+
74
+ 5) The Font Software, modified or unmodified, in part or in whole,
75
+ must be distributed entirely under this license, and must not be
76
+ distributed under any other license. The requirement for fonts to
77
+ remain under this license does not apply to any document created
78
+ using the Font Software.
79
+
80
+ TERMINATION
81
+ This license becomes null and void if any of the above conditions are
82
+ not met.
83
+
84
+ DISCLAIMER
85
+ THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
86
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF
87
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT
88
+ OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE
89
+ COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
90
+ INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL
91
+ DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
92
+ FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM
93
+ OTHER DEALINGS IN THE FONT SOFTWARE.
@@ -0,0 +1,191 @@
1
+ Copyright 2017 The Playfair Display Project A
2
+ uthors (https://github.com/clauseggers/Playfa
3
+ ir-Display), with Reserved Font Name "Playfai
4
+ r Display"
5
+
6
+ This Font Software is licensed un
7
+ der the SIL Open Font License, Version 1.1.
8
+ T
9
+ his license is copied below, and is also avai
10
+ lable with a FAQ at:
11
+ http://scripts.sil.org/O
12
+ FL
13
+
14
+
15
+ ----------------------------------------
16
+ -------------------
17
+ SIL OPEN FONT LICENSE Ver
18
+ sion 1.1 - 26 February 2007
19
+ -----------------
20
+ ------------------------------------------
21
+
22
+ P
23
+ REAMBLE
24
+ The goals of the Open Font License (O
25
+ FL) are to stimulate worldwide
26
+ development of
27
+ collaborative font projects, to support the
28
+ font creation
29
+ efforts of academic and linguis
30
+ tic communities, and to provide a free and
31
+ op
32
+ en framework in which fonts may be shared and
33
+ improved in partnership
34
+ with others.
35
+
36
+ The OF
37
+ L allows the licensed fonts to be used, studi
38
+ ed, modified and
39
+ redistributed freely as long
40
+ as they are not sold by themselves. The
41
+ font
42
+ s, including any derivative works, can be bun
43
+ dled, embedded,
44
+ redistributed and/or sold wi
45
+ th any software provided that any reserved
46
+ na
47
+ mes are not used by derivative works. The fon
48
+ ts and derivatives,
49
+ however, cannot be releas
50
+ ed under any other type of license. The
51
+ requi
52
+ rement for fonts to remain under this license
53
+ does not apply
54
+ to any document created using
55
+ the fonts or their derivatives.
56
+
57
+ DEFINITIONS
58
+
59
+ "Font Software" refers to the set of files r
60
+ eleased by the Copyright
61
+ Holder(s) under this
62
+ license and clearly marked as such. This may
63
+
64
+ include source files, build scripts and docu
65
+ mentation.
66
+
67
+ "Reserved Font Name" refers to an
68
+ y names specified as such after the
69
+ copyright
70
+ statement(s).
71
+
72
+ "Original Version" refers to
73
+ the collection of Font Software components as
74
+
75
+ distributed by the Copyright Holder(s).
76
+
77
+ "Mo
78
+ dified Version" refers to any derivative made
79
+ by adding to, deleting,
80
+ or substituting -- i
81
+ n part or in whole -- any of the components o
82
+ f the
83
+ Original Version, by changing formats o
84
+ r by porting the Font Software to a
85
+ new envir
86
+ onment.
87
+
88
+ "Author" refers to any designer, eng
89
+ ineer, programmer, technical
90
+ writer or other
91
+ person who contributed to the Font Software.
92
+
93
+
94
+ PERMISSION & CONDITIONS
95
+ Permission is hereby
96
+ granted, free of charge, to any person obtai
97
+ ning
98
+ a copy of the Font Software, to use, stu
99
+ dy, copy, merge, embed, modify,
100
+ redistribute,
101
+ and sell modified and unmodified copies of t
102
+ he Font
103
+ Software, subject to the following co
104
+ nditions:
105
+
106
+ 1) Neither the Font Software nor a
107
+ ny of its individual components,
108
+ in Original
109
+ or Modified Versions, may be sold by itself.
110
+
111
+
112
+ 2) Original or Modified Versions of the Font
113
+ Software may be bundled,
114
+ redistributed and/o
115
+ r sold with any software, provided that each
116
+ copy
117
+ contains the above copyright notice and
118
+ this license. These can be
119
+ included either as
120
+ stand-alone text files, human-readable heade
121
+ rs or
122
+ in the appropriate machine-readable met
123
+ adata fields within text or
124
+ binary files as l
125
+ ong as those fields can be easily viewed by t
126
+ he user.
127
+
128
+ 3) No Modified Version of the Font
129
+ Software may use the Reserved Font
130
+ Name(s) un
131
+ less explicit written permission is granted b
132
+ y the corresponding
133
+ Copyright Holder. This re
134
+ striction only applies to the primary font na
135
+ me as
136
+ presented to the users.
137
+
138
+ 4) The name(s)
139
+ of the Copyright Holder(s) or the Author(s)
140
+ of the Font
141
+ Software shall not be used to pro
142
+ mote, endorse or advertise any
143
+ Modified Versi
144
+ on, except to acknowledge the contribution(s)
145
+ of the
146
+ Copyright Holder(s) and the Author(s)
147
+ or with their explicit written
148
+ permission.
149
+
150
+
151
+ 5) The Font Software, modified or unmodified,
152
+ in part or in whole,
153
+ must be distributed ent
154
+ irely under this license, and must not be
155
+ dis
156
+ tributed under any other license. The require
157
+ ment for fonts to
158
+ remain under this license d
159
+ oes not apply to any document created
160
+ using t
161
+ he Font Software.
162
+
163
+ TERMINATION
164
+ This license b
165
+ ecomes null and void if any of the above cond
166
+ itions are
167
+ not met.
168
+
169
+ DISCLAIMER
170
+ THE FONT SOFT
171
+ WARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF
172
+ ANY KIND,
173
+ EXPRESS OR IMPLIED, INCLUDING BUT
174
+ NOT LIMITED TO ANY WARRANTIES OF
175
+ MERCHANTABIL
176
+ ITY, FITNESS FOR A PARTICULAR PURPOSE AND NON
177
+ INFRINGEMENT
178
+ OF COPYRIGHT, PATENT, TRADEMARK,
179
+ OR OTHER RIGHT. IN NO EVENT SHALL THE
180
+ COPYRI
181
+ GHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES O
182
+ R OTHER LIABILITY,
183
+ INCLUDING ANY GENERAL, SPE
184
+ CIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL
185
+
186
+ DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TO
187
+ RT OR OTHERWISE, ARISING
188
+ FROM, OUT OF THE USE
189
+ OR INABILITY TO USE THE FONT SOFTWARE OR FRO
190
+ M
191
+ OTHER DEALINGS IN THE FONT SOFTWARE.
package/package.json ADDED
@@ -0,0 +1,68 @@
1
+ {
2
+ "name": "@mintfolio/theme-verdant",
3
+ "version": "0.2.0",
4
+ "description": "Verdant, a Mintfolio theme for personal homepages and quiet reading.",
5
+ "type": "module",
6
+ "files": [
7
+ "theme.mjs",
8
+ "settings.ts",
9
+ "pages",
10
+ "layouts",
11
+ "components",
12
+ "scripts",
13
+ "utils",
14
+ "styles",
15
+ "lib",
16
+ "assets",
17
+ "config",
18
+ "README.md",
19
+ "LICENSE",
20
+ "THIRD_PARTY_NOTICES.md",
21
+ "licenses"
22
+ ],
23
+ "exports": {
24
+ "./theme": "./theme.mjs",
25
+ "./settings": "./settings.ts",
26
+ "./config": "./config/theme-verdant.config.mjs"
27
+ },
28
+ "mintfolio": {
29
+ "configTemplate": "./config/theme-verdant.config.mjs"
30
+ },
31
+ "peerDependencies": {
32
+ "@mintfolio/core": "^0.2.0",
33
+ "astro": "^7.3.2"
34
+ },
35
+ "dependencies": {
36
+ "@mintfolio/theme-api": "^1.0.0",
37
+ "@astrojs/react": "^6.0.5",
38
+ "@tailwindcss/vite": "^4.3.3",
39
+ "tailwindcss": "^4.3.3",
40
+ "react": "^19.3.0",
41
+ "react-dom": "^19.3.0"
42
+ },
43
+ "devDependencies": {
44
+ "@typescript/native": "npm:typescript@^7.0.2",
45
+ "typescript": "npm:@typescript/typescript6@^6.0.2",
46
+ "@astrojs/check": "^0.9.10",
47
+ "@mintfolio/core": "^0.2.0",
48
+ "astro": "^7.3.2",
49
+ "@types/node": "^22.20.2",
50
+ "@types/react": "^19.3.0",
51
+ "@types/react-dom": "^19.3.0"
52
+ },
53
+ "scripts": {
54
+ "check": "astro check && node node_modules/@typescript/native/bin/tsc --noEmit",
55
+ "prepack": "npm run check",
56
+ "deps:update": "node tools/update-local-deps.mjs"
57
+ },
58
+ "license": "GPL-3.0-only",
59
+ "author": "CNFLWZH",
60
+ "repository": {
61
+ "type": "git",
62
+ "url": "git+https://github.com/cnflwzh/mintfolio-theme-verdant.git"
63
+ },
64
+ "homepage": "https://github.com/cnflwzh/mintfolio-theme-verdant#readme",
65
+ "bugs": {
66
+ "url": "https://github.com/cnflwzh/mintfolio-theme-verdant/issues"
67
+ }
68
+ }