<template>
  <div
    class="app-container dashboard"
    :style="{ background: COLOR.DASHBOARD_BACKGROUND, color: COLOR.APP_COLOR }"
  >
    <div class="dashboard-box">
      <div class="item" @click="$router.push('/monitor')">
        <img class="w300" src="/images/img5.png" alt="" />
        <span>监控中心</span>
      </div>
      <div class="item" @click="$router.push('/upload_type_selected')">
        <img class="w300" src="/images/img6.png" alt="" />
        <span>数据上传</span>
      </div>
      <div class="item" @click="$router.push('/ServiceList')">
        <img class="w300" src="/images/img7.png" alt="" />
        <span>服务中心</span>
      </div>
      <div class="item" @click="$router.push('/mars3d')" >
        <img class="w300" src="/images/img8.png" alt="" />
        <span>应用管理</span>
      </div>
    </div>
  </div>
</template>

<script>
export default {
  name: "Dashboard",
};
</script>

<style scoped>
.dashboard {
  justify-content: center;
  align-items: center;
}

.dashboard-box {
  width: 830px;
  height: 700px;
  display: flex;
  justify-content: space-around;
  align-items: center;
  flex-wrap: wrap;
}

.dashboard-box .item {
  width: 300px;
  height: 250px;
  background: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  border-radius: 20px;
  flex-direction: column;
  cursor: pointer;
}

.dashboard-box .item img {
  width: 300px;
  height: 300px;
  margin-top: -130px;
}

.dashboard-box .item span {
  font-size: 36px;
  background-image: linear-gradient(#ffffff, #2773fe);
  -webkit-background-clip: text;
  color: transparent;
}
</style>