Round 17: QR Codes, Gamification Badges, Auto-Award, Badge Management
This commit is contained in:
1 parent
6174f127f9
commit
cba8a8e724
23 files changed
+4028
-1
No files matched your search
@@ -2315,4 +2315,198 @@
|
||||
min-height: 44px;
|
||||
min-width: 44px;
|
||||
}
|
||||
|
||||
/* ─── Badge Circle Styling ─────────────────────────────────────── */
|
||||
.badge-circle {
|
||||
width: 56px;
|
||||
height: 56px;
|
||||
border-radius: 50%;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
transition: transform 0.2s ease, box-shadow 0.2s ease;
|
||||
position: relative;
|
||||
cursor: pointer;
|
||||
}
|
||||
.badge-circle:hover {
|
||||
transform: scale(1.12);
|
||||
}
|
||||
.badge-earned {
|
||||
background: linear-gradient(135deg, oklch(0.65 0.17 155), oklch(0.55 0.14 170));
|
||||
box-shadow: 0 2px 12px oklch(0.55 0.17 155 / 0.3);
|
||||
}
|
||||
.badge-earned:hover {
|
||||
box-shadow: 0 4px 20px oklch(0.55 0.17 155 / 0.5);
|
||||
}
|
||||
.badge-unearned {
|
||||
background: oklch(0.92 0 0);
|
||||
border: 2px dashed oklch(0.7 0 0);
|
||||
opacity: 0.5;
|
||||
}
|
||||
.dark .badge-unearned {
|
||||
background: oklch(0.25 0 0);
|
||||
border-color: oklch(0.45 0 0);
|
||||
}
|
||||
.badge-progress {
|
||||
position: absolute;
|
||||
bottom: -2px;
|
||||
left: 50%;
|
||||
transform: translateX(-50%);
|
||||
width: 36px;
|
||||
height: 4px;
|
||||
border-radius: 2px;
|
||||
background: oklch(0.85 0 0);
|
||||
overflow: hidden;
|
||||
}
|
||||
.dark .badge-progress {
|
||||
background: oklch(0.35 0 0);
|
||||
}
|
||||
.badge-progress-fill {
|
||||
height: 100%;
|
||||
border-radius: 2px;
|
||||
background: linear-gradient(90deg, oklch(0.55 0.17 155), oklch(0.65 0.12 175));
|
||||
transition: width 0.5s ease;
|
||||
}
|
||||
|
||||
/* ─── Celebration Animation ────────────────────────────────────── */
|
||||
@keyframes celebration-sparkle {
|
||||
0% { opacity: 0; transform: scale(0.5) rotate(0deg); }
|
||||
50% { opacity: 1; transform: scale(1.2) rotate(180deg); }
|
||||
100% { opacity: 0; transform: scale(0.5) rotate(360deg); }
|
||||
}
|
||||
@keyframes celebration-bounce {
|
||||
0%, 100% { transform: translateY(0); }
|
||||
30% { transform: translateY(-12px); }
|
||||
50% { transform: translateY(-6px); }
|
||||
70% { transform: translateY(-8px); }
|
||||
}
|
||||
.celebration-sparkle {
|
||||
animation: celebration-sparkle 0.8s ease-in-out;
|
||||
}
|
||||
.celebration-bounce {
|
||||
animation: celebration-bounce 0.6s ease-in-out;
|
||||
}
|
||||
.celebration-ring {
|
||||
position: absolute;
|
||||
inset: -6px;
|
||||
border-radius: 50%;
|
||||
border: 2px solid oklch(0.65 0.17 155 / 0.6);
|
||||
animation: celebration-ring-pulse 1s ease-out;
|
||||
}
|
||||
@keyframes celebration-ring-pulse {
|
||||
0% { transform: scale(0.8); opacity: 1; }
|
||||
100% { transform: scale(1.5); opacity: 0; }
|
||||
}
|
||||
|
||||
/* ─── QR Code Card Styling ─────────────────────────────────────── */
|
||||
.qr-card {
|
||||
border-radius: 1rem;
|
||||
padding: 1.5rem;
|
||||
text-align: center;
|
||||
background: white;
|
||||
box-shadow: 0 4px 16px oklch(0 0 0 / 0.08);
|
||||
position: relative;
|
||||
overflow: hidden;
|
||||
}
|
||||
.dark .qr-card {
|
||||
background: oklch(0.2 0 0);
|
||||
box-shadow: 0 4px 16px oklch(0 0 0 / 0.3);
|
||||
}
|
||||
.qr-card::before {
|
||||
content: '';
|
||||
position: absolute;
|
||||
top: 0;
|
||||
left: 0;
|
||||
right: 0;
|
||||
height: 4px;
|
||||
background: linear-gradient(90deg, oklch(0.55 0.17 155), oklch(0.65 0.12 175), oklch(0.55 0.17 155));
|
||||
}
|
||||
.qr-card img {
|
||||
border-radius: 0.5rem;
|
||||
max-width: 100%;
|
||||
}
|
||||
|
||||
/* ─── Attendance QR Display ────────────────────────────────────── */
|
||||
.attendance-qr-display {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
gap: 1rem;
|
||||
padding: 2rem;
|
||||
background: linear-gradient(135deg, oklch(0.97 0.02 155), oklch(0.95 0.02 175));
|
||||
border-radius: 1rem;
|
||||
border: 2px solid oklch(0.55 0.17 155 / 0.2);
|
||||
}
|
||||
.dark .attendance-qr-display {
|
||||
background: linear-gradient(135deg, oklch(0.2 0.01 155), oklch(0.18 0.01 175));
|
||||
border-color: oklch(0.55 0.17 155 / 0.3);
|
||||
}
|
||||
.attendance-qr-display .qr-timer {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 0.5rem;
|
||||
font-size: 0.875rem;
|
||||
color: oklch(0.5 0 0);
|
||||
}
|
||||
.dark .attendance-qr-display .qr-timer {
|
||||
color: oklch(0.65 0 0);
|
||||
}
|
||||
.attendance-qr-display .qr-timer-bar {
|
||||
width: 100%;
|
||||
height: 4px;
|
||||
border-radius: 2px;
|
||||
background: oklch(0.9 0 0);
|
||||
overflow: hidden;
|
||||
}
|
||||
.dark .attendance-qr-display .qr-timer-bar {
|
||||
background: oklch(0.3 0 0);
|
||||
}
|
||||
.attendance-qr-display .qr-timer-bar-fill {
|
||||
height: 100%;
|
||||
background: linear-gradient(90deg, oklch(0.55 0.17 155), oklch(0.65 0.12 175));
|
||||
transition: width 1s linear;
|
||||
}
|
||||
|
||||
/* ─── Student Detail Quick Stats ───────────────────────────────── */
|
||||
.quick-stats-bar {
|
||||
display: flex;
|
||||
gap: 0.75rem;
|
||||
flex-wrap: wrap;
|
||||
padding: 0.75rem;
|
||||
border-radius: 0.75rem;
|
||||
background: oklch(0.97 0.02 155);
|
||||
border: 1px solid oklch(0.55 0.17 155 / 0.1);
|
||||
}
|
||||
.dark .quick-stats-bar {
|
||||
background: oklch(0.2 0.01 155);
|
||||
border-color: oklch(0.55 0.17 155 / 0.2);
|
||||
}
|
||||
.quick-stat-item {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 0.375rem;
|
||||
padding: 0.375rem 0.75rem;
|
||||
border-radius: 0.5rem;
|
||||
background: white;
|
||||
border: 1px solid oklch(0.9 0 0);
|
||||
font-size: 0.8125rem;
|
||||
white-space: nowrap;
|
||||
}
|
||||
.dark .quick-stat-item {
|
||||
background: oklch(0.25 0 0);
|
||||
border-color: oklch(0.35 0 0);
|
||||
}
|
||||
|
||||
/* ─── Section Header with Icon ─────────────────────────────────── */
|
||||
.section-header-icon {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 0.5rem;
|
||||
padding: 0.5rem 0;
|
||||
cursor: pointer;
|
||||
user-select: none;
|
||||
}
|
||||
.section-header-icon:hover {
|
||||
opacity: 0.8;
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user