Completes the front-end shell with footer, status pages and SEO

Adds the footer, back-to-top button, skip link, placeholder routes,
404 and error pages inside the shell, plus per-page SEO from a single
page registry (canonical URLs, Open Graph image, JSON-LD, generated
sitemap.xml and robots.txt).

Theme tokens and recipes replace repeated styling, the hero loads only
the active and neighbouring slides, and the e-mail address is joined
in the browser to keep it out of the HTML and bundle.

Adds Vitest with property-based (fast-check) and axe tests, ESLint,
security headers for dev and preview, Lighthouse CI and a `pnpm check`
script that runs all quality gates.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-10-18 17:05:02 +02:00
co-authored by Claude Opus 5.5
parent b5b7f3b3db
commit 4d6408b607
99 changed files with 7883 additions and 414 deletions
+42
View File
@@ -0,0 +1,42 @@
import type { HeroContent } from './types';
// Images
import hero1 from '../assets/hero-1.jpg';
import hero2 from '../assets/hero-2.jpg';
import hero3 from '../assets/hero-3.jpg';
import hero4 from '../assets/hero-4.jpg';
import hero5 from '../assets/hero-5.jpg';
import hero6 from '../assets/hero-6.jpg';
import hero7 from '../assets/hero-7.jpg';
import hero8 from '../assets/hero-8.jpg';
// Statische content tot de CMS-API er is. Daarna komt dit object uit de API.
const heroContent: HeroContent = {
title: 'Andrea Slop',
tagline: 'Lifestyle fotograaf · Huizen',
cta: { label: 'Lees meer', to: '/over-mij' },
slides: [
{ id: 'hero-8', src: hero8, alt: 'Zwangerschapsfoto in de duinen' },
{ id: 'hero-7', src: hero7, alt: 'Knusse newbornfoto met de familie' },
{
id: 'hero-1',
src: hero1,
alt: 'Lifestyle fotografie van Andrea Slop',
},
{
id: 'hero-2',
src: hero2,
alt: 'Zwangerschapsshoot in de buitenlucht',
},
{
id: 'hero-3',
src: hero3,
alt: 'Newbornshoot van een pasgeboren baby',
},
{ id: 'hero-4', src: hero4, alt: 'Spontaan portret buiten' },
{ id: 'hero-5', src: hero5, alt: 'Natuurlijke lifestylefoto' },
{ id: 'hero-6', src: hero6, alt: 'Portret in de natuur' },
],
};
export default heroContent;
+21
View File
@@ -0,0 +1,21 @@
import type { SiteContent } from './types';
// Site-brede content tot de CMS-API er is. Daarna komt dit object uit de API.
const siteContent: SiteContent = {
// Elke zin op een eigen regel; de footer toont de regelafbreking
footerIntro:
'Lifestyle fotograaf uit Huizen.\nIk leg jouw mooiste momenten vast.',
socials: [
{
platform: 'facebook',
href: 'https://www.facebook.com/andreaslopfotografie/',
},
{
platform: 'instagram',
href: 'https://www.instagram.com/andreaslopfotografie/',
},
],
email: { user: 'info', domain: 'andreaslop.nl' },
};
export default siteContent;
+13
View File
@@ -0,0 +1,13 @@
import facebookFilled from '@iconify-icons/ant-design/facebook-filled';
import instagramFilled from '@iconify-icons/ant-design/instagram-filled';
// Vaste set ondersteunde platforms. De icon-data zit in de build, dus er gaat
// geen request naar de Iconify API. Het CMS levert alleen de links aan.
const socialPlatforms = {
facebook: { name: 'Facebook', icon: facebookFilled },
instagram: { name: 'Instagram', icon: instagramFilled },
};
export type SocialPlatform = keyof typeof socialPlatforms;
export default socialPlatforms;
+42
View File
@@ -0,0 +1,42 @@
import type { SocialPlatform } from './socialPlatforms.ts';
// Vorm van de content die straks uit de CMS-API komt. Bewust platte data
// (strings, objecten en arrays), zodat de API ze 1-op-1 kan leveren.
export interface SocialLink {
platform: SocialPlatform;
href: string; // alleen getoond als geldige https-URL (zie visibleSocials)
}
// Het e-mailadres in delen: zo staat het volledige adres nergens letterlijk
// in de HTML, de JavaScript-bundel of de API-respons (anti-spam).
export interface EmailAddress {
user: string;
domain: string;
}
export interface SiteContent {
footerIntro: string;
socials: SocialLink[];
email: EmailAddress;
}
export interface HeroSlide {
id: string;
src: string;
alt: string;
}
export interface HeroCta {
label: string;
to: string;
}
export interface HeroContent {
title: string;
// Klein label in hoofdletters boven de titel: wat en waar, voor bezoekers
// en zoekmachines (bv. "Lifestyle fotograaf · Huizen")
tagline: string;
cta: HeroCta;
slides: HeroSlide[];
}