nextjs-tailwindcss-headless.../app/layout.tsx

32 lines
642 B
TypeScript
Raw Permalink Normal View History

import { cn } from "@/lib/utils";
import "./globals.css";
import type { Metadata } from "next";
import { Inter } from "next/font/google";
2023-08-25 13:14:23 +08:00
import React from "react";
2023-08-25 12:43:48 +08:00
const inter = Inter({ subsets: ["latin"] });
2023-08-25 12:43:48 +08:00
export const metadata: Metadata = {
title: "Create Next App",
description: "Generated by create next app",
};
2023-08-25 12:43:48 +08:00
export default function RootLayout({
children,
}: {
children: React.ReactNode;
2023-08-25 12:43:48 +08:00
}) {
return (
<html lang="en">
<body
className={cn(
inter.className,
2023-09-14 09:21:45 +08:00
"flex flex-col justify-center items-center h-full",
)}
>
{children}
</body>
2023-08-25 12:43:48 +08:00
</html>
);
2023-08-25 12:43:48 +08:00
}