Increase default hero banner height to 400px

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
Etienne Delvarre
2026-05-29 11:11:10 +02:00
parent cf7e8e1144
commit 90e07ae692
+4 -4
View File
@@ -201,7 +201,7 @@
.v-card.full { grid-column: 1 / -1; } .v-card.full { grid-column: 1 / -1; }
.v-card h3 { font-family: 'Playfair Display', serif; font-size: 14px; font-weight: 600; color: var(--text-hint); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 16px; } .v-card h3 { font-family: 'Playfair Display', serif; font-size: 14px; font-weight: 600; color: var(--text-hint); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 16px; }
.hero-banner { grid-column: 1 / -1; border-radius: 12px; height: 280px; background: linear-gradient(135deg, #d4a574 0%, #c4956a 30%, #a07850 60%, #7a5c40 100%); position: relative; overflow: hidden; display: flex; align-items: flex-end; background-size: cover; background-position: center; } .hero-banner { grid-column: 1 / -1; border-radius: 12px; height: 400px; background: linear-gradient(135deg, #d4a574 0%, #c4956a 30%, #a07850 60%, #7a5c40 100%); position: relative; overflow: hidden; display: flex; align-items: flex-end; background-size: cover; background-position: center; }
.dark .hero-banner { background: linear-gradient(135deg, #5a4030 0%, #4a3528 30%, #3a2a20 60%, #2a1e18 100%); } .dark .hero-banner { background: linear-gradient(135deg, #5a4030 0%, #4a3528 30%, #3a2a20 60%, #2a1e18 100%); }
.hero-banner.has-image { background-color: #1a1614; cursor: grab; } .hero-banner.has-image { background-color: #1a1614; cursor: grab; }
.hero-banner.has-image.dragging { cursor: grabbing; } .hero-banner.has-image.dragging { cursor: grabbing; }
@@ -361,7 +361,7 @@
</div> </div>
<div class="hero-height-control" id="hero-height-control"> <div class="hero-height-control" id="hero-height-control">
<label>Hauteur</label> <label>Hauteur</label>
<input type="range" min="150" max="600" value="280" id="hero-height-slider" oninput="setHeroHeight(this.value)" onchange="saveHeroMeta()"> <input type="range" min="150" max="600" value="400" id="hero-height-slider" oninput="setHeroHeight(this.value)" onchange="saveHeroMeta()">
</div> </div>
<input type="file" id="hero-file-input" accept="image/*" style="display:none;" onchange="uploadHeroImage(this)"> <input type="file" id="hero-file-input" accept="image/*" style="display:none;" onchange="uploadHeroImage(this)">
@@ -1077,7 +1077,7 @@ function removeInspiration(index) {
} }
// ── Hero image with drag-to-reposition ── // ── Hero image with drag-to-reposition ──
let heroMeta = { posY: 50, height: 280 }; // posY in %, height in px let heroMeta = { posY: 50, height: 400 }; // posY in %, height in px
function applyHeroImage(dataUrl) { function applyHeroImage(dataUrl) {
const banner = document.getElementById('hero-banner'); const banner = document.getElementById('hero-banner');
@@ -1189,7 +1189,7 @@ async function loadVision() {
try { try {
const meta = JSON.parse(visionData['hero-meta']?.Contenu || '{}'); const meta = JSON.parse(visionData['hero-meta']?.Contenu || '{}');
heroMeta.posY = meta.posY ?? 50; heroMeta.posY = meta.posY ?? 50;
heroMeta.height = meta.height ?? 280; heroMeta.height = meta.height ?? 400;
} catch { /* defaults */ } } catch { /* defaults */ }
applyHeroMeta(); applyHeroMeta();