Skip to content

Commit 07a4538

Browse files
authored
Merge pull request #181 from AntennaPod/donation-model
Implement donation modal
2 parents 1e7e657 + 95bc4ed commit 07a4538

File tree

16 files changed

+868
-46
lines changed

16 files changed

+868
-46
lines changed

_i18n/da.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -106,8 +106,6 @@ contribute:
106106
wireframes? Hjælp med at løse disse problemer.
107107
introduction: AntennaPod er under aktiv udvikling af frivillige. Du kan også bidrage
108108
med kode eller andet!
109-
donate: Hvis du ikke kan bidrage på nogen af de ovennævnte måder, kan du også give
110-
et <a href="https://opencollective.com/antennapod" target="_blank"> bidrag</a>.
111109
documentation:
112110
general:
113111
search-placeholder: Søg i dokumentation

_i18n/en.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,12 @@ contribute:
109109
design:
110110
title: "Design"
111111
text: "You turn complex requests in understandable user stories or wireframes? Help tackle these issues."
112-
donate: "Or, if you can't contribute in any of the ways listed above, you can also make a <a href=\"https://opencollective.com/antennapod\" target=\"_blank\">donation</a>."
112+
donate:
113+
link: "I want to make a <a href=\"https://opencollective.com/antennapod\" target=\"_blank\" data-toggle=\"modal\" data-target=\"#donationModal\">donation</a>."
114+
modal-title: "Are you sure you want to donate?"
115+
modal-button-donate: "Donate anyway"
116+
modal-button-chat: "Discuss with us how you can help"
117+
modal-button-contribute: "Check contribution options again"
113118

114119
## Documentation
115120
documentation:

_i18n/en/general/donation-modal.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
AntennaPod doesn't need a lot of money. **Our (annual) costs are already covered** by our existing donation funds. Therefore, we'd much prefer it if you
2+
* donate to your favorite podcast(er), or
3+
* help us with a non-monetary contribution.

_i18n/es.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -109,8 +109,6 @@ contribute:
109109
"wireframes"? Ayuda a solucionar estos problemas.
110110
introduction: AntennaPod está siendo desarrollado activamente por gente voluntaria.
111111
¡Tú también puedes contribuir, mediante código o de otra manera!
112-
donate: O, si no puedes contribuir de ninguna de las formas arriba listadas, también
113-
puedes hacer una <a href="https://opencollective.com/antennapod" target="_blank">donación</a>.
114112
documentation:
115113
general:
116114
introduction: Bienvenido a la sección de documentación de AntennaPod. Esta sección

_i18n/fr.yml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -110,9 +110,6 @@ contribute:
110110
test:
111111
text: Vous êtes doué pour casser des trucs ? Devenez bêta-testeur.
112112
title: Tester
113-
donate: Ou, si vous ne pouvez pas contribuer de l'une des manières énumérées ci-dessus,
114-
vous pouvez également faire un <a href="https://opencollective.com/antennapod"
115-
target="_blank">don</a>.
116113
documentation:
117114
general:
118115
search-placeholder: Rechercher dans la documentation

_i18n/it.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,6 @@ contribute:
2626
translate:
2727
title: Traduzione
2828
text: Parli altre lingue oltre all'inglese? Aiutaci a tradurre AntennaPod.
29-
donate: Oppure, se non puoi contribuire in nessuno dei modi elencati qui sopra,
30-
puoi anche fare una <a href="https://opencollective.com/antennapod" target="_blank">donazione</a>.
3129
test:
3230
title: Test
3331
text: Rompere le cose ti riesce bene? Diventa beta tester.

_i18n/nl.yml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -100,9 +100,6 @@ contribute:
100100
title: Promoten
101101
text: Schrijf je pakkende tweets en interessante blogs, of maak je prachtige graphics?
102102
Help ons AntennaPod wereldberoemd maken.
103-
donate: Of, als je niet op een van bovenstaande manieren kunt bijdragen, kun je
104-
ook een <a href="https://opencollective.com/antennapod" target="_blank">donatie</a>
105-
doen.
106103
documentation:
107104
categories:
108105
podcasters-hosters:

_sass/_custom.scss

Lines changed: 56 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -496,10 +496,6 @@ button {
496496
border-radius: 50%;
497497
}
498498

499-
.modal-content {
500-
border-radius: 5px;
501-
}
502-
503499
// Texts
504500

