<template>
  <div class="container-box">
    <div class="container-left">
      <LeftTop class="container-left-top" :dateArray="dateArray"/>
      <LeftCenter class="container-left-center" :dateArray="dateArray"/>
      <LeftBottom class="container-left-bottom" :dateArray="dateArray"/>
    </div>
    <div class="container-center">
      <CenterTop class="container-center-top" :dateArray="dateArray"/>
      <CenterMap class="container-center-map" :dateArray="dateArray"/>
      <CenterFloat class="container-center-float" :dateArray="dateArray"/>
      <CenterBottom class="container-center-bottom" :dateArray="dateArray"/>
    </div>
    <div class="container-right">
      <RightTop class="container-right-top" :dateArray="dateArray"/>
      <RightCenter class="container-right-center" :dateArray="dateArray"/>
      <RightBottom class="container-right-bottom" :dateArray="dateArray"/>
    </div>
  </div>
</template>
<script setup lang="ts">
import LeftTop from "@/views/home/left-top.vue";
import LeftCenter from "@/views/home/left-center.vue";
import LeftBottom from "@/views/home/left-bottom.vue";
import CenterTop from "@/views/home/center-top.vue";
import CenterMap from "@/views/home/center-map.vue";
import CenterFloat from "@/views/home/center-float.vue";
import CenterBottom from "@/views/home/center-bottom.vue";
import RightTop from "@/views/home/right-top.vue";
import RightCenter from "@/views/home/right-center.vue";
import RightBottom from "@/views/home/right-bottom.vue";

const props = defineProps({
  dateArray: {
    type: Array,
    default: () => []
  }
})
</script>
<style scoped lang="scss">
.container-box {
  width: 100%;
  display: flex;
  min-height: calc(100% - 100px);
  justify-content: space-between;
  margin-top: 10px;

  .container-left, .container-right {
    display: flex;
    flex-direction: column;
    position: relative;
    width: 540px;
    box-sizing: border-box;
    flex-shrink: 0;

    .container-left-top {
      height: 350px;
    }

    .container-left-center {
      height: 305px;
    }

    .container-left-bottom {
      height: 275px;
    }
  }

  .container-center-float {
    position: absolute;
    top: 300px;
    left: 520px;
    z-index: 2;
  }

  .container-center {
    flex: 1;
    margin: 0 24px;
    display: flex;
    flex-direction: column;

    .center_center-bottom {
      height: 315px;
    }
  }

  .container-right, .container-left {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    width: 540px;
    box-sizing: border-box;
    flex-shrink: 0;

    .container-right-top, .container-right-center, .container-right-bottom {
      height: 310px;
    }
  }
}
</style>
