Skip to content

Commit c6bf8ea

Browse files
committed
Add manifest.json and reference icons in _document
1 parent 55daad1 commit c6bf8ea

File tree

2 files changed

+47
-2
lines changed

2 files changed

+47
-2
lines changed

website/pages/_document.tsx

+3-2
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,9 @@ class MyDocument extends Document {
66
return (
77
<Html lang="en">
88
<Head>
9-
<link rel="shortcut icon" href="/images/icon-48x48.png" />
10-
<link rel="apple-touch-icon" href="/images/icon-192x192.png" />
9+
<link rel="shortcut icon" href="/icons/favicon.ico" />
10+
<link rel="apple-touch-icon" href="/icons/apple-touch-icon.png" />
11+
<link rel="manifest" href="/manifest.json" />
1112
</Head>
1213
<body>
1314
<script

website/public/manifest.json

+44
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
{
2+
"name": "React Hooks Library",
3+
"short_name": "React Hooks Library",
4+
"theme_color": "#ffffff",
5+
"background_color": "#004740",
6+
"display": "fullscreen",
7+
"orientation": "portrait",
8+
"scope": "/",
9+
"start_url": "/",
10+
"icons": [
11+
{
12+
"src": "icons/maskable_icon_x48.png",
13+
"sizes": "48x48",
14+
"type": "image/png"
15+
},
16+
{
17+
"src": "icons/maskable_icon_x72.png",
18+
"sizes": "72x72",
19+
"type": "image/png"
20+
},
21+
{
22+
"src": "icons/maskable_icon_x96.png",
23+
"sizes": "96x96",
24+
"type": "image/png"
25+
},
26+
{
27+
"src": "icons/maskable_icon_x128.png",
28+
"sizes": "128x128",
29+
"type": "image/png"
30+
},
31+
{
32+
"src": "icons/maskable_icon_x192.png",
33+
"sizes": "192x192",
34+
"type": "image/png"
35+
},
36+
{
37+
"src": "icons/maskable_icon.png",
38+
"sizes": "480x480",
39+
"type": "image/png",
40+
"purpose": "any maskable"
41+
}
42+
],
43+
"splash_pages": null
44+
}

0 commit comments

Comments
 (0)