This commit is contained in:
2026-01-22 22:42:10 +08:00
commit 7ff66a7cc2
8 changed files with 1012 additions and 0 deletions

92
web/index.html Normal file
View File

@@ -0,0 +1,92 @@
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Todo Control Room</title>
<link rel="stylesheet" href="styles.css" />
</head>
<body>
<div class="bg-orbit"></div>
<main class="shell">
<header class="hero">
<div>
<p class="eyebrow">Distributed todo playground</p>
<h1>Todo Control Room</h1>
<p class="subhead">A bold, focused UI to drive your task workflow from a single cockpit.</p>
</div>
<div class="status-card">
<h2>Session</h2>
<p id="sessionState">Not connected</p>
<button id="loginBtn" class="btn primary">Login (demo)</button>
</div>
</header>
<section class="panel">
<div class="panel-head">
<h2>New Task</h2>
<p>Create tasks quickly with priority and due date.</p>
</div>
<form id="createForm" class="form-grid">
<label>
<span>Title</span>
<input type="text" name="title" placeholder="Plan service split" required />
</label>
<label>
<span>Due</span>
<input type="datetime-local" name="due_at" />
</label>
<label>
<span>Priority</span>
<select name="priority">
<option value="1">High</option>
<option value="2">Medium</option>
<option value="3">Low</option>
</select>
</label>
<label>
<span>Tags (comma)</span>
<input type="text" name="tags" placeholder="backend, microservices" />
</label>
<label class="full">
<span>Description</span>
<textarea name="description" placeholder="Outline scope, list risks..."></textarea>
</label>
<button class="btn primary" type="submit">Create Task</button>
</form>
</section>
<section class="panel">
<div class="panel-head">
<h2>Tasks</h2>
<div class="actions">
<button id="refreshBtn" class="btn ghost">Refresh</button>
<button id="clearBtn" class="btn ghost">Clear Completed</button>
</div>
</div>
<div id="taskList" class="task-list">
<div class="empty">No tasks yet.</div>
</div>
</section>
</main>
<template id="taskTemplate">
<article class="task-card">
<div class="task-main">
<div>
<h3></h3>
<p class="meta"></p>
<p class="desc"></p>
</div>
<div class="badge"></div>
</div>
<div class="task-actions">
<button class="btn ghost toggle">Toggle Status</button>
<button class="btn ghost delete">Delete</button>
</div>
</article>
</template>
<script src="app.js"></script>
</body>
</html>