<template>
  <div class="dashboard-container">
    <div class="header"></div>
    <div class="content-wrap">
      <div class="coner left">
        <div class="o-item map">
          1
        </div>
        <div class="o-item">2</div>
        <div class="o-item">3</div>
        <div class="o-item">4</div>
        <div class="o-item">5</div>
      </div>
      <div class="coner right"></div>
    </div>

  </div>
</template>

<script>

export default {
  name: 'Dashboard',
  data() {
    return {}
  },
  watch: {
    $route: {
      handler: function(route) {
        this.redirect = route.query && route.query.redirect
      },
      immediate: true
    }
  },
  created() {
  },
  methods: {}
}
</script>

<style lang="scss" scoped>
.dashboard-container {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  background-image: url("/static/images/bg.png");
  background-repeat: no-repeat;
  background-size: cover;

  .header {
    width: 100%;
    height: 88px;
    flex-shrink: 0;
    background-image: url("/static/images/header@2x.png");
    background-repeat: no-repeat;
    background-size: cover;
  }

  .content-wrap {
    width: 100%;
    height: 100%;
    flex-grow: 1;
    display: flex;

    .coner {
      &.left {
        flex-grow: 1;
        height: 100%;
        background: teal;
        display: grid;
        grid-template-rows: 4fr 1fr;
        grid-template-columns: 1fr 1fr 1fr 1fr;
        grid-auto-flow: row;

        .o-item {
          font-size: 4em;
          text-align: center;
          border: 1px solid #e5e4e9;
          &.map {
            grid-column-start: 1;
            grid-column-end: 5;
          }
        }
      }

      &.right {
        width: 450px;
        height: 100%;
        flex-shrink: 0;
        background: snow;
      }
    }
  }
}
</style>
