<template>
  <div class="directories_containter">
    <div
      class="directory_container"
      v-for="(directory, index) in directories"
      :key="index"
      @click="view_link(directory)"
    >
      <p>{{ directory.title_text }}</p>
      <img class="directory_cover_image" :src="directory.cover_picture" />
      <p>{{ directory.summary_text }}</p>
    </div>
  </div>
</template>
<script>
import cover_picture from '@/assets/images/lab-translation.png'
export default {
  name: 'LabHome',
  components: {},
  computed: {},
  mounted() {},
  methods: {
    view_link(directory) {
      this.mnx_navToLink(directory.path)
    }
  },
  data() {
    return {
      directories: [
        {
          path: 'machine-translation',
          title_text: 'Machine Translation',
          summary_text: 'Translate lanuages leverage AI power',
          icon_picture: '',
          cover_picture: cover_picture
        },
        {
          path: 'task-completion',
          title_text: 'Task Completion',
          summary_text: 'Respone for a user prompty',
          icon_picture: '',
          cover_picture: cover_picture
        },
        {
          path: 'multiturn-chat',
          title_text: 'Multi turn chat',
          summary_text: 'Respone based on multi turn messages ',
          icon_picture: '',
          cover_picture: cover_picture
        },
        {
          path: 'image-generation',
          title_text: 'image generation',
          summary_text: 'Generate a image based on user prompt',
          icon_picture: '',
          cover_picture: cover_picture
        }
      ]
    }
  }
}
</script>

<style scoped lang="scss">
.directories_containter {
  @extend .container;
}

.directory_container {
  @extend .container;
  cursor: pointer;
}

.directory_cover_image {
  height: 20vh;
}
</style>
