finish basic sidebar

This commit is contained in:
2025-03-14 19:04:15 +08:00
parent 9200befaf8
commit 8f18560a38
9 changed files with 215 additions and 61 deletions

View File

@@ -1,16 +1,23 @@
<script setup lang="ts">
import { ref } from 'vue';
import LoginCard from './components/LoginCard.vue';
import { useThemeStore } from './stores/theme';
const theme = useThemeStore()
</script>
<template>
<header>
<RouterLink to="/user"> Go to User</RouterLink>
<RouterLink to="/login"> Go to Login</RouterLink>
</header>
<div :data-theme="theme.currentTheme">
<header>
<RouterLink to="/user"> Go to User</RouterLink>
<RouterLink to="/login"> Go to Login</RouterLink>
</header>
<main>
<RouterView />
</main>
<main>
<RouterView />
</main>
</div>
</template>
<style scoped>