feat: add global theme

This commit is contained in:
2026-01-30 23:22:54 +08:00
parent 21db1c3895
commit bad60a8ee5
6 changed files with 126 additions and 6 deletions

View File

@@ -1,18 +1,20 @@
<script lang="ts" setup>
// Home page component
import ChangeThemeDropdownButton from "@/components/button/ChangeThemeDropdownButton.vue";
import { useGlobalThemeHook } from "@/hooks/globalThemeHook";
const { curGlobalTheme } = useGlobalThemeHook();
</script>
<template>
<div class="hero min-h-screen bg-base-200">
<div class="hero min-h-screen" :data-theme="curGlobalTheme">
<div class="hero-content text-center">
<div class="max-w-md">
<h1 class="text-5xl font-bold">Hucky</h1>
<p class="py-6">自动路由系统已加载</p>
<ChangeThemeDropdownButton />
</div>
</div>
</div>
</template>
<style scoped>
/* Component styles */
</style>
<style scoped></style>