Marketing round: pilot banner + price feedback, simpler lead forms, journey page, trimmed home
- 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
This commit is contained in:
1 parent
e21ee4b24e
commit
f1d30ef1b6
8 files changed
+287
-127
No files matched your search
@@ -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
|
||||
|
||||
+36
-3
@@ -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 }) => {
|
||||
`}
|
||||
</section>
|
||||
`}
|
||||
${d("pilot_text") &&
|
||||
html`<aside class="pv-pilot" data-key-path="pilot_text" tabindex="0">
|
||||
${d("pilot_label") && html`<strong>${d("pilot_label")}</strong>`}
|
||||
<p>${d("pilot_text")}</p>
|
||||
</aside>`}
|
||||
${valueProps.length > 0 &&
|
||||
html`
|
||||
<section>
|
||||
@@ -99,11 +111,27 @@ const PagePreview = ({ entry, widgetFor, widgetsFor }) => {
|
||||
html`<div class="pv-card" data-key-path={`value_props.${i}.heading`} tabindex="0">
|
||||
<strong>${v.get("heading")}</strong>
|
||||
<small>${v.get("text")}</small>
|
||||
${v.get("link") &&
|
||||
html`<span class="pv-link">→ ${v.get("link_label") || "Read more"}</span>`}
|
||||
</div>`,
|
||||
)}
|
||||
</div>
|
||||
</section>
|
||||
`}
|
||||
${priceRanges.length > 0 &&
|
||||
html`
|
||||
<section>
|
||||
<h2>${d("price_title")}</h2>
|
||||
${d("price_note") &&
|
||||
html`<p data-key-path="price_note" tabindex="0">${d("price_note")}</p>`}
|
||||
${priceRanges.map((r, i) =>
|
||||
html`<div class="pv-price" data-key-path={`price_ranges.${i}.label`} tabindex="0">
|
||||
<span class="tick"></span>
|
||||
<span><strong>${r.get("label")}</strong></span>
|
||||
</div>`,
|
||||
)}
|
||||
</section>
|
||||
`}
|
||||
${journey.length > 0 &&
|
||||
html`
|
||||
<section class="pv-journey">
|
||||
@@ -138,7 +166,12 @@ const PagePreview = ({ entry, widgetFor, widgetsFor }) => {
|
||||
</section>
|
||||
`}
|
||||
<div class="pv-body" data-key-path="body">${widgetFor("body")}</div>
|
||||
${!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`<p class="pv-empty">No structured sections — the preview shows the body only.</p>`}
|
||||
</main>
|
||||
</div>
|
||||
|
||||
Reference in new issue
Block a user