<template>
  <div class="container">
    <section class="section">
      <h1 class="title has-text-centered is-uppercase">Adventskalender</h1>
      <h2 class="subtitle has-text-centered">Der Gelöt</h2>
    </section>

    <section class="section">
      <AdminView v-if="is_admin" />
      <UserView v-else />
    </section>

    <section class="section">
      <AdminButton v-model="is_admin" />
    </section>
  </div>
</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>
body {
  min-height: 100vh;
}
</style>
