mirror of
https://github.com/lingble/chatwoot.git
synced 2025-11-01 11:37:58 +00:00
Fixes https://github.com/chatwoot/chatwoot/issues/8436 Fixes https://github.com/chatwoot/chatwoot/issues/9767 Fixes https://github.com/chatwoot/chatwoot/issues/10156 Fixes https://github.com/chatwoot/chatwoot/issues/6031 Fixes https://github.com/chatwoot/chatwoot/issues/5696 Fixes https://github.com/chatwoot/chatwoot/issues/9250 Fixes https://github.com/chatwoot/chatwoot/issues/9762 --------- Co-authored-by: Pranav <pranavrajs@gmail.com> Co-authored-by: Sivin Varghese <64252451+iamsivin@users.noreply.github.com>
57 lines
1.2 KiB
Vue
57 lines
1.2 KiB
Vue
<script setup>
|
|
defineProps({
|
|
imageSrc: {
|
|
type: String,
|
|
default: '',
|
|
},
|
|
imageAlt: {
|
|
type: String,
|
|
default: '',
|
|
},
|
|
title: {
|
|
type: String,
|
|
default: '',
|
|
},
|
|
description: {
|
|
type: String,
|
|
default: '',
|
|
},
|
|
to: {
|
|
type: String,
|
|
default: '',
|
|
},
|
|
linkText: {
|
|
type: String,
|
|
default: '',
|
|
},
|
|
});
|
|
</script>
|
|
|
|
<template>
|
|
<div
|
|
class="h-full w-full bg-white dark:bg-slate-900 border border-slate-100 dark:border-white/10 rounded-lg p-4 flex flex-col"
|
|
>
|
|
<div class="flex-1 flex items-center justify-center">
|
|
<img :src="imageSrc" :alt="imageAlt" class="h-36 w-auto mx-auto" />
|
|
</div>
|
|
<div class="mt-auto">
|
|
<p
|
|
class="text-base text-slate-800 dark:text-slate-100 font-interDisplay font-semibold tracking-[0.3px]"
|
|
>
|
|
{{ title }}
|
|
</p>
|
|
<p class="text-slate-600 dark:text-slate-400 text-sm">
|
|
{{ description }}
|
|
</p>
|
|
<router-link
|
|
v-if="to"
|
|
:to="{ name: to }"
|
|
class="no-underline text-woot-500 text-sm font-medium"
|
|
>
|
|
<span>{{ linkText }}</span>
|
|
<span class="ml-2">{{ `→` }}</span>
|
|
</router-link>
|
|
</div>
|
|
</div>
|
|
</template>
|