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

@@ -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>