Pakketblok: elk aantal pakketten, filterchips, swipe-rij op mobiel en optionele banner

Pure logica (splitsen, chips, filter, labels), useSwipeRow en usePackageFilter,
ContactPreselect voor het formulier, kaarten in stijl B en tests.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-11-10 10:34:09 +01:00
co-authored by Claude Sonnet 5.5
parent e1d950cd33
commit 9661b64635
28 changed files with 1353 additions and 137 deletions
+28
View File
@@ -37,6 +37,21 @@ export interface PackageCardData {
features: string[];
ctaLabel: string;
featured?: boolean;
/** Category name from the CMS (null/absent = no chip). Additive API field. */
category?: string | null;
/** Additive API fields, ignored by the UI. */
categoryId?: string | null;
displayOrder?: number;
}
export interface PackagesSettings {
/** Slugs shown as the black banner under the cards instead of as a card (empty = none). */
bannerSlugs: string[];
/** Filter chips appear from this many card packages on (FR-8). */
chipThreshold: number;
/** Banner title and the texts used when `bannerSlugs` is set but no package matches. */
bannerTitle: string;
bannerFallback: { text: string; priceLabel: string; priceNote: string; ctaLabel: string };
}
export interface ProcessStepData {
@@ -129,6 +144,19 @@ export const packages: PackageCardData[] = [
},
];
/** Per-site packages block settings. SLP Software: Maatwerk stays a normal card (no banner). */
export const packagesSettings: PackagesSettings = {
bannerSlugs: [],
chipThreshold: 4,
bannerTitle: 'Past er niets bij?',
bannerFallback: {
text: 'Grotere websites, een eigen back-end of andere .NET-projecten. Na een intake krijg je een offerte op maat.',
priceLabel: 'Op maat',
priceNote: 'offerte na intake',
ctaLabel: 'Vraag offerte aan',
},
};
export const processSteps: ProcessStepData[] = [
{
label: 'stap 01 — intake',