505501
textarea {
@@ -531,20 +527,26 @@ blockquote {
531527
// Posts
532528

533529
.post-content {
534-
& p {
530+
& p, li {
535531
font-size: 14px;
536532
color: $gray-900;
537-
margin-bottom: 25px;
533+
margin-bottom: 0px;
538534
line-height: 24px;
539535
}
540536

541-
& a {
542-
color: $gray-900;
543-
font-weight: 600;
544-
text-decoration: underline;
537+
& p + p {
538+
margin-top: 20px;
539+
}
545540

546-
&:hover {
547-
text-decoration: none;
541+
& p, li, h1, h2, h3, h4, h5, h6, #breadcrumbs {
542+
& a {
543+
color: $gray-900;
544+
font-weight: 600;
545+
text-decoration: underline;
546+
547+
&:hover {
548+
text-decoration: none;
549+
}
548550
}
549551
}
550552

@@ -582,16 +584,6 @@ blockquote {
582584
font-weight: 700;
583585
}
584586

585-
& li {
586-
list-style-position: outside;
587-
margin: 0 0 20px 20px;
588-
font-size: 14px;
589-
}
590-
591-
& ul li {
592-
list-style-type: disc;
593-
}
594-
595587
& img[alt$=" > "] {
596588
float: right;
597589
margin: 0 0 20px 20px;
@@ -620,6 +612,10 @@ blockquote {
620612

621613
}
622614

615+
.post-content + .row, p + .row {
616+
margin-top: 20px;
617+
}
618+
623619
.post .cover {
624620
max-height: 350px;
625621
object-fit: cover;
@@ -896,6 +892,44 @@ i.member-img {
896892
}
897893
}
898894

895+
// Lists
896+
897+
.post-content, .modal-body {
898+
& ul {
899+
padding: 0;
900+
margin-bottom: 0;
901+
}
902+
903+
& li {
904+
list-style-position: outside;
905+
margin: 0 0 5px 20px;
906+
}
907+
908+
& ul li {
909+
list-style-type: disc;
910+
}
911+
912+
& ul + p {
913+
margin-bottom: 5px;
914+
}
915+
916+
& p + ul {
917+
margin-top: 5px;
918+
}
919+
}
920+
921+
// Modals
922+
923+
.modal-body p, .modal-body li {
924+
padding: 0;
925+
font-size: 1rem;
926+
}
927+
928+
.modal-footer {
929+
border-top: 0;
930+
padding-top: 0;
931+
}
932+
899933
// Backgrounds
900934

901935
.background {

_sass/_dark.scss

Lines changed: 32 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,37 @@
11
@media (prefers-color-scheme: dark) {
2+
3+
/*!
4+
* Bootstrap v4.6.0 (https://getbootstrap.com/)
5+
* Copyright 2011-2021 The Bootstrap Authors
6+
* Copyright 2011-2021 Twitter, Inc.
7+
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
8+
*
9+
* Bootstrap-Dark (https://vinorodrigues.github.io/bootstrap-dark/)
10+
* Copyright 2020 Vino Rodrigues
11+
* This version is a dual color theme, with the default light mode and the dark
12+
* elements optioned in by a `prefers-color-scheme: dark` media query
13+
*/
14+
15+
@import "./bootstrap-dark/functions";
16+
@import "./bootstrap-dark/variables-alt";
17+
@import "./bootstrap-dark/buttons";
18+
@import "./bootstrap-dark/modal";
19+
220
:root {
321
scrollbar-color: #333 #000;
422
}
523

624
body {
7-
color: #bbb;
25+
color: #ddd;
826
background-color: #111;
927
}
1028

1129
.content h1,
1230
.content h2,
1331
.content h3,
14-
.content h4 {
32+
.content h4,
33+
.content h5,
34+
.content h6 {
1535
color: #ddd;
1636
}
1737

@@ -44,10 +64,13 @@
4464
border-color: #333;
4565
}
4666

47-
.post-content {
67+
.post-content, .modal-body {
68+
& p, li {
69+
color: #ddd;
4870

49-
& p {
50-
color: #ddd;
71+
& a {
72+
color: #bbf;
73+
}
5174
}
5275

5376
& #donate {
@@ -82,11 +105,6 @@
82105
color: #fff;
83106
}
84107

85-
.post-header a,
86-
.post-content a {
87-
color: #bbf;
88-
}
89-
90108
.overlay {
91109
background-color: #333;
92110
}
@@ -108,4 +126,8 @@
108126
color: #ddd !important;
109127
}
110128

129+
.modal-footer {
130+
border-top: 0;
131+
}
132+
111133
}

_sass/bootstrap-dark/_buttons.scss

Lines changed: 66 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,66 @@
1+
2+
// Base styles
3+
4+
.btn {
5+
color: $body-color-alt;
6+
7+
@include hover() {
8+
color: $body-color-alt;
9+
}
10+
11+
&:focus,
12+
&.focus {
13+
box-shadow: $btn-focus-box-shadow-alt;
14+
}
15+
16+
// Disabled comes first so active can properly restyle
17+
&.disabled,
18+
&:disabled {
19+
opacity: $btn-disabled-opacity-alt;
20+
@include box-shadow(none);
21+
}
22+
23+
&:not(:disabled):not(.disabled) {
24+
25+
&:active,
26+
&.active {
27+
@include box-shadow($btn-active-box-shadow-alt);
28+
29+
&:focus {
30+
@include box-shadow($btn-focus-box-shadow-alt, $btn-active-box-shadow-alt);
31+
}
32+
}
33+
}
34+
}
35+
36+
// Alternate buttons
37+
38+
@each $color, $value in $theme-colors-alt {
39+
.btn-#{$color} {
40+
@include button-variant($value, $value);
41+
}
42+
}
43+
44+
@each $color, $value in $theme-colors-alt {
45+
.btn-outline-#{$color} {
46+
@include button-outline-variant($value);
47+
}
48+
}
49+
50+
51+
// Link buttons
52+
53+
// Make a button look and behave like a link
54+
.btn-link {
55+
color: $link-color-alt;
56+
57+
@include hover() {
58+
color: $link-hover-color-alt;
59+
}
60+
61+
&:disabled,
62+
&.disabled {
63+
color: $btn-link-disabled-color-alt;
64+
pointer-events: none;
65+
}
66+
}

0 commit comments

Comments
 (0)