Files
front-Censo/src/app/layout.tsx
T

31 lines
682 B
TypeScript
Raw Normal View History

2025-10-22 13:27:10 -06:00
import Header from "../components/header";
2025-10-23 15:35:17 -06:00
import { Inter, Montserrat } from "next/font/google";
import "../app/styles/base/_globales.scss"; // si tienes estilos globales
2025-10-20 19:29:24 -06:00
2025-10-23 15:35:17 -06:00
// Carga optimizada de fuentes
const inter = Inter({
subsets: ["latin"],
weight: ["400", "700"],
variable: "--font-inter",
});
const montserrat = Montserrat({
subsets: ["latin"],
weight: ["400", "700"],
variable: "--font-montserrat",
});
2025-10-20 19:29:24 -06:00
2025-10-23 15:43:58 -06:00
export default function RootLayout({
children,
}: {
children: React.ReactNode;
}) {
2025-10-20 19:29:24 -06:00
return (
2025-10-23 15:35:17 -06:00
<html lang="es" className={`${inter.variable} ${montserrat.variable}`}>
2025-10-22 13:27:10 -06:00
<body>
<Header />
2025-10-23 15:43:58 -06:00
{children}
2025-10-20 19:29:24 -06:00
</body>
</html>
2025-10-23 15:43:58 -06:00
);
2025-10-20 19:29:24 -06:00
}