From 9acbd1509601bfa8ca481f55363e32715983d7f5 Mon Sep 17 00:00:00 2001 From: SMT <83726258+scottmakestech@users.noreply.github.com> Date: Mon, 18 Nov 2024 21:52:40 -0600 Subject: [PATCH 1/5] Let's Encrypt Opt In page --- content/en/opt-in.html | 14 ++++---------- layouts/_default/baseof.html | 5 ++++- layouts/partials/footer.html | 7 +++++-- layouts/partials/newsletter-form.html | 3 +++ 4 files changed, 16 insertions(+), 13 deletions(-) create mode 100644 layouts/partials/newsletter-form.html diff --git a/content/en/opt-in.html b/content/en/opt-in.html index 8c75c91389..0a5755a30b 100644 --- a/content/en/opt-in.html +++ b/content/en/opt-in.html @@ -1,20 +1,14 @@ --- -title: Newsletter Signup +title: Sign up for the ISRG Newsletter slug: opt-in -date: 2023-05-30 -do_not_translate: 1 +date: 2024-11-19 +should_display_prominent_newsletter_form: true ---
-

Sign up for the ISRG Newsletter

ISRG's monthly newsletter recaps what we're up to and shares recent security and privacy news that caught our attention.

-

By signing up for the Newsletter you agree to Let's Encrypt handling your information as described in our privacy policy: https://letsencrypt.org/privacy/

- -
- - -
+

By signing up for the Newsletter you agree to Let's Encrypt handling your information as described in our privacy policy.

+ +
+ + It's Giving Tuesday! Donate Now. + + + \ No newline at end of file diff --git a/src/css/main.scss b/src/css/main.scss index 3917b6a50f..a6c18eab1a 100644 --- a/src/css/main.scss +++ b/src/css/main.scss @@ -86,7 +86,32 @@ div[data-netlify-site-id] { line-height: 20px; } +.custom-dbox-popup { + text-decoration: none; + color: #2C3E50; + font-weight: bold; + max-width: 100vw; + position: fixed; + bottom: 0; + left: 0; + width: 100%; + height: 44px; + background: rgb(236, 165, 65); + display: flex; + justify-content: center; + align-items: center; + padding: 0 20px; + z-index: 1000; + + &:hover { + text-decoration: none; + background: rgb(211, 148, 58); + } +} + // Import partials from `sass_dir` (defaults to `_sass`) @import "fonts", "pure", "pure-fix", "base", "layout", "nav", "syntax-highlighting", "donate", "donate2024", "fundraiser", "waiting", "single-pages"; + + diff --git a/src/js/main.js b/src/js/main.js index b2160b958d..c4d140c59d 100644 --- a/src/js/main.js +++ b/src/js/main.js @@ -161,3 +161,5 @@ document.querySelectorAll("code.language-der").forEach(r => { }); })(this, this.document); + +window.DonorBox = { widgetLinkClassName: 'custom-dbox-popup' } \ No newline at end of file From 9efb00ed0865281b04de0deaf8200083ea6186c6 Mon Sep 17 00:00:00 2001 From: SMT <83726258+scottmakestech@users.noreply.github.com> Date: Mon, 2 Dec 2024 11:38:31 -0600 Subject: [PATCH 4/5] Move button to top of screen --- layouts/partials/footer.html | 7 ------- layouts/partials/header.html | 7 +++++++ src/css/main.scss | 2 +- 3 files changed, 8 insertions(+), 8 deletions(-) diff --git a/layouts/partials/footer.html b/layouts/partials/footer.html index 51fd8c43f9..4ba4ab73a1 100644 --- a/layouts/partials/footer.html +++ b/layouts/partials/footer.html @@ -87,10 +87,3 @@
{{ i18n "subscribe_to_newsletter_headline" }}
{{ $js := resources.Get "js/main.js" | fingerprint "sha512" }} - -
- - It's Giving Tuesday! Donate Now. - - - \ No newline at end of file diff --git a/layouts/partials/header.html b/layouts/partials/header.html index 7bbeda8876..f1090befd9 100644 --- a/layouts/partials/header.html +++ b/layouts/partials/header.html @@ -1,3 +1,10 @@ + +
+ + It's Giving Tuesday! Donate Now. + + + {{ if ne .Section "documents" }}