mirror of
https://github.com/lingke-net/koring-space.git
synced 2026-09-12 05:45:17 +08:00
基础
This commit is contained in:
@@ -0,0 +1,52 @@
|
||||
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";
|
||||
|
||||
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: "RivFox",
|
||||
description: "Generated by create next app",
|
||||
icons: {
|
||||
icon: "/favicon.svg",
|
||||
},
|
||||
};
|
||||
|
||||
export default function RootLayout({
|
||||
children,
|
||||
}: Readonly<{
|
||||
children: React.ReactNode;
|
||||
}>) {
|
||||
return (
|
||||
<html
|
||||
lang="en"
|
||||
className={cn("h-full", "antialiased", alimamaFangYuan.variable, geistMono.variable, "font-sans")}
|
||||
>
|
||||
<body className="min-h-full flex flex-col">
|
||||
<Header />
|
||||
<main className="flex-1 pt-14 px-4 sm:px-10 lg:px-48">
|
||||
{children}
|
||||
<Script
|
||||
src="https://analysis.rivfox.com/api/script.js"
|
||||
data-site-id="aaedd41de497"
|
||||
strategy="afterInteractive"
|
||||
/>
|
||||
</main>
|
||||
<Footer/>
|
||||
</body>
|
||||
</html>
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user