💄 Rework of the authorize page

This commit is contained in:
2025-11-29 18:51:29 +08:00
parent eccfc7013a
commit 7a34bc50fc
9 changed files with 200 additions and 138 deletions

View File

@@ -2,9 +2,10 @@
<naive-config>
<n-dialog-provider>
<n-notification-provider>
<naive-notification />
<n-message-provider>
<n-loading-bar-provider>
<nuxt-loading-indicator />
<naive-loading-bar navigation />
<nuxt-layout>
<nuxt-page />
</nuxt-layout>
@@ -17,22 +18,4 @@
<script setup lang="ts">
import "@fontsource-variable/nunito"
import { usePreferredColorScheme } from "@vueuse/core"
const { colorModePreference } = useNaiveColorMode()
const colorScheme = usePreferredColorScheme()
colorModePreference.set("system")
onMounted(() => {
switch (colorScheme.value) {
case "dark":
colorModePreference.set("dark")
case "light":
colorModePreference.set("light")
default:
colorModePreference.set("system")
}
colorModePreference.sync()
})
</script>