Working on updating my website

This commit is contained in:
2024-02-01 19:21:21 +01:00
parent 8df0f6dcda
commit 51cfd5e88e
18 changed files with 1558 additions and 1220 deletions

View File

@@ -1,6 +1,8 @@
<script setup lang="ts">
import { SpeedInsights } from '@vercel/speed-insights/nuxt'
import { configureGraphs } from '@ksassnowski/vueclid'
const appConfig = useAppConfig()
const getColor = computed(() => appConfig.ui.primary)
@@ -8,6 +10,11 @@ const router = useRouter()
router.afterEach((route) => {
useCookie('last-route', { path: '/', default: () => '/' }).value = route.fullPath
})
const colorMode = useColorMode()
watch(colorMode, () => {
configureGraphs({ darkMode: colorMode.value === 'dark' })
})
</script>
<template>