From 4069fae97c581ec2d06bb7628943d82be15ec739 Mon Sep 17 00:00:00 2001 From: Keith Date: Sun, 22 Nov 2026 11:38:13 +0100 Subject: [PATCH] =?UTF-8?q?Linked=20cards:=20drop=20the=20in-card=20hint?= =?UTF-8?q?=20label=20=E2=80=94=20the=20whole=20card=20is=20the=20link,=20?= =?UTF-8?q?hover=20already=20affords=20it=20(link=5Flabel=20fields=20retir?= =?UTF-8?q?ed=20from=20pages,=20CMS=20config=20and=20preview)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- public/admin/config.yml | 3 +-- public/admin/preview.js | 3 +-- src/i18n/en.json | 3 +-- src/layouts/Site.astro | 8 -------- src/pages/for-founders.md | 4 ---- src/pages/index.md | 2 -- 6 files changed, 3 insertions(+), 20 deletions(-) diff --git a/public/admin/config.yml b/public/admin/config.yml index 2f27a7d..a7117b3 100644 --- a/public/admin/config.yml +++ b/public/admin/config.yml @@ -66,8 +66,7 @@ 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: Link (page path, e.g. /for-founders/ — makes the whole card a link), name: link, widget: string, required: false } - { label: Cards section heading, name: value_props_title, widget: string, required: false } - label: Journey steps (optional) name: journey diff --git a/public/admin/preview.js b/public/admin/preview.js index 6842071..1f19e8c 100644 --- a/public/admin/preview.js +++ b/public/admin/preview.js @@ -114,8 +114,7 @@ const PagePreview = ({ entry, widgetFor, widgetsFor }) => { html`
${v.get("heading")} ${v.get("text")} - ${v.get("link") && - html`→ ${v.get("link_label") || "Read more"}`} + ${v.get("link") && html`→`}
`, )} diff --git a/src/i18n/en.json b/src/i18n/en.json index 7932a90..c41e163 100644 --- a/src/i18n/en.json +++ b/src/i18n/en.json @@ -27,6 +27,5 @@ "field_name": "Your name", "field_organisation": "Organisation", "field_email": "Email", - "field_message": "Message (optional)", - "card_link_default": "Read more" + "field_message": "Message (optional)" } diff --git a/src/layouts/Site.astro b/src/layouts/Site.astro index 46e93a6..d0a7597 100644 --- a/src/layouts/Site.astro +++ b/src/layouts/Site.astro @@ -242,7 +242,6 @@ const hasForm = isAudiencePage;

{v.heading}

{v.text}

- {v.link_label ?? strings.card_link_default}
) : (
@@ -521,13 +520,6 @@ const hasForm = isAudiencePage; } a.card.linked:hover h3, a.card.linked:focus-visible h3 { color: var(--accent); } - .card-hint { - display: inline-block; - margin-top: 0.7rem; - color: var(--accent); - font-size: 0.92rem; - font-weight: 600; - } .pricing-note { margin: 0 0 1rem; color: var(--muted); font-size: 0.95rem; } .cap-list, .price-list { grid-template-columns: 1fr; gap: 0.6rem; } diff --git a/src/pages/for-founders.md b/src/pages/for-founders.md index 46f6497..643e733 100644 --- a/src/pages/for-founders.md +++ b/src/pages/for-founders.md @@ -12,19 +12,15 @@ value_props: - heading: A start-to-finish validation process text: A guided process that turns your idea's assumptions into structured experiments with market evidence — every phase ends in a real, reusable document. link: /journey - link_label: See the full journey - heading: Find the fatal flaw early text: We fall in love with our ideas and miss what would scupper them. Validation Lab turns assumptions into facts. The facts aren't always comfortable — but it is better to know sooner than to waste time, money and energy on the wrong thing. link: '' - link_label: '' - heading: Will this get me ready for funding? text: Only an investor can tell you that for certain — but completing the process shows you have thought your idea through and left nothing to chance. link: '' - link_label: '' - heading: How long will it take? text: The mechanics take a couple of hours; the thinking takes longer. Take a break between stages to let new learning settle in, and expect the interview stage to move at real people's pace — real people are busy. link: '' - link_label: '' value_props_title: What you get journey: [] journey_title: '' diff --git a/src/pages/index.md b/src/pages/index.md index de79929..aad5907 100644 --- a/src/pages/index.md +++ b/src/pages/index.md @@ -11,11 +11,9 @@ value_props: - heading: Founders text: Skip the opinions — find out what your market actually thinks. A structured path from idea to scripted customer interviews, with real documents at every stage. link: /for-founders - link_label: The founder's view - heading: Startup Support Organisations text: A structured validation layer between your mentoring sessions. Teams arrive with the stage completed and the document drafted. link: /for-innovation-hubs - link_label: The support organisation's view capabilities: [] capabilities_title: '' capabilities_note: ''