2 Commits

Author SHA1 Message Date
72a5580e31 Update src/app/layout.tsx 2026-03-07 22:57:04 +00:00
ff92a95cae Merge version_1 into main
Merge version_1 into main
2026-03-07 19:46:11 +00:00

View File

@@ -1,57 +1,36 @@
import type { Metadata } from "next";
import { Halant } from "next/font/google";
import { Inter } from "next/font/google";
import { Nunito_Sans } 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 nunitoSans = Nunito_Sans({
variable: "--font-nunito-sans", subsets: ["latin"],
});
const inter = Inter({ subsets: ["latin"] });
export const metadata: Metadata = {
title: "Savour | Fine Dining Restaurant", description: "Experience award-winning fine dining at Savour. Michelin-trained cuisine, elegant ambiance, and world-class service. Reserve your table today.", keywords: "fine dining, restaurant, fine dining reservation, gourmet cuisine, French restaurant, wine pairing", metadataBase: new URL("https://savourrestaurant.com"),
alternates: {
canonical: "https://savourrestaurant.com"},
openGraph: {
title: "Savour | Fine Dining Restaurant", description: "Experience award-winning fine dining at Savour. Michelin-trained cuisine, elegant ambiance, and world-class service.", url: "https://savourrestaurant.com", siteName: "Savour", type: "website", images: [
{
url: "https://savourrestaurant.com/og-image.jpg", alt: "Fine dining at Savour restaurant"},
],
},
twitter: {
card: "summary_large_image", title: "Savour | Fine Dining Restaurant", description: "Experience award-winning fine dining. Reserve your table today.", images: ["https://savourrestaurant.com/twitter-image.jpg"],
},
robots: {
index: true,
follow: true,
},
};
title: "Savour - Fine Dining Restaurant", description: "Experience award-winning fine dining cuisine in an elegant atmosphere at Savour Restaurant."};
export default function RootLayout({
children,
}: Readonly<{
}: {
children: React.ReactNode;
}>) {
}) {
return (
<html lang="en" suppressHydrationWarning>
<ServiceWrapper>
<body
className={`${halant.variable} ${inter.variable} ${nunitoSans.variable} antialiased`}
>
<body className={inter.className}>
<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={{
__html: `
@@ -1419,7 +1398,14 @@ export default function RootLayout({
}}
/>
</body>
</ServiceWrapper>
</html>
);
}
function ServiceWrapper({ children }: { children: React.ReactNode }) {
return <>{children}</>;
}
function Tag() {
return null;
}