<!--
 * @Author: Do not edit
 * @Date: 2023-12-27 16:41:40
 * @LastEditTime: 2024-01-09 14:00:12
 * @LastEditors: DY
 * @Description: 首页
-->
<template>
  <div class="home">
    <div class="centerDiv">
      <div class="img1" @click="toQuality">
        <p class="title">质量收集器</p>
      </div>
      <div class="img" @click="toScrap">
        <p class="title">报废管理</p>
      </div>
    </div>
  </div>
</template>

<script>

export default {
  name: 'HomeView',
  data () {
    return {
    }
  },
  methods: {
    toQuality () {
      this.$router.push({
        path: 'quality'
      })
    },
    toScrap () {
      this.$router.push({
        path: 'scrap'
      })
    }
  }
}
</script>

<style scoped>
.title {
  /* width: 175px;
  height: 45px; */
  font-size: 32px;
  font-family: PingFangSC, PingFang SC;
  font-weight: 400;
  color: #000000;
  line-height: 45px;
  letter-spacing: 3px;
  margin-top: 395px;
}
.img {
  width: 428px;
  height: 607px;
  background-image: url('./../assets/scrap.png');
  background-size: cover;
}
.img1 {
  width: 428px;
  height: 607px;
  background-image: url('./../assets/quality.png');
  background-size: cover;
}
.centerDiv {
  display: flex;
  justify-content: center;
  flex-direction: row;
  align-items: center;
  height: 100vh;
  gap: 18px;
}
.home {
  background-image: url('./../assets/home_bg.png');
  height: 100vh;
  width: 100vw;
  background-size: cover;
}
</style>
