Skip to content

Commit 1f571f9

Browse files
committed
Newsletter: remove email form
1 parent c3c2500 commit 1f571f9

File tree

2 files changed

+11
-19
lines changed

2 files changed

+11
-19
lines changed

components/Newsletter.ts

Lines changed: 7 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -3,24 +3,12 @@ import { html } from "@mastrojs/mastro";
33
export const Newsletter = () =>
44
html`
55
<br>
6-
<div class="tip">
7-
<h2>Stay in touch</h2>
8-
9-
<ul>
10-
<li>Follow us on <a href="https://bsky.app/profile/mastrojs.bsky.social"><strong>Bluesky</strong></a>,</li>
11-
<li>add the <a href="/feed.xml"><strong>feed</strong></a> of our <a href="/blog/"><strong>blog</strong></a> to your RSS reader (we knew you were that kind of person), or</li>
12-
<li>subscribe to our very infrequently sent out:</li>
13-
</ul>
14-
15-
<form
16-
method="POST"
17-
action="https://c2ecc26e.sibforms.com/serve/MUIFAD_vtneGYJG8_MLAfsUhwF_2RQmd6y4Rj3eascwtZpK6CVk43q-j6SzQCPtkHUgqSqT_8RdwLmW9yztUMNOCBGtctsVIyJHpDj-ILKLT2nZLFBZdi29kdPggNR_vAZa_TE_V9RTM2v2IECorWtcOgVQ_7c3nH1bob8aAnkFMpYAqdK9kUwZmMIMtuZ0EG8nPzvlPcidVGEzU"
18-
>
19-
<label>
20-
Email newsletter
21-
<input type="email" id="EMAIL" name="EMAIL" required>
22-
</label>
23-
<p><button class="-secondary">Get notified</button></p>
24-
</form>
6+
<div class="tip center-text">
7+
<h2>Let's keep in touch! 👨‍🍳</h2>
8+
<p>
9+
Follow us on <a href="https://bsky.app/profile/mastrojs.bsky.social"><strong>Bluesky</strong></a>,
10+
or add our <a href="/blog/"><strong>blog</strong></a> to your RSS reader
11+
(<a href="/feed.xml">feed link</a>).
12+
</p>
2513
</div>
2614
`;

routes/blog/index.server.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import { html, htmlToResponse } from "@mastrojs/mastro";
22
import { Layout } from "../../components/Layout.ts";
3+
import { Newsletter } from "../../components/Newsletter.ts";
34
import { fmtIsoDate } from "../../helpers/date.ts";
45
import { readMdFiles } from "../../helpers/markdown.ts";
56

@@ -18,7 +19,10 @@ export const GET = async () => {
1819
<a href=${post.path}>${post.meta.title}</a>
1920
</p>
2021
`)}
22+
${Newsletter()}
2123
</main>
24+
<footer>
25+
</footer>
2226
`,
2327
})
2428
);

0 commit comments

Comments
 (0)