ntdservices commited on
Commit
1e4ca11
·
verified ·
1 Parent(s): 50e0b07

Upload index.html

Browse files
Files changed (1) hide show
  1. static/index.html +75 -0
static/index.html ADDED
@@ -0,0 +1,75 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <!doctype html>
2
+ <html lang="en">
3
+ <head>
4
+ <meta charset="utf-8"/>
5
+ <meta name="viewport" content="width=device-width,initial-scale=1"/>
6
+ <title>Uptime Monitor</title>
7
+ <link rel="stylesheet" href="/static/style.css"/>
8
+ </head>
9
+ <body>
10
+ <header>
11
+ <div class="brand">
12
+ <div class="logo-dot"></div>
13
+ <div class="title">Uptime Monitor</div>
14
+ </div>
15
+ <div class="actions">
16
+ <button id="checkNowBtn">Check Now</button>
17
+ <button id="addSiteBtn">+ Add Site</button>
18
+ </div>
19
+ </header>
20
+
21
+ <main>
22
+ <section class="card">
23
+ <div class="card-head">
24
+ <h2>Monitors</h2>
25
+ <span id="lastRefresh" class="muted"></span>
26
+ </div>
27
+ <div class="table-wrap">
28
+ <table id="statusTable">
29
+ <thead>
30
+ <tr>
31
+ <th>Status</th>
32
+ <th>Name</th>
33
+ <th>URL</th>
34
+ <th>Last Check</th>
35
+ <th>Resp (ms)</th>
36
+ <th>Code</th>
37
+ <th>Uptime 24h</th>
38
+ <th>Uptime 7d</th>
39
+ <th></th>
40
+ </tr>
41
+ </thead>
42
+ <tbody id="statusTbody"></tbody>
43
+ </table>
44
+ </div>
45
+ </section>
46
+
47
+ <section id="incidentPane" class="card hidden">
48
+ <div class="card-head">
49
+ <h2 id="incidentTitle">Incidents</h2>
50
+ <button id="closeIncidents" class="ghost">Close</button>
51
+ </div>
52
+ <div id="incidentsList" class="incidents"></div>
53
+ </section>
54
+ </main>
55
+
56
+ <!-- Add site modal -->
57
+ <dialog id="addDialog">
58
+ <form method="dialog" id="addForm" class="dialog-card">
59
+ <h3>Add Site</h3>
60
+ <label>Display Name
61
+ <input type="text" id="siteName" placeholder="e.g., My API"/>
62
+ </label>
63
+ <label>URL
64
+ <input type="url" id="siteUrl" placeholder="https://example.com" required/>
65
+ </label>
66
+ <div class="row">
67
+ <button type="submit" id="saveSite">Save</button>
68
+ <button id="cancelAdd" class="ghost">Cancel</button>
69
+ </div>
70
+ </form>
71
+ </dialog>
72
+
73
+ <script src="/static/app.js"></script>
74
+ </body>
75
+ </html>