style: reskin NovaSpark en las 7 apps
Del look editorial (verde #1B4332, esquinas a 0, botones en mayusculas) al sistema NovaSpark: primario azul #2563EB, detalle naranja #F97316, fondo #F8FAFC con tarjetas blancas rounded-xl + shadow-sm, chips rounded-full semanticos, focus ring azul, transiciones 100-200ms. Incluye headers de tabla en los PDFs (cotizador y estado de cuenta).
This commit is contained in:
@@ -3,9 +3,8 @@ import { EstadoVacio, TituloSeccion } from './comunes'
|
||||
import type { ResumenMiDia } from '../lib/mi-tablero'
|
||||
import { fetchResumenMiDia } from '../services/mi-dia'
|
||||
|
||||
const CLASE_CELDA = 'px-4 py-3 text-sm text-neutral-900'
|
||||
const CLASE_ENCABEZADO =
|
||||
'px-4 py-2 text-left text-xs font-bold uppercase tracking-widest text-neutral-500'
|
||||
const CLASE_CELDA = 'px-4 py-3 text-sm text-[#111827]'
|
||||
const CLASE_ENCABEZADO = 'bg-[#F8FAFC] px-4 py-2 text-left text-xs font-semibold uppercase text-[#64748B]'
|
||||
|
||||
/**
|
||||
* Sección "Equipo" (solo coordinador/corporativo/admin): tabla vendedor →
|
||||
@@ -34,31 +33,31 @@ export default function SeccionEquipo() {
|
||||
<section aria-label="Equipo" className="mt-12">
|
||||
<TituloSeccion>Equipo: leads por vendedor</TituloSeccion>
|
||||
{error && (
|
||||
<p role="alert" className="border border-amber-700 px-4 py-3 text-xs font-bold uppercase tracking-widest text-amber-700">
|
||||
<p role="alert" className="rounded-lg bg-amber-50 px-4 py-3 text-xs font-medium text-amber-700">
|
||||
Sin datos del API — {error}
|
||||
</p>
|
||||
)}
|
||||
{!error && !equipo && <EstadoVacio mensaje="Sin datos de equipo" />}
|
||||
{!error && equipo && (
|
||||
<>
|
||||
<p className="mb-4 text-xs text-neutral-500">
|
||||
<p className="mb-4 text-xs text-[#4B5563]">
|
||||
Leads nuevos sin asignar:{' '}
|
||||
<span className="font-bold text-neutral-900">{equipo.leadsNuevosSinAsignar}</span>
|
||||
<span className="font-semibold text-[#111827]">{equipo.leadsNuevosSinAsignar}</span>
|
||||
</p>
|
||||
{equipo.porVendedor.length === 0 ? (
|
||||
<EstadoVacio mensaje="Sin leads asignados al equipo" />
|
||||
) : (
|
||||
<table className="w-full border border-neutral-200 bg-white">
|
||||
<thead className="border-b border-neutral-200">
|
||||
<table className="w-full overflow-hidden rounded-xl border border-[#E5E7EB] bg-white shadow-sm">
|
||||
<thead className="border-b border-[#E5E7EB]">
|
||||
<tr>
|
||||
<th className={CLASE_ENCABEZADO}>Vendedor</th>
|
||||
<th className={CLASE_ENCABEZADO}>Leads asignados</th>
|
||||
<th className={CLASE_ENCABEZADO}>Nuevos esta semana</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tbody className="divide-y divide-[#E5E7EB]">
|
||||
{equipo.porVendedor.map((v) => (
|
||||
<tr key={v.mondayUserId} className="border-b border-neutral-100 last:border-b-0">
|
||||
<tr key={v.mondayUserId} className="transition-colors duration-100 hover:bg-[#F8FAFC]">
|
||||
<td className={CLASE_CELDA}>{v.nombre ?? `Monday #${v.mondayUserId}`}</td>
|
||||
<td className={CLASE_CELDA}>{v.leadsAsignados}</td>
|
||||
<td className={CLASE_CELDA}>{v.leadsNuevosSemana}</td>
|
||||
|
||||
Reference in New Issue
Block a user