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