Files
zhimingge/app/layout.tsx
T
dekun 6265e56a7f Redesign UI with zen cards, split AI panel, and PWA install support.
Learn uses 64-gua card grid; liuyao/bazi/combined use two input cards plus sticky right AI panel; add manifest, service worker, and install prompt.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-06-10 23:24:55 +08:00

59 lines
1.5 KiB
TypeScript

import "./globals.css";
import type { Metadata, Viewport } from "next";
import React from "react";
import Umami from "@/components/umami";
import PwaProvider from "@/components/pwa/pwa-provider";
import { ThemeProvider } from "next-themes";
export const metadata: Metadata = {
title: "知命阁 - 易经学习 · 六爻算卦 · 生辰八字",
description:
"知命阁 — 融合周易智慧与人工智能,提供易经学习、六爻算卦、生辰八字排盘、综合测算等服务",
appleWebApp: {
capable: true,
title: "知命阁",
statusBarStyle: "default",
},
manifest: "/manifest.webmanifest",
};
export const viewport: Viewport = {
viewportFit: "cover",
width: "device-width",
initialScale: 1,
maximumScale: 1,
themeColor: [
{ media: "(prefers-color-scheme: light)", color: "#f5f5f4" },
{ media: "(prefers-color-scheme: dark)", color: "#333333" },
],
};
export default function RootLayout({
children,
}: {
children: React.ReactNode;
}) {
return (
<html lang="cn" suppressHydrationWarning>
<head>
<link
rel="stylesheet"
href="https://registry.npmmirror.com/lxgw-wenkai-screen-web/latest/files/lxgwwenkaiscreen/result.css"
/>
</head>
<body>
<ThemeProvider
enableSystem
attribute="class"
defaultTheme="system"
disableTransitionOnChange
>
{children}
<PwaProvider />
</ThemeProvider>
<Umami />
</body>
</html>
);
}