<template>
  <div class="full nav-page">
    <div class="flex flex-wrap">
      <div class="radius-base m-b-base m-r-base nav-card">专家卷浏览</div>
      <router-link v-show="hasPermissions('/expert/sample')" to="/expert/sample">
        <div class="radius-base fill-blank m-b-base m-r-base nav-item">
          <div class="full-w">
            <img class="nav-img" src="@img/RF卷.png" alt="" />
            <div class="m-t-extra-base nav-title">RF卷</div>
          </div>
        </div>
      </router-link>
      <router-link v-show="hasPermissions('/expert/standard')" to="/expert/standard">
        <div class="radius-base fill-blank m-b-base m-r-base nav-item">
          <div class="full-w">
            <img class="nav-img" src="@img/标准卷.png" alt="" />
            <div class="m-t-extra-base nav-title">标准卷</div>
          </div>
        </div>
      </router-link>
      <router-link v-show="hasPermissions('/expert/assess')" to="/expert/assess">
        <div class="radius-base fill-blank m-b-base m-r-base nav-item">
          <div class="full-w">
            <img class="nav-img" src="@img/强制考核卷.png" alt="" />
            <div class="m-t-extra-base nav-title">强制考核卷</div>
          </div>
        </div>
      </router-link>
      <router-link v-show="hasPermissions('/expert/training')" to="/expert/training">
        <div class="radius-base fill-blank m-b-base m-r-base nav-item">
          <div class="full-w">
            <img class="nav-img" src="@img/AB培训卷.png" alt="" />
            <div class="m-t-extra-base nav-title">AB培训卷</div>
          </div>
        </div>
      </router-link>
      <router-link v-show="hasPermissions('/expert/expert')" to="/expert/expert">
        <div class="radius-base fill-blank m-b-base nav-item">
          <div class="full-w">
            <img class="nav-img" src="@img/专家卷挑选.png" alt="" />
            <div class="m-t-extra-base nav-title">专家卷挑选</div>
          </div>
        </div>
      </router-link>
    </div>
  </div>
</template>

<script setup lang="ts" name="ExpertNav">
/** 专家卷浏览导航页 */
import useNavPermissions from '@/hooks/useNavPermissions'

const { hasPermissions } = useNavPermissions()
</script>

<style scoped lang="scss">
.nav-page {
  padding: 160px;
  .nav-card {
    width: 420px;
    height: 180px;
    background: url(@img/nav-page-card.png) no-repeat center center / cover;
    padding: 32px;
    font-size: 22px;
    color: $color--white;
  }
  .nav-item {
    width: 200px;
    height: 180px;
    text-align: center;
    display: flex;
    place-items: center;
    cursor: pointer;
    &:hover {
      box-shadow: 0px 0px 8px $ShadowColor;
    }
    .nav-img {
      width: 64px;
      height: 64px;
    }
    .nav-title {
      color: $PrimaryPlusFontColor;
      font-size: $MediumFont;
    }
  }
}
</style>
