This repository has been archived on 2026-09-04. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
KSnippets/snippets-frontend/app/layout.tsx
T
2026-08-27 20:13:42 +08:00

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>
}