Skip to content

Commit b58ff92

Browse files
authored
Merge pull request #386 from TobiGr/donation-info
Add bank transfer and PayPal donation info
2 parents 8d575a2 + 7d3a06e commit b58ff92

File tree

2 files changed

+81
-26
lines changed

2 files changed

+81
-26
lines changed

css/donate.css

Lines changed: 50 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ main .row [class^="col"] {
5858
#donate {
5959
padding: 90px 0;
6060
color: white;
61-
background: rgba(115, 115, 115, 0.88);
61+
background: rgba(90, 90, 90, 0.9)
6262
}
6363

6464
#donate h3 {
@@ -78,26 +78,41 @@ main .row [class^="col"] {
7878
flex-direction: row;
7979
flex-wrap: wrap;
8080
justify-content: space-between;
81-
margin-bottom: 30px;
81+
margin-bottom: 0;
82+
padding: 0 15px;
83+
}
84+
85+
#button-container > .row {
86+
display: initial;
87+
width: 100%;
8288
}
8389

8490
#button-container > * {
8591
flex-grow: 0;
8692
}
8793

88-
.button-wrapper {
89-
flex-grow: 1;
90-
margin-bottom: 30px;
94+
#button-container .donate {
95+
width: 100%;
9196
}
9297

93-
#liberapay-donation {
94-
text-align: right;
98+
#button-container .donate.button-large {
99+
text-align: center;
95100
}
96101

97102
/* hidden until we have the full info */
98-
#liberapay-donation span,
99103
#bank-transfer-donation {
100-
display: none;
104+
font-weight: inherit;
105+
border: 3px solid white;
106+
backdrop-filter: blur(10px);
107+
background: rgba(3, 3, 3, 0.2);
108+
}
109+
110+
#bank-transfer-donation h4 {
111+
font-weight: bold;
112+
}
113+
114+
#bank-transfer-donation th {
115+
padding-right: 1rem;
101116
}
102117

103118
#bank-transfer-donation pre {
@@ -142,6 +157,13 @@ main .row [class^="col"] {
142157
display: block;
143158
order: 3;
144159
}
160+
#bank-transfer-donation table * {
161+
text-align: left;
162+
}
163+
#bank-transfer-donation table {
164+
position: relative;
165+
margin: 0 auto;
166+
}
145167
}
146168

147169
#parallax-background {
@@ -175,15 +197,22 @@ main .row [class^="col"] {
175197
}
176198

177199
.phone-background img {
178-
max-width: 230px;
200+
max-width: 200px;
179201
display: none;
180202
position: relative;
203+
margin-top: 105px;
181204
}
182205

183206
@media (min-width: 768px) {
184207
.phone-background img {
208+
max-width: 230px;
185209
display: block;
186-
margin-top: 30px;
210+
}
211+
}
212+
213+
@media (min-width: 1200px) {
214+
.phone-background img {
215+
margin-top: 60px;
187216
}
188217
}
189218

@@ -194,12 +223,6 @@ main .row [class^="col"] {
194223
}
195224
}
196225

197-
@media (min-width: 992px) {
198-
.phone-background img {
199-
margin-top: 45px;
200-
}
201-
}
202-
203226
#footer .image-buffer {
204227
background-color: #D0CDCD;
205228
}
@@ -218,3 +241,13 @@ main .row [class^="col"] {
218241
.donate-section-title {
219242
font-size: 18px;
220243
}
244+
245+
.donate-action-subtitle {
246+
position: absolute;
247+
bottom: 3px;
248+
font-size: 8pt;
249+
font-weight: normal;
250+
opacity: 0.9;
251+
left: 50%;
252+
transform: translate(-50%, 0%);
253+
}

donate/index.html

Lines changed: 31 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -46,16 +46,38 @@ <h3 class="with-subtitle">Do you like what we did so far?</h3>
4646
<p class="subtitle">Help us to bring NewPipe forward!</p>
4747
</div>
4848
<div class="col-xs-12 col-lg-10" id="button-container">
49-
<div class="button-wrapper" id="liberapay-donation">
50-
<a href="https://liberapay.com/TeamNewPipe/" target="_blank">
51-
<button class="button button-large action donate">Liberapay</button>
52-
</a>
49+
<div class="row" style="width: 100%;">
50+
<div class="col-sm-12 col-lg-6">
51+
<div class="button-wrapper" id="liberapay-donation">
52+
<a href="https://liberapay.com/TeamNewPipe/" target="_blank"
53+
class="button button-large action donate" title="Donate to NewPipe via Liberapay">
54+
Liberapay
55+
</a>
56+
</div>
57+
</div>
58+
<div class="col-sm-12 col-lg-6">
59+
<div class="button-wrapper" id="paypal-donation">
60+
<a href="https://www.paypal.com/donate/?hosted_button_id=MZXL7WW8DXZBJ" target="_blank"
61+
class="button button-large action donate" title="Donate to NewPipe via PayPal">
62+
PayPal
63+
<div class="donate-action-subtitle">(higher fees)</div>
64+
</a>
65+
</div>
66+
</div>
5367
<div class="clearfix"></div>
54-
<span>recurrent donations&nbsp;&nbsp;</span>
55-
</div>
56-
<div class="button-wrapper" id="bank-transfer-donation">
57-
<pre></pre>
58-
68+
<div class="col-sm-12">
69+
<div class="button-wrapper button action donate" id="bank-transfer-donation">
70+
<h4>Bank transfer</h4>
71+
<table>
72+
<tbody>
73+
<tr><th scope="row">Account holder:</th><td>NewPipe e.V.</td></tr>
74+
<tr><th scope="row">IBAN:</th><td>DE94 4306 0967 1308 7563 00</td></tr>
75+
<tr><th scope="row">Bank:</th><td>GLS Gemeinschaftsbank eG</td></tr>
76+
<tr><th scope="row">BIC:</th><td>GENODEM1GLS</td></tr>
77+
</tbody>
78+
</table>
79+
</div>
80+
</div>
5981
</div>
6082
</div>
6183
</div>

0 commit comments

Comments
 (0)