Index > filter menu fonctionnel + router URL + opti images
All checks were successful
Deploy / Deploy to Production (push) Successful in 2s
All checks were successful
Deploy / Deploy to Production (push) Successful in 2s
- 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>
This commit is contained in:
parent
444b07ccad
commit
40366f617b
11 changed files with 139 additions and 23 deletions
20
site/config/thumbs/project-slideshow.php
Normal file
20
site/config/thumbs/project-slideshow.php
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
<?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'],
|
||||
],
|
||||
];
|
||||
Loading…
Add table
Add a link
Reference in a new issue