From a4517568157898fb8e0df7d2f9b605ad8680a551 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Maciej=20P=C4=99dzich?= Date: Sat, 21 Jan 2023 23:54:33 +0100 Subject: [PATCH] Implement custom theme-switching logic --- package-lock.json | 11 -------- package.json | 1 - src/components/NavItems.astro | 6 ++++- src/layouts/BaseLayout.astro | 49 ++++++++++++++++++++--------------- 4 files changed, 33 insertions(+), 34 deletions(-) diff --git a/package-lock.json b/package-lock.json index 3249297..c982de7 100644 --- a/package-lock.json +++ b/package-lock.json @@ -22,7 +22,6 @@ "format-duration": "^3.0.2", "html-entities": "^2.3.3", "tailwindcss": "^3.2.4", - "theme-change": "^2.3.0", "vue": "^3.2.45" }, "devDependencies": { @@ -6104,11 +6103,6 @@ "node": ">=10.13.0" } }, - "node_modules/theme-change": { - "version": "2.3.0", - "resolved": "https://registry.npmjs.org/theme-change/-/theme-change-2.3.0.tgz", - "integrity": "sha512-MOv3g4dQfte9Q7WZKyLRshcw9JqcJCwB+CO1OS7lN1WMJcQyPzmpgwm5Ve55vQ4qt62g++A9+8s1x+vRPpm42w==" - }, "node_modules/tiny-glob": { "version": "0.2.9", "resolved": "https://registry.npmjs.org/tiny-glob/-/tiny-glob-0.2.9.tgz", @@ -10992,11 +10986,6 @@ } } }, - "theme-change": { - "version": "2.3.0", - "resolved": "https://registry.npmjs.org/theme-change/-/theme-change-2.3.0.tgz", - "integrity": "sha512-MOv3g4dQfte9Q7WZKyLRshcw9JqcJCwB+CO1OS7lN1WMJcQyPzmpgwm5Ve55vQ4qt62g++A9+8s1x+vRPpm42w==" - }, "tiny-glob": { "version": "0.2.9", "resolved": "https://registry.npmjs.org/tiny-glob/-/tiny-glob-0.2.9.tgz", diff --git a/package.json b/package.json index afd2e42..387570d 100644 --- a/package.json +++ b/package.json @@ -32,7 +32,6 @@ "format-duration": "^3.0.2", "html-entities": "^2.3.3", "tailwindcss": "^3.2.4", - "theme-change": "^2.3.0", "vue": "^3.2.45" }, "devDependencies": { diff --git a/src/components/NavItems.astro b/src/components/NavItems.astro index 4eda0de..2beb921 100644 --- a/src/components/NavItems.astro +++ b/src/components/NavItems.astro @@ -31,7 +31,11 @@ const { class: _class } = Astro.props as Props;
  • - diff --git a/src/layouts/BaseLayout.astro b/src/layouts/BaseLayout.astro index bf10ac3..a87538f 100644 --- a/src/layouts/BaseLayout.astro +++ b/src/layouts/BaseLayout.astro @@ -17,27 +17,6 @@ const metaTagTitle = `${title} - Spotify Playlist Archive`; - - @@ -55,6 +34,34 @@ const metaTagTitle = `${title} - Spotify Playlist Archive`; +