From e53bddfc71d70eb9f2b7a2910b4b191bc43088ab Mon Sep 17 00:00:00 2001 From: Jakob Stendahl Date: Tue, 13 Oct 2020 20:28:52 +0200 Subject: First commit --- src/components/Nav.svelte | 60 +++++++ src/components/PredictedSpaceWeather.svelte | 174 +++++++++++++++++++ src/components/PredictedSpaceWeatherThing.svelte | 64 +++++++ src/components/WeatherCurrent.svelte | 210 +++++++++++++++++++++++ 4 files changed, 508 insertions(+) create mode 100644 src/components/Nav.svelte create mode 100644 src/components/PredictedSpaceWeather.svelte create mode 100644 src/components/PredictedSpaceWeatherThing.svelte create mode 100644 src/components/WeatherCurrent.svelte (limited to 'src/components') diff --git a/src/components/Nav.svelte b/src/components/Nav.svelte new file mode 100644 index 0000000..3240ecf --- /dev/null +++ b/src/components/Nav.svelte @@ -0,0 +1,60 @@ + + + + + diff --git a/src/components/PredictedSpaceWeather.svelte b/src/components/PredictedSpaceWeather.svelte new file mode 100644 index 0000000..9194447 --- /dev/null +++ b/src/components/PredictedSpaceWeather.svelte @@ -0,0 +1,174 @@ + + + + +
+
+

Predicted

+
+
+ {#if predictions} + {#each predictions as prediction, i} + + {/each} + {:else} + Cannot connect to NOAA + {/if} +
+
diff --git a/src/components/PredictedSpaceWeatherThing.svelte b/src/components/PredictedSpaceWeatherThing.svelte new file mode 100644 index 0000000..0a40e79 --- /dev/null +++ b/src/components/PredictedSpaceWeatherThing.svelte @@ -0,0 +1,64 @@ + + + + +
+
+

{time}

+

{date}

+
+
+

{kp}

+
+

{temp}°C

+

{clouds}%

+
+
+
diff --git a/src/components/WeatherCurrent.svelte b/src/components/WeatherCurrent.svelte new file mode 100644 index 0000000..6f92b20 --- /dev/null +++ b/src/components/WeatherCurrent.svelte @@ -0,0 +1,210 @@ + + + + +
+
+
+ +

{location}

+
+ +
+

{date}

+
+ +
+

KP {kp_now}

+

+ ↑ KP {kp_max} + ↓ KP {kp_min} +

+
+ +
+
+

BZ

+

{bz}

+
+
+

Probability

+

10%

+
+
+

Clouds

+

{clouds}%

+
+
+ +
+
-- cgit v1.2.3