nomadro/app/layout.tsx
eric 56b29205e7 Integrate four verticals into nomadro portal with shared packages and API gateway.
Mount /vip with nomadvip+payjsapi, add @nomadro/pay|pb|sdk, apps/api, /admin shell, and backup/rollback scripts under git.nomadro.cn workflow.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-09-28 20:16:44 -05:00

68 lines
1.7 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}`}
suppressHydrationWarning
>
<body className="antialiased">
<UmamiAnalytics />
<LocaleProvider>{children}</LocaleProvider>
</body>
</html>
);
}