--- // 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). // 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-support-organisations") // — normalise to the form kind: const type = pageId === "for-founders" ? "founders" : "hubs"; const fields = type === "founders" ? [ { name: "name", label: strings.field_name, input: "text", required: true }, { name: "email", label: strings.field_email, input: "email", required: true }, ] : [ { name: "organisation", label: strings.field_organisation, 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: "message", label: strings.field_message, input: "textarea" }, ]; const webhook = type === "founders" ? site.zoho_webhook_founders : site.zoho_webhook_hubs; const title = type === "founders" ? strings.form_founders_title : strings.form_hubs_title; const note = type === "founders" ? strings.form_founders_note : strings.form_hubs_note; ---

{title}

{note}

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