mirror of
https://github.com/LukeHagar/jsdoc-cheatsheet.git
synced 2025-12-06 12:37:48 +00:00
Update layout file to apply dark theme and configure fonts. Co-authored-by: Luke Hagar <5702154+LukeHagar@users.noreply.github.com>
29 lines
798 B
TypeScript
29 lines
798 B
TypeScript
import type React from "react"
|
|
import type { Metadata } from "next"
|
|
import { GeistSans } from "geist/font/sans"
|
|
import { GeistMono } from "geist/font/mono"
|
|
import { Analytics } from "@vercel/analytics/next"
|
|
import { Suspense } from "react"
|
|
import "./globals.css"
|
|
|
|
export const metadata: Metadata = {
|
|
title: "JSDoc Cheatsheet",
|
|
description: "Complete reference for JavaScript documentation with JSDoc",
|
|
generator: "v0.app",
|
|
}
|
|
|
|
export default function RootLayout({
|
|
children,
|
|
}: Readonly<{
|
|
children: React.ReactNode
|
|
}>) {
|
|
return (
|
|
<html lang="en" className={`dark ${GeistSans.variable} ${GeistMono.variable} antialiased`}>
|
|
<body className="font-sans">
|
|
<Suspense fallback={<div>Loading...</div>}>{children}</Suspense>
|
|
<Analytics />
|
|
</body>
|
|
</html>
|
|
)
|
|
}
|