1cf9fd9d8c
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
50 lines
1.5 KiB
TypeScript
50 lines
1.5 KiB
TypeScript
import type { Metadata, Viewport } from "next";
|
||
import { Geist, Geist_Mono } from "next/font/google";
|
||
import { Providers } from "@/components/providers";
|
||
import { tr } from "@/i18n/tr";
|
||
import "./globals.css";
|
||
|
||
// Türkçe karakterler (ğ, ş, ı, İ) latin-ext alt kümesinde.
|
||
const geistSans = Geist({
|
||
variable: "--font-sans",
|
||
subsets: ["latin", "latin-ext"],
|
||
});
|
||
|
||
const geistMono = Geist_Mono({
|
||
variable: "--font-geist-mono",
|
||
subsets: ["latin", "latin-ext"],
|
||
});
|
||
|
||
export const metadata: Metadata = {
|
||
title: { default: tr.app.name, template: `%s · ${tr.app.name}` },
|
||
description: tr.app.tagline,
|
||
applicationName: tr.app.name,
|
||
appleWebApp: { capable: true, title: tr.app.name, statusBarStyle: "default" },
|
||
formatDetection: { telephone: false },
|
||
};
|
||
|
||
export const viewport: Viewport = {
|
||
width: "device-width",
|
||
initialScale: 1,
|
||
viewportFit: "cover",
|
||
// Manifest/tarayıcı çubuğu rengi CSS değişkeni okuyamaz; --background değerlerinin hex karşılığı.
|
||
themeColor: [
|
||
{ media: "(prefers-color-scheme: light)", color: "#fafcfe" },
|
||
{ media: "(prefers-color-scheme: dark)", color: "#081123" },
|
||
],
|
||
};
|
||
|
||
export default function RootLayout({ children }: LayoutProps<"/">) {
|
||
return (
|
||
<html
|
||
lang="tr"
|
||
suppressHydrationWarning
|
||
className={`${geistSans.variable} ${geistMono.variable} h-full antialiased`}
|
||
>
|
||
<body className="flex min-h-full flex-col">
|
||
<Providers>{children}</Providers>
|
||
</body>
|
||
</html>
|
||
);
|
||
}
|