feat(pwa): implement PWA installation banner and context provider

- Add `generate-icons.ts` script to generate PWA icons from SVG.
- Create `InstallBanner` component for prompting users to install the app.
- Implement `PwaProvider` to manage PWA installation state and events.
- Export `PwaProvider` and `InstallBanner` from the PWA feature index.
This commit is contained in:
Jose Selesan
2026-09-28 20:55:48 -03:00
parent 05da085e36
commit 2fd1826014
23 changed files with 1032 additions and 24 deletions

View File

@@ -11,7 +11,11 @@ export function RootLayout({ children }: { children: ReactNode }) {
<div className="mx-auto flex w-full max-w-7xl gap-6 lg:px-6">
<Sidebar />
<main className="min-w-0 flex-1 px-4 pb-24 pt-4 lg:px-0 lg:pb-8 lg:pt-8">{children}</main>
{/* pb-24 deja lugar para la BottomNav; en iOS standalone hay que sumar
el inset del home indicator o el contenido queda debajo. */}
<main className="min-w-0 flex-1 px-4 pb-[calc(6rem+env(safe-area-inset-bottom))] pt-4 lg:px-0 lg:pb-8 lg:pt-8">
{children}
</main>
</div>
<BottomNav />