返回 CodeWhale
manifest.ts
根目录 / web / app / manifest.ts
1 import type { MetadataRoute } from "next";
2 import { SITE_NAME } from "@/lib/page-meta";
3
4 /**
5 * Web app manifest. The PWA icons are the desktop app icon tile (cream mark on
6 * the near-black tile) rasterised from codewhale-design/whale/svg/icon-light.svg.
7 */
8 export default function manifest(): MetadataRoute.Manifest {
9 return {
10 name: SITE_NAME,
11 short_name: SITE_NAME,
12 icons: [
13 {
14 src: "/icon-192.png",
15 sizes: "192x192",
16 type: "image/png",
17 },
18 {
19 src: "/icon-512.png",
20 sizes: "512x512",
21 type: "image/png",
22 },
23 ],
24 // The ocean floor (tokens-roles.css --ocean-floor): the dark ground the
25 // site prefers, so the splash and chrome sit in the same water.
26 theme_color: "#142638",
27 background_color: "#142638",
28 display: "standalone",
29 };
30 }
31
31 lines TYPESCRIPT