forked from harsxv/tinystatus
-
Notifications
You must be signed in to change notification settings - Fork 0
/
history.html.theme
119 lines (117 loc) · 3.87 KB
/
history.html.theme
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>TinyStatus History</title>
<link rel="apple-touch-icon" sizes="180x180" href="assets/apple-touch-icon.png">
<link rel="icon" type="image/png" sizes="32x32" href="assets/favicon-32x32.png">
<link rel="icon" type="image/png" sizes="16x16" href="assets/favicon-16x16.png">
<link rel="manifest" href="assets/site.webmanifest">
<link rel="mask-icon" href="assets/safari-pinned-tab.svg" color="#5bbad5">
<meta name="msapplication-TileColor" content="#da532c">
<meta name="theme-color" content="#ffffff">
<style>
:root {
--bg-color: #f4f4f4;
--text-color: #333;
--heading-color: #2c3e50;
--card-bg: #fff;
--card-shadow: rgba(0,0,0,0.1);
--footer-color: #7f8c8d;
--link-color: #3498db;
}
@media (prefers-color-scheme: dark) {
:root {
--bg-color: #1a1a1a;
--text-color: #e0e0e0;
--heading-color: #b0b0b0;
--card-bg: #2a2a2a;
--card-shadow: rgba(255,255,255,0.1);
--footer-color: #888;
--link-color: #5dade2;
}
}
body {
font-family: sans-serif;
line-height: 1.6;
color: var(--text-color);
max-width: 1200px;
margin: auto;
padding: 20px;
background: var(--bg-color);
}
h1, h2 {
color: var(--heading-color);
text-align: center;
}
.history-group {
margin-bottom: 40px;
}
.history-grid {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
gap: 20px;
}
.history-item {
background: var(--card-bg);
border-radius: 8px;
padding: 15px;
box-shadow: 0 2px 4px var(--card-shadow);
max-height: 300px;
overflow: auto;
}
.history-item h3 {
font-size: 1.2rem;
margin: 0;
}
.history-entry {
margin-bottom: 5px;
font-size: 0.9rem;
display: flex;
justify-content: space-between;
}
.status-up { color: #27ae60; }
.status-down { color: #e74c3c; }
.footer {
text-align: center;
font-size: .9em;
color: var(--footer-color);
margin-top: 40px;
}
.footer a {
color: var(--link-color);
text-decoration: none;
}
.footer a:hover { text-decoration: underline; }
</style>
</head>
<body>
<h1>TinyStatus History</h1>
{% for group in history.groups %}
<div class="history-group">
<h2>{{ group.title }}</h2>
<div class="history-grid">
{% for service, entries in group.checks.items() %}
<div class="history-item">
<h3>{{ service }}</h3>
{% for entry in entries|reverse %}
<div class="history-entry">
<span>{{ entry.timestamp.split('T')[0] }} {{ entry.timestamp.split('T')[1][:8] }}</span>
<span class="{% if entry.status %}status-up{% else %}status-down{% endif %}">
{{ 'Up' if entry.status else 'Down' }}
</span>
</div>
{% endfor %}
</div>
{% endfor %}
</div>
</div>
{% endfor %}
<div class="footer">
<p>Last updated: {{ last_updated }}</p>
<p><a href="index.html">Back to Current Status</a></p>
<p>Powered by <a href="https://github.com/harsxv/tinystatus">TinyStatus</a></p>
</div>
</body>
</html>