From 6ac218b060b376d9c6174737cc881f8bd0d968c9 Mon Sep 17 00:00:00 2001 From: siddharth Date: Mon, 23 May 2022 00:00:13 -0400 Subject: template: update weather template update structure and styling. --- templates/weather.tmpl | 86 ++++++++++++++++++++++++++++---------------------- 1 file changed, 48 insertions(+), 38 deletions(-) (limited to 'templates') diff --git a/templates/weather.tmpl b/templates/weather.tmpl index 904e45b..9db2689 100644 --- a/templates/weather.tmpl +++ b/templates/weather.tmpl @@ -9,52 +9,62 @@ -
-
-
-
-

{{.Location}}

-
-
-
+
+
+
+
+
+

{{.Location}}

+
+
+
+ +
+
+
+
+
+ {{.Now.Temperature}}{{.Now.TemperatureUnit}} +
+
+ {{.Now.Forecast}} +
+
-
-
+
+
+ Wind +
+
+ {{.Now.WindSpeed}} {{.Now.WindDirection}} +
+
+
+ +
+
{{.Period.Forecast}}
+
+
+
-
-
+ {{ if .Timeline }} +
+
+ {{ range .Timeline.Periods }} +
- {{.Now.Temperature}}{{.Now.TemperatureUnit}} + {{.Temperature}}{{.TemperatureUnit}}
-
- {{.Now.Forecast}} +
+ {{printf "%d" .Hour}}hrs
-
- -
- {{.Now.WindSpeed}} {{.Now.WindDirection}}
-
- -
-

{{.Period.Forecast}}

-
-
-
- - {{ if .Timeline }} -
-
- {{ range .Timeline.Periods }} -
-

{{.Temperature}}{{.TemperatureUnit}}

-

{{printf "%d" .Hour}}hrs

+ {{ end }}
- {{ end }}
-
- {{ end }} + {{ end }} -
+
+
-- cgit v1.2.3