finish dashboard layout

This commit is contained in:
smanylov
2025-11-26 18:21:44 +07:00
parent 12f788829f
commit fecb811a5c
6 changed files with 431 additions and 2 deletions
+236 -2
View File
@@ -167,7 +167,6 @@
display: grid;
grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
gap: 20px;
margin-bottom: 30px;
}
.block-wrapper {
@@ -176,6 +175,7 @@
padding: 25px;
box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
border: 1px solid #f1f5f9;
margin-bottom: 30px;
}
.storage-breakdown {
@@ -322,7 +322,6 @@
display: grid;
grid-template-columns: 2fr 1fr;
gap: 30px;
margin-bottom: 30px;
}
.chart-container {
@@ -550,4 +549,239 @@
margin-top: 5px;
}
}
}
.violations-table {
background: white;
border-radius: 20px;
overflow: hidden;
box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
border: 1px solid #f1f5f9;
.violation-main {
flex: 1;
display: flex;
align-items: center;
gap: 15px;
}
.violation-card {
padding: 20px 25px;
border-bottom: 1px solid #f1f5f9;
transition: all 0.3s ease;
display: flex;
align-items: center;
justify-content: space-between;
gap: 15px;
&:hover {
background: linear-gradient(90deg, #f8fafc 0%, #f1f5f9 100%);
}
}
.violation-icon-wrapper {
width: 100%;
height: 100%;
object-fit: cover;
border-radius: 12px;
width: 48px;
height: 48px;
border-radius: 12px;
display: flex;
align-items: center;
justify-content: center;
font-size: 20px;
flex-shrink: 0;
&.photo {
background: linear-gradient(135deg, #dbeafe, #bfdbfe);
img {
width: 100%;
height: 100%;
object-fit: cover;
border-radius: 12px;
}
}
}
.btn-primary {
padding: 10px 20px;
}
.violation-content-info {
flex: 1;
}
.violation-filename {
font-weight: 600;
color: #1e293b;
font-size: 15px;
margin-bottom: 5px;
display: block;
}
.violation-meta {
display: flex;
gap: 15px;
font-size: 13px;
color: #64748b;
flex-wrap: wrap;
}
.violation-meta-item {
display: flex;
align-items: center;
gap: 5px;
}
.violation-status-badge {
padding: 6px 12px;
border-radius: 20px;
font-size: 12px;
font-weight: 600;
background: linear-gradient(135deg, #fee2e2, #fecaca);
color: #dc2626;
white-space: nowrap;
}
.violation-sources-badge {
padding: 6px 12px;
border-radius: 20px;
font-size: 12px;
font-weight: 600;
background: linear-gradient(135deg, #fef3c7, #fde68a);
color: #d97706;
white-space: nowrap;
}
}
.violations-type-table {
.data-table {
width: 100%;
border-collapse: collapse;
margin-top: 15px;
}
.data-table th {
font-weight: 600;
color: #374151;
background: #f9fafb;
font-size: 12px;
text-transform: uppercase;
letter-spacing: 1px;
}
.data-table td {
color: #6b7280;
font-size: 14px;
font-weight: 600;
}
.data-table th,
.data-table td {
text-align: left;
padding: 15px;
border-bottom: 1px solid #f3f4f6;
}
.type-violations {
text-transform: uppercase;
}
.total-violations {
span {
color: #dc2626;
}
}
.new-violations {
span {
color: #f59e0b;
}
}
.status-violations {
span {
background: #fef2f2;
color: #dc2626;
padding: 4px 8px;
border-radius: 6px;
font-size: 12px;
font-weight: 600;
}
}
}
.activity-chart {
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
color: white;
border-radius: 20px;
padding: 25px;
box-shadow: 0 8px 30px rgba(102, 126, 234, 0.3);
border: none;
position: relative;
overflow: hidden;
h3 {
margin: 0 0 15px 0;
font-size: 18px;
color: white;
position: relative;
z-index: 1;
}
.activity-grid {
display: grid;
grid-template-columns: repeat(7, 1fr);
gap: 12px;
margin: 20px 0;
position: relative;
z-index: 1;
}
.activity-day {
text-align: center;
padding: 15px;
background: rgba(255, 255, 255, 0.15);
border-radius: 12px;
border: 1px solid rgba(255, 255, 255, 0.2);
transition: all 0.3s ease;
backdrop-filter: blur(10px);
position: relative;
&:hover {
background: rgba(255, 255, 255, 0.25);
transform: translateY(-3px);
box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}
}
.activity-day-label {
font-size: 12px;
opacity: 0.8;
margin-bottom: 8px;
font-weight: 500;
}
.activity-day-value {
font-size: 20px;
font-weight: 700;
margin-bottom: 4px;
}
.activity-day-files {
font-size: 10px;
opacity: 0.7;
}
.activity-chart-footer {
text-align: center;
font-size: 12px;
opacity: 0.8;
position: relative;
z-index: 1;
margin-top: 15px;
}
}