File size: 2,992 Bytes
6151931 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 | <!doctype html>
<html lang="en">
<head>
<meta charset="utf-8" />
<title>Dashboard v2</title>
<meta name="viewport" content="width=device-width, initial-scale=1" />
<style>
body {
margin: 0;
font-family: Arial, Helvetica, sans-serif;
background: red; /* changed from #ffffff to red */
color: #222;
}
header {
padding: 16px 20px;
border-bottom: 1px solid #ddd;
display: flex;
justify-content: space-between;
align-items: center;
}
.alert-banner {
padding: 10px 14px;
background: #fff3cd;
border: 1px solid #ffeeba;
color: #856404;
border-radius: 6px;
font-size: 14px;
}
main {
padding: 20px;
}
.card {
border: 1px solid #ddd;
border-radius: 8px;
padding: 16px;
max-width: 800px;
}
.status-row {
display: flex;
justify-content: space-between;
align-items: center;
}
h3 {
margin-top: 0;
font-size: 14px;
text-transform: uppercase;
color: #666;
}
/* THIS is the element you will edit in DevTools */
h2#server-status {
margin: 0;
font-size: 28px;
}
table {
width: 100%;
border-collapse: collapse;
margin-top: 20px;
}
th, td {
border: 1px solid #ddd;
padding: 8px;
font-size: 13px;
text-align: left;
}
th {
background: #f5f5f5;
}
</style>
</head>
<body>
<header>
<strong>Ops Dashboard</strong>
<!-- THIS is the banner you will hide in DevTools Styles -->
<div class="alert-banner">
⚠️ Scheduled maintenance in progress
</div>
</header>
<main>
<div class="card">
<h3>Server Status</h3>
<div class="status-row">
<!-- THIS is the h2 you are looking for -->
<h2 id="server-status">Degraded</h2>
<span>Last checked: just now</span>
</div>
<table>
<thead>
<tr>
<th>Metric</th>
<th>Value</th>
</tr>
</thead>
<tbody>
<tr>
<td>Uptime (24h)</td>
<td>99.3%</td>
</tr>
<tr>
<td>Incidents</td>
<td>1 open</td>
</tr>
<tr>
<td>Avg Latency</td>
<td>210 ms</td>
</tr>
<tr>
<td>Error Rate</td>
<td>0.7%</td>
</tr>
</tbody>
</table>
</div>
</main>
<script>
/* Seed Local Storage so you can delete keys later */
if (!localStorage.getItem("seeded")) {
localStorage.setItem("user_role", "viewer");
localStorage.setItem("theme", "light");
localStorage.setItem("token", "abc123");
localStorage.setItem("seeded", "true");
}
</script>
</body>
</html>
|