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:
@@ -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',
|
||||
|
||||
Reference in New Issue
Block a user