-
Notifications
You must be signed in to change notification settings - Fork 12
/
sponsorkit.config.js
50 lines (46 loc) · 1012 Bytes
/
sponsorkit.config.js
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
import { defineConfig } from "sponsorkit";
const login = process.env.GITHUB_LOGIN;
const type = process.env.GITHUB_TYPE;
const preset = {
avatar: { size: 40 },
boxWidth: 50,
boxHeight: 50,
container: { sidePadding: 0 },
};
const tierStyles = {
composeBefore: () => {},
composeAfter: () => {},
padding: { top: 0, bottom: 0 },
};
export default defineConfig({
github: { login, type },
name: "sponsors",
outputDir: `static/img/github/${login}`,
width: 800,
padding: { top: 0, bottom: 0 },
formats: ["svg"],
tiers: [
{
// title: "one-time $150+"
monthlyDollars: 150,
isOneTime: true,
preset: preset,
composeBefore: () => {},
composeAfter: () => {},
...tierStyles,
},
{
// title: "monthly $5+",
monthlyDollars: 5,
preset: preset,
composeBefore: () => {},
composeAfter: () => {},
...tierStyles,
},
{
// title: "others",
compose: () => {},
...tierStyles,
},
],
});