<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>
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: 'src/assets/images/lab-translation.png'
        }
      ]
    }
  }
}
</script>

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

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

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