2024-02-18 07:42:02 +04:00
|
|
|
<!-- Dark Theme Toggle Button --><!-- This button is shown when the light theme is active, and when clicked, it switches the theme to dark -->
|
2024-02-13 05:50:53 +04:00
|
|
|
<button
|
|
|
|
|
type="button"
|
|
|
|
|
aria-label="Dark Theme Toggle"
|
2024-04-07 18:23:16 +04:00
|
|
|
class="hs-dark-mode group flex h-8 w-8 items-center justify-center rounded-full font-medium text-neutral-600 outline-none ring-zinc-500 transition duration-300 hover:bg-neutral-200 hover:text-orange-400 hs-dark-mode-active:hidden dark:text-neutral-400 dark:ring-zinc-200 dark:hover:text-orange-300 dark:focus:outline-none"
|
2024-02-13 05:50:53 +04:00
|
|
|
data-hs-theme-click-value="dark"
|
2024-02-12 03:50:50 +04:00
|
|
|
>
|
2024-02-18 07:42:02 +04:00
|
|
|
<!-- The SVG displayed shows an abstract icon that represents the moon (dark theme) -->
|
2024-02-13 05:50:53 +04:00
|
|
|
<svg
|
|
|
|
|
class="h-4 w-4 flex-shrink-0"
|
|
|
|
|
width="24"
|
|
|
|
|
height="24"
|
|
|
|
|
viewBox="0 0 24 24"
|
|
|
|
|
fill="none"
|
|
|
|
|
stroke="currentColor"
|
|
|
|
|
stroke-width="2"
|
|
|
|
|
stroke-linecap="round"
|
|
|
|
|
stroke-linejoin="round"
|
|
|
|
|
><path d="M12 3a6 6 0 0 0 9 9 9 9 0 1 1-9-9Z"></path></svg
|
2024-02-12 03:50:50 +04:00
|
|
|
>
|
2024-02-18 07:42:02 +04:00
|
|
|
<!-- Light Theme Toggle Button -->
|
|
|
|
|
<!-- This button is hidden by default and only appears when the dark theme is active, when clicked, it switches to the light theme -->
|
2024-02-13 05:50:53 +04:00
|
|
|
</button>
|
|
|
|
|
<button
|
|
|
|
|
type="button"
|
|
|
|
|
aria-label="Light Theme Toggle"
|
2024-04-07 18:23:16 +04:00
|
|
|
class="hs-dark-mode group hidden h-8 w-8 items-center justify-center rounded-full font-medium text-neutral-600 outline-none ring-zinc-500 transition duration-300 hover:text-orange-400 hs-dark-mode-active:flex dark:text-neutral-400 dark:ring-zinc-200 dark:hover:bg-neutral-700 dark:hover:text-orange-300 dark:focus:outline-none"
|
2024-02-13 05:50:53 +04:00
|
|
|
data-hs-theme-click-value="light"
|
|
|
|
|
>
|
2024-02-18 07:42:02 +04:00
|
|
|
<!-- The SVG displayed shows a standard sun icon that stands for the light theme -->
|
2024-02-13 05:50:53 +04:00
|
|
|
<svg
|
|
|
|
|
class="h-4 w-4 flex-shrink-0"
|
|
|
|
|
width="24"
|
|
|
|
|
height="24"
|
|
|
|
|
viewBox="0 0 24 24"
|
|
|
|
|
fill="none"
|
|
|
|
|
stroke="currentColor"
|
|
|
|
|
stroke-width="2"
|
|
|
|
|
stroke-linecap="round"
|
|
|
|
|
stroke-linejoin="round"
|
|
|
|
|
><circle cx="12" cy="12" r="4"></circle><path d="M12 8a2 2 0 1 0 4 4"
|
|
|
|
|
></path><path d="M12 2v2"></path><path d="M12 20v2"></path><path
|
|
|
|
|
d="m4.93 4.93 1.41 1.41"></path><path d="m17.66 17.66 1.41 1.41"
|
|
|
|
|
></path><path d="M2 12h2"></path><path d="M20 12h2"></path><path
|
|
|
|
|
d="m6.34 17.66-1.41 1.41"></path><path d="m19.07 4.93-1.41 1.41"
|
|
|
|
|
></path></svg
|
2024-02-12 03:50:50 +04:00
|
|
|
>
|
2024-02-13 05:50:53 +04:00
|
|
|
</button>
|