summaryrefslogtreecommitdiffstats
path: root/server
diff options
context:
space:
mode:
authorSam Anthony <sam@samanthony.xyz>2024-11-29 15:50:02 -0500
committerSam Anthony <sam@samanthony.xyz>2024-11-29 15:50:02 -0500
commit32391f76661b027753ec300febca6b246ef886af (patch)
tree0f471014a18ca8fb68617a0e8ff2f4878a62db17 /server
parent9231bacd968b7053f9bfede99abcf5a880cc8e67 (diff)
downloadsoen422-32391f76661b027753ec300febca6b246ef886af.zip
server dashboard: style
Diffstat (limited to 'server')
-rw-r--r--server/dashboard.html19
1 files changed, 10 insertions, 9 deletions
diff --git a/server/dashboard.html b/server/dashboard.html
index d710eee..93e02a8 100644
--- a/server/dashboard.html
+++ b/server/dashboard.html
@@ -3,12 +3,12 @@
<head>
<title>HVAC Dashboard</title>
<style>
-.center {
- text-align: center;
- display: block;
- margin-left: auto;
- margin-right: auto;
- width: 90%;
+hr { margin-top: 1.5em; }
+table { border-collapse: collapse; }
+th, td {
+ padding: 0.25em;
+ border-bottom-style: solid;
+ border-width: thin;
}
</style>
</head>
@@ -30,7 +30,7 @@
unknown
{{- end -}}
</p>
- <hr/>
+
<table>
<tr><th>Room</th><th>Humidity</th></tr>
{{ range $id, $humidity := .Rooms }}
@@ -48,7 +48,8 @@
{{ end }}
</table>
<hr/>
- <img src="/humidity_chart.png" alt="chart of humidity vs time" class="center"/>
- <img src="/duty_cycle_chart.png" alt="chart of duty cycle vs time" class="center"/>
+ <img src="/humidity_chart.png" alt="chart of humidity vs time"/>
+ <hr/>
+ <img src="/duty_cycle_chart.png" alt="chart of duty cycle vs time"/>
</body>
</html>