From f1d30ef1b695c964a41811c2e0abc7e09b4e07ee Mon Sep 17 00:00:00 2001 From: Keith Date: Sun, 22 Nov 2026 09:13:40 +0100 Subject: [PATCH] Marketing round: pilot banner + price feedback, simpler lead forms, journey page, trimmed home MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - pricing: pilot-stage banner (pilot_label/pilot_text) on home + founders; price-range checklist on the founders page — selections fire consent-gated Umami events (price-range-*) via the new data-umami-event listener and ride the Zoho payload as price_range - forms: Zoho needs only name + email — founders form drops first/last split, stage, sector, country, heard; hubs form drops country/programme select (country deduced downstream from locale, which already rides the payload) - journey: moved to its own /journey/ page (six phases), nav entry added - home: reduced to hero + pilot banner + two audience cards linking to the value-proposition pages; verbose blocks rewritten - nav bug fix: the nav was built from the CURRENT page's alternates, so every page rendered a one-entry nav; now built from all pages of the locale - CMS: config.yml + custom preview gain the pilot banner, price checklist and card-link fields --- public/admin/config.yml | 17 +++++ public/admin/preview.js | 39 +++++++++- src/components/LeadForm.astro | 85 +++++++++++----------- src/i18n/en.json | 25 ++----- src/layouts/Site.astro | 132 ++++++++++++++++++++++++++++------ src/pages/for-founders.md | 43 +++++++---- src/pages/index.md | 41 ++++------- src/pages/journey.md | 32 +++++++++ 8 files changed, 287 insertions(+), 127 deletions(-) create mode 100644 src/pages/journey.md diff --git a/public/admin/config.yml b/public/admin/config.yml index dd77946..25fa9d7 100644 --- a/public/admin/config.yml +++ b/public/admin/config.yml @@ -53,6 +53,12 @@ collections: name: cta_hubs widget: string required: false + - { label: Pilot banner label (e.g. Pilot stage), name: pilot_label, widget: string, required: false } + - label: Pilot banner text + name: pilot_text + widget: text + required: false + hint: Shown under the hero when filled — leave EMPTY to show no banner - label: Cards section (optional) name: value_props widget: list @@ -60,6 +66,8 @@ collections: fields: - { label: Heading, name: heading, widget: string } - { label: Text, name: text, widget: text } + - { label: Link (page path, e.g. /for-founders/), name: link, widget: string, required: false } + - { label: Link label (empty = "Read more"), name: link_label, widget: string, required: false } - { label: Cards section heading, name: value_props_title, widget: string, required: false } - label: Journey steps (optional) name: journey @@ -70,6 +78,15 @@ collections: - { label: Step text (optional), name: text, widget: string, required: false } - { label: Journey heading, name: journey_title, widget: string, required: false } - { label: Journey note, name: journey_note, widget: text, required: false } + - label: Price feedback checklist (founders page, optional) + name: price_ranges + widget: list + required: false + fields: + - { label: Key (lowercase_with_underscores — also the analytics event name), name: key, widget: string } + - { label: Label shown to the visitor, name: label, widget: string } + - { label: Price checklist heading, name: price_title, widget: string, required: false } + - { label: Price checklist note, name: price_note, widget: text, required: false } - label: Capability checklist (hubs page, optional) name: capabilities widget: list diff --git a/public/admin/preview.js b/public/admin/preview.js index 119585c..6185bbf 100644 --- a/public/admin/preview.js +++ b/public/admin/preview.js @@ -1,7 +1,7 @@ // Custom preview template for Sveltia CMS: mirrors the site's // Site.astro layout so the preview pane shows what the published page -// will look like (hero banner, cards, journey, capability checklist), -// instead of Sveltia's generic field dump. +// will look like (hero banner, pilot banner, cards, price checklist, +// journey, capability checklist), instead of Sveltia's generic field dump. // // Runs in the browser as-is: the CMS bundle exposes the globals `CMS` // and `html` (HTM, bound to the CMS's React copy). Markup elements can @@ -28,6 +28,12 @@ const css = ` .pv-card { background:#fff; border:1px solid var(--line); border-radius:0.7rem; padding:1rem 1.1rem; } .pv-card strong { display:block; margin-bottom:0.4rem; } .pv-card small { color:var(--muted); font-size:0.93rem; line-height:1.5; } + .pv-card .pv-link { display:inline-block; margin-top:0.6rem; color:var(--accent); font-size:0.9rem; font-weight:600; } + .pv-pilot { margin:1.4rem 0 0; padding:0.8rem 1.1rem; background:var(--accent); color:#fff; border-radius:0.55rem; } + .pv-pilot strong { text-transform:uppercase; letter-spacing:0.06em; font-size:0.75rem; } + .pv-pilot p { margin:0.2rem 0 0; font-size:0.95rem; } + .pv-price { display:flex; gap:0.8rem; align-items:center; background:#fff; border:1px solid var(--line); border-radius:0.7rem; padding:0.7rem 1rem; margin-bottom:0.6rem; } + .pv-price .tick { width:1.05rem; height:1.05rem; border:2px solid var(--accent); border-radius:0.3rem; flex:none; } .pv-journey ol { list-style:none; padding:0; margin:0.5rem 0 0; display:grid; gap:0.55rem; } .pv-journey li { padding:0.55rem 0.9rem; background:#fff; border:1px solid var(--line); border-inline-start:3px solid var(--accent); border-radius:0.45rem; color:var(--muted); font-size:0.95rem; } .pv-journey li b { color:var(--ink); } @@ -52,6 +58,7 @@ const PagePreview = ({ entry, widgetFor, widgetsFor }) => { const valueProps = items(widgetsFor("value_props")); const journey = items(widgetsFor("journey")); const caps = items(widgetsFor("capabilities")); + const priceRanges = items(widgetsFor("price_ranges")); const hasHero = d("hero_headline") || d("hero_sub"); return html` @@ -90,6 +97,11 @@ const PagePreview = ({ entry, widgetFor, widgetsFor }) => { `} `} + ${d("pilot_text") && + html``} ${valueProps.length > 0 && html`
@@ -99,11 +111,27 @@ const PagePreview = ({ entry, widgetFor, widgetsFor }) => { html`
${v.get("heading")} ${v.get("text")} + ${v.get("link") && + html`→ ${v.get("link_label") || "Read more"}`}
`, )}
`} + ${priceRanges.length > 0 && + html` +
+

