34 lines
863 B
TypeScript
34 lines
863 B
TypeScript
import type { Metadata } 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: "给老人设备做绑定、查看留言、追踪陪伴记录的家属端。",
|
|
};
|
|
|
|
export default function RootLayout({
|
|
children,
|
|
}: Readonly<{
|
|
children: React.ReactNode;
|
|
}>) {
|
|
return (
|
|
<html lang="zh-CN" className={`${bodyFont.variable} ${displayFont.variable}`}>
|
|
<body className="min-h-screen">{children}</body>
|
|
</html>
|
|
);
|
|
}
|