Got something going
This commit is contained in:
23
components/LinkIconText.vue
Normal file
23
components/LinkIconText.vue
Normal file
@@ -0,0 +1,23 @@
|
||||
<script setup lang="ts">
|
||||
defineProps({
|
||||
imgSrc: {
|
||||
type: String,
|
||||
required: true
|
||||
},
|
||||
link: {
|
||||
type: String,
|
||||
required: true
|
||||
}
|
||||
})
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<div>
|
||||
<a :href="link">
|
||||
<img :src="imgSrc" class="h-14 mx-auto"/>
|
||||
<div class="text-lg text-white text-center">
|
||||
<slot></slot>
|
||||
</div>
|
||||
</a>
|
||||
</div>
|
||||
</template>
|
||||
Reference in New Issue
Block a user