Initial commit
This commit is contained in:
commit
38bd10d4e4
6 changed files with 1016 additions and 0 deletions
79
sponsor.config.ts
Normal file
79
sponsor.config.ts
Normal file
|
|
@ -0,0 +1,79 @@
|
|||
import { defineConfig, tierPresets } from 'sponsorkit'
|
||||
|
||||
export default defineConfig({
|
||||
// includePrivate: true,
|
||||
tiers: [
|
||||
{
|
||||
title: 'Past Sponsors',
|
||||
monthlyDollars: -1,
|
||||
preset: tierPresets.xs,
|
||||
},
|
||||
{
|
||||
title: 'Backers',
|
||||
// to replace the entire tier rendering
|
||||
// compose: (composer, tierSponsors, config) => {
|
||||
// composer.addRaw(
|
||||
// '<-- custom svg -->',
|
||||
// )
|
||||
// },
|
||||
},
|
||||
{
|
||||
title: 'Sponsors',
|
||||
monthlyDollars: 10,
|
||||
preset: tierPresets.medium,
|
||||
// to insert custom elements after the tier block
|
||||
composeAfter: (composer, _tierSponsors, _config) => {
|
||||
composer.addSpan(10)
|
||||
},
|
||||
},
|
||||
{
|
||||
title: 'Silver Sponsors',
|
||||
monthlyDollars: 50,
|
||||
preset: tierPresets.large,
|
||||
},
|
||||
{
|
||||
title: 'Gold Sponsors',
|
||||
monthlyDollars: 100,
|
||||
preset: tierPresets.xl,
|
||||
},
|
||||
],
|
||||
|
||||
// Replace links and avatars
|
||||
// replaceLinks: {
|
||||
// 'https://github.com/antfu': 'https://antfu.me',
|
||||
// },
|
||||
// replaceAvatars: {
|
||||
// ...
|
||||
// },
|
||||
|
||||
// Automatically Merge sponsors from different platforms
|
||||
sponsorsAutoMerge: true,
|
||||
|
||||
// Manually merge sponsors from different platforms
|
||||
// mergeSponsors: [
|
||||
// [
|
||||
// { login: 'patak-dev', provider: 'github' },
|
||||
// { login: 'patak', provider: 'opencollective' },
|
||||
// ],
|
||||
// ],
|
||||
|
||||
// Run multiple renders with different configurations
|
||||
renders: [
|
||||
{
|
||||
name: 'sponsors',
|
||||
width: 800,
|
||||
formats: ['svg', 'png'],
|
||||
},
|
||||
{
|
||||
name: 'sponsors-wide',
|
||||
width: 1000,
|
||||
formats: ['svg'],
|
||||
},
|
||||
{
|
||||
renderer: 'circles',
|
||||
name: 'sponsors-circles',
|
||||
width: 1000,
|
||||
includePastSponsors: true,
|
||||
},
|
||||
],
|
||||
})
|
||||
Loading…
Add table
Add a link
Reference in a new issue