Mercurial > gemma
view client/src/App.vue @ 622:47f11401d999
feat: Usermenu is now collapsible
author | Thomas Junk <thomas.junk@intevation.de> |
---|---|
date | Tue, 11 Sep 2018 14:14:43 +0200 |
parents | b17a4482d07d |
children | d4fa28bfa6ec |
line wrap: on
line source
<template> <div id="app" class="main"> <div class="d-flex flex-column userinterface"> <div class="topcontainer"> <Topbar v-if="isAuthenticated"></Topbar> </div> <div class="midcontainer d-flex flex-row"> <div class="leftcontainer"> <Sidebar v-if="isAuthenticated"></Sidebar> </div> <div class="middle"> </div> <div class="rightcontainer"> </div> </div> <div class="bottomcontainer"> <User v-if="isAuthenticated"></User> </div> </div> <div class="d-flex flex-column"> <router-view/> </div> </div> </template> <style lang="scss"> html { height: 100%; width: 100%; margin: 0 auto; } body { height: 100%; width: 100%; background-color: #efefef !important; } .topcontainer { height: 10vh; } .bottomcontainer { .top { height: 10vh; } } .midcontainer { height: 80vh; } .rightcontainer { width: 20vw; } .leftcontainer { width: 20vw; } .middle { margin-left: auto; margin-right: auto; } .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"; import User from "./application/User"; export default { name: "app", computed: { ...mapGetters("user", ["isAuthenticated"]) }, components: { Sidebar, Topbar, User } }; </script>