<template>
  <div class="safe">
    <div class="bottomCard">
      <div class="cardLine">
        <div class="lineItem card">
          <Safecom
            title="风机报警"
            deviceType="windturbine"
            alarmType="windturbine"
          />
        </div>
        <div class="lineItem card">
          <Safecom
            title="风机预警"
            deviceType="windturbine"
            alarmType="custom"
          />
        </div>
      </div>
      <div class="cardLine" v-if="false">
        <div class="lineItem card">
          <Safecom
            title="光伏报警"
            deviceType="inverter"
            alarmType="inverter"
          />
        </div>

        <div class="lineItem card">
          <Safecom title="光伏预警" deviceType="inverter" alarmType="custom" />
        </div>
        <!-- <div class="lineItem card">
          <Safecom
            title="升压站事件"
            deviceType="booststation"
            alarmType="custom"
          />
        </div> -->
      </div>
      <div class="cardLine">
        <div class="lineItem card" style="height: 100%">
          <Safecom
            title="升压站报警"
            deviceType="booststation"
            alarmType="booststation"
          />
        </div>
        <!-- <div class="lineItem card">
          <Safecom
            title="升压站事件"
            deviceType="booststation"
            alarmType="custom"
          />
        </div> -->
      </div>
    </div>
  </div>
</template>
<script setup>
import dayjs from "dayjs";
import Safecom from "@/views/IntegratedAlarm/safe/components/safecomponent.vue";
</script>

<style lang="less" scoped>
.safe {
  width: calc(100% - 20px);
  height: calc(100% - 40px - 50px);
  padding: 20px 10px;

  .bottomCard {
    display: flex;
    align-items: center;
    width: 100%;
    height: 100%;
    justify-content: space-around;
    .cardLine {
      // width: calc(100% / 3 - 30px);
      width: calc(100% / 2 - 30px);
      height: 100%;
      display: flex;
      flex-direction: column;
      justify-content: space-between;
      align-items: center;
      .lineItem {
        width: 100%;
        height: calc(100% / 2 - 30px);
      }
    }
  }
}

.card {
  padding: 10px;
  border-radius: 4px;
  background-color: #161f1e;
  overflow: hidden;
  color: #fff;
  -webkit-transition: 0.3s;
  transition: 0.3s;
  box-shadow: 0 2px 12px 0 rgb(0 0 0 / 10%);
}
</style>
<style lang="scss">
.notificatBox {
  width: 100%;

  .notificatP {
    color: rgb(7, 7, 7);
  }

  .btn {
    display: flex;
    justify-content: flex-end;
  }
}

.scrollbarC {
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  align-content: flex-start;
}
</style>
