This commit is contained in:
smanylov
2025-12-27 13:47:51 +07:00
parent f8bbf56f47
commit bd2ec273a9
17 changed files with 315 additions and 449 deletions
+25 -368
View File
@@ -1,47 +1,25 @@
.page-title {
font-size: 28px;
font-weight: 600;
margin-bottom: 30px;
display: flex;
align-items: center;
color: #1f2937;
.icon {
margin-left: 5px;
margin-top: 5px;
color: #6366f1;
}
&::before {
content: '';
width: 8px;
height: 8px;
background: #6366f1;
border-radius: 50%;
margin-right: 15px;
}
}
@use './variable.scss' as v;
.chart-title {
font-size: 18px;
font-weight: 600;
display: flex;
align-items: center;
color: #1f2937;
color: v.$text-p;
&::before {
content: '';
width: 6px;
height: 6px;
background: #6366f1;
background: v.$p-color;
border-radius: 50%;
margin-right: 10px;
}
}
.protection-overview {
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
color: white;
background: linear-gradient(135deg, v.$p-color 50%, v.$s-color 100%);
color: v.$white;
border-radius: 20px;
padding: 25px;
margin-bottom: 30px;
@@ -59,7 +37,7 @@
}
.pie-char-text {
fill: white;
fill: v.$white;
font-size: 20px;
text-anchor: middle;
dominant-baseline: middle;
@@ -146,7 +124,7 @@
left: 80%;
top: 50%;
max-height: 0;
color: #fff;
color: v.$white;
font-size: 16px;
border-radius: 20px;
padding: 0;
@@ -263,196 +241,29 @@
}
.block-wrapper {
background: white;
background: v.$white;
border-radius: 20px;
padding: 25px;
box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
border: 1px solid #f1f5f9;
box-shadow: 0 4px 20px v.$shadow-1;
border: 1px solid v.$b-color-1;
margin-bottom: 30px;
}
.recent-files-list {
.file-item {
display: flex;
align-items: center;
padding: 12px 0;
border-bottom: 1px solid #f8fafc;
transition: background-color 0.2s;
&:hover {
background: #f8fafc;
margin: 0 -15px;
padding-left: 15px;
padding-right: 15px;
border-radius: 10px;
}
}
.file-icon {
width: 32px;
height: 32px;
border-radius: 8px;
display: flex;
align-items: center;
justify-content: center;
margin-right: 12px;
font-size: 14px;
}
.file-info {
flex: 1;
}
.file-name {
font-weight: 500;
color: #1e293b;
font-size: 14px;
margin-bottom: 2px;
}
.file-meta {
font-size: 12px;
color: #64748b;
}
}
.user-info {
.user-data {
margin-bottom: 20px;
}
.user-field {
margin-bottom: 15px;
padding: 12px;
background: #f9fafb;
border-radius: 10px;
font-size: 14px;
border-left: 4px solid #6366f1;
strong {
color: #6366f1;
}
&-limit {
&-title {
font-size: 12px;
color: #64748b;
margin-bottom: 5px;
}
&-text {
font-size: 13px;
margin-bottom: 6px;
span {
font-weight: 600;
color: #1e293b;
}
}
&-progress-bar {
background: #f1f5f9;
border-radius: 10px;
overflow: hidden;
height: 6px;
margin: 8px 0;
}
&-progress-fill {
width: 12%;
background: linear-gradient(90deg, rgb(99, 102, 241), rgb(139, 92, 246));
height: 100%;
border-radius: 10px;
transition: width 0.8s ease;
}
&-footer {
font-size: 11px;
color: #64748b;
text-align: center;
}
}
}
.stats-mini {
display: flex;
justify-content: space-between;
margin-top: 20px;
}
.stat-mini {
text-align: center;
&-value {
font-size: 24px;
font-weight: 700;
color: #6366f1;
}
&-label {
font-size: 12px;
color: #6b7280;
margin-top: 5px;
}
}
}
.protection-summary {
background: linear-gradient(135deg, #e8f5e8, #c8e6c9);
border: 2px solid #4caf50;
border-radius: 15px;
padding: 20px;
margin-bottom: 25px;
text-align: center;
h3 {
color: #2e7d32;
margin-bottom: 15px;
font-size: 18px;
}
.protection-stats {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
gap: 15px;
margin-top: 15px;
}
.stat-card {
background: rgba(255, 255, 255, 0.8);
padding: 15px;
border-radius: 10px;
text-align: center;
}
.stat-number {
font-size: 24px;
font-weight: bold;
color: #2e7d32;
}
.stat-label {
font-size: 12px;
color: #666;
margin-top: 5px;
}
}
.upload-section {
background: white;
background: v.$white;
border-radius: 20px;
padding: 30px;
margin-bottom: 30px;
box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
box-shadow: 0 4px 20px v.$shadow-1;
h3 {
margin-bottom: 20px;
color: #111827;
color: v.$text-p;
font-size: 20px;
}
.drag-drop-zone {
border: 3px dashed #6366f1;
border: 3px dashed v.$p-color;
border-radius: 15px;
padding: 40px 20px;
text-align: center;
@@ -464,30 +275,30 @@
width: 70px;
height: 70px;
margin: 0 auto;
color: #6366f1;
color: v.$p-color;
}
h4 {
color: #6366f1;
color: v.$p-color;
margin-bottom: 5px;
font-size: 22px;
}
.description {
color: #6b7280;
color: v.$text-s;
margin-bottom: 5px;
text-align: start;
}
.btn-primary {
background: linear-gradient(45deg, #6566f1, #5a5ce9);
background: v.$p-color;
margin-bottom: 40px;
}
}
.selected-file {
border-radius: 15px;
background: #fff;
background: v.$white;
padding: 10px;
border: 2px solid transparent;
transition: all 0.3s ease-in;
@@ -511,8 +322,8 @@
}
.btn-confirm {
background: linear-gradient(45deg, #6566f1, #01579b);
color: white;
background: linear-gradient(45deg, v.$p-color 50%, v.$s-color 100%);
color: v.$white;
border: none;
padding: 5px 15px;
border-radius: 12px;
@@ -534,9 +345,9 @@
}
.btn-cancel {
background: #fff;
color: rgb(99, 102, 241);
border: 2px solid rgb(99, 102, 241);
background: v.$white;
color: v.$p-color;
border: 2px solid v.$p-color;
padding: 5px 15px;
border-radius: 12px;
cursor: pointer;
@@ -548,165 +359,11 @@
.btn:hover {
transform: translateY(-2px);
box-shadow: 0 8px 25px #6366f14d;
box-shadow: 0 8px 25px v.$shadow-1;
}
}
}
.test-section {
background: linear-gradient(135deg, #fff3e0, #ffe0b2);
border-radius: 20px;
padding: 30px;
margin-bottom: 30px;
box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
h3 {
margin-bottom: 20px;
color: #e65100;
font-size: 20px;
}
.test-section-content {
border: 2px dashed #ff9800;
border-radius: 10px;
padding: 20px;
text-align: center;
background: #fff8e1;
h4 {
font-size: 32px;
margin-bottom: 10px;
}
.btn {
background: linear-gradient(45deg, #ff9800, #f57c00);
}
p {
margin-top: 15px;
font-size: 12px;
color: #e65100;
}
}
}
.protected-files-table {
background: white;
border-radius: 15px;
overflow: hidden;
margin-top: 30px;
box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
h3 {
padding: 20px 20px 0;
color: #111827;
font-size: 18px;
margin-bottom: 20px;
}
table {
width: 100%;
border-collapse: collapse;
}
th {
background: linear-gradient(180deg, #6366f1, #8b5cf6);
color: white;
padding: 15px;
text-align: left;
font-weight: 600;
font-size: 14px;
}
td {
padding: 15px;
border-bottom: 1px solid #f3f4f6;
vertical-align: middle;
}
.files-table {
&-file {
display: flex;
align-items: center;
}
&-icon {
width: 40px;
height: 40px;
background: #f0f9ff;
border-radius: 8px;
display: flex;
align-items: center;
justify-content: center;
margin-right: 12px;
border: 2px solid #6366f1;
color: #6366f1;
}
&-title {
font-weight: 500;
color: #111827;
font-size: 14px;
}
&-protect {
font-size: 11px;
color: #6366f1;
font-weight: 600;
}
&-size {
color: #6b7280;
font-size: 14px;
}
&-protect {
display: flex;
align-items: center;
}
&-bar {
width: 30px;
height: 6px;
background: #e5e7eb;
border-radius: 3px;
margin-right: 8px;
}
&-fill {
width: 100%;
height: 100%;
background: #6366f1;
border-radius: 3px;
}
&-date {
color: #6b7280;
font-size: 13px;
}
}
.btn-secondary {
background: #6366f1;
color: white;
padding: 5px 16px 5px 10px;
}
.icon {
height: 18px;
}
.real-protection-badge {
background: linear-gradient(135deg, #6366f1, #8b5cf6);
color: white;
padding: 2px 6px;
border-radius: 4px;
font-size: 9px;
font-weight: bold;
margin-left: 5px;
}
}
.page-row {
display: flex;
justify-content: space-between;