Update src/app/layout.tsx

This commit is contained in:
2026-03-09 01:43:37 +00:00
parent 5c8e0d9392
commit c8986ee420

View File

@@ -1,17 +1,16 @@
import type { Metadata } from "next";
import { Geist, Geist_Mono } from "next/font/google";
import "./globals.css";
import { Inter } from "next/font/google";
import "./styles/variables.css";
import "./styles/base.css";
import { ServiceWrapper } from "@/components/wrapper/ServiceWrapper";
import { Tag } from "@/components/tag/Tag";
const geist = Geist({
variable: "--font-geist-sans", subsets: ["latin"],
});
const geistMono = Geist_Mono({
variable: "--font-geist-mono", subsets: ["latin"],
const inter = Inter({
variable: "--font-inter", subsets: ["latin"],
});
export const metadata: Metadata = {
title: "Kanarya Diş Sağlığı", description: "Kanarya ız ve DSağlığı Polikliniği - Güvenilir, Profesyonel Diş Hizmeti"};
title: "Kanarya ız ve Diş Sağlığı Polikliniği", description: "Modern teknoloji ve deneyimli doktorlarla kaliteli dsağlığı hizmeti. Kanarya'da güven, konfor ve uzmanlık."};
export default function RootLayout({
children,
@@ -19,9 +18,23 @@ export default function RootLayout({
children: React.ReactNode;
}) {
return (
<html lang="tr">
<body className={`${geist.variable} ${geistMono.variable} antialiased`}>
{children}
<html lang="tr" suppressHydrationWarning>
<body className={`${inter.variable} antialiased`}>
<ServiceWrapper>
<Tag />
{children}
</ServiceWrapper>
<script
dangerouslySetInnerHTML={{
__html: `
if (localStorage.theme === 'dark' || (!('theme' in localStorage) && window.matchMedia('(prefers-color-scheme: dark)').matches)) {
document.documentElement.classList.add('dark')
} else {
document.documentElement.classList.remove('dark')
}
`,
}}
/>
<script
dangerouslySetInnerHTML={{