workspace-ui-kit/app/layout.tsx
snc777 f6a781c47e initial commit
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-05-09 14:24:17 +09:00

39 lines
1.2 KiB
TypeScript
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

import type { Metadata, Viewport } from "next";
import { Inter } from "next/font/google";
import "./globals.css";
import { TooltipProvider } from "@/components/ui/tooltip";
// Inter は欧文・数字部分にだけ適用したい(日本語はシステム日本語フォントに任せる)。
// variable で `--font-inter` を発行し、`globals.css` の `--font-sans` で参照する。
const inter = Inter({
subsets: ["latin"],
variable: "--font-inter",
display: "swap",
});
export const metadata: Metadata = {
title: "採用管理ワークスペース",
description: "tweakcn テーマ + 日本語タイポ検証用プロトタイプ",
};
export const viewport: Viewport = {
width: "device-width",
initialScale: 1,
};
export default function RootLayout({
children,
}: Readonly<{
children: React.ReactNode;
}>) {
return (
<html lang="ja" className={`${inter.variable} h-full antialiased`}>
<body className="flex min-h-full flex-col">
{/* shadcn/ui の Sidebar コンポーネントSidebarMenuButton の collapsed
時 tooltip 等)が要求するためアプリ全体をラップする。 */}
<TooltipProvider delay={300}>{children}</TooltipProvider>
</body>
</html>
);
}