Switch to version 2: modified src/app/layout.tsx
This commit is contained in:
@@ -1,55 +1,28 @@
|
||||
import type { Metadata } from "next";
|
||||
import { Halant } from "next/font/google";
|
||||
import { Inter } from "next/font/google";
|
||||
import { Public_Sans } from "next/font/google";
|
||||
import { Geist, Geist_Mono } 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 geist = Geist({
|
||||
variable: "--font-geist-sans", subsets: ["latin"],
|
||||
});
|
||||
|
||||
const inter = Inter({
|
||||
variable: "--font-inter", subsets: ["latin"],
|
||||
});
|
||||
|
||||
const publicSans = Public_Sans({
|
||||
variable: "--font-public-sans", subsets: ["latin"],
|
||||
const geist_mono = Geist_Mono({
|
||||
variable: "--font-geist-mono", subsets: ["latin"],
|
||||
});
|
||||
|
||||
export const metadata: Metadata = {
|
||||
title: "Samsung Technology 2025 - Innovation Showcase", description: "Explore Samsung's cutting-edge technology innovations including AI processors, revolutionary displays, and 5G connectivity. Experience the future of technology.", keywords: "Samsung, technology, AI, display, 5G, innovation, Galaxy, smart devices", robots: {
|
||||
index: true,
|
||||
follow: true,
|
||||
},
|
||||
openGraph: {
|
||||
title: "Samsung Technology 2025 - Innovation Showcase", description: "Discover Samsung's latest breakthroughs in AI, display technology, and global connectivity.", type: "website", siteName: "Samsung", images: [
|
||||
{
|
||||
url: "https://webuild-dev.s3.eu-north-1.amazonaws.com/users/user_3ARK4PdridlZpDx9QrcHVnCrhiQ/ultra-modern-samsung-galaxy-fold-smartph-1772891720106-4ebde834.png", alt: "Samsung Galaxy Fold Innovation"},
|
||||
],
|
||||
},
|
||||
twitter: {
|
||||
card: "summary_large_image", title: "Samsung Technology 2025 - Innovation Showcase", description: "Experience the future with Samsung's revolutionary technology breakthroughs.", images: [
|
||||
"https://webuild-dev.s3.eu-north-1.amazonaws.com/users/user_3ARK4PdridlZpDx9QrcHVnCrhiQ/ultra-modern-samsung-galaxy-fold-smartph-1772891720106-4ebde834.png"],
|
||||
},
|
||||
};
|
||||
title: "Samsung Phone Catalog", description: "Explore Samsung's comprehensive phone catalog from 2020-2026 with detailed specifications and features."};
|
||||
|
||||
export default function RootLayout({
|
||||
children,
|
||||
}: Readonly<{
|
||||
}: {
|
||||
children: React.ReactNode;
|
||||
}>) {
|
||||
}) {
|
||||
return (
|
||||
<html lang="en" suppressHydrationWarning>
|
||||
<ServiceWrapper>
|
||||
<body
|
||||
className={`${halant.variable} ${inter.variable} ${publicSans.variable} antialiased`}
|
||||
>
|
||||
<Tag />
|
||||
{children}
|
||||
|
||||
<html lang="en">
|
||||
<body className={`${geist.variable} ${geist_mono.variable}`}>
|
||||
{children}
|
||||
|
||||
<script
|
||||
dangerouslySetInnerHTML={{
|
||||
__html: `
|
||||
@@ -1417,7 +1390,6 @@ export default function RootLayout({
|
||||
}}
|
||||
/>
|
||||
</body>
|
||||
</ServiceWrapper>
|
||||
</html>
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user