<template>
  <div class="app-container">
    <el-card style="margin-top: 20px">
      <template #header>
        <div>快捷功能</div>
      </template>
      <el-row :gutter="20">
        <el-col :span="4">
          <router-link to="/technology/release">
            <div class="menu-item">
              <el-avatar :icon="Box" />
              <div class="title">发布成果</div>
            </div>
          </router-link>
        </el-col>
        <el-col :span="4">
          <router-link to="/demand/release">
            <div class="menu-item">
              <el-avatar :icon="Help" />
              <div class="title">发布需求</div>
            </div>
          </router-link>
        </el-col>
      </el-row>
    </el-card>
  </div>
</template>

<script setup>
import { ref } from "vue";
import { Box, Help } from "@element-plus/icons-vue";

const flag = ref(true);
</script>

<style lang="scss" scoped>
:deep(el-card__header) {
  padding-top: 0;
  padding-bottom: 0;

  div {
    height: 40px;
    line-height: 40px;
  }
}

.surplus-currency {
  background-image: url("@/assets/index_banner.png");
  margin-bottom: 20px;
  height: 150px;
  color: white;
  background-color: #f2f2f2;
  padding: 20px 50px;

  ._tit {
    font-size: 24px;
    font-weight: 700;
    color: #bebebe;

    div {
      font-size: 18px;
      // color: #000;
    }
  }
}

.vip-box {
  height: auto;
  // background-color: yellow;
}

.menu-item {
  display: flex;
  flex-direction: column;
  align-items: center;

  :deep(.el-avatar--icon) {
    background-color: #409eff;
  }

  .title {
    margin-top: 20px;
  }
}
</style>
