feat: add WebSocket real-time updates with toast notifications (#5)

This commit is contained in:
2026-03-04 18:14:34 -08:00
parent cd53a4e612
commit 6fe05ba756
4 changed files with 129 additions and 2 deletions

View File

@@ -1025,3 +1025,41 @@ label {
background: var(--primary);
color: white;
}
/* Toast Notifications */
.toast-notification {
position: fixed;
bottom: 20px;
right: 20px;
background: var(--primary);
color: white;
padding: 1rem 1.5rem;
border-radius: 8px;
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
z-index: 1000;
animation: slideIn 0.3s ease;
}
.toast-notification.fade-out {
animation: fadeOut 0.3s ease forwards;
}
@keyframes slideIn {
from {
transform: translateX(100%);
opacity: 0;
}
to {
transform: translateX(0);
opacity: 1;
}
}
@keyframes fadeOut {
from {
opacity: 1;
}
to {
opacity: 0;
}
}