advent22/ui/src/components/calendar/CalendarDoor.vue

34 lines
613 B
Vue
Raw Normal View History

2022-10-30 01:27:46 +00:00
<template>
2023-09-22 19:02:51 +00:00
<SVGRect
variant="primary"
:visible="store.is_touch_device || force_visible"
2023-09-22 19:02:51 +00:00
:rectangle="door.position"
>
2023-11-24 11:34:18 +00:00
<div
class="has-text-danger"
style="text-shadow: 0 0 10px white, 0 0 20px white"
>
{{ door.day }}
</div>
2023-09-22 19:02:51 +00:00
</SVGRect>
2022-10-30 01:27:46 +00:00
</template>
<script setup lang="ts">
import { VueDoor } from "@/lib/rects/door";
2024-08-23 16:38:04 +00:00
import { advent22Store } from "@/lib/store";
2023-09-07 00:41:38 +00:00
2023-09-07 02:08:56 +00:00
import SVGRect from "./SVGRect.vue";
2022-10-30 01:27:46 +00:00
const store = advent22Store();
2023-11-04 01:31:49 +00:00
withDefaults(
defineProps<{
door: VueDoor;
force_visible?: boolean;
}>(),
{
force_visible: false,
},
);
2022-10-30 01:27:46 +00:00
</script>