feat(05-02): add live preview panel HTML and CSS styles
- Add #live-preview div between timeline-canvas and block-inspector - Add show selector (show-select + btn-load-show) to transport bar - Add keyboard-hint span at far right of transport bar - Append .live-preview, .device-strip, .strip-label, .strip-color, .strip-anim, .keyboard-hint CSS styles
This commit is contained in:
@@ -65,6 +65,7 @@
|
|||||||
<button id="btn-snap" class="transport-btn snap-btn active" title="Snap to beat">SNAP</button>
|
<button id="btn-snap" class="transport-btn snap-btn active" title="Snap to beat">SNAP</button>
|
||||||
</div>
|
</div>
|
||||||
<canvas id="timeline-canvas"></canvas>
|
<canvas id="timeline-canvas"></canvas>
|
||||||
|
<div id="live-preview" class="live-preview" style="display:none;"></div>
|
||||||
<div id="block-inspector" class="block-inspector" style="display:none;"></div>
|
<div id="block-inspector" class="block-inspector" style="display:none;"></div>
|
||||||
</main>
|
</main>
|
||||||
|
|
||||||
@@ -81,6 +82,13 @@
|
|||||||
|
|
||||||
<div class="transport-sep"></div>
|
<div class="transport-sep"></div>
|
||||||
|
|
||||||
|
<select id="show-select" class="transport-file-select">
|
||||||
|
<option value="">— no shows —</option>
|
||||||
|
</select>
|
||||||
|
<button id="btn-load-show" class="transport-btn" title="Load saved show">LOAD</button>
|
||||||
|
|
||||||
|
<div class="transport-sep"></div>
|
||||||
|
|
||||||
<label class="transport-btn" title="Upload MP3/WAV/FLAC/OGG" style="cursor:pointer;">
|
<label class="transport-btn" title="Upload MP3/WAV/FLAC/OGG" style="cursor:pointer;">
|
||||||
+ UPLOAD
|
+ UPLOAD
|
||||||
<input type="file" id="audio-upload" accept=".mp3,.wav,.flac,.ogg" style="display:none;">
|
<input type="file" id="audio-upload" accept=".mp3,.wav,.flac,.ogg" style="display:none;">
|
||||||
@@ -91,6 +99,9 @@
|
|||||||
</select>
|
</select>
|
||||||
|
|
||||||
<button id="btn-load" class="transport-btn" title="Load selected file">LOAD</button>
|
<button id="btn-load" class="transport-btn" title="Load selected file">LOAD</button>
|
||||||
|
|
||||||
|
<div style="flex:1"></div>
|
||||||
|
<span class="keyboard-hint">[SPACE] PLAY [←→] SEEK [^Z] UNDO [^S] SAVE</span>
|
||||||
</footer>
|
</footer>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -484,3 +484,72 @@ button:hover {
|
|||||||
color: #ff3333;
|
color: #ff3333;
|
||||||
border: none;
|
border: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* ── Live Preview Panel (Phase 5) ──────────────────────────────────────────── */
|
||||||
|
|
||||||
|
.live-preview {
|
||||||
|
border-top: 1px solid var(--border-dim);
|
||||||
|
border-bottom: 1px solid var(--border-dim);
|
||||||
|
background: var(--bg-panel-dark);
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
gap: 1px;
|
||||||
|
padding: 4px 0;
|
||||||
|
max-height: 60px;
|
||||||
|
overflow-y: auto;
|
||||||
|
flex-shrink: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
.device-strip {
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
height: 18px;
|
||||||
|
padding: 0 4px;
|
||||||
|
background: var(--bg-panel);
|
||||||
|
gap: 8px;
|
||||||
|
font-size: 12px;
|
||||||
|
font-family: var(--font-mono);
|
||||||
|
letter-spacing: 0.05em;
|
||||||
|
transition: background-color 0.1s;
|
||||||
|
}
|
||||||
|
|
||||||
|
.strip-label {
|
||||||
|
color: var(--text-dim);
|
||||||
|
text-transform: uppercase;
|
||||||
|
min-width: 80px;
|
||||||
|
flex-shrink: 0;
|
||||||
|
font-size: 10px;
|
||||||
|
letter-spacing: 0.12em;
|
||||||
|
}
|
||||||
|
|
||||||
|
.strip-color {
|
||||||
|
width: 40px;
|
||||||
|
height: 10px;
|
||||||
|
background: var(--text-dim);
|
||||||
|
flex-shrink: 0;
|
||||||
|
transition: background-color 0.15s;
|
||||||
|
}
|
||||||
|
|
||||||
|
.strip-anim {
|
||||||
|
color: var(--text-dim);
|
||||||
|
font-size: 10px;
|
||||||
|
letter-spacing: 0.05em;
|
||||||
|
text-transform: uppercase;
|
||||||
|
}
|
||||||
|
|
||||||
|
.device-strip.active .strip-label {
|
||||||
|
color: var(--text-primary);
|
||||||
|
}
|
||||||
|
|
||||||
|
.device-strip.active .strip-anim {
|
||||||
|
color: var(--text-primary);
|
||||||
|
}
|
||||||
|
|
||||||
|
.keyboard-hint {
|
||||||
|
color: var(--text-dim);
|
||||||
|
font-size: 10px;
|
||||||
|
font-family: var(--font-mono);
|
||||||
|
letter-spacing: 0.05em;
|
||||||
|
white-space: nowrap;
|
||||||
|
flex-shrink: 0;
|
||||||
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user