This commit is contained in:
2025-10-21 20:29:39 +09:00
parent 230ea0890d
commit bc15452181
163 changed files with 5177 additions and 16122 deletions

View File

@@ -0,0 +1,558 @@
/**
* Dell iDRAC 멀티 서버 펌웨어 관리 스타일
* backend/static/css/idrac_style.css
*/
/* 기본 스타일 */
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
min-height: 100vh;
padding: 20px;
}
.container {
max-width: 1400px;
margin: 0 auto;
}
/* 헤더 */
header {
background: white;
padding: 30px;
border-radius: 15px;
box-shadow: 0 10px 30px rgba(0,0,0,0.2);
margin-bottom: 30px;
text-align: center;
}
header h1 {
color: #333;
font-size: 2.5em;
margin-bottom: 10px;
}
header .subtitle {
color: #666;
font-size: 1.1em;
}
/* 카드 */
.card {
background: white;
padding: 30px;
border-radius: 15px;
box-shadow: 0 10px 30px rgba(0,0,0,0.2);
margin-bottom: 30px;
}
.card-header {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 20px;
padding-bottom: 15px;
border-bottom: 2px solid #eee;
}
.card-header h2 {
color: #333;
font-size: 1.8em;
}
.header-actions {
display: flex;
gap: 10px;
}
/* 필터 그룹 */
.filter-group {
display: flex;
align-items: center;
gap: 15px;
margin-bottom: 20px;
padding: 15px;
background: #f8f9fa;
border-radius: 8px;
}
.filter-group label {
font-weight: 600;
color: #555;
}
.filter-group select {
padding: 8px 15px;
border: 2px solid #ddd;
border-radius: 5px;
font-size: 1em;
min-width: 200px;
}
.count-badge {
background: #667eea;
color: white;
padding: 5px 15px;
border-radius: 20px;
font-weight: 600;
}
/* 서버 테이블 */
.table-container {
overflow-x: auto;
margin-bottom: 20px;
}
.server-table {
width: 100%;
border-collapse: collapse;
}
.server-table thead {
background: #667eea;
color: white;
}
.server-table th {
padding: 15px;
text-align: left;
font-weight: 600;
}
.server-table tbody tr {
border-bottom: 1px solid #eee;
transition: background 0.2s;
}
.server-table tbody tr:hover {
background: #f8f9fa;
}
.server-table td {
padding: 15px;
}
.empty-message {
text-align: center;
color: #999;
padding: 40px !important;
font-style: italic;
}
/* 상태 배지 */
.status {
padding: 5px 12px;
border-radius: 15px;
font-size: 0.9em;
font-weight: 600;
}
.status-registered {
background: #e3f2fd;
color: #1976d2;
}
.status-online {
background: #e8f5e9;
color: #2e7d32;
}
.status-offline {
background: #ffebee;
color: #c62828;
}
.status-updating {
background: #fff3e0;
color: #f57c00;
}
.badge {
background: #f0f0f0;
padding: 4px 10px;
border-radius: 10px;
font-size: 0.9em;
color: #666;
}
/* 버튼 */
.btn {
padding: 10px 20px;
border: none;
border-radius: 8px;
font-size: 1em;
font-weight: 600;
cursor: pointer;
transition: all 0.3s;
}
.btn-primary {
background: #667eea;
color: white;
}
.btn-primary:hover {
background: #5568d3;
transform: translateY(-2px);
box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}
.btn-secondary {
background: #6c757d;
color: white;
}
.btn-secondary:hover {
background: #5a6268;
}
.btn-info {
background: #17a2b8;
color: white;
}
.btn-info:hover {
background: #138496;
}
.btn-warning {
background: #ffc107;
color: #333;
}
.btn-warning:hover {
background: #e0a800;
}
.btn-danger {
background: #dc3545;
color: white;
}
.btn-danger:hover {
background: #c82333;
}
.btn-success {
background: #28a745;
color: white;
}
.btn-success:hover {
background: #218838;
}
.btn-icon {
background: none;
border: none;
font-size: 1.2em;
cursor: pointer;
padding: 5px;
transition: transform 0.2s;
}
.btn-icon:hover {
transform: scale(1.2);
}
.action-buttons {
display: flex;
gap: 5px;
}
/* 일괄 작업 */
.bulk-actions {
display: flex;
align-items: center;
gap: 15px;
padding: 15px;
background: #f8f9fa;
border-radius: 8px;
}
.bulk-actions span {
font-weight: 600;
color: #555;
}
/* 모달 */
.modal {
display: none;
position: fixed;
z-index: 1000;
left: 0;
top: 0;
width: 100%;
height: 100%;
background: rgba(0,0,0,0.5);
justify-content: center;
align-items: center;
}
.modal-content {
background: white;
border-radius: 15px;
width: 90%;
max-width: 600px;
max-height: 90vh;
overflow-y: auto;
box-shadow: 0 10px 40px rgba(0,0,0,0.3);
}
.modal-header {
display: flex;
justify-content: space-between;
align-items: center;
padding: 20px 30px;
border-bottom: 2px solid #eee;
}
.modal-header h3 {
color: #333;
font-size: 1.5em;
}
.close {
font-size: 2em;
color: #999;
cursor: pointer;
line-height: 1;
}
.close:hover {
color: #333;
}
.modal-body {
padding: 30px;
}
.modal-footer {
display: flex;
justify-content: flex-end;
gap: 10px;
padding: 20px 30px;
border-top: 2px solid #eee;
}
/* 폼 그룹 */
.form-group {
margin-bottom: 20px;
}
.form-group label {
display: block;
margin-bottom: 8px;
color: #555;
font-weight: 600;
}
.form-group input,
.form-group select,
.form-group textarea {
width: 100%;
padding: 10px;
border: 2px solid #ddd;
border-radius: 5px;
font-size: 1em;
transition: border-color 0.3s;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
outline: none;
border-color: #667eea;
}
/* 진행 상황 */
.progress-item {
margin-bottom: 20px;
padding: 15px;
background: #f8f9fa;
border-radius: 8px;
}
.progress-header {
display: flex;
justify-content: space-between;
margin-bottom: 10px;
}
.progress-status {
color: #666;
font-size: 0.9em;
}
.progress-bar-container {
width: 100%;
height: 30px;
background: #e0e0e0;
border-radius: 15px;
overflow: hidden;
margin-bottom: 10px;
}
.progress-bar {
height: 100%;
transition: width 0.3s, background 0.3s;
display: flex;
align-items: center;
justify-content: center;
color: white;
font-weight: 600;
}
.progress-uploading {
background: linear-gradient(90deg, #667eea, #764ba2);
animation: pulse 1.5s ease-in-out infinite;
}
.progress-completed {
background: #28a745;
}
.progress-failed {
background: #dc3545;
}
@keyframes pulse {
0%, 100% { opacity: 1; }
50% { opacity: 0.7; }
}
.progress-message {
font-size: 0.9em;
color: #666;
}
.progress-summary {
margin-top: 20px;
padding: 15px;
background: #e3f2fd;
border-radius: 8px;
}
.summary-stats {
display: flex;
justify-content: space-around;
font-weight: 600;
}
.summary-stats span {
padding: 5px 15px;
background: white;
border-radius: 5px;
}
/* 결과 테이블 */
.result-table {
width: 100%;
border-collapse: collapse;
margin-top: 15px;
}
.result-table thead {
background: #f8f9fa;
}
.result-table th {
padding: 12px;
text-align: left;
border-bottom: 2px solid #ddd;
}
.result-table td {
padding: 12px;
border-bottom: 1px solid #eee;
}
.result-table tr.success {
background: #e8f5e9;
}
.result-table tr.failed {
background: #ffebee;
}
.result-badge {
padding: 5px 10px;
border-radius: 10px;
font-weight: 600;
font-size: 0.9em;
}
.badge-success {
background: #28a745;
color: white;
}
.badge-failed {
background: #dc3545;
color: white;
}
/* 메시지 */
.info-text {
padding: 15px;
background: #e3f2fd;
border-left: 4px solid #2196f3;
border-radius: 5px;
color: #1976d2;
line-height: 1.8;
}
.warning-text {
padding: 15px;
background: #fff3e0;
border-left: 4px solid #ff9800;
border-radius: 5px;
color: #f57c00;
font-weight: 600;
}
/* 푸터 */
footer {
text-align: center;
padding: 20px;
color: white;
font-size: 0.9em;
}
/* 반응형 */
@media (max-width: 768px) {
.card-header {
flex-direction: column;
align-items: flex-start;
}
.header-actions {
margin-top: 10px;
width: 100%;
}
.header-actions button {
flex: 1;
}
.bulk-actions {
flex-wrap: wrap;
}
.modal-content {
width: 95%;
}
}
/* 체크박스 커스텀 */
input[type="checkbox"] {
width: 18px;
height: 18px;
cursor: pointer;
}

View File

@@ -0,0 +1,342 @@
/* 탭 메뉴 스타일 */
.tab-menu {
display: flex;
gap: 10px;
margin-bottom: 20px;
border-bottom: 2px solid #e0e0e0;
}
.tab-button {
padding: 12px 25px;
background: transparent;
border: none;
border-bottom: 3px solid transparent;
cursor: pointer;
font-weight: 600;
font-size: 14px;
color: #666;
transition: all 0.3s;
}
.tab-button:hover {
color: #667eea;
background: #f8f9ff;
}
.tab-button.active {
color: #667eea;
border-bottom-color: #667eea;
background: #f8f9ff;
}
.tab-content {
display: none;
}
.tab-content.active {
display: block;
animation: fadeIn 0.3s;
}
@keyframes fadeIn {
from { opacity: 0; transform: translateY(10px); }
to { opacity: 1; transform: translateY(0); }
}
/* 버전 상태 표시 */
.version-status {
display: inline-block;
padding: 4px 12px;
border-radius: 12px;
font-size: 12px;
font-weight: 600;
}
.version-status-outdated {
background: #fee;
color: #dc3545;
border: 1px solid #fcc;
}
.version-status-outdated::before {
content: "🔴 ";
}
.version-status-latest {
background: #efe;
color: #28a745;
border: 1px solid #cfc;
}
.version-status-latest::before {
content: "🟢 ";
}
.version-status-unknown {
background: #ffeaa7;
color: #e17055;
border: 1px solid #fdcb6e;
}
.version-status-unknown::before {
content: "🟡 ";
}
/* 버전 비교 결과 카드 */
.comparison-card {
background: white;
border-radius: 8px;
padding: 20px;
margin-bottom: 20px;
box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
.comparison-card h3 {
margin: 0 0 15px 0;
color: #333;
font-size: 18px;
display: flex;
align-items: center;
gap: 10px;
}
.comparison-summary {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
gap: 15px;
margin-bottom: 20px;
}
.summary-item {
background: #f8f9fa;
padding: 15px;
border-radius: 8px;
text-align: center;
}
.summary-item .label {
font-size: 12px;
color: #666;
margin-bottom: 5px;
}
.summary-item .value {
font-size: 24px;
font-weight: bold;
color: #333;
}
.summary-item.outdated .value {
color: #dc3545;
}
.summary-item.latest .value {
color: #28a745;
}
.summary-item.unknown .value {
color: #ffc107;
}
/* 펌웨어 항목 리스트 */
.firmware-item {
display: flex;
justify-content: space-between;
align-items: center;
padding: 12px;
border-bottom: 1px solid #f0f0f0;
}
.firmware-item:last-child {
border-bottom: none;
}
.firmware-item:hover {
background: #f8f9fa;
}
.firmware-name {
font-weight: 600;
color: #333;
flex: 1;
}
.firmware-versions {
display: flex;
align-items: center;
gap: 15px;
}
.version-badge {
padding: 4px 10px;
border-radius: 4px;
font-size: 13px;
font-family: 'Courier New', monospace;
}
.version-current {
background: #e9ecef;
color: #495057;
}
.version-arrow {
color: #999;
font-size: 18px;
}
.version-latest {
background: #d4edda;
color: #155724;
font-weight: 600;
}
.version-recommendation {
font-size: 12px;
color: #666;
margin-left: 10px;
}
/* 중요 업데이트 배지 */
.critical-badge {
display: inline-block;
background: #dc3545;
color: white;
padding: 2px 8px;
border-radius: 10px;
font-size: 11px;
font-weight: 600;
margin-left: 8px;
}
/* 다운로드 링크 */
.download-link {
color: #667eea;
text-decoration: none;
font-size: 12px;
margin-left: 10px;
}
.download-link:hover {
text-decoration: underline;
}
/* 버전 관리 테이블 */
.version-table {
width: 100%;
border-collapse: collapse;
}
.version-table th {
background: #f8f9fa;
padding: 12px;
text-align: left;
font-weight: 600;
color: #495057;
border-bottom: 2px solid #dee2e6;
}
.version-table td {
padding: 12px;
border-bottom: 1px solid #dee2e6;
}
.version-table tr:hover {
background: #f8f9fa;
}
/* 빈 상태 메시지 */
.empty-state {
text-align: center;
padding: 60px 20px;
color: #999;
}
.empty-state .icon {
font-size: 48px;
margin-bottom: 20px;
}
.empty-state .message {
font-size: 16px;
margin-bottom: 20px;
}
/* 필터 그룹 개선 */
.filter-group {
display: flex;
align-items: center;
gap: 15px;
margin-bottom: 20px;
padding: 15px;
background: #f8f9fa;
border-radius: 8px;
}
.filter-group label {
font-weight: 600;
color: #495057;
}
.filter-group select {
padding: 8px 12px;
border: 1px solid #ced4da;
border-radius: 4px;
background: white;
}
.count-badge {
background: #667eea;
color: white;
padding: 4px 12px;
border-radius: 12px;
font-size: 13px;
font-weight: 600;
}
/* 진행률 표시 */
.progress-bar {
width: 100%;
height: 8px;
background: #e9ecef;
border-radius: 4px;
overflow: hidden;
margin: 10px 0;
}
.progress-fill {
height: 100%;
background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
transition: width 0.3s;
}
/* 반응형 */
@media (max-width: 768px) {
.tab-menu {
flex-direction: column;
}
.tab-button {
border-bottom: none;
border-left: 3px solid transparent;
}
.tab-button.active {
border-left-color: #667eea;
border-bottom-color: transparent;
}
.comparison-summary {
grid-template-columns: 1fr;
}
.firmware-item {
flex-direction: column;
align-items: flex-start;
gap: 10px;
}
.firmware-versions {
width: 100%;
justify-content: space-between;
}
}