Files
koring-space/app/layout.tsx
T

54 lines
1.3 KiB
TypeScript
Raw Normal View History

2026-07-10 22:38:58 +08:00
import type { Metadata } from "next";
import localFont from "next/font/local";
import { Geist, Geist_Mono } from "next/font/google";
import "./globals.css";
import { Header } from "@/layout/header";
import { Footer } from "@/layout/footer";
import Script from "next/script";
import { cn } from "@/lib/utils";
import { Providers } from "./providers";
2026-07-10 22:38:58 +08:00
const alimamaFangYuan = localFont({
src: "../public/font/Alimama.ttf",
variable: "--font-sans",
});
const geistMono = Geist_Mono({
variable: "--font-geist-mono",
subsets: ["latin"],
});
export const metadata: Metadata = {
title: "Koring Team",
2026-07-11 01:33:01 +08:00
description: "Koring Team 工作室",
2026-07-10 22:38:58 +08:00
icons: {
2026-07-11 01:33:01 +08:00
icon: "/run.svg",
2026-07-10 22:38:58 +08:00
},
};
export default function RootLayout({
children,
}: Readonly<{
children: React.ReactNode;
}>) {
return (
<html
lang="en"
suppressHydrationWarning
className={cn("h-full", "antialiased", alimamaFangYuan.variable, geistMono.variable, "font-sans")}
>
2026-07-10 22:38:58 +08:00
<body className="min-h-full flex flex-col">
<Providers>
2026-07-10 22:38:58 +08:00
<Header />
2026-07-11 01:29:10 +08:00
<div style={{ height: 90 }} />
<main className="flex-1 px-4 sm:px-10 lg:px-48">
2026-07-10 22:38:58 +08:00
{children}
</main>
<div style={{ height: 50 }} />
2026-07-10 22:38:58 +08:00
<Footer/>
</Providers>
2026-07-10 22:38:58 +08:00
</body>
</html>
);
}