File tree Expand file tree Collapse file tree 5 files changed +12
-8
lines changed Expand file tree Collapse file tree 5 files changed +12
-8
lines changed Original file line number Diff line number Diff line change @@ -79,13 +79,13 @@ func operational(res []collector.Result) string {
79
79
func bannerClasses (outage string ) string {
80
80
switch outage {
81
81
case OutageNone :
82
- return "bg-lime-600 text-white"
82
+ return "bg-lime-600 dark:bg-lime-800 text-white"
83
83
case OutageFull :
84
- return "bg-red-500 text-white"
84
+ return "bg-red-500 dark:bg-red-800 text-white"
85
85
case OutagePartial :
86
86
fallthrough
87
87
default :
88
- return "bg-orange-400"
88
+ return "bg-orange-400 dark:bg-orange-800 dark:text-white "
89
89
}
90
90
}
91
91
Original file line number Diff line number Diff line change 7
7
< link rel ="icon " type ="image/png " href ="/static/icon.png " />
8
8
< title > {{ .Config.UI.PageTitle }}</ title >
9
9
</ head >
10
- < body class ="mx-auto min-h-dvh w-full md:w-3/4 p-6 md:p-8 lg:p-6 lg:w-1/2 flex flex-col justify-between bg-neutral-50 dark:bg-slate -900 ">
10
+ < body class ="mx-auto min-h-dvh w-full md:w-3/4 p-6 md:p-8 lg:p-6 lg:w-1/2 flex flex-col justify-between bg-neutral-50 dark:bg-zinc -900 ">
11
11
< div >
12
12
{{ template "content" . }}
13
13
</ div >
Original file line number Diff line number Diff line change @@ -6,11 +6,11 @@ <h1 class="text-xl font-bold md:inline-block md:mr-2 text-avocado-800 dark:text-
6
6
< span class ="text-gray-500 dark:text-gray-300 text-sm "> {{ $.Sprintf "%.2f" .Result.Uptime }}% over the last {{ $.PrettyDuration .Result.Service.Query.Range }}</ span >
7
7
</ div >
8
8
9
- < div class ="h-64 md:h-96 w-full border dark:border-slate-600 rounded-md shadow-md mb-6 "> {{ .Graph }}</ div >
9
+ < div class ="h-64 md:h-96 w-full border dark:border-none dark:bg-zinc-800 rounded-md shadow-md mb-6 "> {{ .Graph }}</ div >
10
10
11
11
{{- if .Extras }}
12
12
{{- range $name, $graph := .Extras }}
13
- < div class ="w-full border dark:border-slate-600 rounded-md shadow-md pt-4 mb-6 ">
13
+ < div class ="w-full border dark:border-none dark:bg-zinc-800 rounded-md shadow-md pt-4 mb-6 ">
14
14
< h2 class ="text-center text-avocado-800 dark:text-avocado-100 "> {{ $name }}</ h2 >
15
15
< div class ="h-64 md:h-96 w-full "> {{ $graph }}</ div >
16
16
</ div >
Original file line number Diff line number Diff line change 14
14
{{- if not (eq .Name "default") }}
15
15
< h2 class ="text-xl mb-2 pl-1 text-avocado-800 dark:text-avocado-100 "> {{ .Name }}</ h2 >
16
16
{{- end }}
17
- < div class ="flex flex-col items-center justify-center rounded-md shadow-md dark:shadow-slate-600 ">
17
+ < div class ="flex flex-col items-center justify-center rounded-md shadow-md dark:shadow-none dark:bg-zinc-800 ">
18
18
{{- range .Results }}
19
19
< a href ="/{{ .Service.Name }} " class ="block w-full ">
20
- < div class ="flex justify-between items-center w-full py-6 px-6 md:px-8 lg:px-12 border-b dark:border-slate-600 ">
20
+ < div class ="flex justify-between items-center w-full py-6 px-6 md:px-8 lg:px-12 border-b dark:border-none ">
21
21
< div >
22
22
< h3 class ="text-lg font-bold md:inline-block md:mr-2 text-avocado-800 dark:text-avocado-100 " > {{ .Service.Name }}</ h3 >
23
23
< span class ="text-gray-500 dark:text-gray-300 text-sm "> {{ $.Sprintf "%.2f" .Uptime }}% over the last {{ $.PrettyDuration .Service.Query.Range }}</ span >
Original file line number Diff line number Diff line change @@ -3,9 +3,13 @@ module.exports = {
3
3
content : [ "internal/resources/views/*.html" ] ,
4
4
safelist : [
5
5
'bg-lime-600' ,
6
+ 'dark:bg-lime-800' ,
6
7
'bg-red-500' ,
8
+ 'dark:bg-red-800' ,
7
9
'bg-orange-400' ,
10
+ 'dark:bg-orange-800' ,
8
11
'text-white' ,
12
+ 'dark:text-white' ,
9
13
'h-full' ,
10
14
] ,
11
15
theme : {
You can’t perform that action at this time.
0 commit comments