first commit

This commit is contained in:
unknown
2026-06-03 16:59:27 -04:00
commit b35cc2f54b
36 changed files with 5634 additions and 0 deletions

View File

@@ -0,0 +1,23 @@
import { useAuth } from '../context/AuthContext';
export default function HomePage() {
const { user } = useAuth();
return (
<div className="card">
<h1 className="page-title">Menú principal</h1>
<p>
Bienvenido, <strong>{user?.username}</strong>. Utilice la barra superior para acceder a cada planilla.
</p>
<ul style={{ color: 'var(--muted)', lineHeight: 1.8 }}>
<li>Planillas de ingresos: Ventas, Servicios y Alquileres</li>
<li>Planillas de egresos: Gastos Diarios y Gastos Fijos</li>
<li>Planilla de Personal y Reportes consolidados</li>
{user?.isAdmin && <li>Panel de Administración para gestionar usuarios y permisos</li>}
</ul>
<p style={{ fontSize: '0.85rem', color: 'var(--muted)', marginTop: '1.5rem' }}>
Los datos se almacenan en el servidor de la red local. Use el botón <strong>+</strong> en cada planilla para agregar filas y <strong>Guardar</strong> para persistir.
</p>
</div>
);
}