diff --git a/src/routes/planes/$planId/asignaturas/$asignaturaId/route.tsx b/src/routes/planes/$planId/asignaturas/$asignaturaId/route.tsx index c710f1f..4f34a7e 100644 --- a/src/routes/planes/$planId/asignaturas/$asignaturaId/route.tsx +++ b/src/routes/planes/$planId/asignaturas/$asignaturaId/route.tsx @@ -28,7 +28,7 @@ export const Route = createFileRoute( component: AsignaturaLayout, }) -// --- 1. COMPONENTE PARA EDITAR EL TÍTULO (h1) --- +// --- 1. COMPONENTE PARA EDITAR EL TÍTULO SOBRE FONDO AZUL --- function InlineEditTitle({ value, onSave, @@ -61,7 +61,8 @@ function InlineEditTitle({ setIsEditing(false) } }} - className="bg-background text-foreground border-primary focus:ring-primary/20 w-full rounded-md border-2 px-2 py-1 text-3xl font-bold shadow-sm outline-none focus:ring-4" + // Input estilizado para fondo oscuro: borde blanco sutil, texto blanco + className="focus:ring-primary/40 w-full rounded-md border-2 border-white/20 bg-transparent px-2 py-1 text-3xl font-bold text-white shadow-sm outline-none focus:ring-4" /> ) } @@ -69,15 +70,17 @@ function InlineEditTitle({ return (

setIsEditing(true)} - className="group text-foreground hover:bg-muted/50 flex cursor-pointer items-center gap-3 rounded-md px-2 py-1 text-3xl font-bold transition-colors" + // Texto blanco por defecto, fondo blanco sutil al hover + className="group flex cursor-pointer items-center gap-3 rounded-md px-2 py-1 text-3xl font-bold text-white transition-colors hover:bg-white/5" > {value} - + {/* Lápiz blanco sutil */} +

) } -// --- 2. COMPONENTE PARA EDITAR LOS BADGES (Código, Créditos, Semestre) --- +// --- 2. COMPONENTE PARA EDITAR LOS BADGES SOBRE FONDO AZUL --- function InlineEditBadge({ icon, label, @@ -107,8 +110,9 @@ function InlineEditBadge({ if (isEditing) { return ( -
- + // Contenedor del input con estética de badge oscuro +
+ {label}:
) @@ -133,16 +138,19 @@ function InlineEditBadge({ return ( ) } @@ -212,19 +220,20 @@ function AsignaturaLayout() { return (
- {/* HEADER DE LA ASIGNATURA */} -
+ {/* HEADER DE LA ASIGNATURA CON TU FONDO AZUL HARDCODEADO */} +
Volver al plan
- {/* Título Editable */} + {/* Título Editable (Texto blanco controlado dentro del componente) */}
- {/* Badge Estático del Tipo */} + {/* Badge Estático del Tipo (Estilo oscuro sutil) */} - + {asignaturaApi.tipo} - {/* Badges Editables */} + {/* Badges Editables (Texto blanco controlado dentro de los componentes) */} } label="Código" @@ -273,11 +282,11 @@ function AsignaturaLayout() { />
- {/* Subtítulo de contexto */} -
- + {/* Subtítulo de contexto (Texto blanco sutil) */} +
+ Pertenece al plan: - + {(asignaturaApi.planes_estudio as DatosPlan).nombre || ''}
@@ -285,8 +294,8 @@ function AsignaturaLayout() {
- {/* TABS NAVEGACIÓN */} -