aboutsummaryrefslogtreecommitdiffstats
path: root/src/components/Footer.svelte
diff options
context:
space:
mode:
Diffstat (limited to 'src/components/Footer.svelte')
-rw-r--r--src/components/Footer.svelte19
1 files changed, 14 insertions, 5 deletions
diff --git a/src/components/Footer.svelte b/src/components/Footer.svelte
index 9b311d35..381d19c8 100644
--- a/src/components/Footer.svelte
+++ b/src/components/Footer.svelte
@@ -2,6 +2,7 @@
import Icon from "$comp/Icon.svelte";
import LocaleSelector from "$comp/LocaleSelector.svelte";
import { t } from "$lib/translations";
+ import { theme } from "$lib/store";
const followLinks = [
{
@@ -16,6 +17,7 @@
{ url: "/docs", titleID: "documentation" },
{ url: "/support", titleID: "support" },
];
+ let dark = () => ($theme = $theme === "dark" ? "light" : "dark");
</script>
<footer
@@ -36,10 +38,17 @@
</a>
</div>
</div>
- <div class="w-full flex">
- <div class="mx-auto">
- <LocaleSelector />
- </div>
+ <div class="w-full flex 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>
@@ -72,5 +81,5 @@
</ul>
</div>
- <Icon icon="shield" style="mx-auto md:mx-0" />
+ <iconify-icon icon="coinos:shield" class="mx-auto md:mx-0" width="96" />
</footer>