diff --git a/public/admin/index.html b/public/admin/index.html index 8efb640..2577f60 100644 --- a/public/admin/index.html +++ b/public/admin/index.html @@ -16,12 +16,16 @@ .status-dot.online { background: #4ade80; } .status-dot.sleeping { background: #fbbf24; } .status-dot.playing { background: #60a5fa; } + .status-dot.offline { background: #666; } .clients-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 1rem; } .client-card { background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.08); border-radius: 12px; padding: 1.25rem; transition: all 0.2s; } .client-card:hover { border-color: rgba(99,102,241,0.3); background: rgba(255,255,255,0.06); } + .client-card.offline { opacity: 0.5; } + .client-card.offline:hover { opacity: 0.7; } .client-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1rem; } .client-name { font-size: 1.1rem; font-weight: 500; display: flex; align-items: center; gap: 0.5rem; } .client-ip { font-size: 0.75rem; color: #888; font-family: monospace; } + .client-meta { display: flex; align-items: center; gap: 0.5rem; } .client-status { font-size: 0.8rem; color: #aaa; text-transform: capitalize; } .name-input { background: transparent; border: 1px solid rgba(255,255,255,0.15); border-radius: 6px; color: #fff; font-size: 0.9rem; padding: 4px 8px; width: 140px; } .name-input:focus { outline: none; border-color: #6366f1; } @@ -36,6 +40,7 @@ .btn.success:hover { background: rgba(34,197,94,0.3); } .btn.logout { background: rgba(239,68,68,0.1); border-color: rgba(239,68,68,0.3); color: #fca5a5; font-size: 0.75rem; padding: 4px 12px; } .btn.logout:hover { background: rgba(239,68,68,0.25); } + .btn.small { font-size: 0.7rem; padding: 3px 8px; } select { padding: 6px 10px; border: 1px solid rgba(255,255,255,0.15); border-radius: 8px; background: rgba(255,255,255,0.06); color: #e0e0e0; font-size: 0.8rem; cursor: pointer; max-width: 200px; } select:focus { outline: none; border-color: #6366f1; } option { background: #1a1a2e; color: #e0e0e0; } @@ -53,6 +58,22 @@ .ws-status.connected { background: rgba(34,197,94,0.15); color: #86efac; } .ws-status.disconnected { background: rgba(239,68,68,0.15); color: #fca5a5; } .divider { border: none; border-top: 1px solid rgba(255,255,255,0.06); margin: 0.5rem 0; } + .section-header { font-size: 1.2rem; font-weight: 300; margin: 2rem 0 1rem 0; padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,0.1); display: flex; align-items: center; justify-content: space-between; cursor: pointer; } + .section-header:hover { color: #fff; } + .section-header .toggle-arrow { font-size: 0.8rem; color: #666; transition: transform 0.2s; } + .section-header .toggle-arrow.open { transform: rotate(90deg); } + .api-ref { background: rgba(255,255,255,0.02); border: 1px solid rgba(255,255,255,0.06); border-radius: 12px; padding: 1.25rem; margin-bottom: 0.75rem; } + .api-ref h3 { font-size: 0.9rem; font-weight: 500; color: #a5b4fc; margin-bottom: 0.5rem; } + .api-ref .method { display: inline-block; font-size: 0.7rem; font-weight: 600; padding: 2px 6px; border-radius: 4px; margin-right: 6px; } + .api-ref .method.get { background: rgba(34,197,94,0.2); color: #86efac; } + .api-ref .method.post { background: rgba(59,130,246,0.2); color: #93c5fd; } + .api-ref .method.delete { background: rgba(239,68,68,0.2); color: #fca5a5; } + .api-ref .endpoint { font-family: monospace; font-size: 0.85rem; color: #ccc; } + .api-ref p { font-size: 0.8rem; color: #888; margin: 0.4rem 0; } + .api-ref pre { background: rgba(0,0,0,0.3); border: 1px solid rgba(255,255,255,0.08); border-radius: 8px; padding: 10px 12px; font-size: 0.75rem; color: #ccc; overflow-x: auto; margin-top: 0.5rem; white-space: pre-wrap; word-break: break-all; position: relative; } + .copy-btn { position: absolute; top: 6px; right: 6px; background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.15); border-radius: 4px; color: #aaa; font-size: 0.65rem; padding: 2px 6px; cursor: pointer; } + .copy-btn:hover { background: rgba(255,255,255,0.15); color: #fff; } + .offline-msg { font-size: 0.8rem; color: #888; text-align: center; padding: 0.75rem; }
@@ -67,10 +88,71 @@Open Frambe on a tablet or screen to see it here