Skip to content

Commit a28082b

Browse files
feat: add manifest
1 parent 5bbd3ce commit a28082b

File tree

8 files changed

+36
-1
lines changed

8 files changed

+36
-1
lines changed

.github/lighthouse/lighthouserc-assertions.json

+1
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
"preset": "lighthouse:recommended",
88
"assertions": {
99
"first-contentful-paint": ["warn", { "minScore": 0.6 }],
10+
"largest-contentful-paint": ["warn", { "minScore": 0.2 }],
1011
"content-width": ["warn", { "minScore": 0 }],
1112
"render-blocking-resources": ["warn", { "numericValue": 0 }],
1213
"uses-rel-preconnect": ["warn", { "numericValue": 0 }],

public/icons/icon-192x192.png

17.4 KB
Loading

public/icons/icon-256x256.png

24.9 KB
Loading

public/icons/icon-384x384.png

53.1 KB
Loading

public/icons/icon-512x512.png

75.1 KB
Loading

public/manifest.json

+32
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
{
2+
"theme_color": "#5f5eaa",
3+
"background_color": "#5f5eaa",
4+
"display": "standalone",
5+
"scope": "/",
6+
"start_url": "/",
7+
"name": "CSS Connect",
8+
"short_name": "css-connect",
9+
"icons": [
10+
{
11+
"src": "/icons/icon-192x192.png",
12+
"sizes": "192x192",
13+
"type": "image/png",
14+
"purpose": "maskable"
15+
},
16+
{
17+
"src": "/icons/icon-256x256.png",
18+
"sizes": "256x256",
19+
"type": "image/png"
20+
},
21+
{
22+
"src": "/icons/icon-384x384.png",
23+
"sizes": "384x384",
24+
"type": "image/png"
25+
},
26+
{
27+
"src": "/icons/icon-512x512.png",
28+
"sizes": "512x512",
29+
"type": "image/png"
30+
}
31+
]
32+
}

public/robots.txt

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
user-agent: *
2+
disallow: /downloads/

src/pages/_app.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ export default function App({ Component, pageProps }: AppProps) {
1616
<meta name="viewport" content="width=device-width, initial-scale=1" />
1717
<meta name="theme-color" content="#5f5eaa" />
1818
<link rel="icon" href="/favicon.ico" />
19-
{/* <link rel="manifest" href="/manifest.json" /> */}
19+
<link rel="manifest" href="/manifest.json" />
2020
<link rel="shortcut icon" href="/favicon.ico" />
2121
<link rel="apple-touch-icon" href="/favicon.ico"></link>
2222
</Head>

0 commit comments

Comments
 (0)