From 433169f9db9e9709f4bc6f903122bbd996eecc99 Mon Sep 17 00:00:00 2001 From: ana Date: Sun, 8 Aug 2021 18:56:48 +0200 Subject: feat: show forecast in the sidebar --- src/App.svelte | 22 +++++++++++++++++++++- 1 file changed, 21 insertions(+), 1 deletion(-) diff --git a/src/App.svelte b/src/App.svelte index 618d850..c3471f1 100644 --- a/src/App.svelte +++ b/src/App.svelte @@ -109,7 +109,7 @@ }); if (i) { - return `until ${day(getZoneForecast()[i + 1].date).fromNow()}`; + return `for another ${day(getZoneForecast()[i + 1].date).fromNow(true)}`; } return "for a long time"; @@ -177,18 +177,38 @@ {#if $level < 20}Anemos{:else}Anemos{/if}: {anemosForecast[0] .weatherName} + {#if $level < 20}{/if}
  • {#if $level >= 20 && $level < 35}Pagos{:else}Pagos{/if}: {pagosForecast[0].weatherName}
  • + {#if $level >= 20 && $level < 35}{/if}
  • {#if $level >= 35 && $level < 50}Pyros{:else}Pyros{/if}: {pyrosForecast[0].weatherName}
  • + {#if $level >= 35 && $level < 500}{/if}
  • {#if $level >= 50}Hydatos{:else}Hydatos{/if}: {hydatosForecast[0] .weatherName}
  • + {#if $level >= 50}{/if}

    What is this?

    -- cgit 1.4.1-2-gfad0 ue='committer'>committer
    path: root/019functions.cc
    blob: 81e99e6eadf0edd27e5b7cb8565c0b81bbf088c1 (plain) (tree)
    1
    2
    
    3
    4
    
    5
    
    6
    7
    
    8
    9