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>
+18 -10
View File
@@ -15,21 +15,25 @@ withDefaults(
<template>
<div class="mento-logo" :class="variant">
<span class="mark" :style="{ width: `${size}px`, height: `${size}px` }" aria-hidden="true">
<span
class="mark"
:style="{ width: `${size}px`, height: `${size}px`, borderRadius: `${Math.round(size * 0.3)}px` }"
aria-hidden="true"
>
<svg viewBox="0 0 64 64" fill="none" xmlns="http://www.w3.org/2000/svg">
<rect x="8" y="12" width="10" height="40" rx="5" fill="#2EB29B" />
<rect x="14" y="16" width="8" height="32" rx="4" fill="#fff" />
<path
d="M12 13c1.3-2.1 4.4-2.4 6.1-.6L34 28l5.4-5.1c1.7-1.6 4.5-1.4 5.9.5L47 26.2 33.6 39.3c-1.3 1.3-3.4 1.3-4.7 0L10.5 21.2 12 13Z"
fill="#134E4A"
d="M17 17.5c1-1.6 3.5-1.8 4.8-.5L36 30l4.3-4c1.4-1.3 3.6-1.2 4.7.4L44 27.5 33 37.5c-1.1 1-2.8 1-3.9 0L16.5 24.5 17 17.5Z"
fill="#134e4a"
/>
<path
d="M25.2 30.8 37.5 18.8c1.6-1.6 4.3-1.5 5.8.2L55 32.1l-3.2 3.3L41 25.3 30.2 35.8c-1.3 1.3-3.5 1.2-4.7-.1l-.3-.3Z"
fill="#2EB29B"
d="M27.5 32 38 21.5c1.3-1.3 3.4-1.2 4.6.2L50 29.5l-2.6 2.6L40 25.5 31 34c-1 1-2.8 1-3.8-.1l-.7-.9Z"
fill="#ecfdf5"
/>
<rect x="46" y="12" width="10" height="40" rx="5" fill="#134E4A" />
<rect x="42" y="16" width="8" height="32" rx="4" fill="#134e4a" />
<path
d="M44.8 13.2c1.6-1.7 4.4-1.6 5.9.2l2 2.2-8.7 8.3-2.6-2.5c-1.5-1.4-1.1-4 3.4-8.2Z"
fill="#2EB29B"
d="M41 17.5c1.3-1.4 3.5-1.3 4.7.2l1.6 1.8-7 6.6-2.1-2c-1.2-1.1-.9-3.2 2.8-6.6Z"
fill="#ecfdf5"
/>
</svg>
</span>
@@ -52,7 +56,11 @@ withDefaults(
display: grid;
place-items: center;
flex-shrink: 0;
background: transparent;
background: linear-gradient(145deg, #5eead4, #14b8a6);
box-shadow: 0 8px 18px rgba(20, 184, 166, 0.28);
overflow: hidden;
padding: 4px;
box-sizing: border-box;
}
.mark svg {