<template>
  <h2 class="contentTitle">资源中心</h2>
  <el-row :gutter="20">
    <el-col :span="6">
      <router-link to="/iframe/资源中心/情绪识别">
        <div class="grid-content">
          <img :src="emotionImg" alt="">
          <div>
            <p class="title">情绪识别</p>
            <p title="以人脸面部检测为基础，对面部情绪进行识别与分类。">以人脸面部检测为基础，对面部情绪进行识别与分类。</p>
          </div>
        </div>
      </router-link>
    </el-col>
    <el-col :span="6">
      <router-link to="/iframe/资源中心/物体识别">
        <div class="grid-content">
          <img :src="objectImg" alt="">
          <div>
            <p class="title">物体识别</p>
            <p title="以预置物体识别模型为基础，实现图片或视频中的物体识别。">以预置物体识别模型为基础，实现图片或视频中的物体识别。</p>
          </div>
        </div>
      </router-link>
    </el-col>
    <el-col :span="6">
      <router-link to="/iframe/资源中心/语音识别">
        <div class="grid-content">
          <img :src="speechImg" alt="">
          <div>
            <p class="title">语音识别</p>
            <p title="实现普通话、英语、粤语三种录制语言的自动语音识别。">实现普通话、英语、粤语三种录制语言的自动语音识别。</p>
          </div>
        </div>
      </router-link>
    </el-col>
    <el-col :span="6">
      <a href="//aihub.cocorobo.cn/" target="_blank">
        <div class="grid-content">
          <img :src="aihub" alt="">
          <div>
            <p class="title">AI原理体验</p>
            <p title="提供原理、视觉、语音、文本、艺术多个领域的AI创新体验.">提供原理、视觉、语音、文本、艺术多个领域的AI创新体验。</p>
          </div>
        </div>
      </a>
    </el-col>
  </el-row>
</template>
<script setup>
import { ref } from 'vue';
import emotionImg from '@/assets/icon/情绪识别icon.png'
import objectImg from '@/assets/icon/物体识别icon.png'
import speechImg from '@/assets/icon/语音识别icon.png'
import aihub from '@/assets/img/aihub.png'
</script>
<style lang="scss" scoped>
.el-row {
  margin-bottom: 20px;

  .el-col {
    border-radius: 4px;

    a {
      text-decoration: none;
      .grid-content {
        border-radius: 4px;
        min-height: 36px;
        background: #fff;
        border-radius: 10px;
        position: relative;
        padding: 16px;
        display: flex;
        align-items: center;

        img {
          width: 56px;
          height: fit-content;
          margin-right: 5px;
        }

        .course_down {
          // display: inline-block;
          padding: 5px 8px;
          position: absolute;
          background-color: #efefef;
          top: 5px;
          right: 8px;
          border-radius: 5px;
          font-size: 12px;
          color: #555;
          cursor: pointer;
          z-index: 10;
        }

        div {
          // position: absolute;
          // left: 80px;
          // top: 16px;
          width: calc(100% - 56px);
          cursor: pointer;


          .title {
            display: -webkit-box;
            -webkit-line-clamp: 1;
            width: 100%;
            color: rgba(0, 0, 0, 0.9);
            font-size: 14px;
            margin-bottom: 10px;
            font-weight: 400;
            text-overflow: ellipsis;
            overflow: hidden;
            word-break: break-all;
          }

          p {
            color: rgba(0, 0, 0, 0.4);
            font-size: 12px;
            padding-right: 20px;
            overflow: hidden;
            text-overflow: ellipsis;
            -webkit-line-clamp: 2;
            display: -webkit-box;
            -webkit-box-orient: vertical;
          }
        }
      }
    }
  }


}

.el-row:last-child {
  margin-bottom: 0;
}
</style>