<template>
  <div class="body">
    <div class="contain">
      <div class="header">
        <div class="header-left">
          <img src="../assets/img/logo.png" alt />
          <h3>农村农业生态建设</h3>
        </div>
        <div class="menu">
          <div class="a-menu" @click="$router.push('/methane_upgrade')">
            沼气
          </div>
          <div class="a-menu" @click="$router.push('/biomass_energy_warm')">
            生物
          </div>
          <div
            class="a-menu"
            @click="$router.push('/biogas_manure_eco_agriculture')"
          >
            沼肥
          </div>
          <div
            class="a-menu"
            @click="$router.push('/renewable_energy_village')"
          >
            示范村
          </div>
        </div>
      </div>
    </div>
    <div class="content-cont">
      <div style="width: 100%; height: 100%">
        <!-- <keep-alive> -->
        <router-view />
        <!-- </keep-alive> -->
      </div>
    </div>
  </div>
</template>

<script>
export default {
  name: "Home",
  data() {
    return {
      // baseUrl: process.env.BASE_URL
    };
  },
  components: {
    // HelloWorld,
  },
};
</script>

<style scoped lang="less">
.body {
  width: 100%;
  height: 100%;
  .contain {
    position: relative;
    .header {
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      // height: 7vh;
      z-index: 300;
      box-sizing: border-box;
      text-align: left;
      padding-left: 1vw;
      background: linear-gradient(
        to bottom,
        rgba(0, 100, 200, 0.2),
        rgba(0, 200, 100, 0)
      );
      display: flex;
      justify-content: space-between;
      align-items: center;
      z-index: 500;
      .header-left {
        display: flex;
        align-items: center;
        img {
          height: 6vh;
          margin-right: 1vh;
        }
        h3 {
          font-size: 4.7vh;
          line-height: 10vh;
          font-weight: 700;
          letter-spacing: 0.1vh;
          color: @main-color;
          font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
        }
      }
      .menu {
        display: flex;
        align-items: center;
        margin-right: 40px;
        .a-menu {
          width: 50px;
          height: 50px;
          background-color: @main-color;
          margin-right: 20px;
          border-radius: 50%;
          line-height: 50px;
          text-align: center;
          color: aliceblue;
        }
      }
    }
  }

  .content-cont {
    width: 100vw;
    height: 100vh;
  }
}
</style>
