<template>
    <div class="index"> 
      <div class="index-left">
  
      </div>
      <div class="index-right">
        <div class="one-card">
          <h2>数据显示</h2>
            <div class="one-card-content">
              <div>
                <p>降雨量</p>
                <font>12</font>
                <font>mm/s</font>
              </div>
              <div>
                <p>温度</p>
                <font>23</font>
                <font>℃</font>
              </div>
              <div>
                <p>空气湿度</p>
                <font>22</font>
                <font>%</font>
              </div>
              <div>
                <p>蒸发量</p>
                <font>9</font>
                <font>mm</font>
              </div>
              <div>
                <p>土壤湿度</p>
                <font>56</font>
                <font>%</font>
              </div>
              <div>
                <p>风速</p>
                <font>3</font>
                <font>m/s</font>
              </div>
            </div>
        </div>
      </div>
    </div>
  </template>
  
  <script>
  import Menus from "@/components/Menus.vue";
  import { onMounted, reactive, ref, toRefs, nextTick } from "vue";
  export default {
    name: 'index',
    components: {
      Menus
    },
    setup() {
      const state = reactive({
      })
    }
  }
  </script>
  <style lang="scss" scoped>
  .mt10 {
      margin-top: 10px;
    }
    .index {
      width: 100%;
      height:100%;
      display: flex;
      justify-content: space-between;
      .index-left {
        width: 74%;
        border: 1px solid rgb(179, 174, 174);
      }
      .index-right {
        width: 25%;
        display: flex;
        justify-content: space-between;
        flex-direction: column;
        .one-card {
          width: 100%;
          height: 100%;
          box-shadow: 0 0 8px #99ACB0 inset;
          
          h2 {
            padding: 20px;
            text-align: center;
          }
          .one-card-content {
            width: 100%;
            height: 90%;
            display: flex;
            flex-wrap: wrap;
            justify-content: space-around;
            align-items: center;

            >div {
              width: 40%;
              height: 30%;
              border: 1px solid rgb(197, 195, 195);
              display: flex;
              flex-direction: column;
              background:#d8e8f7;
              // align-items: center;
              justify-content: center;
              text-align: center;
              padding: 10px;
              border-radius: 10px;
              font-size: 26px;
              line-height: 45px;
            }
          }
        }
      }
    }
  </style>