File size: 1,920 Bytes
1e92f2d |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 |
import { ProAdBanner } from "@/components/pro-banner"
import { docsConfig } from "@/docs.config"
import type { Metadata } from "next"
import { Figtree, Inter, Outfit, Roboto } from "next/font/google"
import localFont from "next/font/local"
import Script from "next/script"
import { Provider } from "./provider"
import "./scrollbar.css"
import "./shiki.css"
const inter = Inter({
subsets: ["latin"],
variable: "--font-inter",
})
const figTree = Figtree({
subsets: ["latin"],
variable: "--font-figtree",
})
const roboto = Roboto({
subsets: ["latin"],
variable: "--font-roboto",
weight: ["100", "300", "400", "500", "700", "900"],
})
const outfit = Outfit({
subsets: ["latin"],
variable: "--font-outfit",
})
const geistSans = localFont({
src: "../public/fonts/GeistVF.woff",
variable: "--font-geist-sans",
weight: "100 900",
})
const geistMono = localFont({
src: "../public/fonts/GeistMonoVF.woff",
variable: "--font-geist-mono",
weight: "100 900",
})
export const metadata: Metadata = {
metadataBase: new URL("https://next.chakra-ui.com"),
title: {
template: docsConfig.titleTemplate,
default: docsConfig.title,
},
description: docsConfig.description,
openGraph: {
images: "/og-image.png",
},
}
export default function RootLayout({
children,
}: Readonly<{
children: React.ReactNode
}>) {
return (
<html
suppressHydrationWarning
lang="en"
className={[
inter.variable,
figTree.variable,
roboto.variable,
outfit.variable,
geistSans.variable,
geistMono.variable,
].join(" ")}
>
<head>
<Script
src="https://plausible.io/js/plausible.js"
data-domain="chakra-ui.com"
/>
)
}
|