feat(pwa): add one-time install prompt for mobile devices

This commit is contained in:
Hördle Bot
2025-11-23 00:22:23 +01:00
parent 4b9e7ac9ec
commit e24588f3ee
2 changed files with 135 additions and 0 deletions

View File

@@ -24,6 +24,8 @@ export const viewport: Viewport = {
maximumScale: 1,
};
import InstallPrompt from "@/components/InstallPrompt";
export default function RootLayout({
children,
}: Readonly<{
@@ -33,6 +35,7 @@ export default function RootLayout({
<html lang="en">
<body className={`${geistSans.variable} ${geistMono.variable}`}>
{children}
<InstallPrompt />
<footer className="app-footer">
<p>
Vibe coded with and 🍺 by{' '}