Implement everything

This commit is contained in:
MarcUs7i 2025-03-23 23:04:02 +01:00
parent d966dd9562
commit 30d747e046
26 changed files with 1069 additions and 6 deletions

42
app.vue
View file

@ -1,6 +1,40 @@
<template>
<div>
<NuxtRouteAnnouncer />
<NuxtWelcome />
</div>
<UApp>
<NuxtLayout>
<NuxtPage />
</NuxtLayout>
</UApp>
</template>
<script setup>
const colorMode = useColorMode()
const favicon = computed(() => {
const timestamp = Date.now()
return colorMode.value === 'dark'
? `/favicon_black.ico?t=${timestamp}`
: `/favicon.ico?t=${timestamp}`
})
useHead({
link: [
{
rel: 'icon',
type: 'image/x-icon',
href: favicon.value,
},
],
})
watch(() => colorMode.value, () => {
useHead({
link: [
{
rel: 'icon',
type: 'image/x-icon',
href: favicon.value,
},
],
})
})
</script>