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

This commit is contained in:
2026-04-07 09:56:12 +00:00
parent 1fe675bccc
commit 5ce6df75bb

View File

@@ -1,40 +1,60 @@
import type { Metadata } from "next";
import { Halant } from "next/font/google";
import { Inter } from "next/font/google";
import { Poppins } 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"],
});
const poppins = Poppins({
variable: "--font-poppins", subsets: ["latin"],
weight: ["100", "200", "300", "400", "500", "600", "700", "800", "900"],
});
export const metadata: Metadata = {
title: "The Ora Cafe | Bhilwara's Favorite Rooftop Cafe", description: "Experience The Ora Cafe - Bhilwara's most beloved rooftop dining destination with fusion cuisine, cozy vibes, and stunning views."};
title: "The Ora Cafe - Bhilwara's Premier Rooftop Cafe & Restaurant", description: "Discover The Ora Cafe in Bhilwara - your favorite rooftop hangout with delicious fusion food, cozy vibes, and Instagram-worthy ambience. Reserve a table today.", keywords: "cafe in Bhilwara, best cafe Bhilwara, rooftop cafe, restaurant Bhilwara, hangout place Bhilwara, The Ora Cafe", metadataBase: new URL("https://theoracafe.com"),
alternates: {
canonical: "https://theoracafe.com"
},
openGraph: {
title: "The Ora Cafe - Bhilwara's Favorite Rooftop Cafe", description: "Experience premium dining at The Ora Cafe. Rooftop seating, creative fusion food, and the perfect vibe for friends and family.", url: "https://theoracafe.com", siteName: "The Ora Cafe", type: "website", images: [
{
url: "http://img.b2bpic.net/free-photo/friends-having-nice-barbeque-together_23-2149271952.jpg", alt: "The Ora Cafe rooftop dining experience"
}
]
},
twitter: {
card: "summary_large_image", title: "The Ora Cafe - Rooftop Dining in Bhilwara", description: "Join us for an unforgettable rooftop dining experience. Book your table now!", images: ["http://img.b2bpic.net/free-photo/friends-having-nice-barbeque-together_23-2149271952.jpg"]
},
robots: {
index: true,
follow: true
}
};
export default function RootLayout({
children,
}: {
children
}: Readonly<{
children: React.ReactNode;
}) {
}>) {
return (
<html lang="en" suppressHydrationWarning>
<head>
<script
dangerouslySetInnerHTML={{
__html: `
(function() {
try {
const theme = localStorage.getItem('theme') || 'light';
if (theme === 'dark') {
document.documentElement.classList.add('dark');
}
} catch (e) {}
})();
`,
}}
/>
</head>
<body className={`${inter.variable} antialiased`}>
{children}
<ServiceWrapper>
<body
className={`${halant.variable} ${inter.variable} ${poppins.variable} antialiased`}
>
<Tag />
{children}
<script
dangerouslySetInnerHTML={{
__html: `
@@ -1402,6 +1422,7 @@ export default function RootLayout({
}}
/>
</body>
</ServiceWrapper>
</html>
);
}