From d209959d0efa3e20acf4b0f17e8cc436c1c11979 Mon Sep 17 00:00:00 2001 From: marcos Date: Thu, 7 May 2026 17:52:12 +0200 Subject: [PATCH] ui: degradado de cabeceras y ajustes responsive --- app/globals.css | 32 +++++++++++++++++-- app/proyectos/page.tsx | 25 ++++++++------- components/dashboard/dashboard-header.tsx | 4 +-- components/gantt/gantt-page.tsx | 2 +- components/layouts/main-layout.tsx | 6 +++- .../project-detail/project-detail-view.tsx | 4 +-- components/project-detail/project-header.tsx | 27 ++++++++-------- .../project-detail/project-task-gantt.tsx | 5 +-- components/project-detail/tasks-section.tsx | 14 ++++---- components/projects/data-table-toolbar.tsx | 18 +++++------ components/projects/data-table.tsx | 4 +-- components/projects/projects-table.tsx | 4 +-- components/statistics/statistics-page.tsx | 2 +- components/task-detail/task-header.tsx | 2 +- lib/authService.ts | 14 ++++---- 15 files changed, 100 insertions(+), 63 deletions(-) diff --git a/app/globals.css b/app/globals.css index 2d871a5..256dcf0 100644 --- a/app/globals.css +++ b/app/globals.css @@ -72,7 +72,17 @@ --sidebar-border: 220 13% 91%; - --sidebar-ring: 217.2 91.2% 59.8%} + --sidebar-ring: 217.2 91.2% 59.8%; + + --header-gradient: linear-gradient( + 120deg, + hsl(220 95% 94% / 0.95) 0%, + hsl(232 95% 95% / 0.92) 22%, + hsl(246 95% 96% / 0.9) 48%, + hsl(260 95% 95% / 0.88) 72%, + hsl(214 95% 94% / 0.95) 100% + ); + } .dark { --background: 0 0% 3.9%; @@ -138,7 +148,17 @@ --sidebar-border: 240 3.7% 15.9%; - --sidebar-ring: 217.2 91.2% 59.8%} + --sidebar-ring: 217.2 91.2% 59.8%; + + --header-gradient: linear-gradient( + 120deg, + hsl(220 45% 12% / 0.9) 0%, + hsl(232 45% 14% / 0.88) 22%, + hsl(246 45% 15% / 0.86) 48%, + hsl(260 45% 14% / 0.86) 72%, + hsl(214 45% 12% / 0.9) 100% + ); + } } @@ -182,3 +202,11 @@ gap: 1rem; } } + +@layer utilities { + .header-gradient { + background-image: var(--header-gradient); + background-size: 200% 200%; + background-position: 50% 0; + } +} diff --git a/app/proyectos/page.tsx b/app/proyectos/page.tsx index 2e5018a..93311a9 100644 --- a/app/proyectos/page.tsx +++ b/app/proyectos/page.tsx @@ -3,20 +3,23 @@ import { ProjectsTable } from "@/components/projects/projects-table"; export default function ProjectsPage() { return ( -
- {/* Header */} -
-
- -

Proyectos

+
+
+
+
+ +

Proyectos

+
+

+ Gestiona y visualiza todos tus proyectos en un solo lugar. +

-

- Gestiona y visualiza todos tus proyectos en un solo lugar. -

-
+ {/* Data Table */} - +
+ +
); } diff --git a/components/dashboard/dashboard-header.tsx b/components/dashboard/dashboard-header.tsx index 050f782..1a1534e 100644 --- a/components/dashboard/dashboard-header.tsx +++ b/components/dashboard/dashboard-header.tsx @@ -19,7 +19,7 @@ export default function DashboardHeader({ onCreateProject }: DashboardHeaderProps) { return ( -
+
@@ -62,4 +62,4 @@ export default function DashboardHeader({
); -} \ No newline at end of file +} diff --git a/components/gantt/gantt-page.tsx b/components/gantt/gantt-page.tsx index bf3d443..cfe696d 100644 --- a/components/gantt/gantt-page.tsx +++ b/components/gantt/gantt-page.tsx @@ -279,7 +279,7 @@ export default function GanttPage() { return (
-
+
diff --git a/components/layouts/main-layout.tsx b/components/layouts/main-layout.tsx index 1561366..1697e0a 100644 --- a/components/layouts/main-layout.tsx +++ b/components/layouts/main-layout.tsx @@ -55,7 +55,11 @@ export function MainLayout({ children }: MainLayoutProps) {
- +
+
+ +
+
{children}
diff --git a/components/project-detail/project-detail-view.tsx b/components/project-detail/project-detail-view.tsx index 5823936..794a67e 100644 --- a/components/project-detail/project-detail-view.tsx +++ b/components/project-detail/project-detail-view.tsx @@ -185,13 +185,13 @@ export function ProjectDetailView({ project: initialProject }: ProjectDetailView /> {/* Contenido principal */} -
+
{/* Stats cards */} {/* Tabs de contenido */} - + Resumen diff --git a/components/project-detail/project-header.tsx b/components/project-detail/project-header.tsx index a2c8ecb..cf368b5 100644 --- a/components/project-detail/project-header.tsx +++ b/components/project-detail/project-header.tsx @@ -72,7 +72,7 @@ export function ProjectHeader({ project, tasks = [], onProjectUpdated, onProject }; return ( -
+
{/* Navegación */}
@@ -84,8 +84,8 @@ export function ProjectHeader({ project, tasks = [], onProjectUpdated, onProject
{/* Header principal */} -
-
+
+
{/* Avatar */} @@ -94,13 +94,15 @@ export function ProjectHeader({ project, tasks = [], onProjectUpdated, onProject {/* Info principal */} -
-
-

{project.name}

+
+
+

+ {project.name} +

- -
+ +
- + {project.client !== "Sin cliente" && ( - <> - | - {project.client} - + {project.client} )}
{/* Acciones */} -
+
- + Columnas visibles {columns @@ -158,9 +158,9 @@ export function DataTableToolbar({ )} {/* Exportar */} -