From 5dc48738e6f2800fde963a7581e200bd4de18463 Mon Sep 17 00:00:00 2001 From: Jakob Stendahl Date: Thu, 28 Apr 2022 10:51:09 +0200 Subject: Add 27-day outlook --- .../OutlookTwentySevenDay.svelte | 81 +++++++++++++++++++ .../OutlookTwentySevenDay/PredictionItem.svelte | 91 ++++++++++++++++++++++ 2 files changed, 172 insertions(+) create mode 100644 src/components/Forecast/OutlookTwentySevenDay/OutlookTwentySevenDay.svelte create mode 100644 src/components/Forecast/OutlookTwentySevenDay/PredictionItem.svelte (limited to 'src/components/Forecast/OutlookTwentySevenDay') diff --git a/src/components/Forecast/OutlookTwentySevenDay/OutlookTwentySevenDay.svelte b/src/components/Forecast/OutlookTwentySevenDay/OutlookTwentySevenDay.svelte new file mode 100644 index 0000000..824433d --- /dev/null +++ b/src/components/Forecast/OutlookTwentySevenDay/OutlookTwentySevenDay.svelte @@ -0,0 +1,81 @@ + + + + +
+ {#each predictions as prediction, i} + + {/each} +
diff --git a/src/components/Forecast/OutlookTwentySevenDay/PredictionItem.svelte b/src/components/Forecast/OutlookTwentySevenDay/PredictionItem.svelte new file mode 100644 index 0000000..201c4f5 --- /dev/null +++ b/src/components/Forecast/OutlookTwentySevenDay/PredictionItem.svelte @@ -0,0 +1,91 @@ + + + + +
+
+

{time}

+

{date}

+
+
+

{kp}

+ {#if hasNOMETData} +
+

{Math.round(temp)}°C

+

{Math.round(clouds)}%

+
+ {/if} +
+
-- cgit v1.2.3