shotgun/site/src/App.vue

28 lines
631 B
Vue
Raw Normal View History

2024-01-27 21:36:41 -06:00
<template>
2024-01-28 10:42:05 -06:00
<v-app :theme="theme">
2024-01-29 07:09:59 -06:00
<v-app-bar :elevation="2">
<v-app-bar-title>Shotgun</v-app-bar-title>
<template #append>
<v-btn :icon="themeIcon" @click="toggleDark()"></v-btn>
</template>
</v-app-bar>
2024-01-28 10:42:05 -06:00
<v-main>
<TheLanding />
</v-main>
</v-app>
2024-01-27 21:36:41 -06:00
</template>
<script setup lang="ts">
2024-01-28 10:42:05 -06:00
import {
useDark,
useToggle,
} from '@vueuse/core';
import { computed } from 'vue';
const dark = useDark();
const toggleDark = useToggle(dark);
const theme = computed(() => dark.value ? 'dark' : 'light')
2024-01-29 07:09:59 -06:00
const themeIcon = computed(() => dark.value ? 'mdi-moon-waxing-crescent' : 'mdi-white-balance-sunny')
2024-01-27 21:36:41 -06:00
</script>