Adds the Prijzen section to the homepage

Shows the three live packages as cards with their price and what is
included. Each card links to the contact section with ?pakket=<id>, so
the contact form can preselect it. Invalid packages from the CMS are
skipped and the pakket value is only accepted when it names a package.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-10-20 01:07:36 +02:00
co-authored by Claude Opus 5.5
parent 0b54a67dc4
commit 30dab1af42
32 changed files with 1250 additions and 6 deletions
+19
View File
@@ -0,0 +1,19 @@
// Longest package name that still fits as "Boek <name>" on one line in the
// card's button down to a 320px phone (BR-BOOK-02, BR-BOOK-03)
export const BOOK_LABEL_MAX_NAME = 14;
export interface BookLabel {
visible: string;
// Extra text for screen readers only
hidden?: string;
}
// Text of a card's booking link. Short names go in the visible text; for
// longer ones the button says "Boek je shoot" and the name is added for
// screen readers, so every link still names its package.
export function bookLabel(name: string): BookLabel {
if (name.length <= BOOK_LABEL_MAX_NAME) {
return { visible: `Boek ${name}` };
}
return { visible: 'Boek je shoot', hidden: `: ${name}` };
}