feat: Add Library Visualizer (Slots & Drives) to Web UI

This commit is contained in:
2025-12-10 14:36:24 +00:00
parent 0b026aa11f
commit 79cf24cb8c
10 changed files with 491 additions and 1 deletions

View File

@@ -440,3 +440,93 @@ main.container {
font-size: 0.875rem;
}
}
/* Library Visualizer Styles */
.library-viz {
display: flex;
flex-direction: column;
gap: 1.5rem;
}
.viz-section h4 {
margin-bottom: 0.75rem;
color: var(--text-secondary);
text-transform: uppercase;
font-size: 0.875rem;
letter-spacing: 0.05em;
}
.viz-grid {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
gap: 0.75rem;
}
.viz-slot {
background: var(--dark-bg);
border: 1px solid var(--border-color);
border-radius: 0.5rem;
padding: 0.75rem 0.5rem;
text-align: center;
transition: all 0.2s;
cursor: default;
position: relative;
box-shadow: 0 1px 2px rgba(0,0,0,0.1);
}
.viz-slot:hover {
transform: translateY(-2px);
box-shadow: 0 4px 6px rgba(0,0,0,0.2);
}
.viz-slot.full {
background: rgba(16, 185, 129, 0.1);
border-color: var(--success-color);
}
.viz-slot .slot-icon {
font-size: 1.5rem;
margin-bottom: 0.25rem;
display: block;
}
.viz-slot .slot-id {
font-size: 0.75rem;
color: var(--text-secondary);
margin-bottom: 0.25rem;
font-weight: 500;
}
.viz-slot .tape-label {
font-size: 0.75rem;
font-weight: 600;
font-family: 'Courier New', monospace;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
color: var(--text-secondary);
}
.viz-slot.full .tape-label {
color: var(--success-color);
}
.viz-slot.empty .tape-label {
color: var(--text-secondary);
font-style: italic;
opacity: 0.5;
}
/* Drive specific styling */
.drive-slot {
border-color: var(--info-color);
}
.drive-slot.full {
background: rgba(59, 130, 246, 0.1);
border-color: var(--info-color);
}
.drive-slot.full .tape-label {
color: var(--info-color);
}