Update src/app/layout.tsx
This commit is contained in:
@@ -1,11 +1,16 @@
|
||||
import type { Metadata } from "next";
|
||||
import { Inter } from "next/font/google";
|
||||
import "./globals.css";
|
||||
import "./styles/variables.css";
|
||||
import "./styles/base.css";
|
||||
import { ServiceWrapper } from "@/providers/serviceWrapper/ServiceWrapper";
|
||||
import { Tag } from "@/components/tag/Tag";
|
||||
|
||||
const inter = Inter({ subsets: ["latin"] });
|
||||
const inter = Inter({
|
||||
variable: "--font-inter", subsets: ["latin"],
|
||||
});
|
||||
|
||||
export const metadata: Metadata = {
|
||||
title: "Mindex AI", description: "Intelligent marketing automation powered by advanced AI"};
|
||||
title: "Temple AI - Advanced AI Solutions for Enterprise", description: "Transform your business with Temple AI's cutting-edge artificial intelligence technology. Enterprise-grade automation, real-time intelligence, and secure solutions."};
|
||||
|
||||
export default function RootLayout({
|
||||
children,
|
||||
@@ -13,8 +18,31 @@ export default function RootLayout({
|
||||
children: React.ReactNode;
|
||||
}) {
|
||||
return (
|
||||
<html lang="en">
|
||||
<body className={inter.className}>{children}
|
||||
<html lang="en" suppressHydrationWarning>
|
||||
<head>
|
||||
<script
|
||||
dangerouslySetInnerHTML={{
|
||||
__html: `
|
||||
(function() {
|
||||
try {
|
||||
const vw = Math.max(document.documentElement.clientWidth || 0, window.innerWidth || 0) / 100;
|
||||
document.documentElement.style.setProperty('--vw', vw + 'px');
|
||||
window.addEventListener('resize', () => {
|
||||
const vw = Math.max(document.documentElement.clientWidth || 0, window.innerWidth || 0) / 100;
|
||||
document.documentElement.style.setProperty('--vw', vw + 'px');
|
||||
});
|
||||
} catch(e) {}
|
||||
})();
|
||||
`,
|
||||
}}
|
||||
/>
|
||||
</head>
|
||||
<body className={`${inter.variable}`}>
|
||||
<ServiceWrapper>
|
||||
<Tag />
|
||||
{children}
|
||||
</ServiceWrapper>
|
||||
|
||||
<script
|
||||
dangerouslySetInnerHTML={{
|
||||
__html: `
|
||||
@@ -1384,4 +1412,4 @@ export default function RootLayout({
|
||||
</body>
|
||||
</html>
|
||||
);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user