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`
${d("price_note")}${d("price_title")}
+ ${d("price_note") &&
+ 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{note}
+ {fields.map((f) => (