Compare commits
2 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| dd8e079c52 | |||
| 76a84c1fca |
@@ -1,17 +1,12 @@
|
||||
import type { Metadata } from "next";
|
||||
import { Geist, Geist_Mono } from "next/font/google";
|
||||
import { Inter } from "next/font/google";
|
||||
import "./globals.css";
|
||||
|
||||
const geist = Geist({
|
||||
variable: "--font-geist-sans", subsets: ["latin"],
|
||||
});
|
||||
|
||||
const geistMono = Geist_Mono({
|
||||
variable: "--font-geist-mono", subsets: ["latin"],
|
||||
});
|
||||
const inter = Inter({ variable: "--font-inter", subsets: ["latin"] });
|
||||
|
||||
export const metadata: Metadata = {
|
||||
title: "ProRoof - Expert Roofing Solutions", description: "Professional roofing contractors delivering premium quality installations, repairs, and maintenance. Over 20 years of excellence protecting families and businesses."};
|
||||
title: "ProRoof - Expert Roofing Solutions", description: "Trusted roofing contractors delivering premium quality installations, repairs, and maintenance. Over 20 years of excellence protecting families and businesses."
|
||||
};
|
||||
|
||||
export default function RootLayout({
|
||||
children,
|
||||
@@ -20,21 +15,9 @@ export default function RootLayout({
|
||||
}) {
|
||||
return (
|
||||
<html lang="en" suppressHydrationWarning>
|
||||
<body className={`${geist.variable} ${geistMono.variable}`}>
|
||||
<script
|
||||
dangerouslySetInnerHTML={{
|
||||
__html: `
|
||||
try {
|
||||
if (localStorage.getItem('theme') === 'dark' || (!('theme' in localStorage) && window.matchMedia('(prefers-color-scheme: dark)').matches)) {
|
||||
document.documentElement.classList.add('dark')
|
||||
} else {
|
||||
document.documentElement.classList.remove('dark')
|
||||
}
|
||||
} catch (e) {}
|
||||
`,
|
||||
}}
|
||||
/>
|
||||
<body className={`${inter.variable} antialiased`}>
|
||||
{children}
|
||||
<script async src="https://cdn.jsdelivr.net/npm/chart.js"></script>
|
||||
|
||||
<script
|
||||
dangerouslySetInnerHTML={{
|
||||
|
||||
Reference in New Issue
Block a user