feat(react): add toasts, loading states, skeletons, animations, and mobile responsiveness

- Toast notifications (sonner): success/error toasts on all mutations
- Loading spinners: EntryCard add/remove, ConfirmDialog, EntrySeenDialog, favorite/refresh buttons
- Page skeletons: 13 page-specific Suspense fallbacks replacing generic skeleton
- CSS animations: card-enter (staggered), page-enter, slide-up-fade keyframes
- Mobile layout: hamburger menu with sheet sidebar, responsive entry details
- Mobile controls: separate compact filter/sort popovers for Library and Watchlist
- Desktop sort: popover menu replacing Select dropdown on Library and Watchlist
- Filter ranges: year 1950-2100, rating 0-10
This commit is contained in:
Mohammed Abad committed 2026-04-02 03:00:49 +01:00
1 parent ae67663623
commit d60d142d17
29 files changed
+1008 -226

No files matched your search

+49
View File
@@ -130,9 +130,58 @@
}
html {
@apply font-sans;
scroll-behavior: smooth;
}
}
/* Staggered card entrance animation */
@keyframes card-enter {
from {
opacity: 0;
transform: translateY(12px) scale(0.97);
}
to {
opacity: 1;
transform: translateY(0) scale(1);
}
}
.animate-card-enter {
animation: card-enter 0.35s ease-out both;
}
/* Page entrance transition */
@keyframes page-enter {
from {
opacity: 0;
transform: translateY(8px);
}
to {
opacity: 1;
transform: translateY(0);
}
}
.animate-page-enter {
animation: page-enter 0.3s ease-out both;
}
/* Slide-up for cards on hover */
@keyframes slide-up-fade {
from {
opacity: 0;
transform: translateY(4px);
}
to {
opacity: 1;
transform: translateY(0);
}
}
.animate-slide-up {
animation: slide-up-fade 0.2s ease-out both;
}
.dark {
--background: oklch(0.15 0.01 260);
--foreground: oklch(0.95 0.01 260);