Files
SlpSoftware/src/features/landing/data/content.ts
T

208 lines
6.7 KiB
TypeScript

/**
* Static site content, ported 1-to-1 from the reference designs
* (References/slp-software.html and References/slp-software-rood.html).
*
* Shapes mirror the domain entities defined in
* aidlc-docs/features/react-frontend/construction/react-frontend-app/functional-design/domain-entities.md
*
* This module is the source of truth for content that isn't (yet) API-backed
* (requirements FR-1/FR-6). `packages` is the exception: it now also doubles as
* the reference/seed data for the `/api/v1/offerings` contract consumed via
* src/features/landing/hooks/usePackagesQuery.ts (requirements FR-5) — see
* aidlc-docs/features/react-frontend/construction/react-frontend-app/functional-design/packages-api-handoff.md.
*/
import { t, tList } from '../../../i18n';
export interface NavLink {
label: string;
href: string;
isCta?: boolean;
}
export interface HeroContent {
/** Fixed text (not from the CMS): the small line in the code strip. */
eyebrow: string;
/** Fixed text: the prompt before the code line. */
codePrompt: string;
/** Brand prefix of the screen-reader heading when the hero comes from the CMS. */
headingPrefix: string;
heading: string;
/** Display headline of design B, one entry per line ("Websites," / "apps" / "& meer."). */
displayHeading: string[];
lead: string;
/** Baked buttons (label + target), the fallback of the CMS buttons. */
buttons: { label: string; target: string }[];
/** Fixed text (not from the CMS). */
codeLine: string;
}
export interface PackageCardData {
id: string;
slug: string;
title: string;
description: string;
price: string;
priceNote: string;
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 {
label: string;
/** Short phase name shown above the title in design B ("Intake", "Bouwen", "Live"). */
phase: string;
title: string;
description: string;
}
export interface AboutFact {
title: string;
text: string;
}
export interface AboutContent {
paragraphs: string[];
}
export interface ContactInfo {
heading: string;
/** Display headline of design B, one entry per line ("Klaar om" / "te bouwen?"). */
displayHeading: string[];
description: string;
email: string;
mailSubject: string;
}
export const navLinks: NavLink[] = [
{ label: t('site.nav.about'), href: '#over' },
{ label: t('site.nav.packages'), href: '#pakketten' },
{ label: t('site.nav.process'), href: '#werkwijze' },
{ label: t('site.nav.cta'), href: '#contact', isCta: true },
];
/** The baked hero: the fallback when the CMS delivers nothing. Texts live in the language file (home.hero). */
export const heroContent: HeroContent = {
eyebrow: t('home.hero.eyebrow'),
codePrompt: t('home.hero.codePrompt'),
headingPrefix: t('home.hero.headingPrefix'),
heading: t('home.hero.fallback.heading'),
displayHeading: [...tList('home.hero.fallback.lines')],
lead: t('home.hero.fallback.lead'),
buttons: [
{ label: t('home.hero.fallback.ctaPackages'), target: '#pakketten' },
{ label: t('home.hero.fallback.ctaContact'), target: '#contact' },
],
codeLine: t('home.hero.codeLine'),
};
export const packages: PackageCardData[] = [
{
id: 'pakket_01',
slug: 'landingspagina',
title: 'Landingspagina',
description: 'Eén overtuigende pagina die je product of dienst helder neerzet.',
price: '€ 300',
priceNote: 'eenmalig, excl. btw',
features: [
'Eén pagina in HTML & CSS',
'Ontwerp op maat, geen template',
'Responsive op elk scherm',
'Snelle laadtijd & SEO-basis',
],
ctaLabel: 'Kies landingspagina',
},
{
id: 'pakket_02',
slug: 'website',
title: 'Website',
description: "Een complete website met meerdere pagina's, klaar om te groeien.",
price: '€ 750',
priceNote: 'eenmalig, excl. btw',
features: [
"Drie pagina's in HTML & CSS",
"Extra pagina's als optie bij te bestellen",
"Consistente huisstijl over alle pagina's",
'Responsive, snel & SEO-basis',
],
ctaLabel: 'Kies website',
featured: true,
},
{
id: 'pakket_03',
slug: 'maatwerk',
title: 'Maatwerk',
description: 'Grotere websites, een eigen back-end of andere .NET-projecten.',
price: 'Op maat',
priceNote: 'offerte na intake',
features: [
'Grotere websites & webapplicaties',
'Losse back-end in .NET / C#',
"Koppelingen & API's",
'Advies over de beste aanpak',
],
ctaLabel: 'Vraag offerte aan',
},
];
/** 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[] = (['intake', 'build', 'live'] as const).map((id) => ({
label: t(`home.process.steps.${id}.label`),
phase: t(`home.process.steps.${id}.phase`),
title: t(`home.process.steps.${id}.title`),
description: t(`home.process.steps.${id}.description`),
}));
export const aboutContent: AboutContent = {
paragraphs: [...tList('home.about.paragraphs')],
};
export const aboutFacts: AboutFact[] = (['contact', 'response', 'price'] as const).map((id) => ({
title: t(`home.about.facts.${id}.title`),
text: t(`home.about.facts.${id}.text`),
}));
/** Texts of the contact form (design B). */
export const contactForm = {
otherSubjectLabel: t('home.contact.form.otherSubject'),
successText: t('home.contact.form.successText'),
captchaProblem: t('home.contact.form.captchaProblem'),
privacyNote: t('home.contact.form.privacyNote'),
};
export const contactInfo: ContactInfo = {
heading: t('home.contact.heading'),
displayHeading: [...tList('home.contact.displayHeading')],
description: t('home.contact.description'),
email: 'info@slpsoftware.nl',
mailSubject: t('home.contact.mailSubject'),
};