From dd5a9e3d1ee21ee250294c3eff3376918af34340 Mon Sep 17 00:00:00 2001 From: Daniele Tonon Date: Mon, 30 Jan 2023 12:31:20 +0100 Subject: [PATCH] Enable PWA mode * Full screen support * Avoid reload at startup if the app was already added to the home * Match the top status bar color --- public/manifest.json | 15 ++++++++++++++ src/index.template.html | 46 +++++++++++++++++++++++++++++++---------- 2 files changed, 50 insertions(+), 11 deletions(-) create mode 100644 public/manifest.json diff --git a/public/manifest.json b/public/manifest.json new file mode 100644 index 0000000..0d915de --- /dev/null +++ b/public/manifest.json @@ -0,0 +1,15 @@ +{ + "short_name": "Hamstr", + "name": "Hamstr - Nostr client", + "start_url": "/home", + "display": "standalone", + "theme_color": "#15202b", + "background_color": "#15202b", + "icons": [ + { + "src": "icons/favicon-256x256.png", + "sizes": "256x256", + "type": "image/png" + } + ] +} diff --git a/src/index.template.html b/src/index.template.html index d1c7efc..4f558fc 100644 --- a/src/index.template.html +++ b/src/index.template.html @@ -3,17 +3,41 @@ <%= productName %> - - - - - - - - - - - + + + + + + + + + + + +