Compare commits
2 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 4a3741b062 | |||
| bcc57aa4cf |
@@ -5,7 +5,8 @@ import "./globals.css";
|
|||||||
const inter = Inter({ subsets: ["latin"] });
|
const inter = Inter({ subsets: ["latin"] });
|
||||||
|
|
||||||
export const metadata: Metadata = {
|
export const metadata: Metadata = {
|
||||||
title: "Pervan Instalacije - Vodoinstalater Zagreb 24/7", description: "Hitni vodoinstalater Zagreb. Dostupni 24 sata. Popravci cijevi, WC-a, odvoda. Brza intervencija, pouzdano rješenje."};
|
title: "Pervan Instalacije - Vodoinstalater Zagreb 24/7", description: "Hitni vodoinstalater Zagreb. Dostupni 24 sata. Popravci cijevi, WC-a, odvoda. Brza intervencija, pouzdano rješenje."
|
||||||
|
};
|
||||||
|
|
||||||
export default function RootLayout({
|
export default function RootLayout({
|
||||||
children,
|
children,
|
||||||
@@ -13,8 +14,28 @@ export default function RootLayout({
|
|||||||
children: React.ReactNode;
|
children: React.ReactNode;
|
||||||
}) {
|
}) {
|
||||||
return (
|
return (
|
||||||
<html lang="en">
|
<html lang="en" suppressHydrationWarning>
|
||||||
<body className={inter.className}>{children}
|
<body className={inter.className}>
|
||||||
|
{children}
|
||||||
|
<script
|
||||||
|
dangerouslySetInnerHTML={{
|
||||||
|
__html: `
|
||||||
|
(function() {
|
||||||
|
try {
|
||||||
|
const vw = Math.max(document.documentElement.clientWidth || 0, window.innerWidth || 0);
|
||||||
|
document.documentElement.style.setProperty('--vw', (vw / 100) + 'px');
|
||||||
|
} catch (e) {}
|
||||||
|
})();
|
||||||
|
window.addEventListener('resize', function() {
|
||||||
|
try {
|
||||||
|
const vw = Math.max(document.documentElement.clientWidth || 0, window.innerWidth || 0);
|
||||||
|
document.documentElement.style.setProperty('--vw', (vw / 100) + 'px');
|
||||||
|
} catch (e) {}
|
||||||
|
});
|
||||||
|
`,
|
||||||
|
}}
|
||||||
|
/>
|
||||||
|
|
||||||
<script
|
<script
|
||||||
dangerouslySetInnerHTML={{
|
dangerouslySetInnerHTML={{
|
||||||
__html: `
|
__html: `
|
||||||
|
|||||||
Reference in New Issue
Block a user