Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Opt-in Page #202

Draft
wants to merge 2 commits into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 16 additions & 0 deletions content/en/opt-in.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
---
title: Sign up for the ISRG Newsletter
slug: opt-in
date: 2024-11-18
should_display_prominent_newsletter_form: true
---

<div class="container">
<section class="row py-4">
<div class="col-lg-12">
<p>ISRG's monthly newsletter recaps what we're up to and shares recent security and privacy news that caught our attention.</p>

<p>By signing up for the Newsletter you agree to Let's Encrypt handling your information as described in our <a href="https://letsencrypt.org/privacy/">privacy policy</a>.</p>
</div>
</section>
</div>
4 changes: 3 additions & 1 deletion layouts/_default/baseof.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
<!DOCTYPE html>
<html>
{{ partial "head.html" . }} {{ partial "header.html" . }} {{ if not .Params.nohero }}{{ partial "hero.html" . }}{{ end }} {{ with .File }} {{ if eq .Ext "md" }}{{ partial "md-top-context.html" . }}{{ end }} {{ end }} {{ block "main" . }}{{ end }} {{ with .File }} {{ if eq .Ext "md" }}{{ partial "md-bot-context.html" . }}{{ end }} {{ end }} {{ partial "footer.html" . }}
{{ partial "head.html" . }} {{ partial "header.html" . }} {{ if not .Params.nohero }}{{ partial "hero.html" . }}{{ end }} {{ with .File }} {{ if eq .Ext "md" }}{{ partial "md-top-context.html" . }}{{ end }} {{ end }} {{ block "main" . }}{{ end }} {{ if .Page.Params.should_display_prominent_newsletter_form }}
<div class="opt-in-container container">{{ partial "newsletter-form" . }}</div>
{{ end }} {{ with .File }} {{ if eq .Ext "md" }}{{ partial "md-bot-context.html" . }}{{ end }} {{ end }} {{ partial "footer.html" . }}
</html>
6 changes: 4 additions & 2 deletions layouts/partials/footer.html
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,10 @@
<div class="mb-4">
Read all about our nonprofit work this year in our <a href="/documents/2023-ISRG-Annual-Report.pdf">2023 Annual Report</a>.
</div>
<h6 class="font-weight-bold">Subscribe for email updates about ISRG and our projects</h6>
<iframe src="https://outreach.abetterinternet.org/l/1011011/2023-02-15/6gct" width="100%" height="200" type="text/html" frameborder="0" allowTransparency="true" style="border: 0"></iframe>
{{ if not .Page.Params.should_display_prominent_newsletter_form }}
<h6 class="font-weight-bold">Subscribe for email updates about ISRG and our projects</h6>
{{ partial "newsletter-form" . }}
{{ end }}
</div>
</div>
</div>
Expand Down
1 change: 1 addition & 0 deletions layouts/partials/newsletter-form.html
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
<iframe src="https://outreach.abetterinternet.org/l/1011011/2023-02-15/6gct" width="100%" height="200" type="text/html" frameborder="0" allowTransparency="true" style="border: 0"></iframe>
18 changes: 7 additions & 11 deletions layouts/post/baseof.html
Original file line number Diff line number Diff line change
@@ -1,14 +1,10 @@
<!DOCTYPE html>
<html>
{{ partial "head.html" . }}
{{ partial "header.html" . }}
{{ partial "hero.html" . }}
<main>
<section class="slice slice-sm">
<div class="container">
{{ block "main" . }}{{ end }}
</div>
</section>
</main>
{{ partial "footer.html" . }}
{{ partial "head.html" . }} {{ partial "header.html" . }} {{ partial "hero.html" . }}
<main>
<section class="slice slice-sm">
<div class="container">{{ block "main" . }}{{ end }} {{ if .Page.Params.should_display_prominent_newsletter_form }} {{ partial "newsletter-form" . }} {{ end }}</div>
</section>
</main>
{{ partial "footer.html" . }}
</html>
8 changes: 8 additions & 0 deletions static/_additional-styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -781,3 +781,11 @@ figure figcaption {
color: #6c7686;
margin-top: 10px;
}

.opt-in-container {
background: #c2e9e9;
padding-left: 10px !important;
margin-bottom: 50px;
border: 1px solid #ccc;
border-radius: 10px;
}