Added PWA support (#40)

This commit is contained in:
Doh
2025-01-15 20:07:23 -05:00
committed by GitHub
parent 1bb968b7c1
commit 71b9d1b408
32 changed files with 1274 additions and 312 deletions

25
app/manifest.ts Normal file
View File

@@ -0,0 +1,25 @@
import type { MetadataRoute } from 'next'
export default function manifest(): MetadataRoute.Manifest {
return {
name: 'HabitTrove',
short_name: 'HabitTrove',
description: 'Gamified habit tracking application',
start_url: '/',
display: 'standalone',
background_color: '#ffffff',
theme_color: '#000000',
icons: [
{
src: '/icons/web-app-manifest-192x192.png',
sizes: '192x192',
type: 'image/png',
},
{
src: '/icons/web-app-manifest-512x512.png',
sizes: '512x512',
type: 'image/png',
},
],
}
}