diff options
| author | Adam Soltys <[email protected]> | 2024-11-06 14:45:20 -0800 |
|---|---|---|
| committer | Adam Soltys <[email protected]> | 2024-11-06 14:46:25 -0800 |
| commit | 9a3ad4f9a0da4a1c33df92743cb3ca94ac79037d (patch) | |
| tree | caa6f91b6d4a0a9be69b77d6837ce0d53bc91558 /src/components/Footer.svelte | |
| parent | 18bd43159ac2c9b10a3ced100ff097e5d50d6e61 (diff) | |
| download | coinos-ui-9a3ad4f9a0da4a1c33df92743cb3ca94ac79037d.tar.gz coinos-ui-9a3ad4f9a0da4a1c33df92743cb3ca94ac79037d.zip | |
landing nav
Diffstat (limited to 'src/components/Footer.svelte')
| -rw-r--r-- | src/components/Footer.svelte | 17 |
1 files changed, 4 insertions, 13 deletions
diff --git a/src/components/Footer.svelte b/src/components/Footer.svelte index e8646a4a..3f92ba85 100644 --- a/src/components/Footer.svelte +++ b/src/components/Footer.svelte @@ -1,8 +1,7 @@ <script> - import Icon from "$comp/Icon.svelte"; + import DarkToggle from "$comp/DarkToggle.svelte"; import LocaleSelector from "$comp/LocaleSelector.svelte"; import { t } from "$lib/translations"; - import { theme } from "$lib/store"; const followLinks = [ { @@ -17,7 +16,6 @@ { url: "/docs", titleID: "documentation" }, { url: "/support", titleID: "support" }, ]; - let dark = () => ($theme = $theme === "dark" ? "light" : "dark"); </script> <footer @@ -38,17 +36,10 @@ </a> </div> </div> - <div class="w-full flex flex-wrap sm:flex-nowrap gap-2 justify-center items-center"> + <div + class="w-full flex flex-wrap sm:flex-nowrap gap-2 justify-center items-center" + > <LocaleSelector /> - <button - class="flex justify-center items-center font-semibold hover:opacity-80 gap-2" - on:click={dark} - > - <iconify-icon - icon={$theme === "dark" ? "ph:sun-bold" : "ph:moon-stars-bold"} - width="30" - /> - </button> </div> </div> |
