// src/PhotoCard.jsx — placeholder photo card with sepia/teal tinted frame // Visual stand-in until the association plugs in real photos. const PhotoCard = ({ photo, onClick }) => { // Build a deterministic placeholder background using the photo's hue const hue = photo.hue ?? 30; const frameStyle = { background: `linear-gradient(135deg, hsl(${hue}, 35%, 72%) 0%, hsl(${hue + 10}, 28%, 48%) 100%)`, }; return (
PLACEHOLDER
{photo.title}
{photo.year} · {photo.kind}
); }; // A tiny illustrative SVG inside the photo frame so it doesn't look empty. // Different glyphs per kind / topic. const PhotoPlaceholderArt = ({ kind, year }) => { return ( {/* horizon */} {/* sky vignette */} {/* generic silhouette suggestion */} {/* date stamp */} {year} ); }; const SourceCard = ({ source, onClick }) => (
{source.kind === "Photo" && "◧ "} {source.kind === "Document" && "✎ "} {source.kind === "Témoignage" && "✦ "} {source.kind}
{source.title}
{source.meta}
); Object.assign(window, { PhotoCard, SourceCard });