Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion FrontEnd/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,8 @@
"styled-components": "^6.1.18",
"sweetalert2": "^11.22.2",
"swiper": "^11.2.8",
"web-vitals": "^2.1.4"
"web-vitals": "^2.1.4",
"xlsx": "^0.18.5"
},
"scripts": {
"start": "react-scripts start",
Expand Down
179 changes: 173 additions & 6 deletions FrontEnd/src/assets/AdminDashboard/AdminDashboard.css
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,25 @@ body {
padding: 24px;
}

/* Dashboard Header */
.dashboard-header {
margin-bottom: 2rem;
}

.dashboard-greeting {
color: #6b7280;
font-size: 0.875rem;
margin: 0 0 0.5rem 0;
font-weight: 500;
}

.dashboard-title {
font-size: 2rem;
font-weight: 700;
color: #111827;
margin: 0;
}

.ad-container .container {
max-width: 1280px;
margin: 0 auto;
Expand Down Expand Up @@ -127,6 +146,14 @@ body {
border-radius: 12px;
overflow: hidden;
margin-bottom: 24px;
transition: all 0.3s ease;
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.ad-card:hover {
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
transform: translateY(-2px);
border-color: #d1d5db;
}

.ad-card-content {
Expand All @@ -151,12 +178,13 @@ body {
}

.stat-icon {
width: 48px;
height: 48px;
border-radius: 12px;
width: 56px;
height: 56px;
border-radius: 14px;
display: flex;
align-items: center;
justify-content: center;
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.stat-icon.orange {
Expand Down Expand Up @@ -190,15 +218,19 @@ body {
}

.stat-number {
font-size: 24px;
font-size: 28px;
font-weight: 700;
color: #1d2026;
margin-bottom: 4px;
line-height: 1.2;
}

.stat-label {
color: #8c94a3;
font-size: 14px;
color: #6b7280;
font-size: 13px;
font-weight: 500;
text-transform: uppercase;
letter-spacing: 0.5px;
}

/* Profile Section */
Expand Down Expand Up @@ -998,3 +1030,138 @@ body {
width: 100%;
}
}

/* NEW: Additional Stat Icons */
.stat-icon.green {
background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

.stat-icon.blue {
background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
}

.stat-icon.cyan {
background: linear-gradient(135deg, #06b6d4 0%, #0891b2 100%);
}

.stat-icon.indigo {
background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
}

.stat-icon.teal {
background: linear-gradient(135deg, #14b8a6 0%, #0d9488 100%);
}

.stat-icon.pink {
background: linear-gradient(135deg, #ec4899 0%, #db2777 100%);
}

.stat-icon.emerald {
background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

.stat-icon.violet {
background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
}

/* NEW: Two Column Charts Grid */
.ad-charts-grid-two {
display: grid;
grid-template-columns: repeat(2, 1fr);
gap: 24px;
margin-bottom: 24px;
}

@media (max-width: 1024px) {
.ad-charts-grid-two {
grid-template-columns: 1fr;
}
}

/* NEW: Top Instructors Table */
.top-instructors-table {
overflow-x: auto;
}

.top-instructors-table table {
width: 100%;
border-collapse: collapse;
}

.top-instructors-table thead {
background-color: #f9fafb;
border-bottom: 2px solid #e5e7eb;
}

.top-instructors-table th {
padding: 12px 16px;
text-align: left;
font-size: 0.875rem;
font-weight: 600;
color: #6b7280;
text-transform: uppercase;
letter-spacing: 0.05em;
}

.top-instructors-table td {
padding: 16px;
border-bottom: 1px solid #e5e7eb;
font-size: 0.95rem;
color: #1d2026;
}

.top-instructors-table tbody tr:hover {
background-color: #f9fafb;
transition: background-color 0.2s;
}

.top-instructors-table .instructor-name {
font-weight: 600;
color: #7c3aed;
}

.top-instructors-table .revenue-cell {
font-weight: 600;
color: #10b981;
}

.top-instructors-table tbody tr:last-child td {
border-bottom: none;
}

@media (max-width: 768px) {
.top-instructors-table {
font-size: 0.875rem;
}

.top-instructors-table th,
.top-instructors-table td {
padding: 10px 12px;
}
}

/* NEW: Chart Container Improvements */
.chart-placeholder {
position: relative;
width: 100%;
}

.chart-placeholder canvas {
max-height: 100%;
}

/* Additional Responsive Adjustments */
@media (max-width: 640px) {
.ad-stats-grid {
grid-template-columns: 1fr;
}

.stat-card-content {
flex-direction: row;
}

.stat-icon {
margin-bottom: 0;
margin-right: 16px;
}
}
Loading