spaxel/dashboard/setup.html
jedarden 1ade7732e4 fix(dashboard): wrap setup.html in app-shell grid container
setup.html was the only page not using the .app-shell CSS grid — its
elements were directly on the body with inline position styles. Wraps
content in .app-shell--live (viewport-filling variant), moves header
into .app-header grid area, and nests #scene-container inside .app-main.

Verified: grep for position:absolute across dashboard/css/ returns only
intentional decorative/component uses (pseudo-elements, toggles, tooltips,
dropdowns, canvas overlays) — zero on layout containers.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-04-24 13:14:02 -04:00

106 lines
3.5 KiB
HTML

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no, viewport-fit=cover">
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-status-bar-style" content="black-translucent">
<title>Spaxel — Setup</title>
<link rel="stylesheet" href="css/tokens.css">
<link rel="stylesheet" href="css/layout.css">
<link rel="stylesheet" href="css/panels.css">
<link rel="stylesheet" href="css/floorplan.css">
<style>
.app-shell--live .setup-header {
height: 44px;
gap: 16px;
font-size: 14px;
}
.setup-header__link {
color: var(--text-secondary);
text-decoration: none;
font-size: var(--text-sm);
}
.setup-header__link:hover {
color: var(--text-primary);
}
.setup-toolbar {
position: fixed;
bottom: 20px;
left: 50%;
transform: translateX(-50%);
display: flex;
gap: 8px;
background: rgba(0, 0, 0, 0.8);
padding: 8px 16px;
border-radius: 12px;
z-index: 100;
}
.setup-toolbar button {
background: var(--slate-5);
border: 1px solid var(--border-default);
color: var(--text-primary);
padding: 8px 16px;
border-radius: var(--radius-control);
cursor: pointer;
font-size: var(--text-sm);
font-family: var(--font-body);
}
.setup-toolbar button:hover {
background: var(--slate-6);
}
.setup-toolbar button.active {
background: var(--blue-5);
border-color: var(--blue-8);
}
#status-text {
color: var(--text-secondary);
flex: 1;
}
</style>
</head>
<body class="has-mobile-nav">
<div class="app-shell app-shell--live">
<nav class="app-header setup-header">
<a href="/" class="setup-header__link">&larr; Home</a>
<span style="color:var(--text-primary);font-weight:600;">Spaxel Setup</span>
<span id="status-text"></span>
<a href="/live" class="setup-header__link">Live View</a>
</nav>
<main class="app-main">
<div id="scene-container"></div>
</main>
</div><!-- /.app-shell -->
<div class="setup-toolbar">
<button id="btn-floorplan">Floor Plan</button>
<button id="btn-nodes">Nodes</button>
<button id="btn-zones">Zones</button>
<button id="btn-coverage">Coverage</button>
<button id="btn-calibrate">Calibrate</button>
</div>
<script src="js/viz3d.js"></script>
<script src="js/websocket.js"></script>
<script src="js/app.js"></script>
<script src="js/placement.js"></script>
<script src="js/floorplan-setup.js"></script>
<script src="js/zone-editor.js"></script>
<script src="js/portal.js"></script>
<script>
// Auto-activate setup mode
document.addEventListener('DOMContentLoaded', function () {
// Open the placement/setup panels on load
if (typeof Placement !== 'undefined' && Placement.init) {
Placement.init();
}
if (typeof FloorPlanSetup !== 'undefined' && FloorPlanSetup.init) {
FloorPlanSetup.init();
}
});
</script>
</body>
</html>