view client/src/App.vue @ 588:b26ed3f3691e

fixed typo: id should be class
author Thomas Junk <thomas.junk@intevation.de>
date Fri, 07 Sep 2018 11:42:08 +0200
parents ef307bd6b5d8
children d85d5e286dc5
line wrap: on
line source

<template>
  <div class="app main d-flex flex-column">
    <div class="userinterface">
      <Topbar v-if="isAuthenticated"></Topbar>
      <Sidebar v-if="isAuthenticated"></Sidebar>
    </div>
    <router-view/>
  </div>
</template>

<style lang="scss">
html {
  height: 100%;
  width: 100%;
  margin: 0 auto;
}
body {
  height: 100%;
  width: 100%;
  background-color: #efefef !important;
}

.userinterface {
  position: absolute;
  top: 0;
  left: 0;
  height: 100vh;
  width: 100vw;
  z-index: 4;
  pointer-events: none;
}

#app {
  height: 100vh;
  width: 100vw;
  font-family: "Avenir", Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-align: center;
  color: #2c3e50;
}
</style>

<script>
import Sidebar from "./application/Sidebar";
import Topbar from "./application/Topbar";
import { mapGetters } from "vuex";

export default {
  name: "app",
  computed: {
    ...mapGetters("user", ["isAuthenticated"])
  },
  components: {
    Sidebar,
    Topbar
  }
};
</script>