make it a PWA

This commit is contained in:
Amruth Pillai
2020-03-25 21:35:12 +05:30
parent 10589ac93b
commit 521037fd36
14 changed files with 47 additions and 17 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.1 KiB

After

Width:  |  Height:  |  Size: 1.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 12 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 16 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.7 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 5.2 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 9.4 KiB

View File

@ -1,25 +1,53 @@
{ {
"short_name": "React App", "name": "Reactive Resume",
"name": "Create React App Sample", "short_name": "RxResume",
"theme_color": "#546e7a",
"background_color": "#546e7a",
"display": "standalone",
"orientation": "landscape",
"Scope": "/",
"start_url": ".",
"icons": [ "icons": [
{ {
"src": "favicon.ico", "src": "images/icons/icon-72x72.png",
"sizes": "64x64 32x32 24x24 16x16", "sizes": "72x72",
"type": "image/x-icon" "type": "image/png"
}, },
{ {
"src": "logo192.png", "src": "images/icons/icon-96x96.png",
"type": "image/png", "sizes": "96x96",
"sizes": "192x192" "type": "image/png"
}, },
{ {
"src": "logo512.png", "src": "images/icons/icon-128x128.png",
"type": "image/png", "sizes": "128x128",
"sizes": "512x512" "type": "image/png"
},
{
"src": "images/icons/icon-144x144.png",
"sizes": "144x144",
"type": "image/png"
},
{
"src": "images/icons/icon-152x152.png",
"sizes": "152x152",
"type": "image/png"
},
{
"src": "images/icons/icon-192x192.png",
"sizes": "192x192",
"type": "image/png"
},
{
"src": "images/icons/icon-384x384.png",
"sizes": "384x384",
"type": "image/png"
},
{
"src": "images/icons/icon-512x512.png",
"sizes": "512x512",
"type": "image/png"
} }
], ],
"start_url": ".", "splash_pages": null
"display": "standalone",
"theme_color": "#000000",
"background_color": "#ffffff"
} }

View File

@ -26,4 +26,4 @@ ReactDOM.render(
document.getElementById('root'), document.getElementById('root'),
); );
serviceWorker.unregister(); serviceWorker.register();

View File

@ -1,3 +1,5 @@
/* eslint-disable no-console */
/* eslint-disable no-use-before-define */
// This optional code is used to register a service worker. // This optional code is used to register a service worker.
// register() is not called by default. // register() is not called by default.