From d19d0d799d4f601d79f08c2413cfede774e549b8 Mon Sep 17 00:00:00 2001 From: Emil Gulamov <125820963+mearashadowfax@users.noreply.github.com> Date: Mon, 12 Feb 2024 03:50:50 +0400 Subject: [PATCH] Add ThemeIcon component to switch between dark and light mode Introduces a new component 'ThemeIcon' to enable a smooth switch between light and dark themes based on user preference. This improvement includes a drop-down menu for the users to select their preferred mode and also defines theme-related functionalities inside an object called 'HSThemeAppearance'. Further, it incorporates respective event listeners to effectively handle theme change events. --- src/components/ThemeIcon.astro | 172 +++++++++++++++++++++++++++++++++ 1 file changed, 172 insertions(+) create mode 100644 src/components/ThemeIcon.astro diff --git a/src/components/ThemeIcon.astro b/src/components/ThemeIcon.astro new file mode 100644 index 0000000..0b49818 --- /dev/null +++ b/src/components/ThemeIcon.astro @@ -0,0 +1,172 @@ +