Switch to version 1: modified src/app/layout.tsx
This commit is contained in:
@@ -1,25 +1,50 @@
|
||||
import type { Metadata } from "next";
|
||||
import localFont from "next/font/local";
|
||||
import { Halant } from "next/font/google";
|
||||
import { Inter } from "next/font/google";
|
||||
import { Public_Sans } from "next/font/google";
|
||||
import "./globals.css";
|
||||
import { ServiceWrapper } from "@/components/ServiceWrapper";
|
||||
import Tag from "@/tag/Tag";
|
||||
|
||||
const geistSans = localFont({
|
||||
src: "./fonts/GeistVF.woff2", variable: "--font-geist-sans", weight: "100 900"});
|
||||
const geistMono = localFont({
|
||||
src: "./fonts/GeistMonoVF.woff2", variable: "--font-geist-mono", weight: "100 900"});
|
||||
const halant = Halant({
|
||||
variable: "--font-halant", subsets: ["latin"],
|
||||
weight: ["300", "400", "500", "600", "700"],
|
||||
});
|
||||
|
||||
const inter = Inter({
|
||||
variable: "--font-inter", subsets: ["latin"],
|
||||
});
|
||||
|
||||
const publicSans = Public_Sans({
|
||||
variable: "--font-public-sans", subsets: ["latin"],
|
||||
});
|
||||
|
||||
export const metadata: Metadata = {
|
||||
title: "ETNO HOUSE - Аутентична српска традиција", description: "Откройте аутентичну српску традицију у ETNO HOUSE. Специјализовани смо за традиционалне рецепте и пречане са пажњом."};
|
||||
title: "ETNO HOUSE - Authentic Serbian Fast Food Restaurant", description: "Discover authentic Serbian cuisine at ETNO HOUSE in Zrenjanin. Award-winning traditional pastries, filled breads, pancakes, and toasts. 5.0 rating, open 7AM daily.", keywords: "Serbian food, fast food, Zrenjanin restaurant, lepinja, pancakes, traditional cuisine, authentic food", openGraph: {
|
||||
title: "ETNO HOUSE - Authentic Serbian Fast Food", description: "Traditional Serbian pastries and filled breads made fresh daily. Perfect for breakfast, lunch, or snacks. 5.0 rated restaurant in Zrenjanin.", siteName: "ETNO HOUSE", type: "website", images: [
|
||||
{
|
||||
url: "http://img.b2bpic.net/free-photo/top-view-delicious-breakfast-with-cinnamon-roll_23-2148543694.jpg", alt: "ETNO HOUSE Traditional Serbian Food"},
|
||||
],
|
||||
},
|
||||
twitter: {
|
||||
card: "summary_large_image", title: "ETNO HOUSE - Authentic Serbian Cuisine", description: "Experience traditional Serbian food in Zrenjanin. Lepinja, pancakes, toasts and more. Open daily 7AM.", images: ["http://img.b2bpic.net/free-photo/top-view-delicious-breakfast-with-cinnamon-roll_23-2148543694.jpg"],
|
||||
},
|
||||
};
|
||||
|
||||
export default function RootLayout({
|
||||
children,
|
||||
}: {
|
||||
}: Readonly<{
|
||||
children: React.ReactNode;
|
||||
}) {
|
||||
}>) {
|
||||
return (
|
||||
<html lang="sr">
|
||||
<body className={`${geistSans.variable} ${geistMono.variable}`}>
|
||||
{children}
|
||||
|
||||
<html lang="en" suppressHydrationWarning>
|
||||
<ServiceWrapper>
|
||||
<body
|
||||
className={`${halant.variable} ${inter.variable} ${publicSans.variable} antialiased`}
|
||||
>
|
||||
<Tag />
|
||||
{children}
|
||||
|
||||
<script
|
||||
dangerouslySetInnerHTML={{
|
||||
__html: `
|
||||
@@ -1387,6 +1412,7 @@ export default function RootLayout({
|
||||
}}
|
||||
/>
|
||||
</body>
|
||||
</ServiceWrapper>
|
||||
</html>
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user