blob: 0b0254bb4bdfde6b1d86b800b7300cff6c5b7656 (
plain)
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
|
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>status.tobyvin.dev</title>
<link rel="stylesheet" type="text/css" href="index.css" />
<style>
html {
background: var(--bg);
color: var(--fg);
font-size: 12pt;
font-family: monospace;
display: flex;
flex-direction: column;
}
body {
height: calc(100vh - 1rem);
width: calc(100vw - 4rem);
max-width: 640px;
display: flex;
flex-direction: column;
margin: 0 2rem 1rem;
line-height: 1.4;
align-self: center;
}
main {
display: flex;
flex-direction: column;
}
hgroup {
display: flex;
flex-direction: column;
text-align: center;
}
hgroup > p {
align-self: center;
width: 100%;
max-width: 400px;
padding: 5px;
border: 2px solid #ddd;
}
dl {
width: 100%;
max-width: 500px;
align-self: center;
display: grid;
grid-template-columns: max-content auto;
border: 2px solid #ddd;
border-bottom: 0;
}
dt {
padding: 5px;
grid-column-start: 1;
border-bottom: 2px solid #ddd;
}
dd {
text-align: right;
grid-column-start: 2;
margin-left: 0;
padding: 5px;
border-bottom: 2px solid #ddd;
}
.ok {
color: #228b22;
}
.warning {
color: #ff8c00;
}
.error {
color: #dc143c;
}
.status {
color: #fff;
}
.status.ok {
background: #228b22;
}
.status.warning {
background: #ff8c00;
}
.status.error {
background: #dc143c;
}
</style>
</head>
<body>
<main>
<header>
<hgroup>
<h1>{title} Status</h1>
</hgroup>
</header>
<dl class="status {status}">
<dt><b>Status</b></dt>
<dd>{down} issue(s) detected</dd>
</dl>
<dl>
{{services}}
<dt title="{title}">{name}</dt>
<dd class="{level}">{state}</dd>
{{end}}
</dl>
</main>
</body>
</html>
|