Skip to content

Commit ca71aa2

Browse files
committed
Add newsletter subscription form throughout the website
1 parent 44aa49a commit ca71aa2

File tree

4 files changed

+16
-7
lines changed

4 files changed

+16
-7
lines changed

source/_layouts/newsletter.html

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<div class="bg-white py-8">
33
<div class="mx-auto grid max-w-7xl grid-cols-1 gap-10 lg:grid-cols-12 lg:gap-8">
44
<div class="max-w-xl text-4xl font-medium tracking-tight text-gray-900 lg:col-span-6">
5-
Subscribe to PHP Core Roundup newsletter
5+
Subscribe to The PHP Foundation newsletter
66
</div>
77
<form method="POST"
88
action="https://php-foundation.mailcoach.app/subscribe/9be4e2bd-f9d8-475c-b00e-2dcc4cf90056"
@@ -18,9 +18,7 @@
1818
</button>
1919
</div>
2020
<div class="mt-4 text-sm leading-6 text-gray-900">
21-
We care about your data.
22-
Read our <a href="{{ site.url }}/privacy-policy"
23-
class="font-semibold text-indigo-600 hover:text-indigo-500 no-underline">privacy policy</a>.
21+
No spam. We only send 1–2 emails per month.
2422
</div>
2523
</form>
2624
</div>

source/_pages/contact.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,3 +13,5 @@ Follow us on social media:
1313
- [Twitter](https://twitter.com/thephpf)
1414
- [LinkedIn](https://www.linkedin.com/company/phpfoundation/)
1515
- [Mastodon](https://phpc.social/@thephpf)
16+
17+
{% include "newsletter.html" %}

source/blog.html

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,11 @@ <h3 class="mt-3 mb-2 text-lg font-semibold leading-6">
5757
</div>
5858
</div>
5959
</article>
60+
61+
{% if loop.index == 2 %}
62+
{% include "newsletter.html" %}
63+
{% endif %}
64+
6065
{% endfor %}
6166
</div>
6267

source/index.html

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ <h2>Our Mission</h2>
4848
</div>
4949
</section>
5050

51-
<section class="mx-auto max-w-4xl px-6 lg:px-0 border-t border-gray-200 py-12">
51+
<section class="mx-auto max-w-4xl px-6 lg:px-0 border-t border-gray-200 pt-12">
5252
<h2 class="mt-0">Latest news</h2>
5353
<div class="mx-auto grid max-w-4xl grid-cols-1 gap-x-8 gap-y-16 lg:mx-0 lg:max-w-none lg:grid-cols-3 py-0">
5454
{% for post in page.pagination.items %}
@@ -72,8 +72,12 @@ <h3 class="mt-3 mb-2 text-lg font-semibold leading-6">
7272
</div>
7373
</section>
7474

75-
<section class="border-t">
76-
<div class="mx-auto max-w-4xl px-6 lg:px-0 py-12">
75+
<section class="mt-12 mx-auto max-w-4xl">
76+
{% include "newsletter.html" %}
77+
</section>
78+
79+
<section class="">
80+
<div class="mx-auto max-w-4xl px-6 lg:px-0 pb-12">
7781
<div class="text-lg leading-8 text-white">
7882
<h2>Our Work</h2>
7983
<p class="text-lg">The foundation contracts <a href="/structure#core_developers">10 part-time and full-time developers</a> who work on maintenance and new features for PHP. </p>

0 commit comments

Comments
 (0)