diff --git a/public/index.html b/public/index.html index c03c30c..31714b3 100644 --- a/public/index.html +++ b/public/index.html @@ -310,11 +310,6 @@ window.dispatchEvent(new Event('tiptap-loaded')); .hero-banner:hover .hero-controls { opacity: 1; } .hero-btn { font-size: 12px; color: rgba(255,255,255,0.8); background: rgba(44,24,16,0.5); padding: 4px 12px; border-radius: 6px; border: none; cursor: pointer; backdrop-filter: blur(4px); } .hero-btn:hover { background: rgba(44,24,16,0.7); color: #fff; } - .hero-height-control { position: absolute; bottom: -28px; left: 50%; transform: translateX(-50%); z-index: 3; display: flex; align-items: center; gap: 8px; opacity: 0; transition: opacity 0.2s; background: var(--bg-card); border: 1px solid var(--border); border-radius: 6px; padding: 4px 12px; } - .hero-banner:hover + .hero-height-control, .hero-height-control:hover { opacity: 1; } - .hero-height-control label { font-size: 11px; color: var(--text-muted); white-space: nowrap; } - .hero-height-control input[type="range"] { width: 120px; accent-color: var(--accent); } - .hero-height-control + input[type="file"] { margin-bottom: 8px; } .hero-overlay .three-words { font-family: 'Playfair Display', serif; font-size: 32px; font-weight: 700; color: rgba(255,255,255,0.7); letter-spacing: 2px; } .hero-overlay .hero-sub { font-size: 14px; color: rgba(255,255,255,0.75); margin-top: 6px; font-style: italic; } @@ -602,10 +597,6 @@ window.dispatchEvent(new Event('tiptap-loaded'));
-
- - -
@@ -1632,7 +1623,7 @@ function renderList(section, containerId, cssClass) { descEl.focus(); }; descEl.addEventListener('blur', () => { - const v = descEl.textContent.trim(); + const v = descEl.innerText.trim(); if (v !== (items[i].desc || '')) { items[i].desc = v; saveVisionSection(section, JSON.stringify(items)); } descEl.style.display = 'none'; if (v) { @@ -1933,12 +1924,6 @@ function applyHeroMeta() { const banner = document.getElementById('hero-banner'); banner.style.backgroundPosition = `center ${heroMeta.posY}%`; banner.style.height = heroMeta.height + 'px'; - document.getElementById('hero-height-slider').value = heroMeta.height; -} - -function setHeroHeight(val) { - heroMeta.height = parseInt(val); - document.getElementById('hero-banner').style.height = val + 'px'; } function saveHeroMeta() {