This repository has been archived by the owner on Jul 10, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
sponsorkit.config.ts
239 lines (236 loc) Β· 10.5 KB
/
sponsorkit.config.ts
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
import { defineConfig, presets } from "sponsorkit";
const SPECIAL_SPONSOR_LOGO = (width: number, y: number) => `
<a xlink:href="https://vercel.com/?utm_source=codinasion%26utm_campaign=oss" class="sponsorkit-link" target="_blank" id="become-a-sponsor">
<svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="${
(width - 361) / 2
}" y="${y}" width="361" height="86" viewBox="0 0 361 86" enable-background="new 0 0 361 86" xml:space="preserve">
<path fill="#FEFEFE" opacity="1.000000" stroke="none"
d="
M302.000000,87.000000
C201.333344,87.000000 101.166687,87.000000 1.000027,87.000000
C1.000018,58.333347 1.000018,29.666697 1.000009,1.000035
C121.333305,1.000023 241.666611,1.000023 361.999939,1.000012
C361.999939,29.666634 361.999939,58.333267 361.999969,86.999954
C342.166656,87.000000 322.333344,87.000000 302.000000,87.000000
M92.004692,50.461868
C84.247955,36.986656 76.491211,23.511444 68.494736,9.619759
C55.214211,32.734135 42.210560,55.366627 29.052574,78.267731
C55.713036,78.267731 81.554787,78.267731 107.981613,78.267731
C102.581711,68.893784 97.461227,60.004894 92.004692,50.461868
M301.799225,65.326279
C307.170135,64.597733 311.856567,62.646412 315.328369,58.172932
C309.165833,53.761246 309.165833,53.761246 303.084442,56.111359
C296.722229,58.569996 290.029022,55.930538 288.108185,49.939266
C297.796448,49.939266 307.390594,49.939266 316.902924,49.939266
C319.338470,40.156948 313.942596,30.877226 304.350891,27.917269
C292.963776,24.403255 281.456512,29.454027 277.952179,39.504204
C272.887817,54.028484 284.177032,66.760780 301.799225,65.326279
M201.008667,39.802444
C196.821381,30.072662 189.172073,25.797277 178.244446,27.078976
C169.284210,28.129919 162.696854,34.512970 161.344162,43.455116
C160.091599,51.735329 164.496918,59.752880 172.303299,63.400440
C181.816025,67.845299 192.943604,65.770874 199.573227,58.316730
C194.109344,53.628376 193.725723,53.553261 187.769745,56.005634
C181.310745,58.665123 174.415894,56.024334 172.300476,49.763687
C182.168991,49.763687 191.917191,49.763687 202.275162,49.763687
C201.878326,46.424549 201.532196,43.512001 201.008667,39.802444
M145.759552,36.210648
C143.696396,39.738674 141.633240,43.266701 139.292175,47.269943
C133.943344,37.961929 128.568069,29.190331 123.823433,20.089941
C121.657967,15.936490 119.033730,14.234013 114.536873,14.955888
C113.148056,15.178831 111.693222,14.990544 109.545143,14.990544
C119.638397,32.528778 129.361862,49.424473 139.340607,66.763741
C149.398987,49.250221 159.107269,32.346279 169.075027,14.990522
C166.962463,14.990522 165.601486,15.181046 164.312866,14.956466
C159.557465,14.127706 156.736618,15.922483 154.680145,20.398140
C152.264450,25.655672 148.980545,30.514284 145.759552,36.210648
M272.440887,34.282089
C267.177979,27.766750 260.090729,26.218006 252.257980,27.135593
C242.997986,28.220383 236.363434,35.221149 235.685547,44.295040
C234.934006,54.355228 240.274231,62.371746 249.373337,64.842575
C259.254211,67.525681 269.201477,63.982483 273.161377,56.211418
C270.636383,54.758030 268.104645,53.300766 265.667145,51.897751
C260.191040,57.658066 253.263809,58.602638 248.635406,54.494705
C244.469177,50.796989 243.988205,43.342911 247.639297,39.057076
C251.818848,34.150909 258.614044,34.593189 266.606415,40.709167
C268.628937,38.830914 270.754791,36.856689 272.440887,34.282089
M223.934952,39.025681
C226.643539,38.537315 229.352142,38.048950 232.103149,37.552937
C232.103149,34.473545 232.103149,31.366461 232.103149,26.612209
C226.869904,29.143627 222.426575,31.292942 218.212158,33.331535
C218.128357,31.877897 218.018463,29.971792 217.916718,28.206821
C214.576721,28.206821 211.672638,28.206821 208.875580,28.206821
C208.875580,40.522110 208.875580,52.527485 208.875580,64.521164
C212.081757,64.521164 214.855774,64.521164 218.129578,64.521164
C218.129578,59.376873 218.186508,54.437683 218.112381,49.500465
C218.047745,45.195770 219.487564,41.720985 223.934952,39.025681
M324.049438,56.423473
C324.049438,59.040783 324.049438,61.658089 324.049438,64.311935
C327.587646,64.311935 330.609711,64.311935 333.467560,64.311935
C333.467560,47.641171 333.467560,31.399374 333.467560,15.260343
C330.186493,15.260343 327.256958,15.260343 324.049103,15.260343
C324.049103,28.841175 324.049103,42.141174 324.049438,56.423473
z"/>
<path fill="#050505" opacity="1.000000" stroke="none"
d="
M92.172714,50.788937
C97.461227,60.004894 102.581711,68.893784 107.981613,78.267731
C81.554787,78.267731 55.713036,78.267731 29.052574,78.267731
C42.210560,55.366627 55.214211,32.734135 68.494736,9.619759
C76.491211,23.511444 84.247955,36.986656 92.172714,50.788937
z"/>
<path fill="#060606" opacity="1.000000" stroke="none"
d="
M301.385986,65.396843
C284.177032,66.760780 272.887817,54.028484 277.952179,39.504204
C281.456512,29.454027 292.963776,24.403255 304.350891,27.917269
C313.942596,30.877226 319.338470,40.156948 316.902924,49.939266
C307.390594,49.939266 297.796448,49.939266 288.108185,49.939266
C290.029022,55.930538 296.722229,58.569996 303.084442,56.111359
C309.165833,53.761246 309.165833,53.761246 315.328369,58.172932
C311.856567,62.646412 307.170135,64.597733 301.385986,65.396843
M298.194092,35.536633
C291.236969,35.988667 289.328613,37.228222 287.911407,42.247086
C294.241730,42.247086 300.554993,42.247086 307.306000,42.247086
C305.637573,38.034630 302.860229,36.131527 298.194092,35.536633
z"/>
<path fill="#060606" opacity="1.000000" stroke="none"
d="
M201.097366,40.200947
C201.532196,43.512001 201.878326,46.424549 202.275162,49.763687
C191.917191,49.763687 182.168991,49.763687 172.300476,49.763687
C174.415894,56.024334 181.310745,58.665123 187.769745,56.005634
C193.725723,53.553261 194.109344,53.628376 199.573227,58.316730
C192.943604,65.770874 181.816025,67.845299 172.303299,63.400440
C164.496918,59.752880 160.091599,51.735329 161.344162,43.455116
C162.696854,34.512970 169.284210,28.129919 178.244446,27.078976
C189.172073,25.797277 196.821381,30.072662 201.097366,40.200947
M181.510895,35.472897
C177.099915,35.883106 173.322357,37.154221 171.910797,42.214050
C178.631836,42.214050 184.918243,42.214050 191.605255,42.214050
C189.790787,37.531494 186.504868,35.868916 181.510895,35.472897
z"/>
<path fill="#060606" opacity="1.000000" stroke="none"
d="
M145.916367,35.878273
C148.980545,30.514284 152.264450,25.655672 154.680145,20.398140
C156.736618,15.922483 159.557465,14.127706 164.312866,14.956466
C165.601486,15.181046 166.962463,14.990522 169.075027,14.990522
C159.107269,32.346279 149.398987,49.250221 139.340607,66.763741
C129.361862,49.424473 119.638397,32.528778 109.545143,14.990544
C111.693222,14.990544 113.148056,15.178831 114.536873,14.955888
C119.033730,14.234013 121.657967,15.936490 123.823433,20.089941
C128.568069,29.190331 133.943344,37.961929 139.292175,47.269943
C141.633240,43.266701 143.696396,39.738674 145.916367,35.878273
z"/>
<path fill="#080808" opacity="1.000000" stroke="none"
d="
M272.660767,34.582275
C270.754791,36.856689 268.628937,38.830914 266.606415,40.709167
C258.614044,34.593189 251.818848,34.150909 247.639297,39.057076
C243.988205,43.342911 244.469177,50.796989 248.635406,54.494705
C253.263809,58.602638 260.191040,57.658066 265.667145,51.897751
C268.104645,53.300766 270.636383,54.758030 273.161377,56.211418
C269.201477,63.982483 259.254211,67.525681 249.373337,64.842575
C240.274231,62.371746 234.934006,54.355228 235.685547,44.295040
C236.363434,35.221149 242.997986,28.220383 252.257980,27.135593
C260.090729,26.218006 267.177979,27.766750 272.660767,34.582275
z"/>
<path fill="#0D0D0D" opacity="1.000000" stroke="none"
d="
M223.573029,39.191116
C219.487564,41.720985 218.047745,45.195770 218.112381,49.500465
C218.186508,54.437683 218.129578,59.376873 218.129578,64.521164
C214.855774,64.521164 212.081757,64.521164 208.875580,64.521164
C208.875580,52.527485 208.875580,40.522110 208.875580,28.206821
C211.672638,28.206821 214.576721,28.206821 217.916718,28.206821
C218.018463,29.971792 218.128357,31.877897 218.212158,33.331535
C222.426575,31.292942 226.869904,29.143627 232.103149,26.612209
C232.103149,31.366461 232.103149,34.473545 232.103149,37.552937
C229.352142,38.048950 226.643539,38.537315 223.573029,39.191116
z"/>
<path fill="#0D0D0D" opacity="1.000000" stroke="none"
d="
M324.049255,55.932323
C324.049103,42.141174 324.049103,28.841175 324.049103,15.260343
C327.256958,15.260343 330.186493,15.260343 333.467560,15.260343
C333.467560,31.399374 333.467560,47.641171 333.467560,64.311935
C330.609711,64.311935 327.587646,64.311935 324.049438,64.311935
C324.049438,61.658089 324.049438,59.040783 324.049255,55.932323
z"/>
<path fill="#E2E2E2" opacity="1.000000" stroke="none"
d="
M298.576233,35.592941
C302.860229,36.131527 305.637573,38.034630 307.306000,42.247086
C300.554993,42.247086 294.241730,42.247086 287.911407,42.247086
C289.328613,37.228222 291.236969,35.988667 298.576233,35.592941
z"/>
<path fill="#E5E5E5" opacity="1.000000" stroke="none"
d="
M181.897491,35.497982
C186.504868,35.868916 189.790787,37.531494 191.605255,42.214050
C184.918243,42.214050 178.631836,42.214050 171.910797,42.214050
C173.322357,37.154221 177.099915,35.883106 181.897491,35.497982
z"/>
</svg>
</a>
`;
export default defineConfig({
// Providers configs
github: {
// `user` or `organization`
type: "organization",
},
tiers: [
{
title: "π€ Supporter π€",
preset: presets.xs,
},
{
title: "π Backer π",
monthlyDollars: 4,
preset: presets.small,
},
{
title: "π₯ Bronze Sponsor π₯",
monthlyDollars: 8,
preset: presets.small,
},
{
title: "π₯ Silver Sponsor π₯",
monthlyDollars: 16,
preset: presets.base,
},
{
title: "π₯ Gold Sponsor π₯",
monthlyDollars: 32,
preset: presets.medium,
},
{
title: "π Platinum Sponsor π",
monthlyDollars: 64,
preset: presets.large,
},
{
title: "π Diamond Sponsor π",
monthlyDollars: 128,
preset: presets.xl,
},
{
title: "Special Sponsor",
monthlyDollars: Infinity,
composeAfter(compose, _, config) {
if (
config.filter?.({ monthlyDollars: Infinity } as any, []) !== false
) {
compose
.addSpan(20)
.addText("Special Sponsor", "sponsorkit-tier-title")
.addSpan(10)
.addRaw(SPECIAL_SPONSOR_LOGO(config.width!, compose.height))
.addSpan(130);
}
},
},
],
});