37 lines
962 B
TypeScript
37 lines
962 B
TypeScript
// src/app/layout.tsx
|
|
import type { Metadata } from "next";
|
|
import { Outfit } from "next/font/google";
|
|
import "./globals.css";
|
|
import Navbar from "@/components/layout/Navbar";
|
|
import CartDrawer from "@/components/layout/CartDrawer";
|
|
import Footer from "@/components/layout/Footer";
|
|
// (Lo crearemos en el siguiente paso)
|
|
|
|
// Configuración de la fuente Outfit
|
|
const outfit = Outfit({
|
|
subsets: ["latin"],
|
|
variable: "--font-sans", // Vincula con Tailwind
|
|
weight: ["200", "300", "400", "500", "600"],
|
|
});
|
|
|
|
export const metadata: Metadata = {
|
|
title: "Surtilatino | Mercado Boutique",
|
|
description: "Sabor auténtico, origen natural.",
|
|
};
|
|
|
|
export default function RootLayout({
|
|
children,
|
|
}: Readonly<{
|
|
children: React.ReactNode;
|
|
}>) {
|
|
return (
|
|
<html lang="es">
|
|
<body className={`${outfit.variable} font-sans`}>
|
|
<Navbar />
|
|
<CartDrawer />
|
|
<main>{children}</main>
|
|
<Footer></Footer>
|
|
</body>
|
|
</html>
|
|
);
|
|
} |