From bff439b1e9548ec18478f5a60d4071ff16768789 Mon Sep 17 00:00:00 2001 From: Aaron Nelson Date: Sun, 26 Apr 2026 21:06:48 -0400 Subject: [PATCH] =?UTF-8?q?Add=20separate=20PWA=20manifest=20for=20/captur?= =?UTF-8?q?e=20=E2=80=94=20own=20scope,=20start=5Furl,=20name?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/capture/layout.tsx | 16 ++++++++++++++++ public/manifest-capture.json | 25 +++++++++++++++++++++++++ 2 files changed, 41 insertions(+) create mode 100644 app/capture/layout.tsx create mode 100644 public/manifest-capture.json diff --git a/app/capture/layout.tsx b/app/capture/layout.tsx new file mode 100644 index 0000000..fc90b76 --- /dev/null +++ b/app/capture/layout.tsx @@ -0,0 +1,16 @@ +import type { Metadata } from 'next'; + +export const metadata: Metadata = { + title: 'Bird Capture', + description: 'Field recorder', + manifest: '/manifest-capture.json', + appleWebApp: { + capable: true, + statusBarStyle: 'black-translucent', + title: 'Capture', + }, +}; + +export default function CaptureLayout({ children }: { children: React.ReactNode }) { + return <>{children}; +} diff --git a/public/manifest-capture.json b/public/manifest-capture.json new file mode 100644 index 0000000..1a11823 --- /dev/null +++ b/public/manifest-capture.json @@ -0,0 +1,25 @@ +{ + "name": "Bird Capture", + "short_name": "Capture", + "description": "Field recorder — voice capture to extended memory", + "start_url": "/capture", + "scope": "/capture", + "display": "standalone", + "background_color": "#111111", + "theme_color": "#2d5a3d", + "orientation": "portrait-primary", + "icons": [ + { + "src": "/icon-192.png", + "sizes": "192x192", + "type": "image/png", + "purpose": "any maskable" + }, + { + "src": "/icon-512.png", + "sizes": "512x512", + "type": "image/png", + "purpose": "any maskable" + } + ] +}