Files
KlipperAnywhere/web/static/dashboard.html
T

60 lines
2.5 KiB
HTML

<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Dashboard - KlipperAnywhere</title>
<meta name="description" content="KlipperAnywhere printer dashboard.">
<link rel="stylesheet" href="/static/styles.css">
<link rel="icon" href="/favicon.ico">
<link rel="icon" type="image/png" href="/static/assets/favicon.png">
<link rel="apple-touch-icon" href="/apple-touch-icon.png">
</head>
<body class="app-page">
<header class="app-header">
<a class="brand" href="/">
<span class="brand-mark" aria-hidden="true">K</span>
<span>KlipperAnywhere</span>
</a>
<nav class="nav-links" aria-label="Dashboard navigation">
<div class="nav-group nav-core">
<a class="text-button current" href="/dashboard">Dashboard</a>
<a class="text-button" href="/account">Account</a>
<a class="text-button admin-only" href="/admin" hidden>Admin</a>
</div>
<div class="nav-group nav-tools">
<div class="printer-switcher-group" aria-label="Printer switcher">
<label class="printer-switcher-label" for="printer-switcher">Printer</label>
<select id="printer-switcher" class="printer-switcher" aria-label="Switch printer">
<option value="">Loading printers...</option>
</select>
<button class="text-button" id="printer-switcher-open" type="button">Open</button>
</div>
<button class="text-button" id="refresh" type="button">Refresh</button>
<form class="logout-form" method="post" action="/logout">
<input type="hidden" name="csrf_token" value="{{CSRF_TOKEN}}">
<button class="text-button" type="submit">Sign out</button>
</form>
</div>
</nav>
</header>
<main class="dashboard-shell">
<section class="dashboard-heading">
<p class="eyebrow">Connected printers</p>
<h1 class="dashboard-title">Dashboard</h1>
</section>
<section class="printer-grid" id="printer-grid" aria-live="polite">
<p class="empty-state">Loading printers...</p>
</section>
</main>
<script src="/static/session.js"></script>
<script src="/static/printer-switcher.js"></script>
<script src="/static/common.js"></script>
<script src="/static/printer-shared.js"></script>
<script src="/static/dashboard.js"></script>
</body>
</html>