-
-
Notifications
You must be signed in to change notification settings - Fork 675
/
sponsorkit.config.mts
117 lines (115 loc) · 1.87 KB
/
sponsorkit.config.mts
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
import { BadgePreset, defineConfig } from "sponsorkit";
const presets = {
past: {
avatar: {
size: 20,
},
boxWidth: 25,
boxHeight: 25,
container: {
sidePadding: 30,
},
},
backers: {
avatar: {
size: 30,
},
boxWidth: 35,
boxHeight: 35,
container: {
sidePadding: 30,
},
},
members: {
avatar: {
size: 45,
},
boxWidth: 55,
boxHeight: 55,
container: {
sidePadding: 30,
},
},
bronze: {
avatar: {
size: 75,
},
boxWidth: 90,
boxHeight: 100,
container: {
sidePadding: 20,
},
name: {
maxLength: 10,
},
},
silver: {
avatar: {
size: 100,
},
boxWidth: 105,
boxHeight: 125,
container: {
sidePadding: 20,
},
name: {
maxLength: 16,
},
},
gold: {
avatar: {
size: 150,
},
boxWidth: 175,
boxHeight: 175,
container: {
sidePadding: 20,
},
name: {
maxLength: 20,
},
},
} satisfies Record<string, BadgePreset>;
export default defineConfig({
includePastSponsors: true,
formats: ["svg"],
github: {
login: "TypeGraphQL",
type: "organization",
},
// opencollective: {
// type: "collective",
// slug: "typegraphql",
// },
tiers: [
{
title: "Past Sponsors ⏳",
monthlyDollars: -1,
preset: presets.past,
},
{
title: "Backers ☕",
preset: presets.backers,
},
{
title: "Members 💪",
monthlyDollars: 15,
preset: presets.members,
},
{
title: "Bronze Sponsors 🥉",
monthlyDollars: 50,
preset: presets.bronze,
},
{
title: "Silver Sponsors 🥈",
monthlyDollars: 100,
preset: presets.silver,
},
{
title: "Gold Sponsors 🏆",
monthlyDollars: 300,
preset: presets.gold,
},
],
});