Commit graph

7 commits

Author SHA1 Message Date
isUnknown
6d71b353f3 Rename horizontalgallery block to horizontal-gallery
All checks were successful
Deploy / Deploy to Production (push) Successful in 13s
- Follow Kirby naming convention with dashes
- Update all references (blueprint, snippet, plugin registration)
- Rebuild plugin with new name

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
2026-02-09 19:33:33 +01:00
isUnknown
561932724b Refactor blocks architecture to modular approach
- Restore "1/2, 1/2" layout for flexible column combinations
- Simplify beforeafter block: remove toggle and text field, keep only image comparison
- Create new video block with URL support (YouTube/Vimeo/direct files)
- Create horizontal-gallery block for scrollable image galleries
- Add H4 heading level support
- All blocks now modular: combine with text blocks in 2-column layouts

Blocks available:
- Text, Heading (h2-h4), Image, Video
- Before/After comparison (no text)
- Horizontal gallery (with text below)

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
2026-02-09 19:33:33 +01:00
isUnknown
6251d8f09f Transform beforeafter block into generic image+text block
- Add toggle (isBeforeAfter) to switch between modes
- Mode simple: single image + text (2 columns layout)
- Mode comparison: before/after slider + text (2 columns layout)
- Remove "1/2, 1/2" layout from report blueprint (keep only "1/1")
- Update Vue component with 2-column grid preview
- Update PHP snippet to handle both modes
- Rename block to "Image avec texte"

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
2026-02-09 19:33:33 +01:00
isUnknown
5889b64c2d Invert image order in beforeafter block preview
- Image "before" now displays on top (left side, clipped at 50%)
- Image "after" displays below (visible on right side)
- Update text block to support bullet lists
- Add heading fieldset to report blueprint

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
2026-02-09 19:33:33 +01:00
isUnknown
3d182a233d Add before/after comparison block plugin
- Create custom block plugin with Vue 3 + Composition API
- Use kirbyup for building Vue SFC components
- Block allows selecting two images with slider comparison UI
- Preview shows images overlapped at 50% in the panel
- Add beforeafter block to report blueprint
- Update report template to use authors field
- Change text block heading level from 4 to 3

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
2026-02-09 19:33:32 +01:00
isUnknown
1e6b241a98 Dynamiser template investigation-summary et nettoyer blueprint report
Dynamisation complète du template investigation-summary.php :
- Hero adaptatif (image simple, slider ou vidéo) selon heroType
- Lien automatique vers le rapport (sous-page de type report)
- Affichage dynamique des métadonnées (dates, lieu, conséquences, etc.)
- Section synthèse avec support KirbyText
- Section "en lien" avec enquêtes similaires (champ relatedInvestigations ou fallback sur les dernières enquêtes)
- Dates formatées en français via ICU

Nettoyage du blueprint report.yml :
- Suppression du champ indexTeam (remplacé par le champ team en tags)

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
2026-01-13 11:56:02 +01:00
isUnknown
b158d37cec CI : track header snippet 2026-01-13 11:20:05 +01:00