Compare commits
8 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 379e2d3826 | |||
| cb5422f57c | |||
| 67724181fd | |||
| cbaf96c6b5 | |||
| 0fb831fb58 | |||
| 0d1aa61022 | |||
| 84281a88f2 | |||
| d91018c612 |
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -5,7 +5,6 @@ import {
|
|||||||
Plus,
|
Plus,
|
||||||
ChevronDown,
|
ChevronDown,
|
||||||
AlertTriangle,
|
AlertTriangle,
|
||||||
GripVertical,
|
|
||||||
Trash2,
|
Trash2,
|
||||||
Pencil,
|
Pencil,
|
||||||
} from 'lucide-react'
|
} from 'lucide-react'
|
||||||
@@ -46,16 +45,33 @@ import {
|
|||||||
useUpdateAsignatura,
|
useUpdateAsignatura,
|
||||||
useUpdateLinea,
|
useUpdateLinea,
|
||||||
} from '@/data'
|
} from '@/data'
|
||||||
|
import {
|
||||||
|
Tooltip,
|
||||||
|
TooltipContent,
|
||||||
|
TooltipProvider,
|
||||||
|
TooltipTrigger,
|
||||||
|
} from '@/components/ui/tooltip'
|
||||||
|
|
||||||
// --- Mapeadores (Fuera del componente para mayor limpieza) ---
|
// --- Mapeadores (Fuera del componente para mayor limpieza) ---
|
||||||
|
const palette = [
|
||||||
|
'#4F46E5', // índigo
|
||||||
|
'#7C3AED', // violeta
|
||||||
|
'#EA580C', // naranja
|
||||||
|
'#059669', // esmeralda
|
||||||
|
'#DC2626', // rojo
|
||||||
|
'#0891B2', // cyan
|
||||||
|
'#CA8A04', // ámbar
|
||||||
|
'#C026D3', // fucsia
|
||||||
|
]
|
||||||
|
|
||||||
const mapLineasToLineaCurricular = (
|
const mapLineasToLineaCurricular = (
|
||||||
lineasApi: Array<any> = [],
|
lineasApi: Array<any> = [],
|
||||||
): Array<LineaCurricular> => {
|
): Array<LineaCurricular> => {
|
||||||
return lineasApi.map((linea) => ({
|
return lineasApi.map((linea, index) => ({
|
||||||
id: linea.id,
|
id: linea.id,
|
||||||
nombre: linea.nombre,
|
nombre: linea.nombre,
|
||||||
orden: linea.orden ?? 0,
|
orden: linea.orden ?? 0,
|
||||||
color: '#1976d2',
|
color: palette[index % palette.length],
|
||||||
}))
|
}))
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -121,52 +137,216 @@ function StatItem({
|
|||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
import * as Icons from 'lucide-react'
|
||||||
|
|
||||||
|
const estadoConfig: Record<
|
||||||
|
Asignatura['estado'],
|
||||||
|
{
|
||||||
|
label: string
|
||||||
|
dot: string
|
||||||
|
soft: string
|
||||||
|
icon: React.ComponentType<{ className?: string }>
|
||||||
|
}
|
||||||
|
> = {
|
||||||
|
borrador: {
|
||||||
|
label: 'Borrador',
|
||||||
|
dot: 'bg-slate-500',
|
||||||
|
soft: 'bg-slate-100 text-slate-700',
|
||||||
|
icon: Icons.FileText,
|
||||||
|
},
|
||||||
|
revisada: {
|
||||||
|
label: 'Revisada',
|
||||||
|
dot: 'bg-amber-500',
|
||||||
|
soft: 'bg-amber-100 text-amber-700',
|
||||||
|
icon: Icons.ScanSearch,
|
||||||
|
},
|
||||||
|
aprobada: {
|
||||||
|
label: 'Aprobada',
|
||||||
|
dot: 'bg-emerald-500',
|
||||||
|
soft: 'bg-emerald-100 text-emerald-700',
|
||||||
|
icon: Icons.BadgeCheck,
|
||||||
|
},
|
||||||
|
generando: {
|
||||||
|
label: 'Generando',
|
||||||
|
dot: 'bg-sky-500',
|
||||||
|
soft: 'bg-sky-100 text-sky-700',
|
||||||
|
icon: Icons.LoaderCircle,
|
||||||
|
},
|
||||||
|
}
|
||||||
|
|
||||||
|
function hexToRgba(hex: string, alpha: number) {
|
||||||
|
const clean = hex.replace('#', '')
|
||||||
|
const bigint = parseInt(clean, 16)
|
||||||
|
const r = (bigint >> 16) & 255
|
||||||
|
const g = (bigint >> 8) & 255
|
||||||
|
const b = bigint & 255
|
||||||
|
return `rgba(${r}, ${g}, ${b}, ${alpha})`
|
||||||
|
}
|
||||||
|
|
||||||
function AsignaturaCardItem({
|
function AsignaturaCardItem({
|
||||||
asignatura,
|
asignatura,
|
||||||
|
lineaColor,
|
||||||
|
lineaNombre,
|
||||||
onDragStart,
|
onDragStart,
|
||||||
isDragging,
|
isDragging,
|
||||||
onClick,
|
onClick,
|
||||||
}: {
|
}: {
|
||||||
asignatura: Asignatura
|
asignatura: Asignatura
|
||||||
|
lineaColor: string
|
||||||
|
lineaNombre?: string
|
||||||
onDragStart: (e: React.DragEvent, id: string) => void
|
onDragStart: (e: React.DragEvent, id: string) => void
|
||||||
isDragging: boolean
|
isDragging: boolean
|
||||||
onClick: () => void
|
onClick: () => void
|
||||||
}) {
|
}) {
|
||||||
|
const estado = estadoConfig[asignatura.estado] ?? estadoConfig.borrador
|
||||||
|
const EstadoIcon = estado.icon
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<button
|
<TooltipProvider delayDuration={150}>
|
||||||
draggable
|
<Tooltip>
|
||||||
onDragStart={(e) => onDragStart(e, asignatura.id)}
|
<TooltipTrigger asChild>
|
||||||
onClick={onClick}
|
<button
|
||||||
className={`group cursor-grab rounded-lg border bg-white p-3 shadow-sm transition-all active:cursor-grabbing ${
|
draggable
|
||||||
isDragging
|
onDragStart={(e) => onDragStart(e, asignatura.id)}
|
||||||
? 'scale-95 opacity-40'
|
onClick={onClick}
|
||||||
: 'hover:border-teal-400 hover:shadow-md'
|
className={[
|
||||||
}`}
|
'group relative h-[200px] w-[272px] shrink-0 overflow-hidden rounded-[22px] border text-left',
|
||||||
>
|
'transition-all duration-300 ease-out',
|
||||||
<div className="mb-1 flex items-start justify-between">
|
'focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring/30',
|
||||||
<span className="font-mono text-[10px] font-bold text-slate-400">
|
'active:cursor-grabbing cursor-grab',
|
||||||
{asignatura.clave}
|
isDragging
|
||||||
</span>
|
? 'scale-[0.985] opacity-45 shadow-none'
|
||||||
<Badge
|
: 'hover:-translate-y-1 hover:shadow-lg',
|
||||||
variant="outline"
|
].join(' ')}
|
||||||
className={`px-1 py-0 text-[9px] uppercase ${statusBadge[asignatura.estado] || ''}`}
|
style={{
|
||||||
>
|
borderColor: hexToRgba(lineaColor, 0.18),
|
||||||
{asignatura.estado}
|
background: `
|
||||||
</Badge>
|
radial-gradient(circle at top right, ${hexToRgba(lineaColor, 0.22)} 0%, transparent 34%),
|
||||||
</div>
|
linear-gradient(180deg, ${hexToRgba(lineaColor, 0.12)} 0%, ${hexToRgba(lineaColor, 0.04)} 42%, var(--card) 100%)
|
||||||
<p className="mb-1 text-xs leading-tight font-bold text-slate-700">
|
`,
|
||||||
{asignatura.nombre}
|
}}
|
||||||
</p>
|
title={asignatura.nombre}
|
||||||
<div className="mt-2 flex items-center justify-between">
|
>
|
||||||
<span className="text-[10px] text-slate-500">
|
{/* franja */}
|
||||||
{asignatura.creditos} CR • HD:{asignatura.hd} • HI:{asignatura.hi}
|
<div
|
||||||
</span>
|
className="absolute inset-x-0 top-0 h-2"
|
||||||
<GripVertical
|
style={{ backgroundColor: lineaColor }}
|
||||||
size={12}
|
/>
|
||||||
className="text-slate-300 opacity-0 transition-opacity group-hover:opacity-100"
|
|
||||||
/>
|
{/* glow decorativo */}
|
||||||
</div>
|
<div
|
||||||
</button>
|
className="absolute -top-10 -right-10 h-28 w-28 rounded-full blur-2xl transition-transform duration-500 group-hover:scale-110"
|
||||||
|
style={{ backgroundColor: hexToRgba(lineaColor, 0.22) }}
|
||||||
|
/>
|
||||||
|
|
||||||
|
<div className="relative flex h-full flex-col p-4">
|
||||||
|
{/* top */}
|
||||||
|
<div className="flex items-start justify-between gap-2">
|
||||||
|
<div
|
||||||
|
className="inline-flex h-8 max-w-[200px] items-center gap-1.5 rounded-full border px-2.5 text-[11px] font-semibold"
|
||||||
|
style={{
|
||||||
|
borderColor: hexToRgba(lineaColor, 0.2),
|
||||||
|
backgroundColor: hexToRgba(lineaColor, 0.1),
|
||||||
|
color: lineaColor,
|
||||||
|
}}
|
||||||
|
>
|
||||||
|
<Icons.KeyRound className="h-3.5 w-3.5 shrink-0" />
|
||||||
|
<span className="truncate">{asignatura.clave || 'Sin clave'}</span>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div className="relative flex h-8 items-center overflow-hidden rounded-full bg-background/70 px-2 backdrop-blur-sm">
|
||||||
|
<div className="flex gap-4 items-center gap-1.5 transition-transform duration-300 group-hover:-translate-x-[72px]">
|
||||||
|
<span className={`h-2.5 w-2.5 rounded-full ${estado.dot}`} />
|
||||||
|
<EstadoIcon
|
||||||
|
className={[
|
||||||
|
'h-3.5 w-3.5 text-foreground/65',
|
||||||
|
asignatura.estado === 'generando' ? 'animate-spin' : '',
|
||||||
|
].join(' ')}
|
||||||
|
/>
|
||||||
|
</div>
|
||||||
|
<div
|
||||||
|
className={[
|
||||||
|
'absolute right-2 flex translate-x-6 items-center gap-1.5 opacity-0 transition-all duration-300',
|
||||||
|
'group-hover:translate-x-0 group-hover:opacity-100'
|
||||||
|
].join(' ')}
|
||||||
|
>
|
||||||
|
<span className="text-[11px] font-semibold whitespace-nowrap">
|
||||||
|
{estado.label}
|
||||||
|
</span>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
{/* titulo */}
|
||||||
|
<div className="mt-4 min-h-[72px]">
|
||||||
|
<h3
|
||||||
|
className="overflow-hidden text-[18px] leading-[1.08] font-bold text-foreground"
|
||||||
|
style={{
|
||||||
|
display: '-webkit-box',
|
||||||
|
WebkitLineClamp: 3,
|
||||||
|
WebkitBoxOrient: 'vertical',
|
||||||
|
}}
|
||||||
|
>
|
||||||
|
{asignatura.nombre}
|
||||||
|
</h3>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
{/* bottom */}
|
||||||
|
<div className="mt-auto grid grid-cols-3 gap-2">
|
||||||
|
<div className="rounded-2xl border border-white/40 bg-white/55 px-2.5 py-2 backdrop-blur-sm dark:border-white/10 dark:bg-white/5">
|
||||||
|
<div className="mb-1 flex items-center gap-1.5 text-muted-foreground">
|
||||||
|
<Icons.Award className="h-3.5 w-3.5" />
|
||||||
|
<span className="text-[10px] font-medium uppercase tracking-wide">
|
||||||
|
CR
|
||||||
|
</span>
|
||||||
|
</div>
|
||||||
|
<div className="text-sm font-bold text-foreground">
|
||||||
|
{asignatura.creditos}
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div className="rounded-2xl border border-white/40 bg-white/55 px-2.5 py-2 backdrop-blur-sm dark:border-white/10 dark:bg-white/5">
|
||||||
|
<div className="mb-1 flex items-center gap-1.5 text-muted-foreground">
|
||||||
|
<Icons.Clock3 className="h-3.5 w-3.5" />
|
||||||
|
<span className="text-[10px] font-medium uppercase tracking-wide">
|
||||||
|
HD
|
||||||
|
</span>
|
||||||
|
</div>
|
||||||
|
<div className="text-sm font-bold text-foreground">
|
||||||
|
{asignatura.hd}
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div className="rounded-2xl border border-white/40 bg-white/55 px-2.5 py-2 backdrop-blur-sm dark:border-white/10 dark:bg-white/5">
|
||||||
|
<div className="mb-1 flex items-center gap-1.5 text-muted-foreground">
|
||||||
|
<Icons.BookOpenText className="h-3.5 w-3.5" />
|
||||||
|
<span className="text-[10px] font-medium uppercase tracking-wide">
|
||||||
|
HI
|
||||||
|
</span>
|
||||||
|
</div>
|
||||||
|
<div className="text-sm font-bold text-foreground">
|
||||||
|
{asignatura.hi}
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
{/* drag affordance */}
|
||||||
|
<div className="pointer-events-none absolute right-3 bottom-3 rounded-full bg-background/70 p-1.5 opacity-0 backdrop-blur-sm transition-all duration-300 group-hover:opacity-100">
|
||||||
|
<Icons.GripVertical className="h-4 w-4 text-muted-foreground/55" />
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</button>
|
||||||
|
</TooltipTrigger>
|
||||||
|
|
||||||
|
<TooltipContent side="bottom">
|
||||||
|
<div className="text-xs">
|
||||||
|
{lineaNombre ? `${lineaNombre} · ` : ''}
|
||||||
|
{asignatura.nombre}
|
||||||
|
</div>
|
||||||
|
</TooltipContent>
|
||||||
|
</Tooltip>
|
||||||
|
</TooltipProvider>
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -524,15 +704,15 @@ function MapaCurricularPage() {
|
|||||||
</Button>
|
</Button>
|
||||||
{asignaturas.filter((m) => !m.ciclo || !m.lineaCurricularId).length >
|
{asignaturas.filter((m) => !m.ciclo || !m.lineaCurricularId).length >
|
||||||
0 && (
|
0 && (
|
||||||
<Badge className="border-amber-100 bg-amber-50 text-amber-600 hover:bg-amber-50">
|
<Badge className="border-amber-100 bg-amber-50 text-amber-600 hover:bg-amber-50">
|
||||||
<AlertTriangle size={14} className="mr-1" />{' '}
|
<AlertTriangle size={14} className="mr-1" />{' '}
|
||||||
{
|
{
|
||||||
asignaturas.filter((m) => !m.ciclo || !m.lineaCurricularId)
|
asignaturas.filter((m) => !m.ciclo || !m.lineaCurricularId)
|
||||||
.length
|
.length
|
||||||
}{' '}
|
}{' '}
|
||||||
sin asignar
|
sin asignar
|
||||||
</Badge>
|
</Badge>
|
||||||
)}
|
)}
|
||||||
<DropdownMenu>
|
<DropdownMenu>
|
||||||
<DropdownMenuTrigger asChild>
|
<DropdownMenuTrigger asChild>
|
||||||
<Button className="bg-teal-700 text-white hover:bg-teal-800">
|
<Button className="bg-teal-700 text-white hover:bg-teal-800">
|
||||||
@@ -618,9 +798,8 @@ function MapaCurricularPage() {
|
|||||||
return (
|
return (
|
||||||
<Fragment key={linea.id}>
|
<Fragment key={linea.id}>
|
||||||
<div
|
<div
|
||||||
className={`group relative flex items-center justify-between rounded-xl border-l-4 p-4 transition-all ${
|
className={`group relative flex items-center justify-between rounded-xl border-l-4 p-4 transition-all ${lineColors[idx % lineColors.length]
|
||||||
lineColors[idx % lineColors.length]
|
} ${editingLineaId === linea.id ? 'bg-white ring-2 ring-teal-500/20' : ''}`}
|
||||||
} ${editingLineaId === linea.id ? 'bg-white ring-2 ring-teal-500/20' : ''}`}
|
|
||||||
>
|
>
|
||||||
<div className="flex-1 overflow-hidden">
|
<div className="flex-1 overflow-hidden">
|
||||||
<span
|
<span
|
||||||
@@ -635,11 +814,10 @@ function MapaCurricularPage() {
|
|||||||
setTempNombreLinea(linea.nombre)
|
setTempNombreLinea(linea.nombre)
|
||||||
}
|
}
|
||||||
}}
|
}}
|
||||||
className={`block w-full text-xs font-bold break-words outline-none ${
|
className={`block w-full text-xs font-bold break-words outline-none ${editingLineaId === linea.id
|
||||||
editingLineaId === linea.id
|
? 'cursor-text border-b border-teal-500/50 pb-1'
|
||||||
? 'cursor-text border-b border-teal-500/50 pb-1'
|
: 'cursor-pointer'
|
||||||
: 'cursor-pointer'
|
}`}
|
||||||
}`}
|
|
||||||
>
|
>
|
||||||
{linea.nombre}
|
{linea.nombre}
|
||||||
</span>
|
</span>
|
||||||
@@ -677,6 +855,8 @@ function MapaCurricularPage() {
|
|||||||
<AsignaturaCardItem
|
<AsignaturaCardItem
|
||||||
key={m.id}
|
key={m.id}
|
||||||
asignatura={m}
|
asignatura={m}
|
||||||
|
lineaColor={linea.color || '#1976d2'}
|
||||||
|
lineaNombre={linea.nombre}
|
||||||
isDragging={draggedAsignatura === m.id}
|
isDragging={draggedAsignatura === m.id}
|
||||||
onDragStart={handleDragStart}
|
onDragStart={handleDragStart}
|
||||||
onClick={() => {
|
onClick={() => {
|
||||||
@@ -727,45 +907,81 @@ function MapaCurricularPage() {
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
{/* Asignaturas Sin Asignar */}
|
{/* Asignaturas Sin Asignar */}
|
||||||
<div className="mt-10 rounded-2xl border border-slate-200 bg-slate-50 p-6">
|
<div className="mt-12 rounded-[28px] border border-border bg-card/80 p-5 shadow-sm backdrop-blur-sm">
|
||||||
<div className="mb-4 flex items-center justify-between">
|
<div className="mb-5 flex flex-col gap-3 md:flex-row md:items-center md:justify-between">
|
||||||
<div className="flex items-center gap-2 text-slate-600">
|
<div className="min-w-0">
|
||||||
<h3 className="text-sm font-bold tracking-wider uppercase">
|
<div className="flex items-center gap-2">
|
||||||
Bandeja de Entrada / Asignaturas sin asignar
|
<div className="flex h-9 w-9 items-center justify-center rounded-2xl bg-muted text-muted-foreground">
|
||||||
</h3>
|
<Icons.Inbox className="h-4.5 w-4.5" />
|
||||||
<Badge variant="secondary">{unassignedAsignaturas.length}</Badge>
|
</div>
|
||||||
|
|
||||||
|
<div className="min-w-0">
|
||||||
|
<div className="flex items-center gap-2">
|
||||||
|
<h3 className="text-sm font-bold tracking-wide text-foreground uppercase">
|
||||||
|
Bandeja de entrada
|
||||||
|
</h3>
|
||||||
|
|
||||||
|
<div className="inline-flex h-6 min-w-6 items-center justify-center rounded-full bg-muted px-2 text-[11px] font-semibold text-muted-foreground">
|
||||||
|
{unassignedAsignaturas.length}
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<p className="mt-0.5 text-sm text-muted-foreground">
|
||||||
|
Asignaturas sin ciclo o línea curricular
|
||||||
|
</p>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div className="flex items-center gap-2 rounded-full border border-dashed border-border bg-background/80 px-3 py-1.5 text-xs text-muted-foreground">
|
||||||
|
<Icons.MoveDown className="h-3.5 w-3.5" />
|
||||||
|
<span>Arrastra aquí para desasignar</span>
|
||||||
</div>
|
</div>
|
||||||
<p className="text-xs text-slate-400">
|
|
||||||
Arrastra una asignatura aquí para quitarla del mapa
|
|
||||||
</p>
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div
|
<div
|
||||||
className={`flex min-h-[120px] flex-wrap gap-4 rounded-xl border-2 border-dashed p-4 transition-colors ${
|
|
||||||
draggedAsignatura
|
|
||||||
? 'border-teal-300 bg-teal-50/50'
|
|
||||||
: 'border-slate-200 bg-white/50'
|
|
||||||
}`}
|
|
||||||
onDragOver={handleDragOver}
|
onDragOver={handleDragOver}
|
||||||
onDrop={(e) => handleDrop(e, null, null)} // Limpia ciclo y línea
|
onDrop={(e) => handleDrop(e, null, null)}
|
||||||
|
className={[
|
||||||
|
'rounded-[24px] border-2 border-dashed p-4 transition-all duration-300',
|
||||||
|
'min-h-[220px]',
|
||||||
|
draggedAsignatura
|
||||||
|
? 'border-primary/35 bg-primary/6 shadow-inner'
|
||||||
|
: 'border-border bg-muted/20',
|
||||||
|
].join(' ')}
|
||||||
>
|
>
|
||||||
{unassignedAsignaturas.map((m) => (
|
{unassignedAsignaturas.length > 0 ? (
|
||||||
<div key={m.id} className="w-[200px]">
|
<div className="flex flex-wrap gap-4">
|
||||||
<AsignaturaCardItem
|
{unassignedAsignaturas.map((m) => (
|
||||||
asignatura={m}
|
<div key={m.id} className="w-[272px] shrink-0">
|
||||||
isDragging={draggedAsignatura === m.id}
|
<AsignaturaCardItem
|
||||||
onDragStart={handleDragStart}
|
asignatura={m}
|
||||||
onClick={() => {
|
lineaColor="#94A3B8"
|
||||||
setEditingData(m) // Cargamos los datos en el estado de edición
|
lineaNombre="Sin asignar"
|
||||||
setIsEditModalOpen(true)
|
isDragging={draggedAsignatura === m.id}
|
||||||
}}
|
onDragStart={handleDragStart}
|
||||||
/>
|
onClick={() => {
|
||||||
|
setEditingData(m)
|
||||||
|
setIsEditModalOpen(true)
|
||||||
|
}}
|
||||||
|
/>
|
||||||
|
</div>
|
||||||
|
))}
|
||||||
</div>
|
</div>
|
||||||
))}
|
) : (
|
||||||
{unassignedAsignaturas.length === 0 && (
|
<div className="flex min-h-[188px] flex-col items-center justify-center rounded-[20px] border border-border/70 bg-background/70 px-6 text-center">
|
||||||
<div className="flex w-full items-center justify-center text-sm text-slate-400">
|
<div className="mb-3 flex h-12 w-12 items-center justify-center rounded-2xl bg-muted text-muted-foreground">
|
||||||
No hay asignaturas pendientes. Arrastra una asignatura aquí para
|
<Icons.CheckCheck className="h-5 w-5" />
|
||||||
desasignarla.
|
</div>
|
||||||
|
|
||||||
|
<p className="text-sm font-semibold text-foreground">
|
||||||
|
No hay asignaturas pendientes
|
||||||
|
</p>
|
||||||
|
|
||||||
|
<p className="mt-1 max-w-md text-sm text-muted-foreground">
|
||||||
|
Todo está colocado en el mapa. Arrastra una asignatura aquí para quitarle
|
||||||
|
ciclo y línea curricular.
|
||||||
|
</p>
|
||||||
</div>
|
</div>
|
||||||
)}
|
)}
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
+139
-12
@@ -4,18 +4,145 @@
|
|||||||
|
|
||||||
@custom-variant dark (&:is(.dark *));
|
@custom-variant dark (&:is(.dark *));
|
||||||
|
|
||||||
|
@font-face {
|
||||||
|
font-family: 'Indivisa Sans';
|
||||||
|
src: url('/fonts/indivisa/IndivisaTextSans-Light.otf') format('opentype');
|
||||||
|
font-weight: 300;
|
||||||
|
font-style: normal;
|
||||||
|
}
|
||||||
|
|
||||||
|
@font-face {
|
||||||
|
font-family: 'Indivisa Sans';
|
||||||
|
src: url('/fonts/indivisa/IndivisaTextSans-LightItalic.otf')
|
||||||
|
format('opentype');
|
||||||
|
font-weight: 300;
|
||||||
|
font-style: italic;
|
||||||
|
}
|
||||||
|
|
||||||
|
@font-face {
|
||||||
|
font-family: 'Indivisa Sans';
|
||||||
|
src: url('/fonts/indivisa/IndivisaTextSans-Regular.otf') format('opentype');
|
||||||
|
font-weight: 400;
|
||||||
|
font-style: normal;
|
||||||
|
}
|
||||||
|
|
||||||
|
@font-face {
|
||||||
|
font-family: 'Indivisa Sans';
|
||||||
|
src: url('/fonts/indivisa/IndivisaTextSans-RegularItalic.otf')
|
||||||
|
format('opentype');
|
||||||
|
font-weight: 400;
|
||||||
|
font-style: italic;
|
||||||
|
}
|
||||||
|
|
||||||
|
@font-face {
|
||||||
|
font-family: 'Indivisa Sans';
|
||||||
|
src: url('/fonts/indivisa/IndivisaTextSans-Bold.otf') format('opentype');
|
||||||
|
font-weight: 700;
|
||||||
|
font-style: normal;
|
||||||
|
}
|
||||||
|
|
||||||
|
@font-face {
|
||||||
|
font-family: 'Indivisa Sans';
|
||||||
|
src: url('/fonts/indivisa/IndivisaTextSans-BoldItalic.otf') format('opentype');
|
||||||
|
font-weight: 700;
|
||||||
|
font-style: italic;
|
||||||
|
}
|
||||||
|
|
||||||
|
@font-face {
|
||||||
|
font-family: 'Indivisa Sans';
|
||||||
|
src: url('/fonts/indivisa/IndivisaTextSans-Black.otf') format('opentype');
|
||||||
|
font-weight: 900;
|
||||||
|
font-style: normal;
|
||||||
|
}
|
||||||
|
|
||||||
|
@font-face {
|
||||||
|
font-family: 'Indivisa Sans';
|
||||||
|
src: url('/fonts/indivisa/IndivisaTextSans-BlackItalic.otf')
|
||||||
|
format('opentype');
|
||||||
|
font-weight: 900;
|
||||||
|
font-style: italic;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Serif */
|
||||||
|
|
||||||
|
@font-face {
|
||||||
|
font-family: 'Indivisa Serif';
|
||||||
|
src: url('/fonts/indivisa/IndivisaTextSerif-Light.otf') format('opentype');
|
||||||
|
font-weight: 300;
|
||||||
|
font-style: normal;
|
||||||
|
}
|
||||||
|
|
||||||
|
@font-face {
|
||||||
|
font-family: 'Indivisa Serif';
|
||||||
|
src: url('/fonts/indivisa/IndivisaTextSerif-LightItalic.otf')
|
||||||
|
format('opentype');
|
||||||
|
font-weight: 300;
|
||||||
|
font-style: italic;
|
||||||
|
}
|
||||||
|
|
||||||
|
@font-face {
|
||||||
|
font-family: 'Indivisa Serif';
|
||||||
|
src: url('/fonts/indivisa/IndivisaTextSerif-Regular.otf') format('opentype');
|
||||||
|
font-weight: 400;
|
||||||
|
font-style: normal;
|
||||||
|
}
|
||||||
|
|
||||||
|
@font-face {
|
||||||
|
font-family: 'Indivisa Serif';
|
||||||
|
src: url('/fonts/indivisa/IndivisaTextSerif-RegularItalic.otf')
|
||||||
|
format('opentype');
|
||||||
|
font-weight: 400;
|
||||||
|
font-style: italic;
|
||||||
|
}
|
||||||
|
|
||||||
|
@font-face {
|
||||||
|
font-family: 'Indivisa Serif';
|
||||||
|
src: url('/fonts/indivisa/IndivisaTextSerif-Bold.otf') format('opentype');
|
||||||
|
font-weight: 700;
|
||||||
|
font-style: normal;
|
||||||
|
}
|
||||||
|
|
||||||
|
@font-face {
|
||||||
|
font-family: 'Indivisa Serif';
|
||||||
|
src: url('/fonts/indivisa/IndivisaTextSerif-BoldItalic.otf')
|
||||||
|
format('opentype');
|
||||||
|
font-weight: 700;
|
||||||
|
font-style: italic;
|
||||||
|
}
|
||||||
|
|
||||||
|
@font-face {
|
||||||
|
font-family: 'Indivisa Serif';
|
||||||
|
src: url('/fonts/indivisa/IndivisaTextSerif-Black.otf') format('opentype');
|
||||||
|
font-weight: 900;
|
||||||
|
font-style: normal;
|
||||||
|
}
|
||||||
|
|
||||||
|
@font-face {
|
||||||
|
font-family: 'Indivisa Serif';
|
||||||
|
src: url('/fonts/indivisa/IndivisaTextSerif-BlackItalic.otf')
|
||||||
|
format('opentype');
|
||||||
|
font-weight: 900;
|
||||||
|
font-style: italic;
|
||||||
|
}
|
||||||
|
|
||||||
body {
|
body {
|
||||||
@apply m-0;
|
@apply m-0;
|
||||||
font-family:
|
font-family: var(--font-sans);
|
||||||
-apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu',
|
|
||||||
'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
|
|
||||||
-webkit-font-smoothing: antialiased;
|
-webkit-font-smoothing: antialiased;
|
||||||
-moz-osx-font-smoothing: grayscale;
|
-moz-osx-font-smoothing: grayscale;
|
||||||
}
|
}
|
||||||
|
|
||||||
code {
|
code {
|
||||||
font-family:
|
font-family: var(--font-mono);
|
||||||
source-code-pro, Menlo, Monaco, Consolas, 'Courier New', monospace;
|
}
|
||||||
|
|
||||||
|
strong,
|
||||||
|
b,
|
||||||
|
.font-bold {
|
||||||
|
font-family: 'Indivisa Sans', serif;
|
||||||
|
font-weight: 900;
|
||||||
|
/* Inter letter space */
|
||||||
|
letter-spacing: -0.025em;
|
||||||
}
|
}
|
||||||
|
|
||||||
:root {
|
:root {
|
||||||
@@ -51,9 +178,9 @@ code {
|
|||||||
--sidebar-accent-foreground: oklch(0.6304 0.2472 28.2698);
|
--sidebar-accent-foreground: oklch(0.6304 0.2472 28.2698);
|
||||||
--sidebar-border: oklch(0.9401 0 0);
|
--sidebar-border: oklch(0.9401 0 0);
|
||||||
--sidebar-ring: oklch(0 0 0);
|
--sidebar-ring: oklch(0 0 0);
|
||||||
--font-sans: Plus Jakarta Sans, sans-serif;
|
--font-sans: 'Indivisa Sans', sans-serif;
|
||||||
--font-serif: Lora, serif;
|
--font-serif: 'Indivisa Serif', serif;
|
||||||
--font-mono: IBM Plex Mono, monospace;
|
--font-mono: 'Indivisa Sans', monospace;
|
||||||
--radius: 1.4rem;
|
--radius: 1.4rem;
|
||||||
--shadow-x: 0px;
|
--shadow-x: 0px;
|
||||||
--shadow-y: 2px;
|
--shadow-y: 2px;
|
||||||
@@ -101,7 +228,7 @@ code {
|
|||||||
--chart-1: oklch(0.6686 0.1794 251.7436);
|
--chart-1: oklch(0.6686 0.1794 251.7436);
|
||||||
--chart-2: oklch(0.6342 0.2516 22.4415);
|
--chart-2: oklch(0.6342 0.2516 22.4415);
|
||||||
--chart-3: oklch(0.8718 0.1716 90.9505);
|
--chart-3: oklch(0.8718 0.1716 90.9505);
|
||||||
--chart-4: oklch(0.4503 0.229 263.0881);
|
--chart-4: oklch(11.492% 0.00001 271.152);
|
||||||
--chart-5: oklch(0.8322 0.146 185.9404);
|
--chart-5: oklch(0.8322 0.146 185.9404);
|
||||||
--sidebar: oklch(0.1564 0.0688 261.2771);
|
--sidebar: oklch(0.1564 0.0688 261.2771);
|
||||||
--sidebar-foreground: oklch(0.9551 0 0);
|
--sidebar-foreground: oklch(0.9551 0 0);
|
||||||
@@ -111,9 +238,9 @@ code {
|
|||||||
--sidebar-accent-foreground: oklch(0.6786 0.2095 24.6583);
|
--sidebar-accent-foreground: oklch(0.6786 0.2095 24.6583);
|
||||||
--sidebar-border: oklch(0.3289 0.0092 268.3843);
|
--sidebar-border: oklch(0.3289 0.0092 268.3843);
|
||||||
--sidebar-ring: oklch(0.6048 0.2166 257.2136);
|
--sidebar-ring: oklch(0.6048 0.2166 257.2136);
|
||||||
--font-sans: Plus Jakarta Sans, sans-serif;
|
--font-sans: 'Indivisa Sans', sans-serif;
|
||||||
--font-serif: Lora, serif;
|
--font-serif: 'Indivisa Serif', serif;
|
||||||
--font-mono: IBM Plex Mono, monospace;
|
--font-mono: 'Indivisa Sans', monospace;
|
||||||
--radius: 1.4rem;
|
--radius: 1.4rem;
|
||||||
--shadow-x: 0px;
|
--shadow-x: 0px;
|
||||||
--shadow-y: 2px;
|
--shadow-y: 2px;
|
||||||
|
|||||||
Reference in New Issue
Block a user