Polish dashboard UI to match Mento mockup with IRANSans and brand assets.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
2026-09-02 16:06:17 +03:30
co-authored by Cursor
parent 2b0c985d19
commit 574feedfa5
46 changed files with 960 additions and 422 deletions
+60 -26
View File
@@ -6,18 +6,24 @@ withDefaults(
showBubble?: boolean;
}>(),
{
size: 148,
bubble: 'من دستیار فروش هوشمند سیستم هستم',
size: 170,
bubble: 'من دستیار هوشمند\nسیستم هستم 👋',
showBubble: true,
},
);
</script>
<template>
<div class="ai-avatar" :style="{ width: `${size}px` }">
<div v-if="showBubble" class="bubble">{{ bubble }}</div>
<div class="mento-bot" :style="{ '--bot-size': `${size}px` }">
<div v-if="showBubble" class="popup">
<span>من دستیار هوشمند</span>
<span>سیستم هستم 👋</span>
<svg class="tail" viewBox="0 0 10 14" aria-hidden="true">
<path d="M10 0 L0 7 L10 14 Z" fill="#fff" />
</svg>
</div>
<img
class="img"
class="bot-img"
src="/brand/mento-ai-avatar.png"
alt="دستیار هوشمند منتو"
:width="size"
@@ -27,32 +33,60 @@ withDefaults(
</template>
<style scoped>
.ai-avatar {
display: grid;
justify-items: center;
gap: 0.4rem;
.mento-bot {
position: relative;
width: var(--bot-size);
display: flex;
align-items: flex-end;
justify-content: center;
overflow: visible;
}
.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%;
.bot-img {
width: var(--bot-size);
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));
filter: drop-shadow(0 10px 22px rgba(34, 211, 238, 0.45));
position: relative;
z-index: 1;
}
.popup {
position: absolute;
/* کمی پایین‌تر نسبت به بالای ربات */
top: 1.1rem;
left: calc(100% + 6px);
z-index: 2;
width: max-content;
max-width: 118px;
padding: 0.48rem 0.65rem 0.55rem;
border-radius: 14px;
background: #fff;
color: #0f172a;
font-size: 0.68rem;
font-weight: 600;
line-height: 1.4;
text-align: right;
box-shadow: 0 10px 24px rgba(15, 23, 42, 0.14);
display: grid;
gap: 0.06rem;
}
.popup span {
display: block;
}
/* فلش روی ضلع چپ، کمی پایین‌تر از وسط */
.tail {
position: absolute;
left: 0;
top: 62%;
width: 10px;
height: 14px;
transform: translate(-100%, -50%);
filter: drop-shadow(-1px 1px 1px rgba(15, 23, 42, 0.08));
pointer-events: none;
}
</style>