Round 26: Grade Analytics, School Transport, Peer Assessment, Styling
- Grade Analytics & Reporting View: distribution histogram, student trajectory, class comparison, subject analysis, report generation - School Transport & Bus Routes View: route management, student assignment, transport schedule, stop management - Peer Assessment View: creation wizard, rating sliders, results radar chart, self vs peer comparison - 3 new Prisma models: GradeReport, TransportRoute, TransportStop - Extended PeerAssessment and StudentTransport models - Enhanced classes-view with gradient header, glassmorphism cards - Enhanced attendance-view with attendance rate gauge, status indicators - Fixed duplicate variable name bugs in school-transport-view.tsx - 12+ new API route files - 300+ i18n keys added - All views verified working in browser
This commit is contained in:
1 parent
3d0d518bb9
commit
7f0810c88f
28 files changed
+10264
-127
No files matched your search
@@ -3595,4 +3595,359 @@
|
||||
background: rgba(24, 24, 27, 0.7);
|
||||
border: 1px solid rgba(255, 255, 255, 0.06);
|
||||
}
|
||||
|
||||
/* ─── Round 26: Attendance & Classes Enhancement Utilities ─── */
|
||||
|
||||
/* Attendance Gauge - Circular SVG gauge */
|
||||
.attendance-gauge {
|
||||
position: relative;
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
}
|
||||
.attendance-gauge svg {
|
||||
transform: rotate(-90deg);
|
||||
}
|
||||
.attendance-gauge-track {
|
||||
fill: none;
|
||||
stroke: oklch(0.93 0.005 155);
|
||||
stroke-width: 6;
|
||||
}
|
||||
.dark .attendance-gauge-track {
|
||||
stroke: oklch(0.24 0.02 260);
|
||||
}
|
||||
.attendance-gauge-fill {
|
||||
fill: none;
|
||||
stroke-width: 6;
|
||||
stroke-linecap: round;
|
||||
animation: drawCircle 1.2s ease-out forwards;
|
||||
transition: stroke-dashoffset 0.6s ease-out;
|
||||
}
|
||||
.attendance-gauge-fill.rate-high {
|
||||
stroke: oklch(0.55 0.17 155);
|
||||
}
|
||||
.attendance-gauge-fill.rate-medium {
|
||||
stroke: oklch(0.72 0.19 85);
|
||||
}
|
||||
.attendance-gauge-fill.rate-low {
|
||||
stroke: oklch(0.577 0.245 27.325);
|
||||
}
|
||||
.attendance-gauge-label {
|
||||
position: absolute;
|
||||
inset: 0;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
transform: rotate(0deg);
|
||||
}
|
||||
|
||||
/* Grade Indicator - Color-coded grade badge (1-6 German scale) */
|
||||
.grade-indicator {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
min-width: 1.75rem;
|
||||
height: 1.75rem;
|
||||
padding: 0 0.375rem;
|
||||
border-radius: 0.5rem;
|
||||
font-size: 0.75rem;
|
||||
font-weight: 700;
|
||||
line-height: 1;
|
||||
transition: transform 0.2s ease, box-shadow 0.2s ease;
|
||||
}
|
||||
.grade-indicator:hover {
|
||||
transform: scale(1.08);
|
||||
}
|
||||
.grade-indicator.grade-1 {
|
||||
background: oklch(0.55 0.17 155 / 0.15);
|
||||
color: oklch(0.45 0.17 155);
|
||||
border: 1px solid oklch(0.55 0.17 155 / 0.2);
|
||||
}
|
||||
.dark .grade-indicator.grade-1 {
|
||||
background: oklch(0.65 0.17 155 / 0.15);
|
||||
color: oklch(0.75 0.17 155);
|
||||
border-color: oklch(0.65 0.17 155 / 0.25);
|
||||
}
|
||||
.grade-indicator.grade-2 {
|
||||
background: oklch(0.53 0.14 175 / 0.15);
|
||||
color: oklch(0.43 0.14 175);
|
||||
border: 1px solid oklch(0.53 0.14 175 / 0.2);
|
||||
}
|
||||
.dark .grade-indicator.grade-2 {
|
||||
background: oklch(0.63 0.14 175 / 0.15);
|
||||
color: oklch(0.73 0.14 175);
|
||||
border-color: oklch(0.63 0.14 175 / 0.25);
|
||||
}
|
||||
.grade-indicator.grade-3 {
|
||||
background: oklch(0.72 0.19 85 / 0.15);
|
||||
color: oklch(0.62 0.19 85);
|
||||
border: 1px solid oklch(0.72 0.19 85 / 0.2);
|
||||
}
|
||||
.dark .grade-indicator.grade-3 {
|
||||
background: oklch(0.82 0.19 85 / 0.15);
|
||||
color: oklch(0.82 0.15 85);
|
||||
border-color: oklch(0.82 0.19 85 / 0.25);
|
||||
}
|
||||
.grade-indicator.grade-4 {
|
||||
background: oklch(0.75 0.15 60 / 0.15);
|
||||
color: oklch(0.65 0.15 60);
|
||||
border: 1px solid oklch(0.75 0.15 60 / 0.2);
|
||||
}
|
||||
.dark .grade-indicator.grade-4 {
|
||||
background: oklch(0.85 0.15 60 / 0.15);
|
||||
color: oklch(0.85 0.12 60);
|
||||
border-color: oklch(0.85 0.15 60 / 0.25);
|
||||
}
|
||||
.grade-indicator.grade-5 {
|
||||
background: oklch(0.65 0.2 40 / 0.15);
|
||||
color: oklch(0.55 0.2 40);
|
||||
border: 1px solid oklch(0.65 0.2 40 / 0.2);
|
||||
}
|
||||
.dark .grade-indicator.grade-5 {
|
||||
background: oklch(0.75 0.2 40 / 0.15);
|
||||
color: oklch(0.75 0.17 40);
|
||||
border-color: oklch(0.75 0.2 40 / 0.25);
|
||||
}
|
||||
.grade-indicator.grade-6 {
|
||||
background: oklch(0.577 0.245 27.325 / 0.15);
|
||||
color: oklch(0.477 0.245 27.325);
|
||||
border: 1px solid oklch(0.577 0.245 27.325 / 0.2);
|
||||
}
|
||||
.dark .grade-indicator.grade-6 {
|
||||
background: oklch(0.677 0.245 27.325 / 0.15);
|
||||
color: oklch(0.777 0.2 27.325);
|
||||
border-color: oklch(0.677 0.245 27.325 / 0.25);
|
||||
}
|
||||
|
||||
/* Card Grid Auto - Auto-filling responsive grid for card layouts */
|
||||
.card-grid-auto {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
|
||||
gap: 1rem;
|
||||
}
|
||||
@media (max-width: 640px) {
|
||||
.card-grid-auto {
|
||||
grid-template-columns: 1fr;
|
||||
}
|
||||
}
|
||||
|
||||
/* Animate Count Up - Number counting animation */
|
||||
.animate-count-up {
|
||||
animation: countUp 0.8s ease-out forwards;
|
||||
}
|
||||
|
||||
/* Status Badge - Status indicator badge with variants */
|
||||
.status-badge {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
gap: 0.375rem;
|
||||
padding: 0.25rem 0.625rem;
|
||||
border-radius: 9999px;
|
||||
font-size: 0.75rem;
|
||||
font-weight: 600;
|
||||
line-height: 1;
|
||||
border: 1px solid transparent;
|
||||
transition: transform 0.15s ease, box-shadow 0.15s ease;
|
||||
}
|
||||
.status-badge:hover {
|
||||
transform: scale(1.05);
|
||||
}
|
||||
.status-badge-present {
|
||||
background: oklch(0.55 0.17 155 / 0.12);
|
||||
color: oklch(0.45 0.17 155);
|
||||
border-color: oklch(0.55 0.17 155 / 0.2);
|
||||
}
|
||||
.dark .status-badge-present {
|
||||
background: oklch(0.65 0.17 155 / 0.15);
|
||||
color: oklch(0.75 0.17 155);
|
||||
border-color: oklch(0.65 0.17 155 / 0.25);
|
||||
}
|
||||
.status-badge-late {
|
||||
background: oklch(0.72 0.19 85 / 0.12);
|
||||
color: oklch(0.62 0.19 85);
|
||||
border-color: oklch(0.72 0.19 85 / 0.2);
|
||||
}
|
||||
.dark .status-badge-late {
|
||||
background: oklch(0.82 0.19 85 / 0.15);
|
||||
color: oklch(0.82 0.15 85);
|
||||
border-color: oklch(0.82 0.19 85 / 0.25);
|
||||
}
|
||||
.status-badge-absent {
|
||||
background: oklch(0.577 0.245 27.325 / 0.12);
|
||||
color: oklch(0.477 0.245 27.325);
|
||||
border-color: oklch(0.577 0.245 27.325 / 0.2);
|
||||
}
|
||||
.dark .status-badge-absent {
|
||||
background: oklch(0.677 0.245 27.325 / 0.15);
|
||||
color: oklch(0.777 0.2 27.325);
|
||||
border-color: oklch(0.677 0.245 27.325 / 0.25);
|
||||
}
|
||||
.status-badge-excused {
|
||||
background: oklch(0.72 0.15 85 / 0.12);
|
||||
color: oklch(0.62 0.15 85);
|
||||
border-color: oklch(0.72 0.15 85 / 0.2);
|
||||
}
|
||||
.dark .status-badge-excused {
|
||||
background: oklch(0.82 0.15 85 / 0.15);
|
||||
color: oklch(0.82 0.12 85);
|
||||
border-color: oklch(0.82 0.15 85 / 0.25);
|
||||
}
|
||||
|
||||
/* Keyframe: countUp - Number counting up */
|
||||
@keyframes countUp {
|
||||
0% { opacity: 0; transform: translateY(8px); }
|
||||
60% { opacity: 1; }
|
||||
100% { opacity: 1; transform: translateY(0); }
|
||||
}
|
||||
|
||||
/* Keyframe: drawCircle - SVG circle stroke animation */
|
||||
@keyframes drawCircle {
|
||||
from { stroke-dashoffset: var(--circumference, 251); }
|
||||
to { stroke-dashoffset: var(--offset, 0); }
|
||||
}
|
||||
|
||||
/* Keyframe: fadeInScale - Fade in with scale */
|
||||
@keyframes fadeInScale {
|
||||
from { opacity: 0; transform: scale(0.92); }
|
||||
to { opacity: 1; transform: scale(1); }
|
||||
}
|
||||
|
||||
/* Glassmorphism enhanced card */
|
||||
.glass-card-enhanced {
|
||||
background: rgba(255, 255, 255, 0.6);
|
||||
backdrop-filter: blur(16px);
|
||||
-webkit-backdrop-filter: blur(16px);
|
||||
border: 1px solid rgba(255, 255, 255, 0.4);
|
||||
box-shadow: 0 4px 24px -4px rgba(16, 185, 129, 0.08), 0 1px 2px rgba(0, 0, 0, 0.04);
|
||||
transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
|
||||
}
|
||||
.glass-card-enhanced:hover {
|
||||
transform: translateY(-3px);
|
||||
box-shadow: 0 12px 32px -8px rgba(16, 185, 129, 0.15), 0 2px 4px rgba(0, 0, 0, 0.06);
|
||||
border-color: rgba(16, 185, 129, 0.3);
|
||||
}
|
||||
.dark .glass-card-enhanced {
|
||||
background: rgba(24, 24, 27, 0.6);
|
||||
border: 1px solid rgba(255, 255, 255, 0.06);
|
||||
box-shadow: 0 4px 24px -4px rgba(0, 0, 0, 0.3), 0 1px 2px rgba(0, 0, 0, 0.2);
|
||||
}
|
||||
.dark .glass-card-enhanced:hover {
|
||||
transform: translateY(-3px);
|
||||
box-shadow: 0 12px 32px -8px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(16, 185, 129, 0.12);
|
||||
border-color: rgba(16, 185, 129, 0.15);
|
||||
}
|
||||
|
||||
/* Gradient header banner */
|
||||
.gradient-header-banner {
|
||||
background: linear-gradient(135deg, oklch(0.55 0.17 155 / 0.08) 0%, oklch(0.53 0.14 175 / 0.06) 50%, oklch(0.55 0.17 155 / 0.03) 100%);
|
||||
border-bottom: 1px solid oklch(0.55 0.17 155 / 0.1);
|
||||
}
|
||||
.dark .gradient-header-banner {
|
||||
background: linear-gradient(135deg, oklch(0.65 0.17 155 / 0.12) 0%, oklch(0.63 0.14 175 / 0.08) 50%, oklch(0.65 0.17 155 / 0.04) 100%);
|
||||
border-bottom-color: oklch(0.65 0.17 155 / 0.15);
|
||||
}
|
||||
|
||||
/* Mini calendar date picker */
|
||||
.mini-calendar-day {
|
||||
width: 2rem;
|
||||
height: 2rem;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
border-radius: 0.5rem;
|
||||
font-size: 0.75rem;
|
||||
font-weight: 500;
|
||||
cursor: pointer;
|
||||
transition: all 0.15s ease;
|
||||
}
|
||||
.mini-calendar-day:hover {
|
||||
background: oklch(0.55 0.17 155 / 0.1);
|
||||
color: oklch(0.35 0.17 155);
|
||||
}
|
||||
.dark .mini-calendar-day:hover {
|
||||
background: oklch(0.65 0.17 155 / 0.15);
|
||||
color: oklch(0.85 0.17 155);
|
||||
}
|
||||
.mini-calendar-day.selected {
|
||||
background: oklch(0.55 0.17 155);
|
||||
color: white;
|
||||
box-shadow: 0 2px 8px -2px oklch(0.55 0.17 155 / 0.4);
|
||||
}
|
||||
.dark .mini-calendar-day.selected {
|
||||
background: oklch(0.65 0.17 155);
|
||||
}
|
||||
.mini-calendar-day.today {
|
||||
border: 1.5px solid oklch(0.55 0.17 155);
|
||||
font-weight: 700;
|
||||
}
|
||||
.dark .mini-calendar-day.today {
|
||||
border-color: oklch(0.65 0.17 155);
|
||||
}
|
||||
.mini-calendar-day.has-session {
|
||||
position: relative;
|
||||
}
|
||||
.mini-calendar-day.has-session::after {
|
||||
content: '';
|
||||
position: absolute;
|
||||
bottom: 2px;
|
||||
width: 4px;
|
||||
height: 4px;
|
||||
border-radius: 50%;
|
||||
background: oklch(0.55 0.17 155);
|
||||
}
|
||||
.dark .mini-calendar-day.has-session::after {
|
||||
background: oklch(0.65 0.17 155);
|
||||
}
|
||||
|
||||
/* Attendance timeline dot */
|
||||
.timeline-dot {
|
||||
width: 10px;
|
||||
height: 10px;
|
||||
border-radius: 50%;
|
||||
border: 2px solid white;
|
||||
box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.1);
|
||||
transition: transform 0.2s ease;
|
||||
}
|
||||
.timeline-dot:hover {
|
||||
transform: scale(1.3);
|
||||
}
|
||||
.dark .timeline-dot {
|
||||
border-color: rgba(24, 24, 27, 0.8);
|
||||
box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.1);
|
||||
}
|
||||
|
||||
/* Quick action button */
|
||||
.quick-action-btn {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
gap: 0.375rem;
|
||||
padding: 0.375rem 0.75rem;
|
||||
border-radius: 0.5rem;
|
||||
font-size: 0.75rem;
|
||||
font-weight: 600;
|
||||
border: 1px solid oklch(0.93 0.005 155);
|
||||
background: oklch(0.99 0.002 155);
|
||||
color: oklch(0.35 0.01 260);
|
||||
transition: all 0.2s ease;
|
||||
cursor: pointer;
|
||||
}
|
||||
.quick-action-btn:hover {
|
||||
background: oklch(0.55 0.17 155 / 0.08);
|
||||
border-color: oklch(0.55 0.17 155 / 0.2);
|
||||
color: oklch(0.45 0.17 155);
|
||||
transform: translateY(-1px);
|
||||
box-shadow: 0 2px 8px -2px oklch(0.55 0.17 155 / 0.2);
|
||||
}
|
||||
.dark .quick-action-btn {
|
||||
border-color: oklch(0.24 0.02 260);
|
||||
background: oklch(0.18 0.015 260);
|
||||
color: oklch(0.75 0.005 260);
|
||||
}
|
||||
.dark .quick-action-btn:hover {
|
||||
background: oklch(0.65 0.17 155 / 0.12);
|
||||
border-color: oklch(0.65 0.17 155 / 0.25);
|
||||
color: oklch(0.85 0.17 155);
|
||||
box-shadow: 0 2px 8px -2px rgba(0, 0, 0, 0.3);
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user