Skip to content

Commit 7855e6e

Browse files
committed
PWA
1 parent 53a5a41 commit 7855e6e

File tree

8 files changed

+32
-32
lines changed

8 files changed

+32
-32
lines changed

package-lock.json

+15-5
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -41,5 +41,5 @@
4141
"bugs": {
4242
"url": "https://github.com/sterlingwalsh/robofriends/issues"
4343
},
44-
"homepage": "https://github.com/sterlingwalsh/robofriends"
44+
"homepage": "https://sterlingwalsh.github.io/robofriends"
4545
}

public/index.html

+2-1
Original file line numberDiff line numberDiff line change
@@ -8,14 +8,15 @@
88
content="width=device-width, initial-scale=1, shrink-to-fit=no"
99
/>
1010
<meta name="theme-color" content="#000000" />
11+
<meta name="Description" content="Robofriends is a simple app displaying the flexibility of React web development" />
1112
<!--
1213
manifest.json provides metadata used when your web app is added to the
1314
homescreen on Android. See https://developers.google.com/web/fundamentals/web-app-manifest/
1415
-->
1516
<link rel="apple-touch-icon" sizes="180x180" href="/apple-touch-icon.png">
1617
<link rel="icon" type="image/png" sizes="32x32" href="/favicon-32x32.png">
1718
<link rel="icon" type="image/png" sizes="16x16" href="/favicon-16x16.png">
18-
<link rel="manifest" href="/site.webmanifest">
19+
<!-- <link rel="manifest" href="/site.webmanifest"> -->
1920
<link rel="mask-icon" href="/safari-pinned-tab.svg" color="#5bbad5">
2021
<meta name="msapplication-TileColor" content="#da532c">
2122
<meta name="theme-color" content="#ffffff">

public/manifest.json

+10
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,16 @@
66
"src": "favicon.ico",
77
"sizes": "64x64 32x32 24x24 16x16",
88
"type": "image/x-icon"
9+
},
10+
{
11+
"src": "android-chrome-192x192.png",
12+
"sizes": "192x192",
13+
"type": "image/png"
14+
},
15+
{
16+
"src": "android-chrome-256x256.png",
17+
"sizes": "256x256",
18+
"type": "image/png"
919
}
1020
],
1121
"start_url": ".",

public/site.webmanifest

-19
This file was deleted.

src/components/SearchBox.js

+1
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ class SearchBox extends Component{
1010
type='search'
1111
placeholder='Search Robots'
1212
onChange={searchChange}
13+
aria-label="search"
1314
/>
1415
</div>
1516
);

src/containers/App.css

+2-5
Original file line numberDiff line numberDiff line change
@@ -3,16 +3,13 @@
33
font-family: 'SEGA LOGO FONT';
44
font-style: normal;
55
font-weight: normal;
6+
font-display: swap;
67
src: local('SEGA LOGO FONT'), url('SEGA.woff') format('woff');
78
}
89

910
h1{
10-
font-family: "SEGA LOGO FONT";
11+
font-family: "SEGA LOGO FONT", sans-serif;
1112
font-weight: 200;
1213
color: #0ccac4;
1314
}
1415

15-
.pageHeader{
16-
/* height: 16.67vh; */
17-
}
18-

src/index.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,5 +19,5 @@ const store = createStore(rootReducer, applyMiddleware(thunkMiddleware, logger))
1919
ReactDOM.render(<Provider store={store}>
2020
<App />
2121
</Provider>, document.getElementById('root'));
22-
serviceWorker.unregister();
22+
serviceWorker.register();
2323

0 commit comments

Comments
 (0)