2026-09-01 16:05:29 +03:30
|
|
|
<script setup lang="ts">
|
|
|
|
|
withDefaults(
|
|
|
|
|
defineProps<{
|
|
|
|
|
size?: number;
|
|
|
|
|
bubble?: string;
|
|
|
|
|
showBubble?: boolean;
|
|
|
|
|
}>(),
|
|
|
|
|
{
|
2026-09-01 16:28:45 +03:30
|
|
|
size: 148,
|
2026-09-01 16:05:29 +03:30
|
|
|
bubble: 'من دستیار فروش هوشمند سیستم هستم',
|
|
|
|
|
showBubble: true,
|
|
|
|
|
},
|
|
|
|
|
);
|
|
|
|
|
</script>
|
|
|
|
|
|
|
|
|
|
<template>
|
|
|
|
|
<div class="ai-avatar" :style="{ width: `${size}px` }">
|
|
|
|
|
<div v-if="showBubble" class="bubble">{{ bubble }}</div>
|
2026-09-01 16:28:45 +03:30
|
|
|
<img
|
|
|
|
|
class="img"
|
|
|
|
|
src="/brand/mento-ai-avatar.png"
|
|
|
|
|
alt="دستیار هوشمند منتو"
|
|
|
|
|
:width="size"
|
|
|
|
|
:height="size"
|
|
|
|
|
/>
|
2026-09-01 16:05:29 +03:30
|
|
|
</div>
|
|
|
|
|
</template>
|
|
|
|
|
|
|
|
|
|
<style scoped>
|
|
|
|
|
.ai-avatar {
|
|
|
|
|
display: grid;
|
|
|
|
|
justify-items: center;
|
2026-09-01 16:28:45 +03:30
|
|
|
gap: 0.4rem;
|
2026-09-01 16:05:29 +03:30
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.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%;
|
2026-09-01 16:28:45 +03:30
|
|
|
height: auto;
|
|
|
|
|
display: block;
|
2026-09-01 16:05:29 +03:30
|
|
|
object-fit: contain;
|
2026-09-01 16:28:45 +03:30
|
|
|
background: transparent;
|
|
|
|
|
/* soft presence without rectangular plate */
|
|
|
|
|
filter: drop-shadow(0 10px 18px rgba(14, 165, 233, 0.28));
|
2026-09-01 16:05:29 +03:30
|
|
|
}
|
|
|
|
|
</style>
|