Switch to version 1: modified src/app/layout.tsx

This commit is contained in:
2026-03-06 20:56:44 +00:00
parent 71ad56be46
commit 955fdbf1b4

View File

@@ -1,23 +1,74 @@
import type { Metadata } from "next";
import { Halant } from "next/font/google";
import { Inter } from "next/font/google";
import "./styles/variables.css";
import "./styles/base.css";
import { Nunito } from "next/font/google";
import "./globals.css";
import { ServiceWrapper } from "@/components/ServiceWrapper";
import Tag from "@/tag/Tag";
const halant = Halant({
variable: "--font-halant",
subsets: ["latin"],
weight: ["300", "400", "500", "600", "700"],
});
const inter = Inter({
variable: "--font-inter", subsets: ["latin"],
variable: "--font-inter",
subsets: ["latin"],
});
const nunito = Nunito({
variable: "--font-nunito",
subsets: ["latin"],
});
export const metadata: Metadata = {
title: "Visit Oman", description: "Explore the beauty of Oman"};
title: "Visit Oman - Discover & Plan Your Perfect Journey",
description: "Explore Oman's stunning destinations from desert dunes to mountain peaks. Plan your ideal itinerary with our smart travel platform.",
keywords: "Oman travel, tourism, destination guide, trip planner, Muscat, desert, mountains, beaches",
metadataBase: new URL("https://visitoman.com"),
alternates: {
canonical: "https://visitoman.com",
},
openGraph: {
title: "Visit Oman - Discover the Beauty of Mountains, Deserts & Coastlines",
description: "Your premium guide to discovering and planning travel experiences across Oman's most beautiful destinations.",
url: "https://visitoman.com",
siteName: "Visit Oman",
type: "website",
images: [
{
url: "http://img.b2bpic.net/free-photo/adventurous-young-man-desert_181624-35067.jpg",
alt: "Oman landscapes",
},
],
},
twitter: {
card: "summary_large_image",
title: "Visit Oman - Discover Your Next Adventure",
description: "Plan your perfect journey across Oman's mountains, deserts, and coastlines.",
images: ["http://img.b2bpic.net/free-photo/adventurous-young-man-desert_181624-35067.jpg"],
},
robots: {
index: true,
follow: true,
},
};
export default function RootLayout({
children,
}: {
}: Readonly<{
children: React.ReactNode;
}) {
}>) {
return (
<html lang="en">
<body className={inter.variable}>{children}
<html lang="en" suppressHydrationWarning>
<ServiceWrapper>
<body
className={`${halant.variable} ${inter.variable} ${nunito.variable} antialiased`}
>
<Tag />
{children}
<script
dangerouslySetInnerHTML={{
__html: `
@@ -1385,6 +1436,7 @@ export default function RootLayout({
}}
/>
</body>
</ServiceWrapper>
</html>
);
}
}