feat: introduce tabs in member cards

This commit is contained in:
2025-08-25 08:31:52 +02:00
parent 128163c824
commit 0390b714a2
2 changed files with 322 additions and 25 deletions

View File

@@ -283,6 +283,154 @@ p {
border: 1px solid rgba(255, 255, 255, 0.1);
}
/* Tab Styles */
.tabs-container {
margin-top: 1rem;
}
.tabs-header {
display: flex;
border-bottom: 1px solid rgba(255, 255, 255, 0.1);
margin-bottom: 1rem;
gap: 0.5rem;
}
.tab-button {
background: rgba(0, 0, 0, 0.3);
border: 1px solid rgba(255, 255, 255, 0.1);
color: rgba(255, 255, 255, 0.7);
padding: 0.5rem 1rem;
border-radius: 8px 8px 0 0;
cursor: pointer;
font-size: 0.9rem;
transition: all 0.3s ease;
border-bottom: none;
}
.tab-button:hover {
background: rgba(0, 0, 0, 0.5);
color: rgba(255, 255, 255, 0.9);
}
.tab-button.active {
background: rgba(255, 255, 255, 0.1);
color: #ecf0f1;
border-color: rgba(255, 255, 255, 0.2);
}
.tab-content {
display: none;
padding: 1rem 0;
}
.tab-content.active {
display: block;
}
/* Task Styles */
.task-item {
background: rgba(0, 0, 0, 0.2);
border: 1px solid rgba(255, 255, 255, 0.1);
border-radius: 8px;
padding: 1rem;
margin-bottom: 0.75rem;
}
.task-header {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 0.5rem;
}
.task-name {
font-weight: 600;
color: #ecf0f1;
}
.task-status {
font-size: 0.85rem;
padding: 0.25rem 0.5rem;
border-radius: 4px;
font-weight: 500;
}
.task-status.running {
background: rgba(76, 175, 80, 0.2);
color: #4caf50;
border: 1px solid rgba(76, 175, 80, 0.3);
}
.task-status.stopped {
background: rgba(244, 67, 54, 0.2);
color: #f44336;
border: 1px solid rgba(244, 67, 54, 0.3);
}
.task-details {
display: flex;
gap: 1rem;
font-size: 0.8rem;
opacity: 0.8;
}
.task-interval, .task-enabled {
background: rgba(0, 0, 0, 0.2);
padding: 0.2rem 0.5rem;
border-radius: 4px;
border: 1px solid rgba(255, 255, 255, 0.05);
}
/* Firmware Upload Styles */
.firmware-upload h4 {
margin-bottom: 1rem;
color: #ecf0f1;
}
.upload-area {
text-align: center;
padding: 2rem;
border: 2px dashed rgba(255, 255, 255, 0.2);
border-radius: 12px;
background: rgba(0, 0, 0, 0.2);
}
.upload-btn {
background: rgba(255, 255, 255, 0.1);
border: 1px solid rgba(255, 255, 255, 0.2);
color: #ecf0f1;
padding: 0.75rem 1.5rem;
border-radius: 8px;
cursor: pointer;
font-size: 1rem;
transition: all 0.3s ease;
margin-bottom: 1rem;
}
.upload-btn:hover {
background: rgba(255, 255, 255, 0.2);
transform: translateY(-2px);
}
.upload-info {
font-size: 0.9rem;
opacity: 0.7;
color: rgba(255, 255, 255, 0.8);
}
.no-tasks {
text-align: center;
padding: 2rem;
opacity: 0.7;
}
.loading-tasks {
text-align: center;
padding: 1rem;
opacity: 0.7;
font-style: italic;
}
.loading {
text-align: center;
padding: 2rem;