feat: add icons

This commit is contained in:
liqingwei 2021-03-09 21:46:50 +08:00
parent 163ac20578
commit 6f4ca5fcf9
10 changed files with 59 additions and 4 deletions

View File

@ -21,6 +21,18 @@ class MyDocument extends Document {
<meta name="msapplication-TileColor" content="#2B5797" /> <meta name="msapplication-TileColor" content="#2B5797" />
<meta name="msapplication-tap-highlight" content="no" /> <meta name="msapplication-tap-highlight" content="no" />
<meta name="theme-color" content="#ffffff" /> <meta name="theme-color" content="#ffffff" />
<link
rel="apple-touch-icon"
sizes="192x192"
href="/static/icons/icon-192x192.png"
/>
<link
rel="icon"
type="image/png"
sizes="128x128"
href="/static/icons/icon-128x128.png"
/>
<link rel="manifest" href="/static/manifest.json" /> <link rel="manifest" href="/static/manifest.json" />
</Head> </Head>
<body className="overflow-hidden"> <body className="overflow-hidden">

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 8.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 25 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 43 KiB

BIN
static/icons/icon-72x72.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.9 KiB

BIN
static/icons/icon-96x96.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.8 KiB

View File

@ -1,9 +1,52 @@
{ {
"name": "Notea", "name": "Notea",
"short_name": "Notea", "short_name": "Notea",
"theme_color": "#FFFFFF", "theme_color": "#fff",
"background_color": "#FFFFFF", "background_color": "#fff",
"start_url": "/",
"display": "standalone", "display": "standalone",
"orientation": "portrait" "orientation": "portrait",
"scope": "/",
"start_url": "/",
"icons": [
{
"src": "/static/icons/icon-72x72.png",
"sizes": "72x72",
"type": "image/png"
},
{
"src": "/static/icons/icon-96x96.png",
"sizes": "96x96",
"type": "image/png"
},
{
"src": "/static/icons/icon-128x128.png",
"sizes": "128x128",
"type": "image/png"
},
{
"src": "/static/icons/icon-144x144.png",
"sizes": "144x144",
"type": "image/png"
},
{
"src": "/static/icons/icon-152x152.png",
"sizes": "152x152",
"type": "image/png"
},
{
"src": "/static/icons/icon-192x192.png",
"sizes": "192x192",
"type": "image/png"
},
{
"src": "/static/icons/icon-384x384.png",
"sizes": "384x384",
"type": "image/png"
},
{
"src": "/static/icons/icon-512x512.png",
"sizes": "512x512",
"type": "image/png"
}
]
} }