feat(portfolio): image d'arrière-plan pour la galerie animée
All checks were successful
Deploy / Deploy to Production (push) Successful in 18s

related to #20

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
isUnknown 2026-03-21 12:34:18 +01:00
parent b455cbb82e
commit 8829817e48
4 changed files with 15 additions and 5 deletions

View file

@ -55,13 +55,15 @@ columns:
fields:
imagesGallery:
width: 2/3
label: Galerie d'image
label: Galerie d'images
type: files
layout: cards
size: small
min: 6
accept: image/*
translate: false
image:
back: #ffffff
uploads:
template: image
help: "Une animation sera générée à partir des images de ce champ. Minimum optimal d'images : 6"
@ -76,6 +78,7 @@ columns:
translate: false
image:
ratio: 1/1
back: #ffffff
uploads:
template: image
help: Écran de jeu mis en situation sur un appareil
@ -104,6 +107,11 @@ columns:
label: Couleur d'arrière-plan de la galerie animée
type: color
alpha: false
galleryBackgroundImage:
label: Image d'arrière-plan
type: files
multiple: false
help: L'ajout d'une image d'arrière-plan masquera la couleur d'arrière-plan.
keywords:
label: Mots clés
type: structure

View file

@ -18,6 +18,7 @@ $specificData = [
'mockupSrcset' => $project->mockup()->toFile()?->srcset('mockup'),
'mockupWebp' => $project->mockup()->toFile()?->srcset('mockup-webp'),
'galleryBackgroundColor' => $project->galleryBackgroundColor()->value(),
'galleryBackgroundImage' => $project->galleryBackgroundImage()->isNotEmpty() ? $project->galleryBackgroundImage()->toFile()->url() : null,
'keywords' => $project->keywords()->toStructure()->map(fn($i) => [
'label' => $i->label()->value(),
'text' => $i->text()->value(),