-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsponsorkit.config.ts
105 lines (102 loc) · 2 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
import { defineConfig, tierPresets, type BadgePreset } from "sponsorkit";
const year = new Date().getFullYear();
const month = new Date().getMonth() + 1;
const date = `${year}-${month.toString().padStart(2, "0")}`;
const past: BadgePreset = {
avatar: {
size: 20,
},
boxWidth: 22,
boxHeight: 22,
container: {
sidePadding: 35,
},
};
export default defineConfig({
outputDir: ".",
formats: ["svg", "png"],
tiers: [
{
title: "Past Sponsors",
monthlyDollars: -1,
preset: past,
},
{
title: "Backers",
preset: tierPresets.small,
},
{
title: "Sponsors",
monthlyDollars: 5,
preset: {
avatar: {
size: 42,
},
boxWidth: 52,
boxHeight: 52,
container: {
sidePadding: 30,
},
},
},
{
title: "Silver Sponsors",
monthlyDollars: 10,
preset: tierPresets.medium,
},
{
title: "Gold Sponsors",
monthlyDollars: 25,
preset: tierPresets.large,
},
{
title: "Platinum Sponsors",
monthlyDollars: 50,
preset: tierPresets.xl,
},
],
renders: [
{
name: `sponsors.${date}`,
width: 1000,
includePastSponsors: false,
renderer: "circles",
},
{
name: "sponsors.all",
width: 1000,
includePastSponsors: true,
renderer: "circles",
},
{
name: "sponsors",
width: 800,
includePastSponsors: true,
renderer: "tiers",
},
{
name: "sponsors.wide",
width: 1800,
includePastSponsors: true,
renderer: "tiers",
},
{
name: "sponsors.part1",
width: 800,
includePastSponsors: true,
renderer: "tiers",
filter(sponsor) {
return sponsor.monthlyDollars >= 9.9;
},
},
{
name: "sponsors.part2",
width: 800,
includePastSponsors: true,
renderer: "tiers",
filter(sponsor) {
return sponsor.monthlyDollars < 9.9;
},
},
],
});