47 lines
1.2 KiB
TypeScript
47 lines
1.2 KiB
TypeScript
import type React from "react"
|
|
import type { Metadata } from "next"
|
|
import { Inter } from "next/font/google"
|
|
import "./globals.css"
|
|
import { ThemeProvider } from "@/components/theme-provider"
|
|
import Header from "@/components/header"
|
|
import Footer from "@/components/layout/footer"
|
|
|
|
// Импортируем шрифт Arimo
|
|
import { Arimo } from "next/font/google"
|
|
|
|
const inter = Inter({ subsets: ["latin"], variable: "--font-inter" })
|
|
|
|
// Настраиваем шрифт Arimo
|
|
const arimo = Arimo({
|
|
subsets: ["latin", "cyrillic"],
|
|
weight: ["400", "500", "600", "700"],
|
|
variable: "--font-arimo",
|
|
})
|
|
|
|
export const metadata: Metadata = {
|
|
title: "Модный магазин одежды",
|
|
description: "Современный интернет-магазин стильной одежды",
|
|
generator: 'v0.dev'
|
|
}
|
|
|
|
export default function RootLayout({
|
|
children,
|
|
}: Readonly<{
|
|
children: React.ReactNode
|
|
}>) {
|
|
return (
|
|
<html lang="ru">
|
|
<body className={`${inter.variable} ${arimo.variable}`}>
|
|
<ThemeProvider attribute="class" defaultTheme="light" enableSystem>
|
|
<Header />
|
|
<div className="pt-20">{children}</div>
|
|
<Footer />
|
|
</ThemeProvider>
|
|
</body>
|
|
</html>
|
|
)
|
|
}
|
|
|
|
|
|
|
|
import './globals.css' |