sidebar work in progress
This commit is contained in:
@@ -2,6 +2,7 @@
|
|||||||
import { UApp } from '#components';
|
import { UApp } from '#components';
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
|
||||||
<template>
|
<template>
|
||||||
<UApp>
|
<UApp>
|
||||||
<NuxtPage />
|
<NuxtPage />
|
||||||
|
|||||||
11
web/components/ui/ListItem.vue
Normal file
11
web/components/ui/ListItem.vue
Normal file
@@ -0,0 +1,11 @@
|
|||||||
|
<script setup lang="ts">
|
||||||
|
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<template>
|
||||||
|
<UCard class="[&>*]:p-3">
|
||||||
|
<slot />
|
||||||
|
</UCard>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<style scoped></style>
|
||||||
@@ -1,7 +1,7 @@
|
|||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
import { CalendarDate } from '@internationalized/date';
|
import { CalendarDate } from '@internationalized/date';
|
||||||
|
import ListItem from './ListItem.vue';
|
||||||
import Title1 from './Title1.vue';
|
import Title1 from './Title1.vue';
|
||||||
import { UCard } from '#components';
|
|
||||||
|
|
||||||
const selectedDate = shallowRef(new CalendarDate(2024, 6, 29));
|
const selectedDate = shallowRef(new CalendarDate(2024, 6, 29));
|
||||||
|
|
||||||
@@ -13,15 +13,18 @@ defineProps<{
|
|||||||
|
|
||||||
<template>
|
<template>
|
||||||
<UCard class="w-64 h-full">
|
<UCard class="w-64 h-full">
|
||||||
<template #header>
|
<template #header class="flex flex-col gap-2">
|
||||||
<Title1>Calendar</Title1>
|
<Title1>Calendar</Title1>
|
||||||
<UCalendar v-model="selectedDate" />
|
<UCalendar v-model="selectedDate" />
|
||||||
</template>
|
</template>
|
||||||
<template #default>
|
<template #default class="flex-col gap-2">
|
||||||
<Title1>Todos</Title1>
|
<Title1>Todos</Title1>
|
||||||
<div class="flex gap-2 flex-col">
|
<div class="flex gap-2 flex-col">
|
||||||
<UCard v-for="todo in todos">{{ todo }}</UCard>
|
<ListItem v-for="todo in todos">{{ todo }}</ListItem>
|
||||||
</div>
|
</div>
|
||||||
|
<UButton class="flex w-full justify-center ga">
|
||||||
|
+
|
||||||
|
</UButton>
|
||||||
</template>
|
</template>
|
||||||
</UCard>
|
</UCard>
|
||||||
</template>
|
</template>
|
||||||
|
|||||||
Reference in New Issue
Block a user