1
1
import type { MetadataRoute } from "next" ;
2
2
3
+ interface ExtendedScreenshot {
4
+ src : string ;
5
+ sizes ?: string ;
6
+ type ?: string ;
7
+ form_factor ?: string ;
8
+ }
9
+
3
10
export default function manifest ( ) : MetadataRoute . Manifest {
4
11
return {
5
12
name : "Papers: by CodeChefVIT" ,
@@ -8,21 +15,71 @@ export default function manifest(): MetadataRoute.Manifest {
8
15
"Discover previous year question papers created by CodeChef-VIT at Vellore Institute of Technology" ,
9
16
start_url : "/" ,
10
17
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
+ ] ,
13
41
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 : [
14
50
{
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" ,
19
54
} ,
20
55
{
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" ,
25
59
} ,
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 [ ] ,
27
84
} ;
28
85
}
0 commit comments