diff --git a/public/icons/icon-192x192.webp b/public/icons/icon-192x192.webp new file mode 100644 index 0000000..ad7f253 Binary files /dev/null and b/public/icons/icon-192x192.webp differ diff --git a/public/icons/icon-196x196.webp b/public/icons/icon-196x196.webp new file mode 100644 index 0000000..2323379 Binary files /dev/null and b/public/icons/icon-196x196.webp differ diff --git a/public/icons/icon-228x228.webp b/public/icons/icon-228x228.webp new file mode 100644 index 0000000..6b730b3 Binary files /dev/null and b/public/icons/icon-228x228.webp differ diff --git a/public/icons/icon-256x256.webp b/public/icons/icon-256x256.webp new file mode 100644 index 0000000..8f8c3b0 Binary files /dev/null and b/public/icons/icon-256x256.webp differ diff --git a/public/icons/icon-384x384.webp b/public/icons/icon-384x384.webp new file mode 100644 index 0000000..d5e6516 Binary files /dev/null and b/public/icons/icon-384x384.webp differ diff --git a/public/icons/icon-512x512.webp b/public/icons/icon-512x512.webp new file mode 100644 index 0000000..c8d16c9 Binary files /dev/null and b/public/icons/icon-512x512.webp differ diff --git a/public/screenshots/screenshot-faq-wide.avif b/public/screenshots/screenshot-faq-wide.avif new file mode 100644 index 0000000..a04d81a Binary files /dev/null and b/public/screenshots/screenshot-faq-wide.avif differ diff --git a/public/screenshots/screenshot-faq.avif b/public/screenshots/screenshot-faq.avif new file mode 100644 index 0000000..cb78f70 Binary files /dev/null and b/public/screenshots/screenshot-faq.avif differ diff --git a/public/screenshots/screenshot-hero-wide.avif b/public/screenshots/screenshot-hero-wide.avif new file mode 100644 index 0000000..e0c907d Binary files /dev/null and b/public/screenshots/screenshot-hero-wide.avif differ diff --git a/public/screenshots/screenshot-hero.avif b/public/screenshots/screenshot-hero.avif new file mode 100644 index 0000000..3ba19ae Binary files /dev/null and b/public/screenshots/screenshot-hero.avif differ diff --git a/public/screenshots/screenshot-prepare-wide.avif b/public/screenshots/screenshot-prepare-wide.avif new file mode 100644 index 0000000..a427f41 Binary files /dev/null and b/public/screenshots/screenshot-prepare-wide.avif differ diff --git a/public/screenshots/screenshot-prepare.avif b/public/screenshots/screenshot-prepare.avif new file mode 100644 index 0000000..93240e7 Binary files /dev/null and b/public/screenshots/screenshot-prepare.avif differ diff --git a/src/app/manifest.ts b/src/app/manifest.ts index a9db2fc..5149700 100644 --- a/src/app/manifest.ts +++ b/src/app/manifest.ts @@ -1,5 +1,12 @@ import type { MetadataRoute } from "next"; +interface ExtendedScreenshot { + src: string; + sizes?: string; + type?: string; + form_factor?: string; +} + export default function manifest(): MetadataRoute.Manifest { return { name: "Papers: by CodeChefVIT", @@ -8,21 +15,71 @@ export default function manifest(): MetadataRoute.Manifest { "Discover previous year question papers created by CodeChef-VIT at Vellore Institute of Technology", start_url: "/", display: "standalone", - background_color: "#ffffff", - theme_color: "#000000", + background_color: "#10011a", + theme_color: "#10011a", + categories: [ + "education", + "reference", + "productivity", + "technology" + ], + "shortcuts": [ + { + "name": "Upload", + "short_name": "Upload", + "description": "Upload a paper", + "url": "/upload", + "icons": [ + { + "src": "/icons/icon-192x192.webp", + "sizes": "192x192", + "type": "image/webp" + } + ] + }, + ], icons: [ + { src: "/icons/icon-192x192.webp", sizes: "192x192", type: "image/webp", purpose: "maskable" }, + { src: "/icons/icon-196x196.webp", sizes: "196x196", type: "image/webp" }, + { src: "/icons/icon-228x228.webp", sizes: "228x228", type: "image/webp" }, + { src: "/icons/icon-256x256.webp", sizes: "256x256", type: "image/webp" }, + { src: "/icons/icon-384x384.webp", sizes: "384x384", type: "image/webp" }, + { src: "/icons/icon-512x512.webp", sizes: "512x512", type: "image/webp", purpose: "maskable" }, + ], + screenshots: [ { - src: "/web-app-manifest-192x192.png", - sizes: "192x192", - type: "image/png", - purpose: "maskable", + src: "/screenshots/screenshot-hero.avif", + sizes: "638x1380", + type: "image/avif", }, { - src: "/web-app-manifest-512x512.png", - sizes: "512x512", - type: "image/png", - purpose: "maskable", + src: "/screenshots/screenshot-prepare.avif", + sizes: "638x1380", + type: "image/avif", }, - ], + { + src: "/screenshots/screenshot-faq.avif", + sizes: "638x1380", + type: "image/avif", + }, + { + src: "/screenshots/screenshot-hero-wide.avif", + sizes: "2880x1556", + type: "image/avif", + form_factor: "wide", + }, + { + src: "/screenshots/screenshot-prepare-wide.avif", + sizes: "2880x1556", + type: "image/avif", + form_factor: "wide", + }, + { + src: "/screenshots/screenshot-faq-wide.avif", + sizes: "2880x1556", + type: "image/avif", + form_factor: "wide", + }, + ] as ExtendedScreenshot[], }; }