fix: add moon for theme swap
This commit is contained in:
@@ -15,8 +15,8 @@ const darkMode = 'forest'
|
|||||||
type="checkbox"
|
type="checkbox"
|
||||||
:value="darkMode"
|
:value="darkMode"
|
||||||
:checked="isDark"
|
:checked="isDark"
|
||||||
@click="() => toggle(!isDark)"
|
|
||||||
class="theme-controller"
|
class="theme-controller"
|
||||||
|
@click="() => toggle(!isDark)"
|
||||||
/>
|
/>
|
||||||
|
|
||||||
<svg
|
<svg
|
||||||
@@ -42,5 +42,20 @@ const darkMode = 'forest'
|
|||||||
<path d="m19.07 4.93-1.41 1.41"></path>
|
<path d="m19.07 4.93-1.41 1.41"></path>
|
||||||
</g>
|
</g>
|
||||||
</svg>
|
</svg>
|
||||||
|
<svg
|
||||||
|
aria-label="moon"
|
||||||
|
xmlns="http://www.w3.org/2000/svg"
|
||||||
|
viewBox="0 0 24 24"
|
||||||
|
>
|
||||||
|
<g
|
||||||
|
stroke-linejoin="round"
|
||||||
|
stroke-linecap="round"
|
||||||
|
stroke-width="2"
|
||||||
|
fill="none"
|
||||||
|
stroke="currentColor"
|
||||||
|
>
|
||||||
|
<path d="M12 3a6 6 0 0 0 9 9 9 9 0 1 1-9-9Z"></path>
|
||||||
|
</g>
|
||||||
|
</svg>
|
||||||
</label>
|
</label>
|
||||||
</template>
|
</template>
|
||||||
|
|||||||
Reference in New Issue
Block a user