-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.html
81 lines (78 loc) · 2.21 KB
/
index.html
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
<html>
<head>
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>{{t "title"}}</title>
</head>
<body>
<style>
.text {
font-family: Arial,serif;
}
.center {
text-align: center;
}
body {
display: flex;
flex-direction: column;
min-height: 100vh;
margin: 0;
}
h1 {
font-size: min(13vw, 6em);
margin-bottom: 0;
}
h3 {
font-size: min(5vw, 1.5em);
}
#main {
flex-grow: 1;
display: flex;
flex-direction: column;
justify-content: center;
}
#bottom {
padding: 30px 0px;
}
</style>
<div id="main">
{{if eq .Status 0}} <!-- running -->
{{if .DetailText}}
<h1 class="text center">{{t "running_status_with_detail_message"}}</h1>
<br>
<h3 class="text center">{{.DetailText}}</h3>
{{if .OriginalDetailText}}
<h5 class="text center">({{.OriginalDetailText}})</h5>
{{end}}
<h3 class="text center">{{t "running_detail_with_detail_message"}}</h3>
{{else}}
<h1 class="text center">{{t "running_status"}}</h1>
<br>
<h3 class="text center">{{t "running_detail"}}</h3>
{{end}}
{{end}}
{{if eq .Status 1}} <!-- not running -->
<h1 class="text center">{{t "not_running_status"}}</h1>
<br>
<h3 class="text center">{{.DetailText}}</h3>
{{if .OriginalDetailText}}
<h5 class="text center">({{.OriginalDetailText}})</h5>
{{end}}
<h3 class="text center">{{t "not_running_detail"}}</h3>
{{end}}
{{if eq .Status 2}} <!-- closing time -->
<h1 class="text center">{{t "closing_time_status"}}</h1>
<br>
<h3 class="text center">{{t "closing_time_detail"}}</h3>
{{end}}
{{if eq .Status 3}} <!-- no information -->
<h1 class="text center">{{t "no_information_status"}}</h1>
<br>
<h3 class="text center">{{t "no_information_detail"}}</h3>
{{end}}
</div>
<div id="bottom" class="text center">
Last Update: {{.Time}}<br>
Made with ❤️ as <a href="https://github.com/StevenKGER/s85.berlin">Open Source Software</a> with data from <a href="https://transport.rest/">transport.rest</a>
</div>
</body>
</html>