Skip to content

Commit f4e8af8

Browse files
committed
Added link to GitHub sponsor page.
Added Relogic's monthly donation to the total.
1 parent 0b15ca6 commit f4e8af8

File tree

2 files changed

+25
-7
lines changed

2 files changed

+25
-7
lines changed

website/content/donate.njk

Lines changed: 15 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -13,19 +13,28 @@ title: Donate
1313
<p>To ensure MonoGame continues to thrive into the future the MonoGame Foundation <b>needs your support</b>. Your donations help us keep pace with advancing technology and new platforms, ensuring MonoGame remains a powerful tool for all game developers.</p>
1414
<p>If your time using MonoGame has been enjoyable, educational, or it helped create your successful game, consider giving back to the project. Your contributions ensure a future where game development is accessible to everyone.</p>
1515
<p>Donate now and be a part of this exciting journey.</p>
16-
<a class="btn mg-patreon-button" type="button" href="https://www.patreon.com/bePatron?u=3142012" target="_blank">
17-
{% include 'svgs/logos/patreon.svg'%}
18-
Become a member!
19-
</a>
16+
<br/>
17+
<div class="row justify-content-center">
18+
<div class="col-md-auto mb-2 mx-4">
19+
<a class="btn mg-patreon-button px-4" type="button" href="https://github.com/sponsors/MonoGame" target="_blank">
20+
<i class="bi bi-heart"></i> GitHub
21+
</a>
22+
</div>
23+
<div class="col-md-auto mb-2 mx-4">
24+
<a class="btn mg-patreon-button px-4" type="button" href="https://www.patreon.com/bePatron?u=3142012" target="_blank">
25+
{% include 'svgs/logos/patreon.svg'%} Patreon
26+
</a>
27+
</div>
28+
</div>
2029
</div>
2130
<div class="col-sm-3 patreon-stats">
2231
<div class="patreon-stat monthly">
2332
<span id="per-month"></span>
24-
<p>monthly</p>
33+
<p>Monthly</p>
2534
</div>
2635
<div class="patreon-stat patreon">
2736
<span id="total-patrons"></span>
28-
<p>patrons</p>
37+
<p>Sponsors</p>
2938
</div>
3039
</div>
3140
</div>

website/content/public/js/patreon.js

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,16 @@
2525
if(data.included && data.included.length > 0) {
2626
const attributes = data.included[0].attributes;
2727
const patron_count = attributes.patron_count;
28-
const pledge_sum = attributes.pledge_sum;
28+
let pledge_sum = attributes.pledge_sum;
29+
30+
// HACK: Add in a few things from other services.
31+
{
32+
// Re-logic's monthly donation.
33+
pledge_sum += 100000;
34+
35+
// TODO: Get GitHub sponsors and merge them with this.
36+
// Requires a personal access token to do so.
37+
}
2938

3039
const total_patrons = document.getElementById('total-patrons');
3140
countUp(total_patrons, patron_count, (x) => x);

0 commit comments

Comments
 (0)