nomadro/app/layout.tsx
eric 5569904bff Rebuild homepage to match nomadHub PC/H5 portal landing.
EOF

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-09-28 01:59:49 -05:00

67 lines
1.6 KiB
TypeScript

import "./globals.css";
import "./hub.css";
import { type Metadata, type Viewport } from "next";
import { Noto_Sans_SC, Outfit } from "next/font/google";
import { LocaleProvider } from "~/components/locale-provider";
import { UmamiAnalytics } from "~/components/umami-analytics";
export const viewport: Viewport = {
width: "device-width",
initialScale: 1,
maximumScale: 5,
viewportFit: "cover",
themeColor: "#0a0e17",
};
export const metadata: Metadata = {
metadataBase: new URL("https://nomadro.com"),
title: "nomadro",
description: "数字游民入口 · 出海导航 · 数字游民小册 · 旅居社群",
keywords: [
"数字游民",
"远程工作",
"旅居",
"自由职业",
"出海导航",
"旅居社群",
],
openGraph: {
title: "nomadro",
description: "随处工作,自由生活。出海导航 · 数字游民小册 · 旅居社群",
type: "website",
url: "https://nomadro.com",
},
icons: [{ rel: "icon", url: "/favicon.ico" }],
};
const outfit = Outfit({
subsets: ["latin"],
weight: ["400", "500", "600", "700", "800"],
variable: "--font-outfit",
display: "swap",
});
const notoSansSC = Noto_Sans_SC({
subsets: ["latin"],
weight: ["300", "400", "500", "700"],
variable: "--font-noto-sc",
display: "swap",
});
export default function RootLayout({
children,
}: Readonly<{ children: React.ReactNode }>) {
return (
<html
lang="zh-CN"
className={`${outfit.variable} ${notoSansSC.variable}`}
>
<body className="antialiased">
<UmamiAnalytics />
<LocaleProvider>{children}</LocaleProvider>
</body>
</html>
);
}