Files
88f0f766-122d-4a45-991a-e75…/src/app/layout.tsx
2026-03-10 19:37:43 +00:00

74 lines
2.6 KiB
TypeScript
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
import type { Metadata } from "next";
import { DM_Sans } from "next/font/google";
import { Inter } from "next/font/google";
import "./globals.css";
import { ServiceWrapper } from "@/components/ServiceWrapper";
import Tag from "@/tag/Tag";
import { getVisualEditScript } from "@/utils/visual-edit-script";
const dmSans = DM_Sans({
variable: "--font-dm-sans",
subsets: ["latin"],
});
const inter = Inter({
variable: "--font-inter",
subsets: ["latin"],
});
export const metadata: Metadata = {
title: "Бабасов Камиль — адвокат в Москве | Уголовное право",
description: "Персональный сайт адвоката Бабасова К.А. Специализация: уголовное право, защита прав адвокатов, судебные экспертизы, УИП. АП РД, реестровый номер 05/1667.",
keywords: "адвокат Москва, уголовное право, адвокат Камиль Бабасов, защита в суде, Адвокатская палата Дагестан",
metadataBase: new URL("https://babasov.ru"),
alternates: {
canonical: "https://babasov.ru",
},
openGraph: {
title: "Бабасов Камиль — адвокат | Официальный сайт",
description: "Квалифицированная правовая помощь по уголовному праву, защите прав адвокатов и судебным экспертизам",
url: "https://babasov.ru",
siteName: "Бабасов Камиль",
type: "website",
images: [
{
url: "https://babasov.ru/og-image.jpg",
alt: "Бабасов Камиль — адвокат Москва",
},
],
},
twitter: {
card: "summary_large_image",
title: "Бабасов Камиль — адвокат",
description: "Правовая помощь по уголовному праву, защита прав адвокатов, судебные экспертизы",
images: ["https://babasov.ru/twitter-image.jpg"],
},
robots: {
index: true,
follow: true,
},
};
export default function RootLayout({
children,
}: Readonly<{
children: React.ReactNode;
}>) {
return (
<html lang="en" suppressHydrationWarning>
<ServiceWrapper>
<body
className={`${dmSans.variable} ${inter.variable} antialiased`}
>
<Tag />
{children}
<script
dangerouslySetInnerHTML={{
__html: `${getVisualEditScript()}`
}}
/>
</body>
</ServiceWrapper>
</html>
);
}