<template>
  <h2 class="contentTitle">其他课程资源</h2>
  <el-row :gutter="20">
    <el-col :span="6">
      <div class="grid-content" @click="openApplication('project')">
        <!-- <router-link to="/iframe/其他课程资源/课程管理"> -->
        <img :src="Img1" alt="">
        <div>
          <span>创建课程</span>
          <p>教师自定义创建个人人工智能课程教学资源。</p>
        </div>
        <!-- </router-link> -->

      </div>
    </el-col>
    <el-col :span="6">
      <div class="grid-content" @click="openApplication('studentStudy')">
        <!-- <router-link to="/iframe/其他课程资源/课程中心"> -->
        <img :src="Img2" alt="">
        <div>
          <span>拓展课程</span>
          <p>教师使用预置或自定义补充资源开展授课。</p>
        </div>
        <!-- </router-link> -->
      </div>
    </el-col>
  </el-row>
</template>
<script setup>
import { ref } from 'vue';
import Img1 from '@/assets/icon/课程管理.png'
import Img2 from '@/assets/icon/课程中心.png'
import Img3 from '@/assets/icon/学生评价icon.png'

const openApplication = (type) => {
  top.U.MD.D.I.openApplication(type)
}
</script>
<style lang="scss" scoped>
.el-row {
  margin-bottom: 20px;

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

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


      img {
        width: 56px;
      }

      div {
        position: absolute;
        left: 80px;
        top: 16px;
        cursor: pointer;
        span {
          color: rgba(0, 0, 0, 0.9);
          font-size: 14px;
          margin-bottom: 10px;
          font-weight: 400;
        }

        p {
          color: rgba(0, 0, 0, 0.4);
          font-size: 12px;
          padding-right: 20px;
        }
      }
    }
  }


}

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