Taalbestanden: indeling gelijk aan ASF (common, site, home, era), baseline-check van de prerender en lint-waarschuwingen voor losse tekst, docs/translations.md
Prerender-uitvoer blijft byte-identiek. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -4,7 +4,7 @@ export function Footer() {
|
||||
return (
|
||||
<footer className="bg-inv text-[#b9b3ae]">
|
||||
<div className="mx-auto flex max-w-[1280px] flex-wrap justify-between gap-3 p-8 text-sm">
|
||||
<span>{t('landing.footer.copyright')}</span>
|
||||
<span>{t('site.footer.copyright')}</span>
|
||||
<span className="font-mono">slp.Bouw(uwIdee);</span>
|
||||
</div>
|
||||
</footer>
|
||||
|
||||
@@ -13,7 +13,7 @@ import { t } from '../../i18n';
|
||||
export function Nav() {
|
||||
const [isMenuOpen, setIsMenuOpen] = useState(false);
|
||||
const sectionLinks = navLinks.filter((link) => !link.isCta);
|
||||
const menuLabel = isMenuOpen ? t('landing.nav.menuClose') : t('landing.nav.menuOpen');
|
||||
const menuLabel = isMenuOpen ? t('site.nav.menuClose') : t('site.nav.menuOpen');
|
||||
|
||||
// Escape closes the mobile menu (keyboard users).
|
||||
useEffect(() => {
|
||||
@@ -32,7 +32,7 @@ export function Nav() {
|
||||
|
||||
return (
|
||||
<nav
|
||||
aria-label={t('landing.nav.label')}
|
||||
aria-label={t('site.nav.label')}
|
||||
className="sticky top-0 z-40 bg-brand text-on-brand md:static"
|
||||
>
|
||||
<div className="mx-auto flex min-h-[84px] max-w-[1280px] items-center justify-between gap-4 px-6 sm:px-8">
|
||||
|
||||
@@ -18,7 +18,7 @@ export function SkipLink() {
|
||||
className="sr-only z-50 bg-white px-4 py-3 text-base font-bold text-[#0e0d0d] focus:not-sr-only focus:fixed focus:left-4 focus:top-4"
|
||||
data-testid="skip-link"
|
||||
>
|
||||
{t('shared.skipLink')}
|
||||
{t('common.aria.skipLink')}
|
||||
</a>
|
||||
);
|
||||
}
|
||||
|
||||
@@ -15,23 +15,23 @@ export function VariantAlert() {
|
||||
data-testid="variant-alert"
|
||||
className="fixed bottom-4 left-1/2 z-[110] flex w-[min(92vw,28rem)] -translate-x-1/2 flex-wrap items-center gap-3 rounded border border-accent-line bg-surface px-4 py-3 text-sm text-text shadow-lg"
|
||||
>
|
||||
<span className="flex-1">{t('shared.variantAlert.message')}</span>
|
||||
<span className="flex-1">{t('common.alert.message')}</span>
|
||||
<button
|
||||
type="button"
|
||||
onClick={retryVariant}
|
||||
data-testid="variant-alert-retry"
|
||||
className="rounded border border-line px-3 py-1.5 font-medium hover:border-accent-line"
|
||||
>
|
||||
{t('shared.variantAlert.retry')}
|
||||
{t('common.alert.retry')}
|
||||
</button>
|
||||
<button
|
||||
type="button"
|
||||
onClick={dismissVariantError}
|
||||
aria-label={t('shared.variantAlert.dismissLabel')}
|
||||
aria-label={t('common.alert.dismissLabel')}
|
||||
data-testid="variant-alert-dismiss"
|
||||
className="rounded px-2 py-1.5 text-muted hover:text-text"
|
||||
>
|
||||
{t('shared.variantAlert.dismiss')}
|
||||
{t('common.alert.dismiss')}
|
||||
</button>
|
||||
</div>
|
||||
);
|
||||
|
||||
@@ -35,7 +35,7 @@ export class ErrorBoundary extends Component<ErrorBoundaryProps, ErrorBoundarySt
|
||||
role="alert"
|
||||
data-testid="error-boundary-fallback"
|
||||
>
|
||||
<p className="font-display text-lg">{t('shared.errorBoundary')}</p>
|
||||
<p className="font-display text-lg">{t('common.error.boundary')}</p>
|
||||
</div>
|
||||
);
|
||||
}
|
||||
|
||||
@@ -14,9 +14,9 @@ export function ModeToggle({ tone = 'default' }: { tone?: ToggleTone }) {
|
||||
<button
|
||||
type="button"
|
||||
onClick={toggleMode}
|
||||
aria-label={t('shared.toggles.darkMode')}
|
||||
aria-label={t('common.aria.darkMode')}
|
||||
aria-pressed={isDark}
|
||||
title={t('shared.toggles.darkMode')}
|
||||
title={t('common.aria.darkMode')}
|
||||
data-testid="mode-toggle-button"
|
||||
className={`flex h-11 w-11 items-center justify-center rounded-full border transition-colors focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 sm:h-8 sm:w-8 ${TONE_CLASSES[tone]}`}
|
||||
>
|
||||
|
||||
@@ -9,7 +9,7 @@ import { t } from '../../i18n';
|
||||
export function VariantToggle({ tone = 'default' }: { tone?: ToggleTone }) {
|
||||
const { variant, toggleVariant, transition } = useTheme();
|
||||
const inE = variant === 'e';
|
||||
const label = inE ? t('shared.toggles.variantBack') : t('shared.toggles.variantToTimeTravel');
|
||||
const label = inE ? t('common.aria.variantBack') : t('common.aria.variantToTimeTravel');
|
||||
|
||||
return (
|
||||
<button
|
||||
|
||||
@@ -22,7 +22,7 @@ export function AboutSection() {
|
||||
src="/bryan-slop-800.jpg"
|
||||
srcSet="/bryan-slop-400.jpg 400w, /bryan-slop-800.jpg 800w"
|
||||
sizes="(min-width: 768px) 480px, 90vw"
|
||||
alt={t('landing.about.photoAlt')}
|
||||
alt={t('home.about.photoAlt')}
|
||||
width={480}
|
||||
height={640}
|
||||
loading="lazy"
|
||||
@@ -36,7 +36,7 @@ export function AboutSection() {
|
||||
id="over-heading"
|
||||
className="mb-9 text-[clamp(40px,5.4vw,80px)] font-extrabold leading-[0.95] tracking-[-0.03em] [font-stretch:112%]"
|
||||
>
|
||||
{t('landing.about.heading')}
|
||||
{t('home.about.heading')}
|
||||
</h2>
|
||||
{aboutContent.paragraphs.map((paragraph) => (
|
||||
<p key={paragraph} className="mb-[18px] max-w-[52ch] text-body">
|
||||
|
||||
@@ -90,7 +90,7 @@ export function ContactFormView({ client, token, refreshToken }: ContactFormView
|
||||
data-testid="contact-success"
|
||||
>
|
||||
<p className="mb-3 text-[clamp(30px,3.4vw,44px)] font-extrabold leading-none tracking-[-0.02em] [font-stretch:112%]">
|
||||
{t('landing.contact.form.successTitle')}
|
||||
{t('home.contact.form.successTitle')}
|
||||
</p>
|
||||
<p className="mb-7 text-body">{contactForm.successText}</p>
|
||||
<button
|
||||
@@ -99,7 +99,7 @@ export function ContactFormView({ client, token, refreshToken }: ContactFormView
|
||||
className="min-h-[44px] bg-text px-[22px] py-[15px] text-[15px] font-bold text-panel transition-colors hover:bg-brand hover:text-on-brand"
|
||||
data-testid="contact-reset"
|
||||
>
|
||||
{t('landing.contact.form.reset')}
|
||||
{t('home.contact.form.reset')}
|
||||
</button>
|
||||
</div>
|
||||
);
|
||||
@@ -114,21 +114,17 @@ export function ContactFormView({ client, token, refreshToken }: ContactFormView
|
||||
return (
|
||||
<form {...form.formProps} className="flex flex-col gap-6" data-testid="contact-form">
|
||||
<div className="grid grid-cols-1 gap-5 sm:grid-cols-2">
|
||||
<Field label={t('landing.contact.form.name')} error={name.error} errorId={name.errorId}>
|
||||
<Field label={t('home.contact.form.name')} error={name.error} errorId={name.errorId}>
|
||||
<input type="text" autoComplete="name" className={INPUT} {...name.inputProps} />
|
||||
</Field>
|
||||
<Field label={t('landing.contact.form.email')} error={email.error} errorId={email.errorId}>
|
||||
<Field label={t('home.contact.form.email')} error={email.error} errorId={email.errorId}>
|
||||
<input type="email" autoComplete="email" className={INPUT} {...email.inputProps} />
|
||||
</Field>
|
||||
</div>
|
||||
<Field
|
||||
label={t('landing.contact.form.subject')}
|
||||
error={subject.error}
|
||||
errorId={subject.errorId}
|
||||
>
|
||||
<Field label={t('home.contact.form.subject')} error={subject.error} errorId={subject.errorId}>
|
||||
<select className={INPUT} {...subject.inputProps}>
|
||||
<option value="" disabled>
|
||||
{t('landing.contact.form.subjectPlaceholder')}
|
||||
{t('home.contact.form.subjectPlaceholder')}
|
||||
</option>
|
||||
{subjectOptions.map((option) => (
|
||||
<option key={option.value} value={option.value}>
|
||||
@@ -137,17 +133,13 @@ export function ContactFormView({ client, token, refreshToken }: ContactFormView
|
||||
))}
|
||||
</select>
|
||||
</Field>
|
||||
<Field
|
||||
label={t('landing.contact.form.message')}
|
||||
error={message.error}
|
||||
errorId={message.errorId}
|
||||
>
|
||||
<Field label={t('home.contact.form.message')} error={message.error} errorId={message.errorId}>
|
||||
<textarea rows={5} className={`${INPUT} resize-y`} {...message.inputProps} />
|
||||
</Field>
|
||||
|
||||
{/* Honeypot: invisible to people and assistive technology; bots fill it (BR-U4-7). */}
|
||||
<div aria-hidden="true" className="absolute -left-[9999px] h-0 w-0 overflow-hidden">
|
||||
<label htmlFor={hpId}>{t('landing.contact.form.honeypot')}</label>
|
||||
<label htmlFor={hpId}>{t('home.contact.form.honeypot')}</label>
|
||||
<input type="text" id={hpId} {...hpProps} />
|
||||
</div>
|
||||
|
||||
@@ -188,8 +180,8 @@ export function ContactFormView({ client, token, refreshToken }: ContactFormView
|
||||
{form.status === 'sending'
|
||||
? form.messages.sendingLabel
|
||||
: form.status === 'failed'
|
||||
? t('landing.contact.form.retry')
|
||||
: t('landing.contact.form.submit')}
|
||||
? t('home.contact.form.retry')
|
||||
: t('home.contact.form.submit')}
|
||||
</button>
|
||||
<p className="-mt-2 text-[13px] text-muted">{contactForm.privacyNote}</p>
|
||||
</form>
|
||||
|
||||
@@ -25,7 +25,7 @@ export function ContactSection({ panel = <ContactPanel /> }: { panel?: ReactNode
|
||||
<div className="mt-12 flex flex-wrap items-end justify-between gap-x-16 gap-y-10 md:mt-[72px]">
|
||||
<div className="flex-[1_1_320px] self-start">
|
||||
<p className="mb-10 max-w-[40ch] text-[19px]">{contactInfo.description}</p>
|
||||
<p className="mb-2 text-[15px] font-semibold">{t('landing.contact.directMail')}</p>
|
||||
<p className="mb-2 text-[15px] font-semibold">{t('home.contact.directMail')}</p>
|
||||
<a
|
||||
href={`mailto:${contactInfo.email}`}
|
||||
className="break-words text-[clamp(24px,2.6vw,36px)] font-bold tracking-[-0.02em] underline decoration-[3px] underline-offset-8 [font-stretch:112%]"
|
||||
|
||||
@@ -10,11 +10,7 @@ interface FilterChipsProps {
|
||||
/** Square filter chips of design B (BR-U3-3, BR-U3-11). */
|
||||
export function FilterChips({ chips, activeId, onSelect }: FilterChipsProps) {
|
||||
return (
|
||||
<div
|
||||
role="group"
|
||||
aria-label={t('landing.packages.filterLabel')}
|
||||
className="flex flex-wrap gap-2"
|
||||
>
|
||||
<div role="group" aria-label={t('home.packages.filterLabel')} className="flex flex-wrap gap-2">
|
||||
{chips.map((chip) => {
|
||||
const active = chip.id === activeId;
|
||||
return (
|
||||
|
||||
@@ -8,15 +8,15 @@ export function MailtoPanel() {
|
||||
return (
|
||||
<div data-testid="mailto-panel">
|
||||
<p className="mb-3 text-[clamp(28px,3vw,40px)] font-extrabold leading-none tracking-[-0.02em] [font-stretch:112%]">
|
||||
{t('landing.contact.mailto.title')}
|
||||
{t('home.contact.mailto.title')}
|
||||
</p>
|
||||
<p className="mb-7 max-w-[44ch] text-body">{t('landing.contact.mailto.text')}</p>
|
||||
<p className="mb-7 max-w-[44ch] text-body">{t('home.contact.mailto.text')}</p>
|
||||
<a
|
||||
href={mailtoHref}
|
||||
className="inline-block bg-brand px-6 py-[18px] text-[17px] font-bold text-on-brand no-underline transition-colors hover:bg-text hover:text-bg"
|
||||
data-testid="contact-mailto-button"
|
||||
>
|
||||
{t('landing.contact.mailto.button')}
|
||||
{t('home.contact.mailto.button')}
|
||||
</a>
|
||||
</div>
|
||||
);
|
||||
|
||||
@@ -17,7 +17,7 @@ export function PackageCard({ pkg }: { pkg: PackageCardData }) {
|
||||
>
|
||||
{featured && (
|
||||
<span className="absolute right-0 top-0 bg-[#0e0d0d] px-3.5 py-2 text-[13px] font-bold text-white">
|
||||
{t('landing.packages.featuredBadge')}
|
||||
{t('home.packages.featuredBadge')}
|
||||
</span>
|
||||
)}
|
||||
<h3
|
||||
|
||||
@@ -35,7 +35,7 @@ export function PackageList({ packages, loading = false, resetKey }: PackageList
|
||||
<div
|
||||
ref={ref}
|
||||
role="group"
|
||||
aria-label={t('landing.packages.listLabel')}
|
||||
aria-label={t('home.packages.listLabel')}
|
||||
tabIndex={0}
|
||||
data-testid="packages-grid"
|
||||
className="-mx-6 flex snap-x snap-mandatory items-stretch gap-4 overflow-x-auto px-6 pb-2 sm:mx-0 sm:flex-wrap sm:justify-center sm:snap-none sm:overflow-visible sm:px-0 sm:pb-0"
|
||||
|
||||
@@ -10,7 +10,7 @@ import { PackageList } from './PackageList';
|
||||
import { t } from '../../../i18n';
|
||||
|
||||
function headingFor(count: number): string {
|
||||
return count === 3 ? t('landing.packages.headingThree') : t('landing.packages.headingOther');
|
||||
return count === 3 ? t('home.packages.headingThree') : t('home.packages.headingOther');
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -40,26 +40,26 @@ export function PackagesSection() {
|
||||
>
|
||||
{headingFor(loaded ? filter.cards.length : 3)}.
|
||||
</h2>
|
||||
<p className="max-w-[40ch] text-body">{t('landing.packages.intro')}</p>
|
||||
<p className="max-w-[40ch] text-body">{t('home.packages.intro')}</p>
|
||||
</div>
|
||||
|
||||
{topBanner ? <OfferingTopBanner banner={topBanner} /> : null}
|
||||
|
||||
{isError ? (
|
||||
<div className="text-center" data-testid="packages-error" role="alert">
|
||||
<p className="mb-4 text-muted">{t('landing.packages.error')}</p>
|
||||
<p className="mb-4 text-muted">{t('home.packages.error')}</p>
|
||||
<button
|
||||
type="button"
|
||||
onClick={() => void refetch()}
|
||||
data-testid="packages-retry"
|
||||
className="min-h-[44px] border-2 border-text px-5 text-[15px] font-bold"
|
||||
>
|
||||
{t('landing.packages.retry')}
|
||||
{t('home.packages.retry')}
|
||||
</button>
|
||||
</div>
|
||||
) : loaded && data.length === 0 ? (
|
||||
<div data-testid="packages-empty">
|
||||
<p className="mb-4 text-muted">{t('landing.packages.empty')}</p>
|
||||
<p className="mb-4 text-muted">{t('home.packages.empty')}</p>
|
||||
{banner}
|
||||
</div>
|
||||
) : (
|
||||
|
||||
@@ -11,7 +11,7 @@ export function ProcessSection() {
|
||||
id="werkwijze-heading"
|
||||
className="mb-16 max-w-[14ch] text-[clamp(40px,5.4vw,80px)] font-extrabold leading-[0.95] tracking-[-0.03em] [font-stretch:112%] md:mb-[88px]"
|
||||
>
|
||||
{t('landing.process.heading')}
|
||||
{t('home.process.heading')}
|
||||
</h2>
|
||||
<ol className="grid grid-cols-1 gap-x-10 gap-y-16 md:grid-cols-3">
|
||||
{processSteps.map((step, index) => (
|
||||
|
||||
@@ -19,7 +19,7 @@ export function SwipeDots({ titles, activeIndex, onSelect }: SwipeDotsProps) {
|
||||
<button
|
||||
key={`${title}-${index}`}
|
||||
type="button"
|
||||
aria-label={t('landing.packages.swipeDot', {
|
||||
aria-label={t('home.packages.swipeDot', {
|
||||
index: index + 1,
|
||||
total: titles.length,
|
||||
title,
|
||||
|
||||
@@ -83,10 +83,10 @@ export interface ContactInfo {
|
||||
}
|
||||
|
||||
export const navLinks: NavLink[] = [
|
||||
{ label: t('landing.nav.about'), href: '#over' },
|
||||
{ label: t('landing.nav.packages'), href: '#pakketten' },
|
||||
{ label: t('landing.nav.process'), href: '#werkwijze' },
|
||||
{ label: t('landing.nav.cta'), href: '#contact', isCta: true },
|
||||
{ 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 },
|
||||
];
|
||||
|
||||
export const heroContent: HeroContent = {
|
||||
@@ -160,33 +160,33 @@ export const packagesSettings: PackagesSettings = {
|
||||
};
|
||||
|
||||
export const processSteps: ProcessStepData[] = (['intake', 'build', 'live'] as const).map((id) => ({
|
||||
label: t(`landing.process.steps.${id}.label`),
|
||||
phase: t(`landing.process.steps.${id}.phase`),
|
||||
title: t(`landing.process.steps.${id}.title`),
|
||||
description: t(`landing.process.steps.${id}.description`),
|
||||
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('landing.about.paragraphs')],
|
||||
paragraphs: [...tList('home.about.paragraphs')],
|
||||
};
|
||||
|
||||
export const aboutFacts: AboutFact[] = (['contact', 'response', 'price'] as const).map((id) => ({
|
||||
title: t(`landing.about.facts.${id}.title`),
|
||||
text: t(`landing.about.facts.${id}.text`),
|
||||
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('landing.contact.form.otherSubject'),
|
||||
successText: t('landing.contact.form.successText'),
|
||||
captchaProblem: t('landing.contact.form.captchaProblem'),
|
||||
privacyNote: t('landing.contact.form.privacyNote'),
|
||||
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('landing.contact.heading'),
|
||||
displayHeading: [...tList('landing.contact.displayHeading')],
|
||||
description: t('landing.contact.description'),
|
||||
heading: t('home.contact.heading'),
|
||||
displayHeading: [...tList('home.contact.displayHeading')],
|
||||
description: t('home.contact.description'),
|
||||
email: 'info@slpsoftware.nl',
|
||||
mailSubject: t('landing.contact.mailSubject'),
|
||||
mailSubject: t('home.contact.mailSubject'),
|
||||
};
|
||||
|
||||
+4
-3
@@ -1,6 +1,7 @@
|
||||
import landing from './nl/landing.json';
|
||||
import home from './nl/home.json';
|
||||
import era from './nl/era.json';
|
||||
import shared from './nl/shared.json';
|
||||
import common from './nl/common.json';
|
||||
import site from './nl/site.json';
|
||||
|
||||
/**
|
||||
* Static website texts (Dutch). One JSON file per area; keys are typed so a missing or misspelled key
|
||||
@@ -8,7 +9,7 @@ import shared from './nl/shared.json';
|
||||
* already comes from the CMS (packages, banners). A second language later = a second folder with the
|
||||
* same keys plus a language switch here; no component needs to change.
|
||||
*/
|
||||
export const nl = { landing, era, shared } as const;
|
||||
export const nl = { common, site, home, era } as const;
|
||||
|
||||
type Leaves<T, P extends string = ''> = {
|
||||
[K in keyof T & string]: T[K] extends string
|
||||
|
||||
@@ -1,20 +1,22 @@
|
||||
{
|
||||
"skipLink": "Naar de inhoud",
|
||||
"errorBoundary": "Er ging iets mis. Probeer de pagina te vernieuwen.",
|
||||
"toggles": {
|
||||
"aria": {
|
||||
"skipLink": "Naar de inhoud",
|
||||
"darkMode": "Donkere weergave",
|
||||
"variantToTimeTravel": "Tijdreis: bekijk de site zoals vroeger",
|
||||
"variantBack": "Terug naar nu"
|
||||
},
|
||||
"variantAlert": {
|
||||
"status": {
|
||||
"toE": "Tijdreis-weergave geladen.",
|
||||
"toB": "Terug naar de moderne weergave.",
|
||||
"failed": "De tijdreis kon niet worden geladen."
|
||||
},
|
||||
"error": {
|
||||
"boundary": "Er ging iets mis. Probeer de pagina te vernieuwen."
|
||||
},
|
||||
"alert": {
|
||||
"message": "De tijdreis kon niet worden geladen.",
|
||||
"retry": "Opnieuw proberen",
|
||||
"dismissLabel": "Melding sluiten",
|
||||
"dismiss": "Sluiten"
|
||||
},
|
||||
"announce": {
|
||||
"toE": "Tijdreis-weergave geladen.",
|
||||
"toB": "Terug naar de moderne weergave.",
|
||||
"failed": "De tijdreis kon niet worden geladen."
|
||||
}
|
||||
}
|
||||
@@ -1,13 +1,4 @@
|
||||
{
|
||||
"nav": {
|
||||
"label": "Hoofdnavigatie",
|
||||
"about": "Over",
|
||||
"packages": "Pakketten",
|
||||
"process": "Werkwijze",
|
||||
"cta": "Start project",
|
||||
"menuClose": "Sluit menu",
|
||||
"menuOpen": "Open menu"
|
||||
},
|
||||
"about": {
|
||||
"photoAlt": "Bryan Slop, oprichter van SLP Software",
|
||||
"heading": "Eén ontwikkelaar, korte lijnen",
|
||||
@@ -16,9 +7,18 @@
|
||||
"Van een strakke landingspagina tot een applicatie met eigen contentmanagementsysteem — de aanpak is hetzelfde: heldere afspraken, nette code en een resultaat waar je jaren mee vooruit kunt."
|
||||
],
|
||||
"facts": {
|
||||
"contact": { "title": "Direct contact", "text": "met de ontwikkelaar zelf" },
|
||||
"response": { "title": "Eén werkdag", "text": "tot je een reactie hebt" },
|
||||
"price": { "title": "Vaste prijs", "text": "per pakket, vooraf bekend" }
|
||||
"contact": {
|
||||
"title": "Direct contact",
|
||||
"text": "met de ontwikkelaar zelf"
|
||||
},
|
||||
"response": {
|
||||
"title": "Eén werkdag",
|
||||
"text": "tot je een reactie hebt"
|
||||
},
|
||||
"price": {
|
||||
"title": "Vaste prijs",
|
||||
"text": "per pakket, vooraf bekend"
|
||||
}
|
||||
}
|
||||
},
|
||||
"process": {
|
||||
@@ -88,9 +88,6 @@
|
||||
"privacyNote": "Je gegevens gebruik ik alleen om op je bericht te reageren; ik bewaar ze maximaal 1 jaar."
|
||||
}
|
||||
},
|
||||
"footer": {
|
||||
"copyright": "© 2026 SLP Software"
|
||||
},
|
||||
"static": {
|
||||
"packagesHeading": "Manieren om te starten."
|
||||
}
|
||||
@@ -0,0 +1,14 @@
|
||||
{
|
||||
"nav": {
|
||||
"label": "Hoofdnavigatie",
|
||||
"about": "Over",
|
||||
"packages": "Pakketten",
|
||||
"process": "Werkwijze",
|
||||
"cta": "Start project",
|
||||
"menuClose": "Sluit menu",
|
||||
"menuOpen": "Open menu"
|
||||
},
|
||||
"footer": {
|
||||
"copyright": "© 2026 SLP Software"
|
||||
}
|
||||
}
|
||||
@@ -27,7 +27,7 @@ export function StaticLanding() {
|
||||
id="pakketten-heading"
|
||||
className="max-w-[12ch] text-[clamp(40px,5.4vw,80px)] font-extrabold leading-[0.95] tracking-[-0.03em] [font-stretch:112%]"
|
||||
>
|
||||
{t('landing.static.packagesHeading')}
|
||||
{t('home.static.packagesHeading')}
|
||||
</h2>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
@@ -46,7 +46,7 @@ export function deriveChips(cards: PackageCardData[], threshold: number): Chip[]
|
||||
return null;
|
||||
}
|
||||
return [
|
||||
{ id: ALL_CHIP, label: t('landing.packages.filterAll'), count: cards.length },
|
||||
{ id: ALL_CHIP, label: t('home.packages.filterAll'), count: cards.length },
|
||||
...[...counts].map(([name, count]) => ({ id: `cat:${name}`, label: name, count })),
|
||||
];
|
||||
}
|
||||
@@ -60,10 +60,10 @@ export function filterCards(cards: PackageCardData[], activeId: string): Package
|
||||
|
||||
/** BR-U3-4 */
|
||||
export function resultLabel(count: number, hasBanner: boolean): string {
|
||||
const result = t(count === 1 ? 'landing.packages.resultOne' : 'landing.packages.resultMany', {
|
||||
const result = t(count === 1 ? 'home.packages.resultOne' : 'home.packages.resultMany', {
|
||||
count,
|
||||
});
|
||||
return hasBanner ? t('landing.packages.resultWithBanner', { result }) : result;
|
||||
return hasBanner ? t('home.packages.resultWithBanner', { result }) : result;
|
||||
}
|
||||
|
||||
/** BR-U3-7: index of the featured card, else the first one. */
|
||||
|
||||
@@ -79,8 +79,8 @@ function removeLegacyThemeKey(): void {
|
||||
}
|
||||
}
|
||||
|
||||
const ANNOUNCE_TO_E = t('shared.announce.toE');
|
||||
const ANNOUNCE_TO_B = t('shared.announce.toB');
|
||||
const ANNOUNCE_TO_E = t('common.status.toE');
|
||||
const ANNOUNCE_TO_B = t('common.status.toB');
|
||||
|
||||
function wait(ms: number): Promise<void> {
|
||||
return new Promise((resolve) => setTimeout(resolve, ms));
|
||||
@@ -174,7 +174,7 @@ export function ThemeProvider({ children, loadVariant }: ThemeProviderProps) {
|
||||
// BR-U1-8: stay in the current variant and tell the visitor.
|
||||
if (mountedRef.current) {
|
||||
setVariantError(true);
|
||||
setAnnouncement(t('shared.announce.failed'));
|
||||
setAnnouncement(t('common.status.failed'));
|
||||
}
|
||||
} finally {
|
||||
busyRef.current = false;
|
||||
@@ -199,7 +199,7 @@ export function ThemeProvider({ children, loadVariant }: ThemeProviderProps) {
|
||||
const reportVariantError = useCallback(() => {
|
||||
setVariant(DEFAULT_VARIANT);
|
||||
setVariantError(true);
|
||||
setAnnouncement(t('shared.announce.failed'));
|
||||
setAnnouncement(t('common.status.failed'));
|
||||
setTransition({ phase: 'idle', target: null });
|
||||
}, []);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user