Added grid layout for monthly view

This commit is contained in:
Alexis
2024-04-01 15:05:08 +02:00
parent abc4d908f1
commit e7d3fd3fd3
30 changed files with 498 additions and 146 deletions

View File

@@ -0,0 +1,9 @@
<script lang="ts" setup>
import { useCalendarEvents } from '@/stores/events'
const { currentEvents } = useCalendarEvents()
</script>
<template>
<div>Century</div>
</template>

View File

@@ -0,0 +1,3 @@
<template>
<div>Decade</div>
</template>

View File

@@ -0,0 +1,21 @@
<script lang="ts" setup>
import { computed } from 'vue'
import { useCalendar } from '@/stores/calendar'
import CalendarTile from '../CalendarTile.vue'
const { staticConfig } = useCalendar()
const daysPerMonth = computed(() => staticConfig.daysPerMonth)
</script>
<template>
<div class="grid" :class="`grid-cols-10`">
<CalendarTile v-for="day in daysPerMonth" :key="day">
<span class="font-bold">{{ day }}</span>
</CalendarTile>
<CalendarTile v-for="nextMonthDay in 8" :key="nextMonthDay" faded>
<span>{{ nextMonthDay }}</span>
</CalendarTile>
</div>
</template>

View File

@@ -0,0 +1,3 @@
<template>
<div>Annuel</div>
</template>