feat: add fw tab

This commit is contained in:
2025-08-25 10:00:49 +02:00
parent 9514bf7ac5
commit 381dde1b97
3 changed files with 578 additions and 11 deletions

View File

@@ -499,6 +499,309 @@ p {
opacity: 0.5;
}
/* Main Navigation Styles */
.main-navigation {
display: flex;
gap: 0.25rem;
margin-bottom: 2.5rem;
background: rgba(0, 0, 0, 0.2);
border-radius: 16px;
padding: 0.5rem;
border: 1px solid rgba(255, 255, 255, 0.1);
backdrop-filter: blur(10px);
}
.nav-tab {
background: transparent;
border: none;
color: rgba(255, 255, 255, 0.6);
padding: 0.875rem 1.75rem;
border-radius: 12px;
cursor: pointer;
font-size: 0.95rem;
font-weight: 500;
transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
position: relative;
overflow: hidden;
}
.nav-tab::before {
content: '';
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
opacity: 0;
transition: opacity 0.3s ease;
}
.nav-tab:hover {
color: rgba(255, 255, 255, 0.9);
transform: translateY(-1px);
}
.nav-tab:hover::before {
opacity: 1;
}
.nav-tab.active {
background: rgba(255, 255, 255, 0.15);
color: #ffffff;
box-shadow: 0 4px 20px rgba(255, 255, 255, 0.1);
transform: translateY(-1px);
}
.nav-tab.active::before {
opacity: 0;
}
/* View Content Styles */
.view-content {
display: none;
}
.view-content.active {
display: block;
}
/* Firmware Section Styles */
.firmware-section {
background: rgba(0, 0, 0, 0.25);
border-radius: 24px;
backdrop-filter: blur(15px);
box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
border: 1px solid rgba(255, 255, 255, 0.08);
padding: 2.5rem;
margin-bottom: 2rem;
position: relative;
overflow: hidden;
}
.firmware-section::before {
content: '';
position: absolute;
top: 0;
left: 0;
right: 0;
height: 1px;
background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
}
.firmware-header {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 2.5rem;
padding-bottom: 1.5rem;
border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.firmware-title {
font-size: 1.75rem;
font-weight: 700;
color: #ffffff;
text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}
/* Firmware Stats */
.firmware-stats {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
gap: 1.5rem;
margin-bottom: 3rem;
}
.stat-card {
background: linear-gradient(135deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.03) 100%);
border: 1px solid rgba(255, 255, 255, 0.08);
border-radius: 16px;
padding: 2rem 1.5rem;
text-align: center;
position: relative;
overflow: hidden;
transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.stat-card::before {
content: '';
position: absolute;
top: 0;
left: 0;
right: 0;
height: 2px;
background: linear-gradient(90deg, #667eea, #764ba2);
opacity: 0.7;
}
.stat-card:hover {
transform: translateY(-4px);
box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
border-color: rgba(255, 255, 255, 0.15);
}
.stat-title {
font-size: 0.85rem;
color: rgba(255, 255, 255, 0.6);
margin-bottom: 0.75rem;
text-transform: uppercase;
letter-spacing: 1px;
font-weight: 600;
}
.stat-value {
font-size: 2.5rem;
font-weight: 800;
color: #ffffff;
text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}
/* Firmware Actions */
.firmware-actions {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
gap: 2.5rem;
margin-bottom: 3rem;
}
.action-group {
background: rgba(0, 0, 0, 0.2);
border-radius: 20px;
padding: 2rem;
border: 1px solid rgba(255, 255, 255, 0.06);
position: relative;
overflow: hidden;
}
.action-group::before {
content: '';
position: absolute;
top: 0;
left: 0;
right: 0;
height: 1px;
background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);
}
.action-group h3 {
color: #ffffff;
margin-bottom: 1.5rem;
font-size: 1.2rem;
font-weight: 600;
text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}
.upload-area-large {
text-align: center;
padding: 2.5rem;
border: 2px dashed rgba(255, 255, 255, 0.15);
border-radius: 16px;
background: linear-gradient(135deg, rgba(255, 255, 255, 0.03) 0%, rgba(255, 255, 255, 0.01) 100%);
transition: all 0.3s ease;
}
.upload-area-large:hover {
border-color: rgba(255, 255, 255, 0.25);
background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.02) 100%);
}
.upload-btn-large {
background: linear-gradient(135deg, rgba(255, 255, 255, 0.15) 0%, rgba(255, 255, 255, 0.08) 100%);
border: 1px solid rgba(255, 255, 255, 0.2);
color: #ffffff;
padding: 1.25rem 2.5rem;
border-radius: 12px;
cursor: pointer;
font-size: 1.1rem;
font-weight: 600;
transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
margin-bottom: 1.5rem;
position: relative;
overflow: hidden;
}
.upload-btn-large::before {
content: '';
position: absolute;
top: 0;
left: -100%;
width: 100%;
height: 100%;
background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
transition: left 0.5s ease;
}
.upload-btn-large:hover {
background: linear-gradient(135deg, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0.12) 100%);
transform: translateY(-3px);
box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}
.upload-btn-large:hover::before {
left: 100%;
}
.upload-info-large {
font-size: 0.9rem;
color: rgba(255, 255, 255, 0.7);
line-height: 1.5;
}
/* Target Selection */
.target-selection {
display: flex;
flex-direction: column;
gap: 1.25rem;
}
.target-selection label {
display: flex;
align-items: center;
gap: 0.75rem;
color: rgba(255, 255, 255, 0.9);
cursor: pointer;
padding: 0.75rem;
border-radius: 10px;
transition: all 0.2s ease;
border: 1px solid transparent;
}
.target-selection label:hover {
background: rgba(255, 255, 255, 0.05);
border-color: rgba(255, 255, 255, 0.1);
}
.target-selection input[type="radio"] {
margin: 0;
width: 18px;
height: 18px;
accent-color: #667eea;
}
.target-selection select {
background: linear-gradient(135deg, rgba(0, 0, 0, 0.4) 0%, rgba(0, 0, 0, 0.3) 100%);
border: 1px solid rgba(255, 255, 255, 0.15);
color: #ffffff;
padding: 0.75rem 1rem;
border-radius: 10px;
margin-top: 0.75rem;
font-size: 0.95rem;
transition: all 0.2s ease;
cursor: pointer;
}
.target-selection select:hover {
border-color: rgba(255, 255, 255, 0.25);
background: linear-gradient(135deg, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0.4) 100%);
}
.target-selection select:focus {
outline: none;
border-color: #667eea;
box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}
/* Responsive design for smaller screens */
@media (max-width: 768px) {
.header {
@@ -516,6 +819,52 @@ p {
font-size: 0.9rem;
}
/* Mobile navigation */
.main-navigation {
flex-direction: column;
gap: 0.25rem;
padding: 0.75rem;
}
.nav-tab {
padding: 0.75rem 1rem;
font-size: 0.9rem;
border-radius: 10px;
text-align: center;
}
/* Mobile firmware stats */
.firmware-stats {
grid-template-columns: 1fr;
gap: 1rem;
}
.stat-card {
padding: 1.5rem 1rem;
}
.stat-value {
font-size: 2rem;
}
.firmware-actions {
grid-template-columns: 1fr;
gap: 2rem;
}
.action-group {
padding: 1.5rem;
}
.upload-area-large {
padding: 2rem 1.5rem;
}
.upload-btn-large {
padding: 1rem 2rem;
font-size: 1rem;
}
/* Mobile tab responsiveness */
.tabs-header {
flex-wrap: wrap;