2022-10-28 00:14:20 +00:00
|
|
|
<template>
|
2023-09-20 22:03:32 +00:00
|
|
|
<section class="hero is-small is-primary">
|
|
|
|
<div class="hero-body">
|
|
|
|
<h1 class="title is-uppercase">Adventskalender</h1>
|
|
|
|
<h2 class="subtitle">Der Gelöt</h2>
|
2023-09-16 00:52:36 +00:00
|
|
|
</div>
|
|
|
|
</section>
|
2022-12-22 00:16:42 +00:00
|
|
|
|
2023-09-16 00:56:58 +00:00
|
|
|
<section class="section">
|
|
|
|
<div class="container">
|
2023-09-14 13:54:23 +00:00
|
|
|
<AdminView v-if="is_admin" />
|
|
|
|
<UserView v-else />
|
2023-09-16 00:56:58 +00:00
|
|
|
</div>
|
|
|
|
</section>
|
2023-09-20 22:03:32 +00:00
|
|
|
|
|
|
|
<footer class="footer">
|
|
|
|
<nav class="level is-mobile">
|
|
|
|
<div class="level-item">
|
|
|
|
<p>
|
|
|
|
<strong>Advent22</strong> by
|
|
|
|
<a href="https://www.lenaisten.de/">Lenaisten.de</a>.
|
|
|
|
</p>
|
|
|
|
</div>
|
|
|
|
<div class="level-right">
|
|
|
|
<div class="level-item">
|
|
|
|
<AdminButton
|
|
|
|
v-model="is_admin"
|
|
|
|
button_class="tag is-link is-outlined"
|
|
|
|
/>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</nav>
|
|
|
|
</footer>
|
2022-10-28 00:14:20 +00:00
|
|
|
</template>
|
|
|
|
|
|
|
|
<script lang="ts">
|
2022-10-28 00:28:03 +00:00
|
|
|
import { Options, Vue } from "vue-class-component";
|
2022-12-14 02:39:32 +00:00
|
|
|
|
2023-09-13 16:20:52 +00:00
|
|
|
import AdminView from "./components/admin/AdminView.vue";
|
2023-09-10 00:24:56 +00:00
|
|
|
import AdminButton from "./components/AdminButton.vue";
|
2023-09-13 16:20:52 +00:00
|
|
|
import UserView from "./components/UserView.vue";
|
2022-10-28 00:14:20 +00:00
|
|
|
|
|
|
|
@Options({
|
|
|
|
components: {
|
2023-09-13 16:20:52 +00:00
|
|
|
AdminView,
|
2023-09-10 00:24:56 +00:00
|
|
|
AdminButton,
|
2023-09-13 16:20:52 +00:00
|
|
|
UserView,
|
2022-10-28 00:14:20 +00:00
|
|
|
},
|
|
|
|
})
|
2023-01-24 23:18:09 +00:00
|
|
|
export default class extends Vue {
|
2023-09-11 23:10:17 +00:00
|
|
|
public is_admin = false;
|
2022-11-03 23:01:28 +00:00
|
|
|
}
|
2022-10-28 00:14:20 +00:00
|
|
|
</script>
|
|
|
|
|
|
|
|
<style>
|
2023-09-16 01:19:21 +00:00
|
|
|
html {
|
|
|
|
overflow-y: auto !important;
|
|
|
|
}
|
|
|
|
|
2022-10-30 02:35:39 +00:00
|
|
|
body {
|
|
|
|
min-height: 100vh;
|
|
|
|
}
|
2022-10-28 00:14:20 +00:00
|
|
|
</style>
|
2023-09-16 01:19:21 +00:00
|
|
|
|
|
|
|
<style scoped>
|
|
|
|
section.hero {
|
|
|
|
overflow-x: auto;
|
|
|
|
}
|
|
|
|
</style>
|