added calendar and rough structure of calendar
This commit is contained in:
20
web/components/ui/calendar/CalendarSeperator.vue
Normal file
20
web/components/ui/calendar/CalendarSeperator.vue
Normal file
@@ -0,0 +1,20 @@
|
||||
<script setup lang="ts">
|
||||
import type { Moment } from 'moment';
|
||||
|
||||
defineProps<{
|
||||
seperator: Seperator
|
||||
}>();
|
||||
|
||||
const relativePositionOf = function (time: Moment) {
|
||||
return `${(time.hours() / 24) * 100}%`
|
||||
}
|
||||
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<div :style="{top: relativePositionOf(seperator.time)}" class="h-10 w-full flex justify-center items-center text-white border-white absolute -translate-y-1/2">
|
||||
<slot />
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<style scoped></style>
|
||||
Reference in New Issue
Block a user