From 3ef1b8136e530c17e4e459517dd09f38effe6c41 Mon Sep 17 00:00:00 2001 From: Adam Soltys Date: Tue, 5 Nov 2024 14:47:22 -0800 Subject: dark styles --- src/components/Footer.svelte | 19 ++++++++++++++----- src/components/HowItWorksCard.svelte | 2 +- src/components/LandingHero.svelte | 11 +++++++---- 3 files changed, 22 insertions(+), 10 deletions(-) (limited to 'src/components') 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"); diff --git a/src/components/HowItWorksCard.svelte b/src/components/HowItWorksCard.svelte index e5e62d05..a8fe63fd 100644 --- a/src/components/HowItWorksCard.svelte +++ b/src/components/HowItWorksCard.svelte @@ -6,7 +6,7 @@
- +

{$t("howItWorks." + stepID + ".header")}

{$t("howItWorks." + stepID + ".description")} diff --git a/src/components/LandingHero.svelte b/src/components/LandingHero.svelte index 32a6d6f4..8d47283e 100644 --- a/src/components/LandingHero.svelte +++ b/src/components/LandingHero.svelte @@ -14,9 +14,9 @@ {$t("landing.header_before_icon")} {$t("landing.header_with_icon")} - {$t("landing.header_after_icon")} @@ -29,7 +29,10 @@