first commit
This commit is contained in:
@@ -1,20 +1,22 @@
|
||||
// src/app/layout.tsx
|
||||
import type { Metadata } from "next";
|
||||
import { Geist, Geist_Mono } from "next/font/google";
|
||||
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)
|
||||
|
||||
const geistSans = Geist({
|
||||
variable: "--font-geist-sans",
|
||||
subsets: ["latin"],
|
||||
});
|
||||
|
||||
const geistMono = Geist_Mono({
|
||||
variable: "--font-geist-mono",
|
||||
// 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: "Create Next App",
|
||||
description: "Generated by create next app",
|
||||
title: "Surtilatino | Mercado Boutique",
|
||||
description: "Sabor auténtico, origen natural.",
|
||||
};
|
||||
|
||||
export default function RootLayout({
|
||||
@@ -23,12 +25,13 @@ export default function RootLayout({
|
||||
children: React.ReactNode;
|
||||
}>) {
|
||||
return (
|
||||
<html lang="en">
|
||||
<body
|
||||
className={`${geistSans.variable} ${geistMono.variable} antialiased`}
|
||||
>
|
||||
{children}
|
||||
<html lang="es">
|
||||
<body className={`${outfit.variable} font-sans`}>
|
||||
<Navbar />
|
||||
<CartDrawer />
|
||||
<main>{children}</main>
|
||||
<Footer></Footer>
|
||||
</body>
|
||||
</html>
|
||||
);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user