<template>
  <div class="layout">
    <div class="container">
      <div class="header">
        <Tab />
        <Slider />
      </div>
      <div class="main">
        <router-view></router-view>
      </div>
    </div>
  </div>
</template>

<script>
import Tab from './components/tab.vue'
import Slider from './components/slider.vue'
export default {
  name: 'layout',
  components: {
    Tab,
    Slider
  }
}
</script>

<style lang="scss" scoped>
.layout {
  height: 100%;
  width: 100%;
  .container {
    height: 100%;
    position: relative;
    .header {
      position: fixed;
      top: 0px;
      width: 100%;
      padding: 0px;
      z-index: 10;
    }
    .main {
      position: relative;
      margin-top: 40px;
      padding: 0px;
      width: 100%;
      height: 100%;
    }
  }
}
</style>
