Copy round: pilot banner terms, founder/hub value propositions, four-question price feedback
deploy / build-and-publish (push) Successful in 40s

- banner (home + founders): 'Currently in pilot — the full journey is
  free for founding teams while we pilot. No card required; in exchange
  we'll ask for regular feedback'
- founders: first card is the start-to-finish SVP (assumptions -> structured
  experiments with market evidence); 'How it compares' table vs
  spreadsheet/advisor/in-person workshops; closing 'proceed, pivot or stop'
  decision line
- hubs: 'Why hubs offer it' cards (full validation at a fraction of
  consultant-workshop cost, consistent assessable output, keeps the
  face-to-face) + closing invitation on blending with in-person workshops
- pricing: flat range list -> four price-sensitivity questions (too
  expensive / bargain / too cheap / worth considering) x €0/€10/€25/€50/€100+,
  each tick Umami-tracked (price-<question>-<option>) and riding the Zoho
  payload as group=option pairs; CMS config + preview mirror the new shape
- layout: price groups render as field sets; markdown body tables styled
This commit is contained in:
Keith
2026-11-22 10:16:27 +01:00
parent 8cfa822fac
commit 0382df9d08
7 changed files with 148 additions and 74 deletions
+16 -19
View File
@@ -91,36 +91,35 @@ const note = type === "founders" ? strings.form_founders_note : strings.form_hub
sending: form.dataset.sendingLabel,
};
// CHECKLISTS above the form (capabilities on the hubs page, price
// ranges on the founders page): collect the checked boxes at submit
// time so each selection rides the payload — both as machine keys
// and as a human-readable line in the message. One echo element per
// checklist mirrors the live selection back to the visitor.
// CHECKLISTS above the form (capabilities on the hubs page, the
// four price questions on the founders page): collect the checked
// boxes at submit time so each selection rides the payload — machine
// keys joined as group=option pairs for prices, and a human-readable
// echo per checklist mirrors the live selection back to the visitor.
const collect = (attrName, containerId) => {
const field = form.querySelector(`input[name="${attrName === "data-cap" ? "capabilities" : "price_range"}"]`);
const echo = document.getElementById(containerId);
const key = (c) =>
attrName === "data-cap"
? c.dataset.cap
: `${c.dataset.priceGroup}=${c.dataset.price}`;
const refresh = () => {
const checked = [...document.querySelectorAll(`[${attrName}]:checked`)];
if (echo) {
echo.textContent = checked.map((c) => c.dataset.capLabel || c.dataset.priceLabel || c.dataset.cap || c.dataset.price).join(", ");
echo.textContent = checked
.map((c) => c.dataset.capLabel || c.dataset.priceLabel || key(c))
.join(", ");
echo.hidden = !checked.length;
}
if (field) field.value = checked.map(key).join(",");
};
document.querySelectorAll(`[${attrName}]`).forEach((el) => {
el.addEventListener("change", () => {
if (field) field.value = checkedKeys(attrName).join(",");
refresh();
});
el.addEventListener("change", refresh);
});
refresh();
return { field, refresh };
};
const checkedKeys = (attrName) =>
[...document.querySelectorAll(`[${attrName}]:checked`)].map((c) =>
attrName === "data-cap" ? c.dataset.cap : c.dataset.price
);
const caps = collect("data-cap", "cap-selection");
const prices = collect("data-price", "price-selection");
collect("data-cap", "cap-selection");
collect("data-price", "price-selection");
form.addEventListener("submit", async (event) => {
event.preventDefault();
@@ -132,8 +131,6 @@ const note = type === "founders" ? strings.form_founders_note : strings.form_hub
// not the checkbox's literal "on"; an unchecked box never arrives)
payload.consent = data.get("consent") === "on";
if (payload.website) return; // honeypot: pretend success, send nothing
if (caps.field) payload.capabilities = caps.field.value;
if (prices.field) payload.price_range = prices.field.value;
button.disabled = true;
button.textContent = STRINGS.sending || "Sending…";
try {