Chamilo is a learning management system focused on ease of use and accessibility
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
chamilo-lms/assets/vue/components/course/ShortCutList.vue

36 lines
724 B

<template>
<div class="bg-gray-100 rounded-xl p-2 shadow-md">
<div class="flex flex-col flex-center">
<div class="mx-auto">
<a :href="goToShortCut(shortcut)">
<img
:alt="shortcut.title"
:src="`/img/tools/${shortcut.type}.png`"
class="w-32 h-32 object-contain"
>
</a>
</div>
<div class="flex flex-row gap-2 text-gray-500 pt-3">
<a>
{{ shortcut.title }}
</a>
</div>
</div>
</div>
</template>
<script setup>
// eslint-disable-next-line no-undef
defineProps({
shortcut: {
type: Object,
required: true
},
goToShortCut: {
type: Function,
required: true
}
});
</script>