From 3ea7d8e3422b6f298f52e9844228149cf1a7aad2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Eirik=20V=C3=A5geskar?= Date: Sun, 30 Oct 2022 17:23:47 +0100 Subject: [PATCH] Add dark mode --- src/app.html | 2 +- src/lib/NesContainer.svelte | 2 +- src/routes/+layout.svelte | 37 +++++++ src/routes/+page.svelte | 8 +- src/routes/NesCssDarkMode.svelte | 115 +++++++++++++++++++++ src/routes/finished-game/+page.svelte | 4 - src/routes/finished-game/Board.svelte | 12 ++- src/routes/tasks/1.1/problem/+page.svelte | 16 +-- src/routes/tasks/1.1/solution/+page.svelte | 16 +-- src/routes/tasks/1.2/problem/+page.svelte | 16 +-- src/routes/tasks/1.2/solution/+page.svelte | 16 +-- src/routes/tasks/1.3/problem/+page.svelte | 16 +-- src/routes/tasks/1.3/solution/+page.svelte | 16 +-- src/routes/tasks/2.1/problem/+page.svelte | 16 +-- src/routes/tasks/2.1/solution/+page.svelte | 16 +-- src/routes/tasks/2.2/problem/+page.svelte | 16 +-- src/routes/tasks/2.2/solution/+page.svelte | 16 +-- src/routes/tasks/3.1/problem/+page.svelte | 16 +-- src/routes/tasks/3.1/solution/+page.svelte | 16 +-- src/routes/tasks/3.2/problem/+page.svelte | 16 +-- src/routes/tasks/3.2/solution/+page.svelte | 16 +-- src/routes/tasks/3.3/problem/+page.svelte | 16 +-- src/routes/tasks/3.3/solution/+page.svelte | 16 +-- src/routes/tasks/3.4/problem/+page.svelte | 16 +-- src/routes/tasks/3.4/solution/+page.svelte | 16 +-- src/routes/tasks/3.5/problem/+page.svelte | 16 +-- src/routes/tasks/3.5/solution/+page.svelte | 16 +-- src/routes/tasks/3.6/problem/+page.svelte | 16 +-- src/routes/tasks/3.6/solution/+page.svelte | 16 +-- src/routes/tasks/4.1/problem/+page.svelte | 16 +-- src/routes/tasks/4.1/solution/+page.svelte | 16 +-- src/routes/tasks/4.2/problem/+page.svelte | 16 +-- src/routes/tasks/4.2/solution/+page.svelte | 16 +-- src/routes/tasks/4.3/problem/+page.svelte | 16 +-- src/routes/tasks/4.3/solution/+page.svelte | 16 +-- src/routes/tasks/4.4/problem/+page.svelte | 16 +-- src/routes/tasks/4.4/solution/+page.svelte | 16 +-- src/routes/tasks/5.1/problem/+page.svelte | 16 +-- src/routes/tasks/5.1/solution/+page.svelte | 16 +-- src/routes/tasks/5.2/problem/+page.svelte | 16 +-- src/routes/tasks/5.2/solution/+page.svelte | 4 - src/routes/tasks/5.2/solution/Board.svelte | 12 ++- src/routes/tasks/6.1/problem/+page.svelte | 4 - src/routes/tasks/6.1/problem/Board.svelte | 12 ++- src/routes/tasks/6.1/solution/+page.svelte | 4 - src/routes/tasks/6.1/solution/Board.svelte | 12 ++- src/routes/tasks/6.2/problem/+page.svelte | 4 - src/routes/tasks/6.2/problem/Board.svelte | 12 ++- src/routes/tasks/6.2/solution/+page.svelte | 4 - src/routes/tasks/6.2/solution/Board.svelte | 12 ++- 50 files changed, 470 insertions(+), 318 deletions(-) create mode 100644 src/routes/NesCssDarkMode.svelte diff --git a/src/app.html b/src/app.html index c53f7c5..9bea28e 100644 --- a/src/app.html +++ b/src/app.html @@ -6,6 +6,7 @@ + - %sveltekit.head% diff --git a/src/lib/NesContainer.svelte b/src/lib/NesContainer.svelte index 651a80c..92c877a 100644 --- a/src/lib/NesContainer.svelte +++ b/src/lib/NesContainer.svelte @@ -4,7 +4,7 @@ diff --git a/src/routes/+layout.svelte b/src/routes/+layout.svelte index 1cab85e..a330c49 100644 --- a/src/routes/+layout.svelte +++ b/src/routes/+layout.svelte @@ -1,3 +1,9 @@ + + + +
@@ -19,6 +25,37 @@
diff --git a/src/routes/NesCssDarkMode.svelte b/src/routes/NesCssDarkMode.svelte new file mode 100644 index 0000000..3f27c9f --- /dev/null +++ b/src/routes/NesCssDarkMode.svelte @@ -0,0 +1,115 @@ + + diff --git a/src/routes/finished-game/+page.svelte b/src/routes/finished-game/+page.svelte index 5918b18..7a09d4e 100755 --- a/src/routes/finished-game/+page.svelte +++ b/src/routes/finished-game/+page.svelte @@ -195,10 +195,6 @@ {/if}