Theme switcher and BULMA

This commit is contained in:
2026-09-11 13:30:02 +02:00
parent fb152bd023
commit fcd4d4743b
13 changed files with 123 additions and 54 deletions
+23
View File
@@ -0,0 +1,23 @@
<template>
<div class="dropdown is-hoverable">
<div class="dropdown-trigger">
<button class="button">
<span>Barvna tema</span>
</button>
</div>
<div class="dropdown-menu">
<div class="dropdown-content">
<button class="dropdown-item" @click.prevent="setTheme('light')">
Svetlo
</button>
<button class="dropdown-item" @click.prevent="setTheme('dark')">
Temno
</button>
</div>
</div>
</div>
</template>
<script setup>
import { setTheme } from './theme';
</script>