feat: Add PWA support - manifest, service worker, offline banner

This commit is contained in:
BizzleBot
2026-02-16 21:02:15 +00:00
parent 70ed672381
commit 0739f87f73
8 changed files with 163 additions and 0 deletions
+12
View File
@@ -0,0 +1,12 @@
import { useOnlineStatus } from '../hooks/useOnlineStatus';
export default function OfflineBanner() {
const isOnline = useOnlineStatus();
if (isOnline) return null;
return (
<div className="bg-amber-500 text-white text-center text-sm py-1.5 px-4 font-medium sticky top-0 z-50">
⚡ You're offline — viewing cached data. Changes will sync when reconnected.
</div>
);
}