61 lines
1.6 KiB
TypeScript
61 lines
1.6 KiB
TypeScript
import type { Metadata } from "next";
|
|
import Script from "next/script";
|
|
import { Suspense } from "react";
|
|
import { Inter } from "next/font/google";
|
|
import YandexMetrika from "@components/YandexMetrika";
|
|
import "./globals.css";
|
|
import Head from "next/head";
|
|
|
|
const inter = Inter({ subsets: ["cyrillic", "latin"] });
|
|
|
|
export const metadata: Metadata = {
|
|
title: "Интерактивные решения для застройщиков",
|
|
};
|
|
|
|
export default function RootLayout({
|
|
children,
|
|
}: Readonly<{
|
|
children: React.ReactNode;
|
|
}>) {
|
|
return (
|
|
<html lang="ru">
|
|
<body className={inter.className}>
|
|
<main>{children}</main>
|
|
<Script id="metrika-counter" strategy="afterInteractive">
|
|
{`(function (m, e, t, r, i, k, a) {
|
|
m[i] =
|
|
m[i] ||
|
|
function () {
|
|
(m[i].a = m[i].a || []).push(arguments);
|
|
};
|
|
m[i].l = 1 * new Date();
|
|
for (var j = 0; j < document.scripts.length; j++) {
|
|
if (document.scripts[j].src === r) {
|
|
return;
|
|
}
|
|
}
|
|
(k = e.createElement(t)),
|
|
(a = e.getElementsByTagName(t)[0]),
|
|
(k.async = 1),
|
|
(k.src = r),
|
|
a.parentNode.insertBefore(k, a);
|
|
})(
|
|
window,
|
|
document,
|
|
"script",
|
|
"https://mc.yandex.ru/metrika/tag.js",
|
|
"ym"
|
|
);
|
|
|
|
ym(93606080, "init", {
|
|
clickmap: true,
|
|
trackLinks: true,
|
|
accurateTrackBounce: true,
|
|
webvisor: true,
|
|
});`}
|
|
</Script>
|
|
</body>
|
|
</html>
|
|
);
|
|
}
|