Added grid layout for monthly view
This commit is contained in:
9
src/components/calendar/state/Century.vue
Normal file
9
src/components/calendar/state/Century.vue
Normal file
@@ -0,0 +1,9 @@
|
||||
<script lang="ts" setup>
|
||||
import { useCalendarEvents } from '@/stores/events'
|
||||
|
||||
const { currentEvents } = useCalendarEvents()
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<div>Century</div>
|
||||
</template>
|
||||
3
src/components/calendar/state/Decade.vue
Normal file
3
src/components/calendar/state/Decade.vue
Normal file
@@ -0,0 +1,3 @@
|
||||
<template>
|
||||
<div>Decade</div>
|
||||
</template>
|
||||
21
src/components/calendar/state/Monthly.vue
Normal file
21
src/components/calendar/state/Monthly.vue
Normal 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>
|
||||
3
src/components/calendar/state/Year.vue
Normal file
3
src/components/calendar/state/Year.vue
Normal file
@@ -0,0 +1,3 @@
|
||||
<template>
|
||||
<div>Annuel</div>
|
||||
</template>
|
||||
Reference in New Issue
Block a user