返回 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. Icons are the brand mark itself — the C-shaped whale in
6 * the logo gradient (#1E8FD8 -> #0B48BB) on a transparent ground, the
7 * resting pose from public/whale/rest.svg rasterised to the sizes below
8 * (app/icon.svg is the same drawing). No tile.
9 */
10 export default function manifest(): MetadataRoute.Manifest {
11 return {
12 name: SITE_NAME,
13 short_name: SITE_NAME,
14 icons: [
15 {
16 src: "/icon-192.png",
17 sizes: "192x192",
18 type: "image/png",
19 },
20 {
21 src: "/icon-512.png",
22 sizes: "512x512",
23 type: "image/png",
24 },
25 ],
26 // The ocean floor (tokens-roles.css --ocean-floor): the dark ground the
27 // site prefers, so the splash and chrome sit in the same water.
28 theme_color: "#061431",
29 background_color: "#061431",
30 display: "standalone",
31 };
32 }
33
33 lines TYPESCRIPT