Files
next-template/src/app/layout.tsx
T
siujamo 6ce8c703dc @
chore: initial Next.js template scaffold

Next.js 16 + React 19 + TypeScript 5 + Tailwind CSS 4 + shadcn/ui.
Includes layout components, pages (home, 404, error, loading),
hooks, types, and documentation.

@
2026-06-18 17:04:39 +08:00

46 lines
1012 B
TypeScript

import type { Metadata } from "next"
import { Geist, Geist_Mono } from "next/font/google"
import "./globals.css"
import { Header } from "@/components/layout/header"
import { Footer } from "@/components/layout/footer"
import { siteConfig } from "@/lib/site"
const geistSans = Geist({
variable: "--font-sans",
subsets: ["latin"],
})
const geistMono = Geist_Mono({
variable: "--font-mono",
subsets: ["latin"],
})
export const metadata: Metadata = {
title: {
default: siteConfig.name,
template: `%s | ${siteConfig.name}`,
},
description: siteConfig.description,
}
export default function RootLayout({
children,
}: Readonly<{
children: React.ReactNode
}>) {
return (
<html
lang="en"
className={`${geistSans.variable} ${geistMono.variable} h-full antialiased`}
suppressHydrationWarning
>
<body className="flex min-h-full flex-col">
<Header />
<main className="flex-1">{children}</main>
<Footer />
</body>
</html>
)
}