Added installation notification

This commit is contained in:
Jose Selesan
2026-09-28 22:20:11 -03:00
parent 2fd1826014
commit 56096b1e35
9 changed files with 167 additions and 30 deletions

View File

@@ -1,23 +1,17 @@
import { Download, X } from 'lucide-react'
import { Button } from '../../components/ui'
import { cn } from '../../lib/utils'
type InstallBannerProps = {
visible: boolean
onInstall: () => void
onDismiss: () => void
}
export function InstallBanner({ visible, onInstall, onDismiss }: InstallBannerProps) {
if (!visible) return null
export function InstallBanner({ onInstall, onDismiss }: InstallBannerProps) {
return (
<div
className={cn(
'fixed inset-x-0 z-30 px-4 lg:left-auto lg:right-6 lg:w-96 lg:px-0',
className="fixed inset-x-0 z-30 px-4 lg:left-auto lg:right-6 lg:w-96 lg:px-0
// Encima de BottomNav en móvil; abajo a la derecha en desktop.
'bottom-[calc(4.5rem+env(safe-area-inset-bottom))] lg:bottom-6',
)}
bottom-[calc(4.5rem+env(safe-area-inset-bottom))] lg:bottom-6"
>
<div className="flex items-start gap-3 rounded-xl border border-border bg-surface p-4 shadow-lg">
<div className="min-w-0 flex-1">