--- // 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. const { type: pageId, locale, strings, site } = Astro.props; // pageId arrives as the route id ("for-founders"/"for-innovation-hubs") // — normalise to the form kind: 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: "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: "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" }, ]; 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) => ( ))}