hic-et-nunc/site/config/thumbs/project-slideshow.php
isUnknown 40366f617b
All checks were successful
Deploy / Deploy to Production (push) Successful in 2s
Index > filter menu fonctionnel + router URL + opti images
- Filtre actif reflété dans ?filter= (pushState), restauré au chargement et sur popstate
- Projet ouvert reflété dans ?project= (pushState), restauré au chargement et sur popstate
- router.js : helpers setParam/getParam + dispatch routechange sur popstate
- Opti images projet : snippet picture, srcset 500-1800w JPEG+WebP, sizes 50vw/>1000px / 100vw mobile
- SCSS : picture { display: contents } dans .project-slideshow, .filtered-out, button.active

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-06-04 16:02:20 +02:00

20 lines
638 B
PHP

<?php
// Slideshow projet : 50vw desktop (> 1000px), 100vw mobile
// Widths couvrent mobile 3x jusqu'à desktop 4K 2x
return [
'project-slideshow' => [
'500w' => ['width' => 500],
'800w' => ['width' => 800],
'1100w' => ['width' => 1100],
'1400w' => ['width' => 1400],
'1800w' => ['width' => 1800],
],
'project-slideshow-webp' => [
'500w' => ['width' => 500, 'format' => 'webp'],
'800w' => ['width' => 800, 'format' => 'webp'],
'1100w' => ['width' => 1100, 'format' => 'webp'],
'1400w' => ['width' => 1400, 'format' => 'webp'],
'1800w' => ['width' => 1800, 'format' => 'webp'],
],
];