winupdate-neo/app/layout.tsx
2025-11-23 10:53:30 +08:00

52 lines
1.1 KiB
TypeScript

import type { Metadata, Viewport } from "next";
import { Geist, Geist_Mono } from "next/font/google";
import "./globals.css";
import { RegisterSW } from "./register-sw";
const geistSans = Geist({
variable: "--font-geist-sans",
subsets: ["latin"],
});
const geistMono = Geist_Mono({
variable: "--font-geist-mono",
subsets: ["latin"],
});
export const metadata: Metadata = {
title: "屏幕截图监控系统",
description: "Windows更新监控系统",
manifest: "/manifest.json",
icons: [
{
rel: "icon",
url: "/favicon.png",
},
{
rel: "apple-touch-icon",
url: "/apple-touch-icon.png",
},
],
};
export const viewport: Viewport = {
themeColor: "#F9FAFB",
};
export default function RootLayout({
children,
}: Readonly<{
children: React.ReactNode;
}>) {
return (
<html lang="zh-CN">
<body
className={`${geistSans.variable} ${geistMono.variable} antialiased bg-white dark:bg-gray-900 text-gray-900 dark:text-white`}
>
<RegisterSW />
{children}
</body>
</html>
);
}