sidebar work in progress

This commit is contained in:
2025-05-11 17:38:02 +02:00
parent 0a1d0f1ca1
commit f88402d04e
3 changed files with 19 additions and 4 deletions

View File

@@ -2,6 +2,7 @@
import { UApp } from '#components';
</script>
<template>
<UApp>
<NuxtPage />

View File

@@ -0,0 +1,11 @@
<script setup lang="ts">
</script>
<template>
<UCard class="[&>*]:p-3">
<slot />
</UCard>
</template>
<style scoped></style>

View File

@@ -1,7 +1,7 @@
<script setup lang="ts">
import { CalendarDate } from '@internationalized/date';
import ListItem from './ListItem.vue';
import Title1 from './Title1.vue';
import { UCard } from '#components';
const selectedDate = shallowRef(new CalendarDate(2024, 6, 29));
@@ -13,15 +13,18 @@ defineProps<{
<template>
<UCard class="w-64 h-full">
<template #header>
<template #header class="flex flex-col gap-2">
<Title1>Calendar</Title1>
<UCalendar v-model="selectedDate" />
</template>
<template #default>
<template #default class="flex-col gap-2">
<Title1>Todos</Title1>
<div class="flex gap-2 flex-col">
<UCard v-for="todo in todos">{{ todo }}</UCard>
<ListItem v-for="todo in todos">{{ todo }}</ListItem>
</div>
<UButton class="flex w-full justify-center ga">
+
</UButton>
</template>
</UCard>
</template>