// ─── CASE STUDY PAGE ─────────────────────────────────────────────────────── // Three hero variants, togglable via Tweaks panel. // Shared structure: Hero → Diensten (chips) → Player → Foto-galerij const CASE = (window.SPRAAKMAKER_CASES || [])[0]; // fallback // Load cases from static data file async function loadCases() { return window.SPRAAKMAKER_CASES || []; } // Read URL query param function getQueryParam(key) { const p = new URLSearchParams(window.location.search); return p.get(key); } // ── Shared building blocks ────────────────────────────────────────────── function ServicesChips({ services, dark = false }) { return (
{services.map((slug, i) => ( {getServiceLabel(slug)} ))}
); } function SpotifyPlayer({ showId, compact = false }) { if (!showId) { return (
Geen Spotify-link beschikbaar
); } // Use /video variant — richer embed (video + audio) per user preference const height = compact ? 232 : 351; return (