-
-
Notifications
You must be signed in to change notification settings - Fork 89
/
history.html.theme
117 lines (117 loc) · 4.21 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
<!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="description" content="TinyStatus is a simple, customizable status page generator that allows you to monitor the status of various services and display them on a clean, responsive web page.">
<meta name="msapplication-TileColor" content="#da532c">
<meta name="theme-color" content="#ffffff">
<style>
@import url('https://fonts.googleapis.com/css2?family=Golos+Text:[email protected]&display=swap');
: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;
--secondary-bg-color: #fff;
--status-down-color: #e74c3c;
--status-up-color: #166534
}
@media (prefers-color-scheme: dark) {
:root {
--bg-color: #18181b;
--text-color: #e0e0e0;
--heading-color: #b0b0b0;
--card-bg: #27272a;
--card-shadow: rgba(9,9,11,0.4);
--footer-color: #888;
--link-color: #5dade2;
--secondary-bg-color: #27272a;
--status-down-color: #FF9185;
--status-up-color: #27ae60;
}
body {
font-family: "Golos Text", 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-grid {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
gap: 20px;
margin-bottom: 40px;
}
.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 h2 {
font-size: 1.2rem;
margin: 0;
}
.history-entry {
margin-bottom: 5px;
font-size: 0.9rem;
display: flex;
justify-content: space-between;
}
.status-up { color: var(--status-up-color); }
.status-down { color: var(--status-down-color); }
.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>
<div class="history-grid">
{% for service, entries in history.items() %}
<div class="history-item">
<h2>{{ service }}</h2>
{% 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 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>