diff --git a/landing/public/hero/photos/CREDITS.md b/landing/public/hero/photos/CREDITS.md index 095cd87..752de6a 100644 --- a/landing/public/hero/photos/CREDITS.md +++ b/landing/public/hero/photos/CREDITS.md @@ -9,12 +9,9 @@ Les prénoms affichés sur le site (Camille, Alex, Lya...) sont fictifs. Les pho | `souvenir-1511895426328.webp` | Unsplash, `https://images.unsplash.com/photo-1511895426328-dc8714191300` | Licence Unsplash | | `souvenir-1519741497674.webp` | Unsplash, `https://images.unsplash.com/photo-1519741497674-611481863552` | Licence Unsplash | | `lya-14.webp`, `marc-56.webp`, `jeanne-85.webp` | Pexels (page source non consignée à l'ajout, le 24/09/2026) | Licence Pexels | -| `women-44.webp` | randomuser.me, `https://randomuser.me/api/portraits/women/44.jpg` | Non établie, voir plus bas | -| `men-32.webp` | randomuser.me, `https://randomuser.me/api/portraits/men/32.jpg` | Non établie, voir plus bas | -| `women-65.webp` | randomuser.me, `https://randomuser.me/api/portraits/women/65.jpg` (plus utilisée par le site) | Non établie, voir plus bas | +| `camille-39.webp` | Pexels, photo de Clay Elliot, `https://www.pexels.com/photo/woman-in-black-shirt-smiling-14634932/` | Licence Pexels | +| `alex-41.webp` | Pexels, photo de Vitaly Gariev, `https://www.pexels.com/photo/confident-adult-man-in-outdoor-setting-36712860/` | Licence Pexels | Les URL Unsplash ci-dessus viennent de la première version de la landing (commit fd58488), qui chargeait ces images en direct. Les auteurs ne sont pas notés. -## Portraits randomuser.me - -randomuser.me indique seulement que ses photos ont été « choisies dans la section autorisée de UI Faces ». UI Faces a depuis retiré ces photos agrégées et précise qu'elles venaient de sources aux licences différentes, à vérifier avant tout usage public. Aucune licence ne couvre donc clairement leur usage sur un site public. À remplacer par des portraits dont la licence est connue (Pexels, Unsplash), avec la page source notée ici. +`camille-39` et `alex-41` (recadrés en 400 × 400) remplacent depuis le 30/09/2026 trois portraits de randomuser.me dont la licence n'était pas établie pour un site public. diff --git a/landing/public/hero/photos/alex-41.webp b/landing/public/hero/photos/alex-41.webp new file mode 100644 index 0000000..642546b Binary files /dev/null and b/landing/public/hero/photos/alex-41.webp differ diff --git a/landing/public/hero/photos/camille-39.webp b/landing/public/hero/photos/camille-39.webp new file mode 100644 index 0000000..018890b Binary files /dev/null and b/landing/public/hero/photos/camille-39.webp differ diff --git a/landing/public/og-image-hero.png b/landing/public/og-image-hero.png new file mode 100644 index 0000000..7b5375c Binary files /dev/null and b/landing/public/og-image-hero.png differ diff --git a/landing/public/og-image.png b/landing/public/og-image.png new file mode 100644 index 0000000..b9f6308 Binary files /dev/null and b/landing/public/og-image.png differ diff --git a/landing/src/App.jsx b/landing/src/App.jsx index 03d72e5..2f8ffb9 100644 --- a/landing/src/App.jsx +++ b/landing/src/App.jsx @@ -51,7 +51,7 @@ function HeroGraph({ className = '', label }) { firstName: 'Camille', years: '1987', frameType: 'polaroid', - photo: '/hero/photos/women-44.webp', + photo: '/hero/photos/camille-39.webp', x: 158, y: 168, medias: [ @@ -65,7 +65,7 @@ function HeroGraph({ className = '', label }) { firstName: 'Alex', years: '1985', frameType: 'rect', - photo: '/hero/photos/men-32.webp', + photo: '/hero/photos/alex-41.webp', x: 602, y: 168, medias: [ @@ -1050,7 +1050,7 @@ export default function App({ locale = 'fr' }) { diff --git a/tools/layout-bench/og-from-hero.mjs b/tools/layout-bench/og-from-hero.mjs index c7b07d2..e46875c 100644 --- a/tools/layout-bench/og-from-hero.mjs +++ b/tools/layout-bench/og-from-hero.mjs @@ -45,7 +45,7 @@ const shotIllu = await p.send('Page.captureScreenshot', { format: 'png', clip: { const hero = await p.eval(`(() => { const s = document.querySelector('section'); const r = s.getBoundingClientRect(); return { x: r.left, y: 0, w: r.width, h: Math.min(r.height, 900) } })()`) const shotHero = await p.send('Page.captureScreenshot', { format: 'png', clip: { x: hero.x, y: hero.y, width: hero.w, height: hero.h, scale: 2 } }) -// Composition 1200×630 : illustration centrée sur le fond crème (dégradé identique au hero) +// Composition 1200×630 : illustration centrée sur le fond de la DA (#FBFAF7, identique au hero) function compose(pngBase64, srcW, srcH, { fit = 'contain', pad = 30, zoom = 1 } = {}) { const W = 1200, H = 630 let w, h @@ -53,8 +53,7 @@ function compose(pngBase64, srcW, srcH, { fit = 'contain', pad = 30, zoom = 1 } else { const s = Math.min((W - pad * 2) / srcW, (H - pad * 2) / srcH) * zoom; w = srcW * s; h = srcH * s } const x = (W - w) / 2, y = (H - h) / 2 const svg = ` - - + ` return new Resvg(svg, { fitTo: { mode: 'width', value: W } }).render().asPng()