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.
38 lines
736 B
38 lines
736 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.name"
|
|
: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.name }}
|
|
</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>
|
|
|