change dashboard layout
This commit is contained in:
+119
-479
@@ -45,6 +45,7 @@
|
||||
border-radius: 20px;
|
||||
padding: 25px;
|
||||
margin-bottom: 30px;
|
||||
position: relative;
|
||||
|
||||
h3 {
|
||||
margin: 0 0 10px 0;
|
||||
@@ -52,120 +53,163 @@
|
||||
}
|
||||
|
||||
p {
|
||||
margin: 0;
|
||||
opacity: 0.9;
|
||||
font-size: 14px;
|
||||
margin-bottom: 20px;
|
||||
}
|
||||
|
||||
.pie-char-text {
|
||||
fill: white;
|
||||
font-size: 20px;
|
||||
text-anchor: middle;
|
||||
dominant-baseline: middle;
|
||||
}
|
||||
|
||||
.protection-stats {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
|
||||
gap: 20px;
|
||||
margin-top: 20px;
|
||||
grid-template-areas: "aaa bbb ccc";
|
||||
transition: all 0.3s;
|
||||
height: 124px;
|
||||
|
||||
&.opened {
|
||||
grid-template-areas: "aaa ccc ccc" "bbb ccc ccc";
|
||||
height: 254px;
|
||||
}
|
||||
}
|
||||
|
||||
.total-files {
|
||||
grid-area: aaa;
|
||||
}
|
||||
|
||||
.total-checks {
|
||||
grid-area: bbb;
|
||||
}
|
||||
|
||||
.total-usage {
|
||||
grid-area: ccc;
|
||||
}
|
||||
|
||||
.protection-stat {
|
||||
text-align: center;
|
||||
padding: 15px;
|
||||
background: rgba(255, 255, 255, 0.1);
|
||||
border-radius: 12px;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
|
||||
&-row {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: start;
|
||||
gap: 10px;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
&-value {
|
||||
font-size: 28px;
|
||||
font-weight: 700;
|
||||
margin-bottom: 5px;
|
||||
}
|
||||
|
||||
&-label {
|
||||
font-size: 14px;
|
||||
opacity: 0.9;
|
||||
}
|
||||
}
|
||||
|
||||
.protection-stat-value {
|
||||
font-size: 28px;
|
||||
font-weight: 700;
|
||||
margin-bottom: 5px;
|
||||
&-switch {
|
||||
position: absolute;
|
||||
right: 10px;
|
||||
top: 10px;
|
||||
}
|
||||
}
|
||||
|
||||
.protection-stat-label {
|
||||
font-size: 12px;
|
||||
opacity: 0.9;
|
||||
.stats-wrapper {
|
||||
border-radius: 20px;
|
||||
overflow: hidden;
|
||||
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
|
||||
box-shadow: 0 4px 20px #00000014;
|
||||
margin-bottom: 30px;
|
||||
padding: 20px;
|
||||
|
||||
h3 {
|
||||
font-size: 20px;
|
||||
margin-bottom: 10px;
|
||||
color: white;
|
||||
}
|
||||
}
|
||||
|
||||
.stats-grid {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(4, 1fr);
|
||||
gap: 20px;
|
||||
margin-bottom: 30px;
|
||||
grid-template-columns: repeat(5, 1fr);
|
||||
--boder-collor: #e4eaf028;
|
||||
|
||||
.stat-card.images {
|
||||
--card-color-1: #ff6b8a;
|
||||
--card-color-2: #ff8da1;
|
||||
.stats-item.images {
|
||||
--card-color-1: #f08c00;
|
||||
}
|
||||
|
||||
.stat-card.videos {
|
||||
--card-color-1: #8b5cf6;
|
||||
--card-color-2: #a78bfa;
|
||||
.stats-item.videos {
|
||||
--card-color-1: #2f9e44;
|
||||
}
|
||||
|
||||
.stat-card.audio {
|
||||
--card-color-1: #10b981;
|
||||
--card-color-2: #34d399;
|
||||
.stats-item.audio {
|
||||
--card-color-1: #1971c2;
|
||||
}
|
||||
|
||||
.stat-card.scripts {
|
||||
--card-color-1: #f59e0b;
|
||||
--card-color-2: #fbbf24;
|
||||
}
|
||||
|
||||
.stat-card {
|
||||
background: linear-gradient(135deg, var(--card-color-1), var(--card-color-2));
|
||||
border-radius: 20px;
|
||||
padding: 25px;
|
||||
.stats-item {
|
||||
border: 1px solid var(--boder-collor);
|
||||
border-right: none;
|
||||
border-bottom: none;
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
height: 40px;
|
||||
background: #ffffff1a;
|
||||
color: white;
|
||||
position: relative;
|
||||
overflow: hidden;
|
||||
transition: transform 0.3s, box-shadow 0.3s;
|
||||
|
||||
&::after {
|
||||
content: '';
|
||||
position: absolute;
|
||||
top: -50%;
|
||||
right: -20px;
|
||||
width: 100px;
|
||||
height: 150px;
|
||||
background: rgba(255, 255, 255, 0.1);
|
||||
border-radius: 50px;
|
||||
transform: rotate(45deg);
|
||||
&.stats-header {
|
||||
/* background: linear-gradient(180deg, #6366f1 0%, #8587f7 80%); */
|
||||
color: white;
|
||||
border-left: none;
|
||||
font-size: 18px;
|
||||
}
|
||||
|
||||
&:hover {
|
||||
transform: translateY(-5px);
|
||||
box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
|
||||
&.first-column {
|
||||
font-size: 18px;
|
||||
border-left: 1px solid var(--boder-collor);
|
||||
|
||||
.icon {
|
||||
color: var(--card-color-1);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.stat-type {
|
||||
font-size: 12px;
|
||||
opacity: 0.8;
|
||||
margin-bottom: 10px;
|
||||
text-transform: uppercase;
|
||||
letter-spacing: 1px;
|
||||
position: relative;
|
||||
z-index: 1;
|
||||
}
|
||||
&.last-column {
|
||||
border-right: 1px solid var(--boder-collor);
|
||||
}
|
||||
|
||||
.stat-value {
|
||||
font-size: 32px;
|
||||
font-weight: 700;
|
||||
margin-bottom: 5px;
|
||||
position: relative;
|
||||
z-index: 1;
|
||||
}
|
||||
&.last-row {
|
||||
border-bottom: 1px solid var(--boder-collor);
|
||||
}
|
||||
|
||||
.stat-label {
|
||||
font-size: 14px;
|
||||
opacity: 0.9;
|
||||
position: relative;
|
||||
z-index: 1;
|
||||
}
|
||||
&.left-top-corner {
|
||||
border-top-left-radius: 10px;
|
||||
border-left: 1px solid var(--boder-collor);
|
||||
}
|
||||
|
||||
.stat-icon {
|
||||
font-size: 12px;
|
||||
color: white;
|
||||
margin-top: 5px;
|
||||
font-weight: 700;
|
||||
&.right-top-corner {
|
||||
border-top-right-radius: 10px;
|
||||
}
|
||||
|
||||
&.left-bottom-corner {
|
||||
border-bottom-left-radius: 10px;
|
||||
}
|
||||
|
||||
&.right-bottom-corner {
|
||||
border-bottom-right-radius: 10px;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -178,101 +222,6 @@
|
||||
margin-bottom: 30px;
|
||||
}
|
||||
|
||||
.storage-breakdown {
|
||||
.storage-item {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
padding: 12px 0;
|
||||
border-bottom: 1px solid #f1f5f9;
|
||||
}
|
||||
|
||||
.storage-icon {
|
||||
width: 24px;
|
||||
height: 24px;
|
||||
border-radius: 6px;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
font-size: 12px;
|
||||
|
||||
&.storage-icon.photos {
|
||||
background: #dbeafe;
|
||||
color: #1d4ed8;
|
||||
}
|
||||
|
||||
&.storage-icon.videos {
|
||||
background: #f3e8ff;
|
||||
color: #7c3aed;
|
||||
}
|
||||
|
||||
&.storage-icon.audio {
|
||||
background: #d1fae5;
|
||||
color: #059669;
|
||||
}
|
||||
|
||||
&.storage-icon.documents {
|
||||
background: #fed7d7;
|
||||
color: #dc2626;
|
||||
}
|
||||
|
||||
&.storage-icon.code {
|
||||
background: #e0e7ff;
|
||||
color: #4f46e5;
|
||||
}
|
||||
|
||||
&.storage-icon.text {
|
||||
background: #fef3c7;
|
||||
color: #d97706;
|
||||
}
|
||||
}
|
||||
|
||||
.storage-type {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 10px;
|
||||
}
|
||||
|
||||
.storage-footer {
|
||||
margin-top: 15px;
|
||||
padding-top: 15px;
|
||||
border-top: 2px solid #e2e8f0;
|
||||
}
|
||||
|
||||
.storage-footer-header {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
margin-bottom: 8px;
|
||||
}
|
||||
|
||||
.storage-footer-title {
|
||||
font-weight: 600;
|
||||
color: #1e293b;
|
||||
}
|
||||
|
||||
.storage-footer-weight {
|
||||
font-weight: 600;
|
||||
color: #6366f1;
|
||||
font-size: 16px;
|
||||
}
|
||||
|
||||
.progress-bar {
|
||||
background: #f1f5f9;
|
||||
border-radius: 10px;
|
||||
height: 8px;
|
||||
overflow: hidden;
|
||||
margin: 15px 0;
|
||||
}
|
||||
|
||||
.progress-fill {
|
||||
height: 100%;
|
||||
background: linear-gradient(90deg, #10b981, #059669);
|
||||
border-radius: 10px;
|
||||
transition: width 0.8s ease;
|
||||
}
|
||||
}
|
||||
|
||||
.recent-files-list {
|
||||
.file-item {
|
||||
display: flex;
|
||||
@@ -318,152 +267,6 @@
|
||||
}
|
||||
}
|
||||
|
||||
.chart-container {
|
||||
.chart-header {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
margin-bottom: 20px;
|
||||
}
|
||||
|
||||
.date-filter {
|
||||
background: #f3f4f6;
|
||||
border: none;
|
||||
padding: 8px 15px;
|
||||
border-radius: 10px;
|
||||
font-size: 12px;
|
||||
cursor: pointer;
|
||||
transition: background-color 0.3s;
|
||||
}
|
||||
|
||||
.chart-main-content {
|
||||
padding: 25px;
|
||||
background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
|
||||
border-radius: 15px;
|
||||
border: 1px solid #e2e8f0;
|
||||
}
|
||||
|
||||
.chart-grid {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
|
||||
gap: 20px;
|
||||
}
|
||||
|
||||
.chart-item.images {
|
||||
--chart-color-1: #10b981;
|
||||
--chart-color-2: #34d399;
|
||||
}
|
||||
|
||||
.chart-item.videos {
|
||||
--chart-color-1: #8b5cf6;
|
||||
--chart-color-2: #7c3aed;
|
||||
}
|
||||
|
||||
.chart-item.audios {
|
||||
--chart-color-1: #f59e0b;
|
||||
--chart-color-2: #d97706;
|
||||
}
|
||||
|
||||
.chart-item.documents {
|
||||
--chart-color-1: #ef4444;
|
||||
--chart-color-2: #dc2626;
|
||||
}
|
||||
|
||||
.chart-item.scripts {
|
||||
--chart-color-1: #4f46e5;
|
||||
--chart-color-2: #4338ca;
|
||||
}
|
||||
|
||||
.chart-item.texts {
|
||||
--chart-color-1: #d97706;
|
||||
--chart-color-2: #b45309;
|
||||
}
|
||||
|
||||
.chart-item {
|
||||
border-left: 4px solid var(--chart-color-1);
|
||||
|
||||
background: white;
|
||||
padding: 20px;
|
||||
border-radius: 12px;
|
||||
box-shadow: 0 2px 10px rgba(16, 185, 129, 0.1);
|
||||
|
||||
&-header {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
margin-bottom: 10px;
|
||||
gap: 10px;
|
||||
}
|
||||
|
||||
&-image {
|
||||
width: 32px;
|
||||
height: 32px;
|
||||
border-radius: 8px;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
color: white;
|
||||
font-size: 16px;
|
||||
background: linear-gradient(135deg, var(--chart-color-1), var(--chart-color-2));
|
||||
}
|
||||
|
||||
&-title {
|
||||
font-weight: 600;
|
||||
color: #1f2937;
|
||||
}
|
||||
|
||||
&-count {
|
||||
font-size: 24px;
|
||||
font-weight: 700;
|
||||
color: var(--chart-color-1);
|
||||
margin-bottom: 5px;
|
||||
}
|
||||
|
||||
&-tooltip {
|
||||
font-size: 12px;
|
||||
color: #6b7280;
|
||||
}
|
||||
|
||||
&-progress-bar {
|
||||
margin-top: 10px;
|
||||
height: 4px;
|
||||
background: #e5e7eb;
|
||||
border-radius: 2px;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
&-progress-fill {
|
||||
height: 100%;
|
||||
background: linear-gradient(90deg, var(--chart-color-1), var(--chart-color-2));
|
||||
width: 2%;
|
||||
transition: width 1s ease;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
.chart-total {
|
||||
margin-top: 20px;
|
||||
padding: 15px;
|
||||
background: white;
|
||||
border-radius: 10px;
|
||||
border: 1px solid #e5e7eb;
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
.chart-total-text {
|
||||
color: #6b7280;
|
||||
font-size: 14px;
|
||||
}
|
||||
|
||||
.chart-total-count {
|
||||
font-size: 18px;
|
||||
font-weight: 700;
|
||||
color: #1f2937;
|
||||
}
|
||||
}
|
||||
|
||||
.user-info {
|
||||
.user-data {
|
||||
margin-bottom: 20px;
|
||||
@@ -545,169 +348,6 @@
|
||||
}
|
||||
}
|
||||
|
||||
.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;
|
||||
|
||||
@@ -1,7 +1,12 @@
|
||||
.main-containter {
|
||||
.main-containter-wrapper {
|
||||
margin-left: 280px;
|
||||
flex: 1;
|
||||
padding: 30px;
|
||||
background: #f8f9ff;
|
||||
min-height: 100vh;
|
||||
}
|
||||
|
||||
.main-containter {
|
||||
max-width: 1920px;
|
||||
margin: 0 auto;
|
||||
}
|
||||
Reference in New Issue
Block a user