From 4d7233f32c5ff488503f4f217aa9d8b5dd713f60 Mon Sep 17 00:00:00 2001 From: Zoe <62722391+juls0730@users.noreply.github.com> Date: Mon, 7 Apr 2025 19:27:00 +0000 Subject: [PATCH] switch to grid styling and fix watch pattern --- templates/views/index.hbs | 65 ++++++++++++++++++++------------------- zqdgr.config.json | 2 +- 2 files changed, 34 insertions(+), 33 deletions(-) diff --git a/templates/views/index.hbs b/templates/views/index.hbs index f980f2c..b5e8142 100644 --- a/templates/views/index.hbs +++ b/templates/views/index.hbs @@ -1,41 +1,42 @@ -
- {{#if WeatherData}} -
-
- - {{{WeatherData.Icon}}} - -
-

{{WeatherData.Temp}}°C

-

{{WeatherData.Desc}}

-
-
-
- {{/if}} - {{#if UptimeData}} -
-
- {{!-- loop over UptimeData --}} - {{#each UptimeData}} -
+
+
+
+ {{#if WeatherData}} +
- {{{this.FriendlyName}}} + {{{WeatherData.Icon}}} -
- {{#if (eq this.Status 2)}} - - - {{else}} - - - {{/if}} +
+

{{WeatherData.Temp}}°C

+

{{WeatherData.Desc}}

- {{/each}} + {{/if}} +
+
+ {{#if UptimeData}} +
+ {{#each UptimeData}} +
+ + {{{this.FriendlyName}}} + +
+ {{#if (eq this.Status 2)}} + + + {{else}} + + + {{/if}} +
+
+ {{/each}} +
+ {{/if}}
- {{/if}} -
+
diff --git a/zqdgr.config.json b/zqdgr.config.json index 206d352..c9901a9 100644 --- a/zqdgr.config.json +++ b/zqdgr.config.json @@ -13,5 +13,5 @@ "dev": "go generate; PASSPORT_DEV_MODE=true go run main.go", "build": "go generate && go build -tags netgo,prod -o passport" }, - "pattern": "**/*.go,views/**/*.hbs,styles/**/*.css,assets/**/*.{svg,png,jpg,jpeg,webp,woff2,ttf,otf,eot,ico,gif,webp}" + "pattern": "**/*.go,templates/views/**/*.hbs,styles/**/*.css,assets/**/*.{svg,png,jpg,jpeg,webp,woff2,ttf,otf,eot,ico,gif,webp}" } \ No newline at end of file