| 1 | import { Databuddy } from '@databuddy/sdk/react' |
| 2 | import type { Viewport |
| 3 | import { Geist, Geist_Mono |
| 4 | |
| 5 | import '@/styles/globals.css' |
| 6 | import { |
| 7 | APP_DEFAULT_TITLE, |
| 8 | APP_DESCRIPTION, |
| 9 | APP_TITLE_TEMPLATE, |
| 10 | } from '@/lib/constants' |
| 11 | import { baseUrl, createMetadata |
| 12 | import { Providers } |
| 13 | |
| 14 | const geistSans = Geist |
| 15 | variable: '--font-geist-sans', |
| 16 | subsets: ['latin'], |
| 17 | }) |
| 18 | |
| 19 | const geistMono = Geist_Mono |
| 20 | variable: '--font-geist-mono', |
| 21 | subsets: ['latin'], |
| 22 | }) |
| 23 | |
| 24 | export const metadata = |
| 25 | title: { |
| 26 | template: APP_TITLE_TEMPLATE, |
| 27 | default: APP_DEFAULT_TITLE, |
| 28 | }, |
| 29 | description: APP_DESCRIPTION, |
| 30 | metadataBase: baseUrl, |
| 31 | }) |
| 32 | |
| 33 | export const viewport: |
| 34 | themeColor: [ |
| 35 | { media: '(prefers-color-scheme: dark)', |
| 36 | { media: '(prefers-color-scheme: light)', |
| 37 | ], |
| 38 | initialScale: 1, |
| 39 | viewportFit: 'cover', |
| 40 | width: 'device-width', |
| 41 | } |
| 42 | |
| 43 | export default function RootLayout |
| 44 | return ( |
| 45 | <html lang='en |
| 46 | <body |
| 47 | className={`${geistSans |
| 48 | > |
| 49 | <Providers>{children} |
| 50 | <Databuddy |
| 51 | clientId='f825ca92-af36-4b2b-8c19-e9337cf65427' |
| 52 | trackErrors={true} |
| 53 | trackInteractions={true} |
| 54 | trackOutgoingLinks={true} |
| 55 | trackScrollDepth={true} |
| 56 | trackWebVitals={true} |
| 57 | /> |
| 58 | </body> |
| 59 | </html> |
| 60 | ) |
| 61 | } |