<template>
  <div class="dashboard-container">

    <div class="content-top">
      <div class="search-box">
        <div class="logo">
         <img src="~@/assets/nav/logo.png">
        </div>
        <div class="down-wrapper">
          <div class="tri"></div>
        </div>
        <div class="search-icon">
          <img src="~@/assets/nav/搜索.png">
        </div>
      </div>
    </div>

    <div class="content-bottom">
      <div class="content-wrapper">
        <div class="content-box" @click="toAttractPage">
          <img src="~@/assets/nav/合作.png">
          <div>
            <h1>信息采集</h1>
          </div>
        </div>
        <div class="clearfix"></div>
      </div>
      <div class="clearfix"></div>
    </div>
  </div>
</template>

<script>
export default {
  name: 'dashboard-admin',
  components: {
    // PanelGroup
  },

  methods: {
    toAttractPage: function () {
      this.$router.push({
        path: '/forms/index'
      })
    },
  }
}

</script>

<style rel="stylesheet/scss" lang="scss" scoped>
.dashboard-editor-container {
  padding: 20px;
  background-color: rgb(240, 242, 245);
  min-height: calc(100vh - 84px);

  .chart-wrapper {
    background: #fff;
    padding: 16px 16px 0;
    margin-bottom: 32px;
  }

  .component-item {
    min-height: 100px;
  }
}

.product {
  max-width: 350px;
  border: 1px solid #dfdfdf;
  padding: 0;
  border-radius: 8px;
  margin-bottom: 20px;
  background-color: white;

  .title {
    padding: 12px;
    text-align: center;
    background-color: #f4f4f4;
    border-radius: 8px 8px 0 0;
  }

  h2 {
    margin: 24px 0 12px;
  }

  .content {
    h2 {
      text-align: center;
      font-size: 30px;
    }

    .tips {
      padding: 0 35px 30px 30px;

      div {
        padding: 8px 0;
        font-size: 15px;

        .el-icon-check {
          width: 30px;
          font-size: 1.5em;
          color: #35affb;
          vertical-align: middle;
        }
      }

      .color-prime {
        color: #338ed6;
        font-weight: 650;

        .el-icon-check {
          color: gray;
        }
      }

      .color-enterprise {
        color: #f56c6c;
        font-weight: 800;

        .el-icon-check {
          color: #67c23a;
        }
      }
    }
  }
}

.action {
  text-align: center;
  padding-bottom: 24px;
  padding: 12px 18px;
  display: flex;
  background: #f4f4f4;

  .btn {
    flex: 1;
    margin: 6px;
    padding: 6px 12px;
    line-height: 26px;
    font-size: 16px;
    background: #fff;
    position: relative;
    cursor: pointer;
    display: inline-block;
    white-space: nowrap;
    border-radius: 4px;
    -ms-touch-action: manipulation;
    touch-action: manipulation;
    font-weight: 700;
    text-decoration: none;
    border: 2px solid #4893ff;
    background-color: transparent;
    color: #4893ff;
    transition: all 0.3s;
  }

  a.btn.std {
    color: #0dafff;
    border-color: #0dafff;
  }

  a.btn.premier {
    color: #d67735;
    border-color: #ffa669;
  }
}

.standard .title {
  background: #eaeaea;
  color: #666;
}

.prime {
  margin: 0 auto;
}

.prime .title {
  background: linear-gradient(#338ed6, #4f6eab);
  color: #fff;
}

.enterprise {
  margin-left: auto;
  margin-right: 0;
}

.enterprise .title {
  background: linear-gradient(#807979, #484a4e);
  color: #fff;
}

</style>

<style>
.dashboard-container {
  padding-top: 20px;
  background-image: url('~@/assets/nav/bg.png');
  height: 100%;
}

.clearfix {
  clear: both;
}

.content-top {
  height: 10%;
  padding-top: 3%;
  padding-bottom: 5%;
}

.search-box {
  width: 830px;
  height: 53px;
  background-color: #FFFFFF;
  text-align: center;
  margin: auto;
  border-radius: 3px;
  border: 1px solid #E1E1E1;
  box-shadow: 0px 1px 1px 0px #D4D4D4;
}

.search-box .logo {
  width: 50px;
  height: 50px;
  padding-left: 4px;
  padding-top: 10px;
  float: left;
}

.search-box .logo img {
  width: 70%;
  height: auto;
}

.down-wrapper {
  width: 50px;
  height: 54px;
  float: left;
  padding-top: 26px;
  padding-left: 4px;
}

.down-wrapper .tri {
  width: 0px;
  height: 0px;
  border-top: 6px solid rgba(179, 179, 179, 1.00);
  border-right: 4px solid transparent;
  border-bottom: 6px solid transparent;
  border-left: 4px solid transparent;
}

.search-icon {
  float: right;
  padding-right: 20px;
  padding-top: 18px;
}

.content-bottom {
  height: 80%;
  width: auto;
  box-sizing: border-box;
}

.content-wrapper {
  height: 100%;
  width: 80%;
  margin: auto;
}

.content-box {
  width: calc(20% - 30px);
  height: 180px;
  box-sizing: border-box;
  float: left;
  margin-left: 7.5px;
  margin-right: 7.5px;
  border-radius: 4px;
  padding-top: 40px;
  margin-bottom: 20px;
  cursor: pointer;
  background: linear-gradient(90deg, #0169CB 0%, #0085FC 100%);
  box-shadow: 0px 14px 26.39px 2.61px rgba(0, 0, 0, 0);
  position: relative;
  transition: all 0.6s;
}

.content-box:hover {
  top: -10px;
  opacity: 0.9;
  transition: 0.8s;
  transform: scale(1.1);
  box-shadow: 0px 14px 26.39px 2.61px rgba(87, 18, 216, 0.699);
}

.content-box h1 {
  color: #fff;
  text-align: center;
  font-size: 24px;
}

.content-box img {
  display: block;
  margin: auto;
}

</style>
