<template>
  <div class="dashboard__main">
    <div class="dashboard__top">
      <TaskCard />
      <VideoCard />
    </div>
    <div class="dishboard__bottom">
      <AirCard />
    </div>
  </div>
</template>

<script>
import { useRouter } from 'vue-router'
import TaskCard from './components/TaskCard.vue'
import VideoCard from './components/VideoCard.vue'
import AirCard from './components/AirCard.vue'
export default {
  name: 'HomePage',
  components: { TaskCard, VideoCard, AirCard },
  setup(props) {
    const router = useRouter()
    function toSystem() {
      router.push({ path: '/login' })
    }
    return {
      toSystem
    }
  }
}
</script>
<style lang="scss" scoped>
.dashboard__main{
  height: calc(100vh - 80px);
  .dashboard__top{
    display: flex;
    height: 50%;
    .n-card{
      overflow: hidden;
      &:first-child{
        width: 50%;
        margin-right: 20px;
      }
    }
  }
  .dishboard__bottom{
    display: flex;
    height: calc(50% - 20px);
    margin-top: 20px;
  }
  .n-card{
    border-radius: 10px;
  }
}
</style>

