test: vitest unit + playwright e2e suites; fix a11y, contrast, no-JS reveal
- vitest: dictionary parity, slug-map bijection, content-schema validation, JSON-LD (23) - playwright: both locales, language-switch mapping (incl. no-JS), CV downloads, form happy-path + honeypot, axe a11y on 5 templates x 2 themes (23) - fix: raise ink-faint + light accent to meet WCAG AA 4.5:1 (axe-verified) - fix: gate reveal animations behind html.js so content is visible without JS (progressive enhancement - was hidden at opacity 0); scan reduced-motion path - fix: validate contact form before the anti-bot time-trap (no false success) - chore: ESLint node globals, typed diagram props, resvg fontFiles, prettier pass Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
@@ -31,8 +31,7 @@ export const en: Dictionary = {
|
||||
heading: 'Download my CV',
|
||||
intro:
|
||||
'For a full overview of my experience, skills and work history, download my CV in either language.',
|
||||
atsNote:
|
||||
'These are plain, ATS-friendly PDFs — single column, real text, standard headings.',
|
||||
atsNote: 'These are plain, ATS-friendly PDFs — single column, real text, standard headings.',
|
||||
updated: 'Updated',
|
||||
},
|
||||
lang: {
|
||||
|
||||
@@ -51,7 +51,10 @@ export const HOME_SECTIONS = [
|
||||
{ id: 'contact', en: 'contact', no: 'kontakt' },
|
||||
] as const;
|
||||
|
||||
export function homeAnchor(sectionId: (typeof HOME_SECTIONS)[number]['id'], locale: Locale): string {
|
||||
export function homeAnchor(
|
||||
sectionId: (typeof HOME_SECTIONS)[number]['id'],
|
||||
locale: Locale,
|
||||
): string {
|
||||
const s = HOME_SECTIONS.find((x) => x.id === sectionId);
|
||||
return s ? s[locale] : sectionId;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user