forked from harsxv/tinystatus
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html.theme
144 lines (142 loc) · 4.37 KB
/
index.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
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>TinyStatus</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;
}
a,
a:link,
a:visited {
cursor: pointer;
color: rgb(128, 128, 128);
text-decoration: none !important;
}
a:hover {
color: white !important;
}
}
body {
font-family: sans-serif;
line-height: 1.6;
color: var(--text-color);
max-width: 1200px;
margin: 0 auto;
padding: 20px;
background: var(--bg-color);
}
h1, h2 {
color: var(--heading-color);
text-align: center;
}
.status-grid {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
gap: 15px;
margin-bottom: 40px;
}
.status-item {
background: var(--card-bg);
border-radius: 8px;
padding: 15px;
box-shadow: 0 2px 4px var(--card-shadow);
text-align: center;
transition: transform .2s;
}
.status-item:hover {
transform: translateY(-5px);
}
.status-item h3 {
margin: 0 0 10px;
}
.status-up { color: #27ae60; }
.status-down { color: #e74c3c; }
.incidents {
background: var(--card-bg);
border-radius: 8px;
padding: 20px;
box-shadow: 0 2px 4px var(--card-shadow);
margin-bottom: 40px;
}
.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; }
a,
a:link,
a:visited {
cursor: pointer;
color: rgb(255, 255, 255);
text-decoration: none !important;
}
a:hover {
color: rgb(86, 86, 86);
}
</style>
</head>
<body>
<h1>TinyStatus</h1>
<h2>Current Status</h2>
{% for group, checks in groups.items() %}
<h3>{{group}} Status</h3>
<div class="status-grid">
{% for check in checks %}
{% if check.url %}
<a target="_blank" href="{{ check.url }}">
{% endif %}
<div class="status-item">
<h3>{{ check.name }}</h3>
<p class="{% if check.status %}status-up{% else %}status-down{% endif %}">
{{ 'Operational' if check.status else 'Down' }}
</p>
</div>
{% if check.url %}
</a>
{% endif %}
{% endfor %}
</div>
{% endfor %}
<h2>Incident History</h2>
<div class="incidents">
{{ incidents | safe }}
</div>
<div class="footer">
<p>Last updated: {{ last_updated }}</p>
<p><a href="history.html">View Status History</a></p>
<p>Powered by <a href="https://github.com/harsxv/tinystatus">TinyStatus</a></p>
</div>
</body>
</html>