From d71bfafda2d94c3d9e4fdcf455d0ed2f79fbbd4a Mon Sep 17 00:00:00 2001 From: Michael Tremer Date: Wed, 26 Jul 2023 15:22:14 +0000 Subject: [PATCH] blog: Encourage people to sign up & subscribe to the newsletter Signed-off-by: Michael Tremer --- src/sass/main.sass | 5 +++ src/templates/blog/index.html | 67 ++++++++++++++++++++++++----------- 2 files changed, 51 insertions(+), 21 deletions(-) diff --git a/src/sass/main.sass b/src/sass/main.sass index 5bcbde92..5401a508 100644 --- a/src/sass/main.sass +++ b/src/sass/main.sass @@ -75,3 +75,8 @@ $section-padding-desktop: 3rem 0.5rem color: $grey &:hover color: $black + +// Used to wrap text on buttons +.wrap-text + height: max-content; + white-space: inherit; diff --git a/src/templates/blog/index.html b/src/templates/blog/index.html index ef5b666f..422c9b89 100644 --- a/src/templates/blog/index.html +++ b/src/templates/blog/index.html @@ -67,32 +67,57 @@
+ {# Show a button to sign up for anonymous users #} + {% if not current_user %} + + + {# Show a button to subscribe if users are logged in, but not yet subscribed #} + {% elif current_user and not current_user.consents_to_promotional_emails %} + + {% end %} +
Follow Us!
-
-
- - - -
-
- - - +
+
+
+ + + +
+
+ + + +
+
+ + + +
-
- - - -
-
-
-
- - - +
+
+ + + +
-- 2.47.3