Skip to content

Commit 940b251

Browse files
committed
Added new donation buttons
These buttons replace the old two links and add Liberapay.
1 parent 5e8faba commit 940b251

File tree

2 files changed

+49
-6
lines changed

2 files changed

+49
-6
lines changed

public/static/custom.css

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,32 @@ html {
1717
#user {
1818
display: block;
1919
}
20+
21+
#donate-widgets {
22+
margin: auto;
23+
margin-top: 10px;
24+
}
25+
26+
.opencollective,
27+
#gh-sponsors {
28+
display: flex !important;
29+
margin: auto !important;
30+
}
31+
32+
.liberapay {
33+
display: flex !important;
34+
width: 50% !important;
35+
margin-bottom: 10px;
36+
margin-left: 46.05px !important;
37+
}
38+
39+
.liberapay-nojs {
40+
display: flex;
41+
margin: auto;
42+
margin-top: -20px;
43+
margin-bottom: 10px;
44+
}
45+
2046
/* Style the tab content */
2147
.tabcontent {
2248
display: none;

templates/index.html

Lines changed: 23 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -356,12 +356,29 @@ <h3 class="title is-3 is-spaced">
356356
</span>
357357
</h3>
358358
<h4 class="subtitle is-5">Donate to the project</h4>
359-
<p>There are currently two ways to support the project financially</p>
360-
<ul>
361-
<li><a href="https://opencollective.com/openandroidinstaller" target="_blank">OpenCollective</a></li>
362-
<li><a href="https://github.com/sponsors/openandroidinstaller-dev" target="_blank">GitHub Sponsors</a>
363-
</li>
364-
</ul>
359+
<p>There are currently three ways to support the project financially:</p>
360+
<div id="donate-widgets" class="center">
361+
<script class="opencollective" src="https://opencollective.com/openandroidinstaller/donate/button.js"
362+
color="blue"></script>
363+
<noscript><a href="https://opencollective.com/openandroidinstaller/donate" rel="noopener"
364+
target="_blank">
365+
<img class="opencollective"
366+
src="https://opencollective.com/webpack/donate/[email protected]?color=blue" width=300 />
367+
</a></noscript>
368+
<br>
369+
<object id="gh-sponsors" title="GitHub Sponsors"
370+
data="https://img.shields.io/github/sponsors/openandroidinstaller-dev?style=for-the-badge&logo=github-sponsors&label=GitHub%20Sponsors&labelColor=white&color=pink&link=https%3A%2F%2Fgithub.com%2Fsponsors%2Fopenandroidinstaller-dev"></object>
371+
<br>
372+
<div class="liberapay">
373+
<script class="liberapay"
374+
src="https://liberapay.com/OpenAndroidInstaller/widgets/button.js"></script>
375+
</div>
376+
<noscript>
377+
<a href="https://liberapay.com/OpenAndroidInstaller/donate" rel="noopener" target="_blank"><img
378+
class="liberapay-nojs" alt="Donate using Liberapay"
379+
src="https://liberapay.com/assets/widgets/donate.svg"></a>
380+
</noscript>
381+
</div>
365382
<p>If you want to use a different method, please contact us.</p>
366383
</div>
367384
</div>

0 commit comments

Comments
 (0)