60 lines
1.1 KiB
Vue
60 lines
1.1 KiB
Vue
<template>
|
|
<section class="hero is-primary">
|
|
<div class="level is-mobile">
|
|
<div class="level-left">
|
|
<div class="hero-body">
|
|
<h1 class="title is-uppercase">Adventskalender</h1>
|
|
<h2 class="subtitle">Der Gelöt</h2>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="level-right">
|
|
<div class="level-item pr-4">
|
|
<AdminButton v-model="is_admin" />
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</section>
|
|
|
|
<section class="section">
|
|
<div class="container">
|
|
<AdminView v-if="is_admin" />
|
|
<UserView v-else />
|
|
</div>
|
|
</section>
|
|
</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>
|