<template>
  <div class="home">
    <nav-menu></nav-menu>
    <div class="right">
      <home-header />
      <div class="content">
        <router-view></router-view>
      </div>
    </div>
  </div>
</template>

<script>
import NavMenu from './navMenu.vue'
import HomeHeader from './HomeHeader.vue'

// @ is an alias to /src
export default {
  name: 'HomeView',
  components: {
    NavMenu,
    HomeHeader,
  },
  created() {
    // this.$router.push('/saas/manage')
  },
  data() {
    return {}
  },
}
</script>
<style lang="scss" scoped>
.home {
  height: 100%;
  display: flex;
  overflow: hidden;

  &::v-deep {
    .el-menu {
      height: 100%;
    }
  }
}

.nav-menu {
  height: 100%;
  width: 240px;
}

.right {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.home-header {
  height: 50px;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
  flex-shrink: 0;
  z-index: 100;
}

.content {
  flex: 1;
  padding: 10px 10px 0px 10px;
  background-color: #f1f1f1;
}
</style>
