investigation-summary : rendu des layouts avec blocs
- Création des snippets de blocs (text, heading, image) - Implémentation du rendu des layouts avec colonnes - Structure en grille pour layouts multi-colonnes NOTE : Cette implémentation est à revoir selon la maquette finale. Le rendu actuel utilise une structure basique en attendant les spécifications de design. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
This commit is contained in:
parent
4a18a61148
commit
d9409e689a
4 changed files with 22 additions and 1 deletions
8
site/snippets/blocks/image.php
Normal file
8
site/snippets/blocks/image.php
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
<?php if ($image = $block->image()->toFile()): ?>
|
||||
<figure>
|
||||
<img src="<?= $image->url() ?>" alt="<?= $block->alt()->or($image->alt()) ?>">
|
||||
<?php if ($block->caption()->isNotEmpty()): ?>
|
||||
<figcaption><?= $block->caption() ?></figcaption>
|
||||
<?php endif; ?>
|
||||
</figure>
|
||||
<?php endif; ?>
|
||||
Loading…
Add table
Add a link
Reference in a new issue