From 8de0b48f63cb8f058356d4649a31d1c80cdf02da Mon Sep 17 00:00:00 2001
From: Tisha Chawla <76087547+tishachawla-jg@users.noreply.github.com>
Date: Thu, 3 Sep 2026 17:59:54 +0530
Subject: [PATCH] Add a newsletter subscribe block, off until a publication
exists
There is no way to follow this project by email. The media page lists what we
have published and offers no way to hear about the next one.
js/subscribe.js renders a subscribe card into any
slot.
Slots are on media.html (under the header) and about.html (in the CTA band).
The publication handle is a single constant, AGENTPLANE_SUBSTACK_PUB, and it
ships empty. While it is empty nothing renders and the slots stay hidden, so
the site cannot ship a subscribe button pointing at a publication that does not
exist. Setting it to a handle is the only change needed to turn this on.
Styling reuses the existing tokens and the btn btn-solid class, so it tracks
both themes with no new colours. Stacks on narrow viewports.
Not wired to susheemk.substack.com on purpose: "Susheem's Jottings" is a
personal, three-year-old general software engineering publication, and pointing
the project's subscribe button at it would read as one founder's blog rather
than an AgentPlane channel.
Verified against a local server in both states. Empty handle: slot present,
innerHTML empty, hidden, offsetParent null. Handle set: card renders as a flex
row with the token background and border, and the CTA points at
.substack.com/subscribe.
Co-Authored-By: Claude Opus 5
---
about.html | 2 ++
css/style.css | 62 +++++++++++++++++++++++++++++++++++++++++++++++++
js/subscribe.js | 61 ++++++++++++++++++++++++++++++++++++++++++++++++
media.html | 7 ++++++
4 files changed, 132 insertions(+)
create mode 100644 js/subscribe.js
diff --git a/about.html b/about.html
index c56ca54..d3139eb 100644
--- a/about.html
+++ b/about.html
@@ -100,6 +100,7 @@ Want to build with us?
Susheem on LinkedIn ↗
Tisha on LinkedIn ↗
+