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:
2026-11-15 20:40:51 +01:00
co-authored by Claude Sonnet 5.5
parent 6c6fd771dd
commit 2f614151df
32 changed files with 1405 additions and 104 deletions
@@ -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,
+19 -19
View File
@@ -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'),
};