view client/src/App.vue @ 581:fb5d9d5ff320

refac: UI redesign
author Thomas Junk <thomas.junk@intevation.de>
date Thu, 06 Sep 2018 17:42:28 +0200
parents f41c74b8af9c
children ef307bd6b5d8
line wrap: on
line source

<template>
  <div id="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 "./components/Sidebar";
import Topbar from "./components/Topbar";
import { mapGetters } from "vuex";

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