From 62a4db33a661dad83d77949426509b0471d66ee8 Mon Sep 17 00:00:00 2001 From: Alexis Date: Tue, 7 Apr 2026 09:39:48 +0200 Subject: [PATCH] =?UTF-8?q?refactor:=20mejorar=20dise=C3=B1o=20de=20interf?= =?UTF-8?q?az=20y=20UX?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/src/components/layout/MainLayout.jsx | 14 ++++++++++---- frontend/src/pages/History.jsx | 14 ++++++++------ 2 files changed, 18 insertions(+), 10 deletions(-) diff --git a/frontend/src/components/layout/MainLayout.jsx b/frontend/src/components/layout/MainLayout.jsx index 0a127ec..2c164a0 100644 --- a/frontend/src/components/layout/MainLayout.jsx +++ b/frontend/src/components/layout/MainLayout.jsx @@ -102,11 +102,17 @@ export default function MainLayout({ children }) { ) : ( // BOTONES PARA USUARIO NO LOGUEADO -
- - Iniciar sesión +
+ + Entrar - + Registrarse
diff --git a/frontend/src/pages/History.jsx b/frontend/src/pages/History.jsx index e5df8c4..12da8e0 100644 --- a/frontend/src/pages/History.jsx +++ b/frontend/src/pages/History.jsx @@ -44,8 +44,7 @@ export default function History() { }; return ( -
- +
{/* Cabecera */}
@@ -83,7 +82,7 @@ export default function History() { return (
- {/* Cabecera de la Card (Siempre visible) */} + {/* Cabecera de la Card */}
@@ -92,7 +91,10 @@ export default function History() {

{item.name || 'Modelo sin título'}

- Guardado en el historial + {item.created_at + ? `Guardado el ${new Date(item.created_at).toLocaleDateString('es-ES', { day: '2-digit', month: 'long', year: 'numeric' })}` + : 'Guardado en el historial' + }

@@ -109,12 +111,12 @@ export default function History() { className="px-4 py-2.5 bg-white border border-red-200 text-red-500 font-bold rounded-xl hover:bg-red-50 transition-colors shadow-sm" title="Borrar modelo" > - 🗑️ + Borrar
- {/* Contenido Desplegable (La Gráfica) */} + {/* Contenido Desplegable (La gráfica) */} {isExpanded && (