From 5b74e64a64050d61331b7ed523318b8e3288fa6b Mon Sep 17 00:00:00 2001 From: Charles Garrett Date: Tue, 25 Jul 2023 16:53:47 -0400 Subject: [PATCH 01/18] testing: pwa configs for a more app-like feel on mobile browsers --- public/manifest.json | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 public/manifest.json diff --git a/public/manifest.json b/public/manifest.json new file mode 100644 index 000000000..ce81de650 --- /dev/null +++ b/public/manifest.json @@ -0,0 +1,9 @@ +{ + + "short_name": "Near BOS", + "name": "The OS for an open web", + "scope": "/", + "start_url": "/near/widget/NearOrg.HomePage", + "display_override": ["window-control-overlay", "minimal-ui"], + "display": "standalone" +} From 08a7356ee6450a72d08c69dcae6cff0df8509eb5 Mon Sep 17 00:00:00 2001 From: Charles Garrett Date: Wed, 26 Jul 2023 16:32:09 -0400 Subject: [PATCH 02/18] feat: introducing a web manifest to allow for a more native feel when discovery is saved on mobile browsers --- public/manifest.json | 24 +++++++++++++++++++++--- src/pages/_app.tsx | 1 + 2 files changed, 22 insertions(+), 3 deletions(-) diff --git a/public/manifest.json b/public/manifest.json index ce81de650..2f3d03efc 100644 --- a/public/manifest.json +++ b/public/manifest.json @@ -1,9 +1,27 @@ { - "short_name": "Near BOS", + "short_name": "Near", "name": "The OS for an open web", + "start_url": "/near/widget/ActivityPage", "scope": "/", - "start_url": "/near/widget/NearOrg.HomePage", "display_override": ["window-control-overlay", "minimal-ui"], - "display": "standalone" + "display": "standalone", + "icons": [ + { + "src": "apple-touch-icon.png", + "sizes": "300x300" + }, + { + "src": "logo192png", + "sizes": "192x192" + }, + { + "src": "favicon.ico", + "sizes": "64x64" + }, + { + "src": "favicon.png", + "sizes": "1064x1064" + } + ] } diff --git a/src/pages/_app.tsx b/src/pages/_app.tsx index 58135adc5..de7b3c4da 100644 --- a/src/pages/_app.tsx +++ b/src/pages/_app.tsx @@ -94,6 +94,7 @@ export default function App({ Component, pageProps }: AppPropsWithLayout) { href={`${process.env.NEXT_PUBLIC_HOSTNAME}/near/widget/NearOrg.HomePage`} key="canonical" /> +