import type { Metadata, Viewport } from "next"; import { Noto_Sans_SC, Noto_Serif_SC } from "next/font/google"; import "./globals.css"; const bodyFont = Noto_Sans_SC({ variable: "--font-body", subsets: ["latin"], weight: ["400", "500", "700"], }); const displayFont = Noto_Serif_SC({ variable: "--font-display", subsets: ["latin"], weight: ["400", "600", "700"], }); export const metadata: Metadata = { metadataBase: new URL("https://digital-human.xn--876a.net"), title: "安智伴 - 家人连线台", description: "随时了解长辈的近况,查看留言、使用动态,给长辈写问候。", manifest: "/manifest.webmanifest", icons: { icon: [ { url: "/pwa/icon-192x192.png", sizes: "192x192", type: "image/png", }, { url: "/pwa/icon-512x512.png", sizes: "512x512", type: "image/png", }, ], apple: [ { url: "/pwa/apple-touch-icon.png", sizes: "180x180", type: "image/png", }, ], shortcut: "/pwa/icon-192x192.png", }, appleWebApp: { capable: true, statusBarStyle: "default", title: "安智伴 - 家人连线台", }, }; export const viewport: Viewport = { themeColor: "#35548d", }; export default function RootLayout({ children, }: Readonly<{ children: React.ReactNode; }>) { return ( {children} ); }