39 lines
913 B
TypeScript
39 lines
913 B
TypeScript
import type { Metadata } from "next";
|
||
import { Geist, Geist_Mono } from "next/font/google";
|
||
import "./globals.css";
|
||
import { Navbar } from "@/components/Navbar";
|
||
|
||
const geistSans = Geist({
|
||
variable: "--font-geist-sans",
|
||
subsets: ["latin"],
|
||
});
|
||
|
||
const geistMono = Geist_Mono({
|
||
variable: "--font-geist-mono",
|
||
subsets: ["latin"],
|
||
});
|
||
|
||
export const metadata: Metadata = {
|
||
title: "PC DIY商城 - 电脑配件在线选购",
|
||
description: "专业的电脑DIY配件商城,提供CPU、内存、硬盘、主板、显卡、机箱等优质配件",
|
||
};
|
||
|
||
export default function RootLayout({
|
||
children,
|
||
}: Readonly<{
|
||
children: React.ReactNode;
|
||
}>) {
|
||
return (
|
||
<html lang="zh-CN">
|
||
<body
|
||
className={`${geistSans.variable} ${geistMono.variable} antialiased`}
|
||
>
|
||
<Navbar />
|
||
<main className="min-h-screen">
|
||
{children}
|
||
</main>
|
||
</body>
|
||
</html>
|
||
);
|
||
}
|