${d("price_title")}

+ ${d("price_note") && + html`

${d("price_note")}

`} + ${priceRanges.map((r, i) => + html`
+ + ${r.get("label")} +
`, + )} +
+ `} ${journey.length > 0 && html`
@@ -138,7 +166,12 @@ const PagePreview = ({ entry, widgetFor, widgetsFor }) => {
`}
${widgetFor("body")}
- ${!hasHero && valueProps.length === 0 && journey.length === 0 && caps.length === 0 && + ${(!hasHero && + valueProps.length === 0 && + journey.length === 0 && + caps.length === 0 && + priceRanges.length === 0 && + !d("pilot_text")) && html`

No structured sections — the preview shows the body only.

`} diff --git a/src/components/LeadForm.astro b/src/components/LeadForm.astro index 4ae2173..fcf69ee 100644 --- a/src/components/LeadForm.astro +++ b/src/components/LeadForm.astro @@ -2,9 +2,12 @@ // The lead form used by both audience pages. Labels come from the shared // per-locale strings; on submit a small fetch POSTs the payload to the // page's Zoho Flow webhook (token-in-URL authentication, no server code). -// The hubs variant carries a hidden "capabilities" field the capability -// blocks on the landing page append to when clicked — leads arrive in the -// CRM already tagged with what interested them. +// Deliberately minimal — the CRM only needs a name and an email; country +// is deduced downstream from the submitted locale or the IP address. +// The hubs variant carries a hidden "capabilities" field (set by the +// capability checklist) and the founders variant a hidden "price_range" +// field (set by the pricing checklist) — leads arrive in the CRM already +// tagged with what interested them. const { type: pageId, locale, strings, site } = Astro.props; // pageId arrives as the route id ("for-founders"/"for-innovation-hubs") // — normalise to the form kind: @@ -13,32 +16,13 @@ const type = pageId === "for-founders" ? "founders" : "hubs"; const fields = type === "founders" ? [ - { name: "first_name", label: strings.field_first_name, input: "text", required: true }, - { name: "last_name", label: strings.field_last_name, input: "text", required: true }, + { name: "name", label: strings.field_name, input: "text", required: true }, { name: "email", label: strings.field_email, input: "email", required: true }, - { name: "stage", label: strings.field_stage, input: "select", options: [ - ["idea", strings.field_stage_idea], - ["prototype", strings.field_stage_prototype], - ["launch", strings.field_stage_launch], - ] }, - { name: "sector", label: strings.field_sector, input: "text" }, - { name: "country", label: strings.field_country, input: "text" }, - { name: "heard", label: strings.field_heard, input: "text" }, ] : [ { name: "organisation", label: strings.field_organisation, input: "text", required: true }, - { name: "first_name", label: strings.field_first_name, input: "text", required: true }, - { name: "last_name", label: strings.field_last_name, input: "text", required: true }, + { name: "name", label: strings.field_name, input: "text", required: true }, { name: "email", label: strings.field_email, input: "email", required: true }, - { name: "country", label: strings.field_country, input: "text" }, - { name: "programme", label: strings.field_programme, input: "select", options: [ - ["incubator", strings.field_programme_incubator], - ["accelerator", strings.field_programme_accelerator], - ["edih", strings.field_programme_edih], - ["een", strings.field_programme_een], - ["agency", strings.field_programme_agency], - ["other", strings.field_programme_other], - ] }, { name: "message", label: strings.field_message, input: "textarea" }, ]; @@ -62,6 +46,7 @@ const note = type === "founders" ? strings.form_founders_note : strings.form_hub

{title}

{note}

+ {fields.map((f) => (