3ae54fe530
- 创建 Next.js 14+ 前端项目,TypeScript + Tailwind CSS - 安装核心依赖:axios, react-hook-form, zod, zustand, recharts - 安装 Shadcn/ui 组件库 - 配置环境变量和基础目录结构 - 验证构建成功 任务状态:TASK-003 已完成 下一步:TASK-004 配置数据库 Assisted-by: Kiro AI <kiro@cursor.com>
34 lines
719 B
TypeScript
34 lines
719 B
TypeScript
import type { Metadata } from "next";
|
|
import { Geist, Geist_Mono } from "next/font/google";
|
|
import "./globals.css";
|
|
|
|
const geistSans = Geist({
|
|
variable: "--font-geist-sans",
|
|
subsets: ["latin"],
|
|
});
|
|
|
|
const geistMono = Geist_Mono({
|
|
variable: "--font-geist-mono",
|
|
subsets: ["latin"],
|
|
});
|
|
|
|
export const metadata: Metadata = {
|
|
title: "Create Next App",
|
|
description: "Generated by create next app",
|
|
};
|
|
|
|
export default function RootLayout({
|
|
children,
|
|
}: Readonly<{
|
|
children: React.ReactNode;
|
|
}>) {
|
|
return (
|
|
<html
|
|
lang="en"
|
|
className={`${geistSans.variable} ${geistMono.variable} h-full antialiased`}
|
|
>
|
|
<body className="min-h-full flex flex-col">{children}</body>
|
|
</html>
|
|
);
|
|
}
|