mirror of
https://github.com/Kizuren/kizuren.dev.git
synced 2026-01-06 14:37:45 +01:00
Implement everything
This commit is contained in:
parent
d966dd9562
commit
30d747e046
26 changed files with 1069 additions and 6 deletions
42
app.vue
42
app.vue
|
|
@ -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>
|
||||
Loading…
Add table
Add a link
Reference in a new issue