62 lines
1.8 KiB
TypeScript
62 lines
1.8 KiB
TypeScript
import type { Metadata } from "next";
|
|
import { Inter, Arimo, Fira_Code } from "next/font/google";
|
|
import "./globals.css";
|
|
import { ThemeProvider } from "next-themes";
|
|
|
|
const inter = Inter({
|
|
variable: "--font-inter",
|
|
subsets: ["latin"],
|
|
weight: ["400", "500", "600", "700"],
|
|
});
|
|
|
|
const arimo = Arimo({
|
|
variable: "--font-arimo",
|
|
subsets: ["latin"],
|
|
weight: ["400", "500", "600", "700"],
|
|
});
|
|
|
|
const firaCode = Fira_Code({
|
|
variable: "--font-fira-code",
|
|
subsets: ["latin"],
|
|
weight: ["400", "600"],
|
|
});
|
|
|
|
export const metadata: Metadata = {
|
|
title: "Aggios - Plataforma de Gestão Financeira",
|
|
description: "A plataforma completa para gestão de agências e clientes. Controle financeiro, relatórios inteligentes e muito mais.",
|
|
keywords: "gestão financeira, agências, relatórios, dashboard, controle financeiro",
|
|
openGraph: {
|
|
title: "Aggios - Transforme sua gestão financeira",
|
|
description: "A plataforma completa para gestão de agências e clientes.",
|
|
type: "website",
|
|
},
|
|
};
|
|
|
|
export default function RootLayout({
|
|
children,
|
|
}: Readonly<{
|
|
children: React.ReactNode;
|
|
}>) {
|
|
return (
|
|
<html lang="pt-BR" suppressHydrationWarning>
|
|
<head>
|
|
<script
|
|
dangerouslySetInnerHTML={{
|
|
__html: `
|
|
try {
|
|
const theme = localStorage.getItem('theme') || 'light';
|
|
document.documentElement.classList.toggle('dark', theme === 'dark');
|
|
} catch (e) {}
|
|
`,
|
|
}}
|
|
/>
|
|
</head>
|
|
<body className={`${inter.variable} ${arimo.variable} ${firaCode.variable} antialiased`}>
|
|
<ThemeProvider attribute="class" defaultTheme="light" enableSystem={false} storageKey="theme">
|
|
{children}
|
|
</ThemeProvider>
|
|
</body>
|
|
</html>
|
|
);
|
|
}
|