Add theme switcher

This commit is contained in:
2023-10-16 17:04:36 +01:00
parent a9b861a6aa
commit 328473e596
9 changed files with 110 additions and 5 deletions
+1
View File
@@ -47,6 +47,7 @@
{{/unless}}
</div>
{{/unless}}
{{> "theme-switcher"}}
</div>
</div>
+14
View File
@@ -0,0 +1,14 @@
<svg
class="theme-toggler"
width="24"
height="24"
viewBox="0 0 48 48"
fill="none"
xmlns="http://www.w3.org/2000/svg"
>
<path
d="M22 41C32.4934 41 41 32.4934 41 22C41 11.5066 32.4934 3 22
3C11.5066 3 3 11.5066 3 22C3 32.4934 11.5066 41 22 41ZM7 22C7
13.7157 13.7157 7 22 7V37C13.7157 37 7 30.2843 7 22Z"
/>
</svg>

After

Width:  |  Height:  |  Size: 337 B

+3
View File
@@ -0,0 +1,3 @@
<button class="theme-toggle gh-icon-button" aria-label="Change theme">
{{> "icons/theme-icon"}}
</button>