40 行
833 B
TypeScript
40 行
833 B
TypeScript
import "./globals.css";
|
|
import { Fraunces, Source_Serif_4, IBM_Plex_Mono } from "next/font/google";
|
|
|
|
const display = Fraunces({
|
|
subsets: ["latin"],
|
|
variable: "--font-display",
|
|
weight: ["400", "500", "600", "700"],
|
|
});
|
|
|
|
const body = Source_Serif_4({
|
|
subsets: ["latin"],
|
|
variable: "--font-body",
|
|
weight: ["400", "500", "600"],
|
|
});
|
|
|
|
const mono = IBM_Plex_Mono({
|
|
subsets: ["latin"],
|
|
variable: "--font-mono",
|
|
weight: ["400", "500"],
|
|
});
|
|
|
|
export const metadata = {
|
|
title: "作业工坊",
|
|
description: "拍照或上传作业,自动转为 Markdown 并批改",
|
|
};
|
|
|
|
export default function RootLayout({
|
|
children,
|
|
}: {
|
|
children: React.ReactNode;
|
|
}) {
|
|
return (
|
|
<html lang="zh">
|
|
<body className={`${display.variable} ${body.variable} ${mono.variable}`}>
|
|
{children}
|
|
</body>
|
|
</html>
|
|
);
|
|
}
|