Align older CRM pages with the Mento visual language.

Restyle list, form, settings, and secondary modules to match contacts/activities patterns with teal chrome, soft panels, and mobile layouts — without changing already-redesigned screens.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
2026-09-05 02:29:41 +03:30
co-authored by Cursor
parent 20a9ac0d34
commit 092767b6f2
22 changed files with 3946 additions and 1717 deletions
+87 -37
View File
@@ -122,18 +122,19 @@ onMounted(load);
<template>
<section class="page">
<header>
<p class="eyebrow">تنظیمات</p>
<h1>فرم‌ساز سرنخ</h1>
<p class="lead">
فرم وب بسازید، لینک یا iframe بگیرید؛ ارسال‌ها به‌صورت شخص و معامله در کاریز ثبت می‌شوند.
</p>
<header class="page-head">
<div class="head-copy">
<h1>فرم‌ساز سرنخ</h1>
<p class="lead">
فرم وب بسازید، لینک یا iframe بگیرید؛ ارسال‌ها به‌صورت شخص و معامله در کاریز ثبت می‌شوند.
</p>
</div>
</header>
<p v-if="error" class="error">{{ error }}</p>
<p v-else-if="loading" class="muted">در حال بارگذاری…</p>
<form class="create" @submit.prevent="createForm">
<form class="panel" @submit.prevent="createForm">
<h2>فرم جدید</h2>
<div class="grid">
<label>
@@ -172,7 +173,7 @@ onMounted(load);
</button>
</div>
</div>
<button class="btn" type="submit" :disabled="saving">
<button class="btn primary" type="submit" :disabled="saving">
{{ saving ? 'در حال ساخت…' : 'ساخت فرم با فیلدهای پیش‌فرض' }}
</button>
</form>
@@ -201,15 +202,15 @@ onMounted(load);
لینک عمومی
<div class="row">
<input :value="publicUrl(form)" readonly />
<button type="button" class="btn btn-ghost" @click="copyText(publicUrl(form))">کپی</button>
<a class="btn btn-ghost" :href="form.publicPath" target="_blank" rel="noopener">بازکردن</a>
<button type="button" class="btn ghost" @click="copyText(publicUrl(form))">کپی</button>
<a class="btn ghost" :href="form.publicPath" target="_blank" rel="noopener">بازکردن</a>
</div>
</label>
<label>
کد iframe
<div class="row">
<input :value="iframeSnippet(form)" readonly />
<button type="button" class="btn btn-ghost" @click="copyText(iframeSnippet(form))">کپی</button>
<button type="button" class="btn ghost" @click="copyText(iframeSnippet(form))">کپی</button>
</div>
</label>
<div class="qr">
@@ -226,42 +227,56 @@ onMounted(load);
<style scoped>
.page {
display: grid;
gap: 1.2rem;
gap: 1rem;
max-width: 900px;
min-width: 0;
overflow-x: clip;
}
.eyebrow {
margin: 0;
color: var(--accent);
font-weight: 700;
.page-head {
display: flex;
justify-content: space-between;
gap: 1rem;
align-items: flex-start;
}
.head-copy {
min-width: 0;
}
h1 {
margin: 0.2rem 0;
margin: 0 0 0.3rem;
font-size: clamp(1.45rem, 2.5vw, 1.85rem);
font-weight: 800;
}
.lead,
.muted {
color: var(--muted);
margin: 0;
color: #64748b;
}
.error {
color: #b42318;
margin: 0;
color: #b91c1c;
}
.create,
.panel,
.card {
background: var(--surface);
border: 1px solid var(--line);
border-radius: var(--radius);
padding: 1rem;
background: #fff;
border: 1px solid #e2e8f0;
border-radius: 18px;
box-shadow: 0 8px 22px rgba(15, 23, 42, 0.04);
padding: 1.1rem;
display: grid;
gap: 0.85rem;
}
.create h2 {
.panel h2 {
margin: 0;
font-size: 1rem;
font-weight: 700;
color: #0f172a;
}
.grid {
@@ -278,20 +293,47 @@ label {
display: grid;
gap: 0.35rem;
font-size: 0.9rem;
color: var(--muted);
color: #64748b;
}
input,
select {
border: 1px solid var(--line);
border: 1px solid #e2e8f0;
border-radius: 12px;
padding: 0.7rem 0.85rem;
font: inherit;
background: #fff;
color: var(--text, var(--ink));
color: #0f172a;
width: 100%;
}
.btn {
display: inline-flex;
align-items: center;
justify-content: center;
min-height: 42px;
padding: 0.55rem 1rem;
border-radius: 12px;
font-weight: 700;
border: 1px solid transparent;
cursor: pointer;
font: inherit;
text-decoration: none;
}
.btn.primary {
background: #14b8a6;
color: #fff;
box-shadow: 0 8px 18px rgba(20, 184, 166, 0.24);
}
.btn.ghost {
background: #fff;
color: #0f766e;
border-color: #99f6e4;
box-shadow: none;
}
.chips {
display: flex;
flex-wrap: wrap;
@@ -299,7 +341,7 @@ select {
}
.chip {
border: 1px solid var(--line);
border: 1px solid #e2e8f0;
background: #fff;
border-radius: 999px;
padding: 0.35rem 0.75rem;
@@ -308,9 +350,9 @@ select {
}
.chip.on {
background: var(--accent-soft);
border-color: transparent;
color: var(--accent);
background: #f0fdfa;
border-color: #99f6e4;
color: #0f766e;
font-weight: 700;
}
@@ -339,13 +381,14 @@ select {
.actions button {
border: 0;
background: transparent;
color: var(--muted);
color: #64748b;
cursor: pointer;
font: inherit;
font-weight: 600;
}
.actions .danger {
color: #b42318;
color: #b91c1c;
}
.share {
@@ -366,19 +409,26 @@ select {
.qr img {
border-radius: 12px;
border: 1px solid var(--line);
border: 1px solid #e2e8f0;
background: #fff;
}
.empty {
padding: 1rem;
border: 1px dashed var(--line);
border-radius: var(--radius);
border: 1px dashed #e2e8f0;
border-radius: 18px;
}
@media (max-width: 700px) {
.grid {
grid-template-columns: 1fr;
}
.card-head,
.row,
.actions {
flex-direction: column;
align-items: stretch;
}
}
</style>