Files
CRM_Montzar/apps/web/src/components/brand/MentoAiAvatar.vue
T

59 lines
1.2 KiB
Vue
Raw Normal View History

<script setup lang="ts">
withDefaults(
defineProps<{
size?: number;
bubble?: string;
showBubble?: boolean;
}>(),
{
size: 148,
bubble: 'من دستیار فروش هوشمند سیستم هستم',
showBubble: true,
},
);
</script>
<template>
<div class="ai-avatar" :style="{ width: `${size}px` }">
<div v-if="showBubble" class="bubble">{{ bubble }}</div>
<img
class="img"
src="/brand/mento-ai-avatar.png"
alt="دستیار هوشمند منتو"
:width="size"
:height="size"
/>
</div>
</template>
<style scoped>
.ai-avatar {
display: grid;
justify-items: center;
gap: 0.4rem;
}
.bubble {
max-width: 170px;
padding: 0.55rem 0.75rem;
border-radius: 16px 16px 4px 16px;
background: rgba(255, 255, 255, 0.18);
backdrop-filter: blur(8px);
color: #fff;
font-size: 0.78rem;
line-height: 1.45;
text-align: center;
border: 1px solid rgba(255, 255, 255, 0.18);
}
.img {
width: 100%;
height: auto;
display: block;
object-fit: contain;
background: transparent;
/* soft presence without rectangular plate */
filter: drop-shadow(0 10px 18px rgba(14, 165, 233, 0.28));
}
</style>