46 lines
944 B
TypeScript
46 lines
944 B
TypeScript
import type { Metadata, Viewport } from 'next'
|
|
import { Inter } from 'next/font/google'
|
|
import './globals.css'
|
|
|
|
const inter = Inter({
|
|
subsets: ['latin'],
|
|
variable: '--font-inter',
|
|
display: 'swap',
|
|
})
|
|
|
|
export const metadata: Metadata = {
|
|
title: {
|
|
default: 'CupaDev CMS',
|
|
template: '%s | CupaDev CMS',
|
|
},
|
|
description:
|
|
'A modern, fast content management system built with Next.js.',
|
|
metadataBase: new URL('https://cupadev.com'),
|
|
openGraph: {
|
|
type: 'website',
|
|
locale: 'en_US',
|
|
url: 'https://cupadev.com',
|
|
title: 'CupaDev CMS',
|
|
},
|
|
}
|
|
|
|
export const viewport: Viewport = {
|
|
themeColor: '#6470f3',
|
|
width: 'device-width',
|
|
initialScale: 1,
|
|
}
|
|
|
|
export default function RootLayout({
|
|
children,
|
|
}: {
|
|
children: React.ReactNode
|
|
}) {
|
|
return (
|
|
<html lang="en" className={inter.variable}>
|
|
<body className="min-h-screen flex flex-col">
|
|
{children}
|
|
</body>
|
|
</html>
|
|
)
|
|
}
|