advent22/ui/src/App.vue

69 lines
1.3 KiB
Vue

<template>
<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>
</div>
</section>
<section class="section">
<div class="container">
<AdminView v-if="is_admin" />
<UserView v-else />
</div>
</section>
<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>
</template>
<script lang="ts">
import { Options, Vue } from "vue-class-component";
import AdminView from "./components/admin/AdminView.vue";
import AdminButton from "./components/AdminButton.vue";
import UserView from "./components/UserView.vue";
@Options({
components: {
AdminView,
AdminButton,
UserView,
},
})
export default class extends Vue {
public is_admin = false;
}
</script>
<style>
html {
overflow-y: auto !important;
}
body {
min-height: 100vh;
}
</style>
<style scoped>
section.hero {
overflow-x: auto;
}
</style>