'use client'; import { useEffect, useRef } from 'react'; import Link from 'next/link'; type props = { title: string; description: string; dateLabel: string; locale: string; cover?: string; }; export function ProjectHero({ title, description, dateLabel, locale, cover }: props) { const ref = useRef(null); useEffect(() => { const section = ref.current; if (!section) return; const items = section.querySelectorAll('.hero-reveal'); items.forEach((el, i) => { setTimeout(() => { el.style.opacity = '1'; el.style.transform = 'translateY(0)'; }, 80 + i * 100); }); }, []); return (
{/* Background cover image */} {cover && (
)} {/* Back link */}
Retour aux projets
{/* Main content — vertically centred */}
{/* Category pill */}
{dateLabel}
{/* Title */}

{title}

{/* Description */}

{description}

{/* Scroll indicator */}
Défiler
); }