<template>
  <div class="out-div">
    <div class="header">
      <div class="header-span-div">
        <div class="first">你好，</div>
        <div class="second">欢迎登录智慧防灭火平台</div>
      </div>
    </div>
    <div class="item-div">
      <div class="item" @click="navigate">
        <div class="item-header"></div>
        <div class="item-icon"></div>
        <div class="item-title">数据中心</div>
        <div class="enter-mark-div">
          <div class="enter-mark"></div>
        </div>
      </div>
    </div>
  </div>
</template>

<script setup lang="ts">
import {} from "vue"
import { useRouter } from 'vue-router';

const router = useRouter();

const navigate = () => {
  router.push('/datamaintenance/datamanagement');
}
</script>

<style lang="scss" scoped>
.out-div{
  height: 100%;
  background-color: #E0E5ED;
  .header{
    width: 100%;
    height: 176px;
    background-image: url('/public/datamaintenance/header_background.png');
    background-size: 100% 100%;
    position: relative;
    .header-span-div{
      position: absolute;
      top: 28px;
      left: 99px;
      width: 230px;
      height: 70px;
      .first{
        font-family: PingFangSC-Medium;
        font-weight: 500;
        font-size: 30px;
        color: #FFFFFF;
        line-height: 42px;
        letter-spacing: 1px;
        text-align: left;
        font-style: normal;
        text-transform: none;
      }
      .second{
        font-family: PingFangSC-Regular;
        font-weight: 500;
        font-size: 20px;
        color: #FFFFFF;
        line-height: 42px;
        text-align: left;
        font-style: normal;
        text-transform: none;
      }
    }
  }
  .item-div{
    padding-left: 99px;
    position: relative;
    top: -41px;
    .item{
      width: 365px;
      height: 349px;
      background: #FFFFFF;
      border-radius: 8px;
      position: relative;
      cursor: pointer;
      .item-header{
        height: 125px;
        background-image: url('/public/datamaintenance/item_header_background.png');
        background-size: 100% 100%;
        margin-bottom: 90px;
      }
      .item-icon{
        position: absolute;
        top: 50px;
        left: 50%;
        transform: translateX(-50%);
        width: 258px;
        height: 141px;
        background-image: url('/public/datamaintenance/data_center_icon.png');
        background-size: 100% 100%;
      }
      .item-title{
        height: 42px;
        font-family: PingFangSC-Medium;
        font-weight: 500;
        font-size: 30px;
        color: #191919;
        text-align: center;
        line-height: 42px;
        letter-spacing: 1px;
        font-style: normal;
        text-transform: none;
        margin-bottom: 7px;
      }
      .enter-mark-div{
        height: 25px;
        display: flex;
        align-items: center;
        justify-content: center;
        .enter-mark{
          width: 25px;
          height: 25px;
          background-image: url('/public/datamaintenance/enter_mark.png');
          background-size: 100% 100%;
        }
      }
      
    }
  }
}

</style>
