diff --git a/ogWebconsole/src/app/components/commands/commands-task/show-task-schedule/show-task-schedule.component.css b/ogWebconsole/src/app/components/commands/commands-task/show-task-schedule/show-task-schedule.component.css index 4d1d26b..70bff3e 100644 --- a/ogWebconsole/src/app/components/commands/commands-task/show-task-schedule/show-task-schedule.component.css +++ b/ogWebconsole/src/app/components/commands/commands-task/show-task-schedule/show-task-schedule.component.css @@ -69,48 +69,287 @@ table { } .mat-elevation-z8 { - box-shadow: 0px 0px 0px rgba(0, 0, 0, 0.2); + border-radius: 12px; + overflow: hidden; + box-shadow: none; } -.paginator-container { +.mat-header-cell { + background-color: #f8f9fa; + font-weight: 600; + color: #495057; + padding: 16px 8px; + border-bottom: 2px solid #e9ecef; +} + +.mat-cell { + padding: 16px 8px; + border-bottom: 1px solid #f1f3f4; +} + +.recurrence-type-container { display: flex; - justify-content: end; - margin-bottom: 30px; + justify-content: center; } -mat-spinner { - margin: 0 auto; - align-self: center; -} - -.subnets-button-row { +.recurrence-chip { display: flex; - gap: 15px; + align-items: center; + padding: 7px 12px; + border-radius: 20px; + min-width: 200px; + transition: all 0.3s ease; + margin: 4px 0; } +.recurrence-icon { + margin-right: 12px; + font-size: 20px; + width: 20px; + height: 20px; +} + +.recurrence-content { + flex: 1; +} + +.recurrence-label { + font-weight: 600; + font-size: 14px; + margin-bottom: 4px; +} + +.recurrence-details { + font-size: 12px; + opacity: 0.8; + line-height: 1.2; +} + +/* Colores para diferentes tipos de recurrencia */ +.recurrence-none { + background-color: #667eea; + color: white; +} + +.recurrence-daily { + background-color: #f093fb; + color: white; +} + +.recurrence-weekly { + background-color: #4facfe; + color: white; +} + +.recurrence-monthly { + background-color: #43e97b; + color: white; +} + +.recurrence-yearly { + background-color: #fa709a; + color: white; +} + +.recurrence-custom { + background-color: #ff9a9e; + color: #333; +} + +/* Estilos para el campo executionTime */ +.time-display { + display: flex; + align-items: center; + justify-content: center; + padding: 8px 12px; + background-color: #667eea; + color: white; + border-radius: 16px; + min-width: 100px; +} + +.time-icon { + margin-right: 8px; + font-size: 16px; + width: 16px; + height: 16px; +} + +.time-value { + font-weight: 600; + font-size: 14px; +} + +/* Estilos para el campo nextExecution */ +.next-execution { + display: flex; + align-items: center; + justify-content: center; + padding: 8px 12px; + background-color: #4facfe; + color: white; + border-radius: 16px; + min-width: 120px; +} + +.execution-icon { + margin-right: 8px; + font-size: 16px; + width: 16px; + height: 16px; +} + +/* Estilos para el campo daysOfWeek */ +.days-display { + text-align: center; +} + +.days-header { + display: flex; + align-items: center; + justify-content: center; + margin-bottom: 8px; + color: #495057; +} + +.days-icon { + margin-right: 6px; + font-size: 16px; + width: 16px; + height: 16px; + color: #4facfe; +} + +.days-count { + font-size: 12px; + font-weight: 500; +} + +.days-chips { + display: flex; + flex-wrap: wrap; + gap: 4px; + justify-content: center; +} + +.day-chip { + background-color: #4facfe; + color: white; + padding: 4px 8px; + border-radius: 12px; + font-size: 11px; + font-weight: 600; + min-width: 32px; + text-align: center; +} + +/* Estilos para el campo months */ +.months-display { + text-align: center; +} + +.months-header { + display: flex; + align-items: center; + justify-content: center; + margin-bottom: 8px; + color: #495057; +} + +.months-icon { + margin-right: 6px; + font-size: 16px; + width: 16px; + height: 16px; + color: #43e97b; +} + +.months-count { + font-size: 12px; + font-weight: 500; +} + +.months-chips { + display: flex; + flex-wrap: wrap; + gap: 4px; + justify-content: center; +} + +.month-chip { + background-color: #43e97b; + color: white; + padding: 4px 8px; + border-radius: 12px; + font-size: 11px; + font-weight: 600; + min-width: 32px; + text-align: center; +} + +/* Estilos para el campo enabled */ +.status-container { + display: flex; + justify-content: center; +} + +.status-indicator { + display: flex; + align-items: center; + padding: 8px 16px; + border-radius: 20px; + font-weight: 600; + font-size: 14px; + min-width: 100px; + justify-content: center; +} + +.status-active { + background-color: #43e97b; + color: white; +} + +.status-inactive { + background-color: #ff9a9e; + color: #333; +} + +.status-icon { + margin-right: 8px; + font-size: 16px; + width: 16px; + height: 16px; +} + +/* Estilos para datos no definidos */ +.no-data { + text-align: center; + padding: 8px; +} + +.no-data-text { + color: #6c757d; + font-style: italic; + font-size: 12px; +} + +/* Estilos para el header de acciones */ .header-actions { + margin-bottom: 20px; display: flex; justify-content: flex-end; - margin-bottom: 20px; - padding: 16px; - background: #f8f9fa; - border-radius: 8px; } .action-button { + color: white; + border: none; + padding: 12px 24px; + font-weight: 600; + cursor: pointer; display: flex; align-items: center; gap: 8px; - padding: 12px 24px; - color: white; - border: none; - font-weight: 500; - cursor: pointer; - transition: background-color 0.2s ease; -} - -.action-button:hover { - background: #1565c0; + transition: all 0.3s ease; } .action-button mat-icon { @@ -119,90 +358,60 @@ mat-spinner { height: 20px; } -.create-button { - color: white; - border: none; - padding: 12px 24px; - font-weight: 500; -} - -.create-button mat-icon { - margin-right: 8px; -} - +/* Estilos para el contenedor de búsqueda */ .search-container { display: flex; gap: 16px; - margin: 20px 0; + margin-bottom: 20px; flex-wrap: wrap; } .search-string { + flex: 1; min-width: 250px; } -/* Estilos para los chips de días y meses */ -.days-display, .months-display { +/* Estilos para el paginador */ +.paginator-container { + margin-top: 20px; display: flex; - flex-wrap: wrap; - gap: 4px; + justify-content: center; } -.day-chip, .month-chip { - background: #e3f2fd; - color: #1976d2; - padding: 4px 8px; - border-radius: 12px; - font-size: 0.75rem; - font-weight: 500; - border: 1px solid #bbdefb; +/* Estilos para los botones de acción en la tabla */ +.mat-column-actions .mat-cell { + text-align: center; } -/* Estilos para la próxima ejecución */ -.next-execution { - display: flex; - align-items: center; - gap: 8px; - color: #555; +.mat-column-actions button { + margin: 0 4px; + transition: all 0.3s ease; } -.execution-icon { - font-size: 18px; - color: #2196f3; +.mat-column-actions button:hover { + transform: scale(1.1); } -/* Mejoras en la tabla */ -.mat-table { - border-radius: 8px; - overflow: hidden; -} - -.mat-header-cell { - background: #f5f5f5; - font-weight: 600; - color: #333; -} - -.mat-row:hover { - background: #f8f9fa; -} - -/* Responsive */ +/* Responsive design */ @media (max-width: 768px) { + .recurrence-chip { + min-width: 160px; + padding: 10px 12px; + } + + .recurrence-label { + font-size: 13px; + } + + .recurrence-details { + font-size: 11px; + } + .search-container { flex-direction: column; } .search-string { - min-width: auto; - width: 100%; - } - - .header-actions { - justify-content: center; - } - - .create-button { - width: 100%; + min-width: 100%; } } diff --git a/ogWebconsole/src/app/components/commands/commands-task/show-task-schedule/show-task-schedule.component.html b/ogWebconsole/src/app/components/commands/commands-task/show-task-schedule/show-task-schedule.component.html index c9f5526..38eccee 100644 --- a/ogWebconsole/src/app/components/commands/commands-task/show-task-schedule/show-task-schedule.component.html +++ b/ogWebconsole/src/app/components/commands/commands-task/show-task-schedule/show-task-schedule.component.html @@ -44,24 +44,22 @@