<template>
  <h2 class="contentTitle">实践中心</h2>
  <el-row :gutter="20">
    <el-col :span="6">
      <div class="grid-content" @click="openApplication('szdjgCocooroboX')">
        <!-- <router-link to="/iframe/实践中心/图形化"> -->
        <img :src="GraphicsImg" alt="">
        <div>
          <span>图形化</span>
          <p>通过组合图形化程序进行人工智能硬件控制程序编写。</p>
        </div>
        <!-- </router-link> -->

      </div>
    </el-col>
    <el-col :span="6">
      <div class="grid-content" @click="openApplication('szdjgPython')">
        <!-- <router-link to="/iframe/实践中心/Python"> -->
        <img :src="pythonImg" alt="">
        <div>
          <span>Python</span>
          <p>通过编写Python语言进行人工智能硬件控制程序编写。</p>
        </div>
        <!-- </router-link> -->

      </div>
    </el-col>
  </el-row>
</template>
<script setup>
import { ref } from 'vue';
import GraphicsImg from '@/assets/icon/图形化icon-1.png'
import pythonImg from '@/assets/icon/Frame.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;
      cursor: pointer;

      img {
        width: 56px;
      }

      div {
        position: absolute;
        left: 80px;
        top: 16px;

        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>