UserView layout improvement

This commit is contained in:
Jörn-Michael Miehe 2023-11-04 16:12:45 +00:00
parent 9b34b9de8c
commit 11cb3fef38

View file

@ -1,12 +1,20 @@
<template> <template>
<template v-if="store.user_doors.length > 0">
<Calendar :doors="doors" /> <Calendar :doors="doors" />
<hr /> <hr />
<div class="content" v-html="store.site_config.content" /> <div class="content" v-html="store.site_config.content" />
<div class="content has-text-primary" v-if="store.next_door_target !== null"> <div class="content has-text-primary">
Zeit bis zum nächsten Türchen: <template v-if="store.next_door_target === null">
Alle {{ store.user_doors.length }} Türchen offen!
</template>
<template v-else>
{{ store.user_doors.length }} Türchen offen. Zeit bis zum nächsten
Türchen:
<CountDown :until="store.next_door_target" /> <CountDown :until="store.next_door_target" />
</template>
</div> </div>
</template> </template>
</template>
<script lang="ts"> <script lang="ts">
import { Door } from "@/lib/door"; import { Door } from "@/lib/door";