Initial commit

This commit is contained in:
sarahgarcin1 2026-01-05 19:33:15 +01:00
commit 388079e6bb
1108 changed files with 330121 additions and 0 deletions

23
site/snippets/item.php Normal file
View file

@ -0,0 +1,23 @@
<li class="col-xs-12 col-sm-6 col-md-4 col-xl-3">
<a href="<?= $projet->url()?>" title="<?= $projet->title()?>">
<?php if($image = $projet->cover()->toFile()):?>
<div class="projets__projet__cover">
<picture>
<source
srcset="<?= $image->thumb(['width' => 680, 'height' => 680, 'crop' => true, 'format' => 'webp'])->url() ?>"
sizes="<?= $sizes ?>"
type="image/webp"
>
<img
loading="lazy"
alt="<?= $image->alt() ?>"
src="<?= $image->thumb(['width' => 680, 'height' => 680, 'crop' => true, 'format' => 'webp'])->url() ?>"
srcset="<?= $image->srcset() ?>"
sizes="<?= $sizes ?>"
>
</picture>
</div>
<?php endif;?>
<p><?= $projet->title()?></p>
</a>
</li>