ltsdb/templates/dashboard.html

76 lines
1.4 KiB
HTML
Raw Permalink Normal View History

2022-12-27 10:29:49 +01:00
<!DOCTYPE html>
<html>
<head>
<meta name="viewport" content="width=device-width; initial-scale=1">
<meta charset="utf-8">
<style>
body {
font-family: sans-serif;
}
th, td {
2022-12-27 10:29:49 +01:00
text-align: left;
vertical-align: baseline;
2022-12-27 10:29:49 +01:00
}
main {
display: flex;
flex-wrap: wrap;
gap: 2rem;
2022-12-30 20:14:00 +01:00
align-items: end;
2022-12-27 10:29:49 +01:00
}
.widget {
border: 1px solid #CCC;
}
.value {
font-size: 3rem;
}
.unit {
display: block;
font-size: 1.5rem;
}
.gauge {
display: flex;
gap: 1rem;
align-items: end;
border: 1px solid #CCC;
padding: 0.5rem;
}
.gauge-container {
width: 20px;
border-radius: 4px;
background-color: #CCC;
position: relative;
}
.gauge-indicator {
width: 20px;
border-radius: 4px;
position: absolute;
bottom: 0;
}
2022-12-30 20:14:00 +01:00
.timeseries {
display: flex;
gap: 1rem;
align-items: end;
border: 1px solid #CCC;
padding: 0.5rem;
}
.extra {
font-style: italic;
}
2022-12-27 10:29:49 +01:00
</style>
</head>
<body>
<h1>{{ dashboard.title }}</h1>
<p class="description">
{{ dashboard.description }}
</p>
<main>
{% for widget in dashboard.widgets %}
{{ widget.as_html() }}
{% endfor %}
</main>
</body>
</html>