Skip to content

Commit 50d6cf9

Browse files
authored
Merge pull request #188 from upayanmazumder/prod
Enhanced PWA
2 parents 932dcfa + 5550949 commit 50d6cf9

13 files changed

+68
-11
lines changed

public/icons/icon-192x192.webp

1.51 KB
Binary file not shown.

public/icons/icon-196x196.webp

1.55 KB
Binary file not shown.

public/icons/icon-228x228.webp

1.72 KB
Binary file not shown.

public/icons/icon-256x256.webp

1.86 KB
Binary file not shown.

public/icons/icon-384x384.webp

2.59 KB
Binary file not shown.

public/icons/icon-512x512.webp

3.32 KB
Binary file not shown.
202 KB
Binary file not shown.
15 KB
Binary file not shown.
93.8 KB
Binary file not shown.
17.2 KB
Binary file not shown.
Binary file not shown.
15.5 KB
Binary file not shown.

src/app/manifest.ts

+68-11
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,12 @@
11
import type { MetadataRoute } from "next";
22

3+
interface ExtendedScreenshot {
4+
src: string;
5+
sizes?: string;
6+
type?: string;
7+
form_factor?: string;
8+
}
9+
310
export default function manifest(): MetadataRoute.Manifest {
411
return {
512
name: "Papers: by CodeChefVIT",
@@ -8,21 +15,71 @@ export default function manifest(): MetadataRoute.Manifest {
815
"Discover previous year question papers created by CodeChef-VIT at Vellore Institute of Technology",
916
start_url: "/",
1017
display: "standalone",
11-
background_color: "#ffffff",
12-
theme_color: "#000000",
18+
background_color: "#10011a",
19+
theme_color: "#10011a",
20+
categories: [
21+
"education",
22+
"reference",
23+
"productivity",
24+
"technology"
25+
],
26+
"shortcuts": [
27+
{
28+
"name": "Upload",
29+
"short_name": "Upload",
30+
"description": "Upload a paper",
31+
"url": "/upload",
32+
"icons": [
33+
{
34+
"src": "/icons/icon-192x192.webp",
35+
"sizes": "192x192",
36+
"type": "image/webp"
37+
}
38+
]
39+
},
40+
],
1341
icons: [
42+
{ src: "/icons/icon-192x192.webp", sizes: "192x192", type: "image/webp", purpose: "maskable" },
43+
{ src: "/icons/icon-196x196.webp", sizes: "196x196", type: "image/webp" },
44+
{ src: "/icons/icon-228x228.webp", sizes: "228x228", type: "image/webp" },
45+
{ src: "/icons/icon-256x256.webp", sizes: "256x256", type: "image/webp" },
46+
{ src: "/icons/icon-384x384.webp", sizes: "384x384", type: "image/webp" },
47+
{ src: "/icons/icon-512x512.webp", sizes: "512x512", type: "image/webp", purpose: "maskable" },
48+
],
49+
screenshots: [
1450
{
15-
src: "/web-app-manifest-192x192.png",
16-
sizes: "192x192",
17-
type: "image/png",
18-
purpose: "maskable",
51+
src: "/screenshots/screenshot-hero.avif",
52+
sizes: "638x1380",
53+
type: "image/avif",
1954
},
2055
{
21-
src: "/web-app-manifest-512x512.png",
22-
sizes: "512x512",
23-
type: "image/png",
24-
purpose: "maskable",
56+
src: "/screenshots/screenshot-prepare.avif",
57+
sizes: "638x1380",
58+
type: "image/avif",
2559
},
26-
],
60+
{
61+
src: "/screenshots/screenshot-faq.avif",
62+
sizes: "638x1380",
63+
type: "image/avif",
64+
},
65+
{
66+
src: "/screenshots/screenshot-hero-wide.avif",
67+
sizes: "2880x1556",
68+
type: "image/avif",
69+
form_factor: "wide",
70+
},
71+
{
72+
src: "/screenshots/screenshot-prepare-wide.avif",
73+
sizes: "2880x1556",
74+
type: "image/avif",
75+
form_factor: "wide",
76+
},
77+
{
78+
src: "/screenshots/screenshot-faq-wide.avif",
79+
sizes: "2880x1556",
80+
type: "image/avif",
81+
form_factor: "wide",
82+
},
83+
] as ExtendedScreenshot[],
2784
};
2885
}

0 commit comments

Comments
 (0)