Update src/app/layout.tsx

This commit is contained in:
2026-03-06 22:09:22 +00:00
parent 95e7269d86
commit 13d807dc3d

View File

@@ -1,60 +1,17 @@
import type { Metadata } from "next";
import { Inter } from "next/font/google";
import { Geist, Geist_Mono } from "next/font/google";
import "./globals.css";
const inter = Inter({ variable: "--font-inter", subsets: ["latin"] });
const geist = Geist({
variable: "--font-geist-sans", subsets: ["latin"],
});
const geistMono = Geist_Mono({
variable: "--font-geist-mono", subsets: ["latin"],
});
export const metadata: Metadata = {
title: "Öğretmen Platformu - Online Eğitim Çözümleri", description: "50+ deneyimli öğretmenle bağlantı kurun. Kişiselleştirilmiş eğitim, esnek zaman planlaması ve etkili öğrenme deneyimi.", keywords: [
"online eğitim", "öğretmen bulma", "özel ders", "eğitim platformu", "e-learning", "web tuition"],
authors: [{ name: "Öğretmen Platformu" }],
creator: "Öğretmen Platformu", publisher: "Öğretmen Platformu", formatDetection: {
email: false,
telephone: false,
},
metadataBase: new URL("https://ogretmen-platformu.com"),
openGraph: {
type: "website", locale: "tr_TR", url: "https://ogretmen-platformu.com", siteName: "Öğretmen Platformu", title: "Öğretmen Platformu - Online Eğitim Çözümleri", description: "50+ deneyimli öğretmenle bağlantı kurun. Kişiselleştirilmiş eğitim, esnek zaman planlaması ve etkili öğrenme deneyimi.", images: [
{
url: "https://ogretmen-platformu.com/og-image.jpg", width: 1200,
height: 630,
alt: "Öğretmen Platformu", type: "image/jpeg"},
],
},
twitter: {
card: "summary_large_image", title: "Öğretmen Platformu - Online Eğitim Çözümleri", description: "50+ deneyimli öğretmenle bağlantı kurun. Kişiselleştirilmiş eğitim, esnek zaman planlaması ve etkili öğrenme deneyimi.", creator: "@ogretmenplatformu", images: ["https://ogretmen-platformu.com/og-image.jpg"],
},
robots: {
index: true,
follow: true,
googleBot: {
index: true,
follow: true,
"max-video-preview": -1,
"max-image-preview": "large", "max-snippet": -1,
},
},
icons: {
icon: [
{ url: "/favicon.ico", sizes: "any" },
{ url: "/favicon-16x16.png", sizes: "16x16", type: "image/png" },
{ url: "/favicon-32x32.png", sizes: "32x32", type: "image/png" },
],
apple: [
{ url: "/apple-touch-icon.png", sizes: "180x180", type: "image/png" },
],
},
manifest: "/site.webmanifest", alternates: {
canonical: "https://ogretmen-platformu.com", languages: {
"tr-TR": "https://ogretmen-platformu.com"},
},
};
export const viewport = {
width: "device-width", initialScale: 1,
maximumScale: 5,
userScalable: true,
themeColor: "#ffffff"};
title: "Teacher Dashboard", description: "Teacher dashboard with lessons, students, and earnings management"};
export default function RootLayout({
children,
@@ -62,42 +19,9 @@ export default function RootLayout({
children: React.ReactNode;
}) {
return (
<html lang="tr" suppressHydrationWarning>
<head>
<meta charSet="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<meta name="theme-color" content="#ffffff" />
<meta name="apple-mobile-web-app-capable" content="yes" />
<meta name="apple-mobile-web-app-status-bar-style" content="black-translucent" />
<meta name="apple-mobile-web-app-title" content="Öğretmen Platformu" />
<link rel="icon" type="image/x-icon" href="/favicon.ico" />
<link rel="apple-touch-icon" href="/apple-touch-icon.png" />
<link rel="manifest" href="/site.webmanifest" />
<script
async
src="https://www.googletagmanager.com/gtag/js?id=G-XXXXXXXXXX"
></script>
<script
dangerouslySetInnerHTML={{
__html: `
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', 'G-XXXXXXXXXX');
`,
}}
/>
</head>
<body className={inter.variable}>
<html lang="en">
<body className={`${geist.variable} ${geistMono.variable} antialiased`}>
{children}
<noscript>
<iframe
src="https://www.googletagmanager.com/ns.html?id=G-XXXXXXXXXX"
height="0"
width="0"
style={{ display: "none", visibility: "hidden" }}
></iframe>
</noscript>
<script
dangerouslySetInnerHTML={{