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 +++++++---- src/routes/+layout.ts | 30 ++++++++++++++++++++++++++++++ src/routes/+page.svelte | 6 +++--- 5 files changed, 55 insertions(+), 13 deletions(-) (limited to 'src') 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 @@

- diff --git a/src/routes/+layout.ts b/src/routes/+layout.ts index bd574784..fac22b19 100644 --- a/src/routes/+layout.ts +++ b/src/routes/+layout.ts @@ -19,3 +19,33 @@ addIcon("coinos:logo", { width: 224, height: 72, }); + +addIcon("coinos:rays", { + body: '', + width: 158, + height: 60, +}); + +addIcon("coinos:shield", { + body: '', + width: 96, + height: 122, +}); + +addIcon("coinos:hand", { + body: '', + width: 106, + height: 100, +}); + +addIcon("coinos:bolt", { + body: '', + width: 96, + height: 121, +}); + +addIcon("coinos:smile", { + body: '', + width: 112, + height: 108, +}); diff --git a/src/routes/+page.svelte b/src/routes/+page.svelte index 150d29b1..a04d669e 100644 --- a/src/routes/+page.svelte +++ b/src/routes/+page.svelte @@ -21,9 +21,9 @@ let about; const howItWorksSteps = [ - { image: "hand", stepID: "step1" }, - { image: "bolt", stepID: "step2" }, - { image: "smile", stepID: "step3" }, + { image: "coinos:hand", stepID: "step1" }, + { image: "coinos:bolt", stepID: "step2" }, + { image: "coinos:smile", stepID: "step3" }, ]; let loaded; -- cgit v1.2.3