29 lines
893 B
TypeScript
29 lines
893 B
TypeScript
import {Analytics} from '@vercel/analytics/next'
|
|
import {Geist, Geist_Mono} from 'next/font/google'
|
|
import type {Metadata, Viewport} from 'next'
|
|
import './globals.css'
|
|
|
|
const geist = Geist({subsets: ['latin'], variable: '--font-geist-sans'})
|
|
const geistMono = Geist_Mono({subsets: ['latin'], variable: '--font-geist-mono'})
|
|
|
|
export const metadata: Metadata = {
|
|
title: 'KSnippets',
|
|
description: 'Snippets for RTAST',
|
|
icons: [
|
|
{url: '/icon.svg'}
|
|
],
|
|
}
|
|
|
|
export const viewport: Viewport = {
|
|
colorScheme: 'light',
|
|
themeColor: '#f8f7f2',
|
|
userScalable: true,
|
|
}
|
|
|
|
export default function RootLayout({children}: Readonly<{ children: React.ReactNode }>) {
|
|
return <html lang="en" className="bg-background">
|
|
<body className={`${geist.variable} ${geistMono.variable}`}>{children}{process.env.NODE_ENV === 'production' &&
|
|
<Analytics/>}</body>
|
|
</html>
|
|
}
|