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
+85 -25
View File
@@ -103,14 +103,13 @@ onMounted(load);
<template>
<section class="page">
<header class="page-head">
<div>
<p class="eyebrow">تنظیمات</p>
<div class="head-copy">
<h1>محصولات و خدمات</h1>
<p class="muted">کاتالوگ محصول برای افزودن به معاملات.</p>
<p class="lead">کاتالوگ محصول برای افزودن به معاملات.</p>
</div>
</header>
<form class="form-card" @submit.prevent="createProduct">
<form class="panel" @submit.prevent="createProduct">
<h2>محصول جدید</h2>
<div class="grid">
<div class="field">
@@ -138,7 +137,7 @@ onMounted(load);
<input id="p-desc" v-model="description" />
</div>
</div>
<button class="btn" type="submit" :disabled="saving">
<button class="btn primary" type="submit" :disabled="saving">
{{ saving ? 'در حال ثبت…' : 'افزودن محصول' }}
</button>
</form>
@@ -173,42 +172,61 @@ onMounted(load);
<style scoped>
.page {
display: grid;
gap: 1.1rem;
gap: 1rem;
max-width: 920px;
min-width: 0;
overflow-x: clip;
}
.page-head h1 {
margin: 0.2rem 0 0.35rem;
font-size: 1.7rem;
.page-head {
display: flex;
justify-content: space-between;
gap: 1rem;
align-items: flex-start;
flex-wrap: wrap;
}
.eyebrow {
.head-copy {
min-width: 0;
}
h1 {
margin: 0 0 0.3rem;
font-size: clamp(1.45rem, 2.5vw, 1.85rem);
font-weight: 800;
}
.lead,
.muted,
.meta {
margin: 0;
color: var(--accent);
font-weight: 700;
color: #64748b;
}
.muted {
color: var(--muted);
.error {
margin: 0;
color: #b91c1c;
}
.form-card,
.panel,
.row {
background: var(--surface);
border: 1px solid var(--line);
border-radius: var(--radius);
box-shadow: var(--shadow);
background: #fff;
border: 1px solid #e2e8f0;
border-radius: 18px;
box-shadow: 0 8px 22px rgba(15, 23, 42, 0.04);
padding: 1.1rem;
}
.form-card {
.panel {
display: grid;
gap: 0.9rem;
}
.form-card h2 {
.panel h2 {
margin: 0;
font-size: 1.05rem;
font-weight: 700;
color: #0f172a;
}
.grid {
@@ -221,8 +239,14 @@ onMounted(load);
grid-column: 1 / -1;
}
input {
border: 1px solid var(--line);
.field label {
color: #64748b;
font-size: 0.9rem;
}
input,
select {
border: 1px solid #e2e8f0;
border-radius: 12px;
padding: 0.8rem 0.95rem;
background: #fff;
@@ -230,6 +254,39 @@ input {
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;
}
.btn.primary {
background: #14b8a6;
color: #fff;
box-shadow: 0 8px 18px rgba(20, 184, 166, 0.24);
}
.btn-ghost {
background: #fff;
color: #0f766e;
border: 1px solid #99f6e4;
box-shadow: none;
}
.btn-danger {
background: #fff;
color: #b91c1c;
border: 1px solid #fecaca;
box-shadow: none;
}
.list {
display: grid;
gap: 0.7rem;
@@ -243,8 +300,7 @@ input {
}
.meta {
margin: 0.25rem 0 0;
color: var(--muted);
margin-top: 0.25rem;
font-size: 0.92rem;
}
@@ -263,5 +319,9 @@ input {
flex-direction: column;
align-items: stretch;
}
.actions {
flex-direction: column;
}
}
</style>