From e015066d41e9caa052a05a60bb96a45c8402b368 Mon Sep 17 00:00:00 2001 From: mkitzmann Date: Sun, 26 Nov 2023 13:01:01 +0100 Subject: [PATCH] add dark mode switch --- package.json | 2 +- src/components/DarkModeSwitch.svelte | 46 +++++++++++++++++++++++++++ src/components/GithubLogo.svelte | 7 ++++ src/components/StarOnGithub.svelte | 10 ++++++ src/routes/[...category]/+page.svelte | 13 ++++---- tailwind.config.cjs | 3 +- 6 files changed, 72 insertions(+), 9 deletions(-) create mode 100644 src/components/DarkModeSwitch.svelte create mode 100644 src/components/GithubLogo.svelte create mode 100644 src/components/StarOnGithub.svelte diff --git a/package.json b/package.json index f84486c..759d960 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "awwesome", "description": "Enhanced user interface for Awesome Selfhosted", - "version": "0.6", + "version": "0.7", "private": true, "scripts": { "dev": "vite dev", diff --git a/src/components/DarkModeSwitch.svelte b/src/components/DarkModeSwitch.svelte new file mode 100644 index 0000000..2eea8cd --- /dev/null +++ b/src/components/DarkModeSwitch.svelte @@ -0,0 +1,46 @@ + + +
+ +
diff --git a/src/components/GithubLogo.svelte b/src/components/GithubLogo.svelte new file mode 100644 index 0000000..c4786e0 --- /dev/null +++ b/src/components/GithubLogo.svelte @@ -0,0 +1,7 @@ + diff --git a/src/components/StarOnGithub.svelte b/src/components/StarOnGithub.svelte new file mode 100644 index 0000000..835b608 --- /dev/null +++ b/src/components/StarOnGithub.svelte @@ -0,0 +1,10 @@ + + + + Star on Github + diff --git a/src/routes/[...category]/+page.svelte b/src/routes/[...category]/+page.svelte index b8f52b2..ba50428 100644 --- a/src/routes/[...category]/+page.svelte +++ b/src/routes/[...category]/+page.svelte @@ -1,5 +1,4 @@