From: Radek Czajka Date: Fri, 12 Dec 2025 14:55:21 +0000 (+0100) Subject: donation fixes X-Git-Url: https://git.mdrn.pl/wolnelektury.git/commitdiff_plain/refs/heads/master?hp=43946f0f9b1254d0b2ad76d72fd8c7a7fcb6106c donation fixes --- diff --git a/src/annoy/models.py b/src/annoy/models.py index 097872b40..6af1cc045 100644 --- a/src/annoy/models.py +++ b/src/annoy/models.py @@ -66,7 +66,13 @@ class Banner(models.Model): return self.campaign.image else: return self.image - + + def is_external(self): + return (self.url and + not self.url.startswith('/') and + not self.url.startswith('https://wolnelektury.pl/') + ) + @classmethod def choice(cls, place, request, exemptions=True, book=None): Membership = apps.get_model('club', 'Membership') diff --git a/src/annoy/templates/annoy/banner.html b/src/annoy/templates/annoy/banner.html index bfecd9d36..9a67fcdcb 100644 --- a/src/annoy/templates/annoy/banner.html +++ b/src/annoy/templates/annoy/banner.html @@ -20,7 +20,9 @@ {% if banner.background_color %}background-color: {{ banner.background_color }};{% endif %} "> {% if not banner.action_label %} - + {% endif %}
@@ -34,7 +36,9 @@
{% if banner.action_label %} -
+ {{ banner.action_label }} {% endif %} diff --git a/src/club/templates/club/donation_step_base.html b/src/club/templates/club/donation_step_base.html index 804ace3f8..388932488 100644 --- a/src/club/templates/club/donation_step_base.html +++ b/src/club/templates/club/donation_step_base.html @@ -29,7 +29,9 @@
- Wspieraj Wolne Lektury +
+
{% chunk "donate-top" %}
diff --git a/src/wolnelektury/static/2022/styles/layout/_checkout.scss b/src/wolnelektury/static/2022/styles/layout/_checkout.scss index 28fd1ce01..6bc86d008 100644 --- a/src/wolnelektury/static/2022/styles/layout/_checkout.scss +++ b/src/wolnelektury/static/2022/styles/layout/_checkout.scss @@ -67,10 +67,13 @@ display: flex; background: #083F4D; - img { + .l-checkout__box__header__img { display: none; + background-position: center; + background-size: cover; @include rwd($break-flow) { display: block; + width: 50%; } } } @@ -330,12 +333,9 @@ } } .l-checkout__payments__box__btn-wrp { - padding: 0 20px 20px 20px; + padding: 20px; margin-bottom: 0; margin-top: auto; - @include rwd($break-flow) { - padding-top: 20px; - } } p { margin-top: 0; @@ -353,7 +353,6 @@ font-family: "Source Sans Pro",sans-serif; font-weight: bold; font-size: 44px; - line-height: 130%; letter-spacing: -0.01em; height: 90px; display: flex; @@ -370,10 +369,15 @@ text-align: center; color: #083F4D; + flex-direction: column; + @include rwd($break-flow) { + flex-direction: row; + line-height: 130%; + } + span { font-weight: 600; font-size: 25px; - line-height: 200%; letter-spacing: -0.01em; color: #92BD39; margin-left: 10px;