added calendar and rough structure of calendar

This commit is contained in:
CoGomu
2025-05-11 19:35:39 +02:00
parent f88402d04e
commit f8cb42962a
13 changed files with 591 additions and 14 deletions

View File

@@ -1,14 +1,24 @@
<script setup lang="ts">
import Sidebar from '~/components/ui/Sidebar.vue';
import Calendar from '~/components/ui/calendar/Calendar.vue'
import moment, { type Moment } from 'moment';
const todos = ["Staistics", "Computer Graphics", "Webdev"]
const events = ref([])
const date = ref(moment())
onMounted(() => {
date.value.subtract(10,"days")
})
</script>
<template>
<div class="h-screen w-screen p-4">
<div class="h-screen w-screen p-4 flex flex-row gap-5">
<Sidebar :todos="todos" />
<div class="flex grow">
<Calendar v-model:events="events" v-model:date="date"></Calendar>
</div>
</div>
</template>