-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathlayout.tsx
More file actions
55 lines (48 loc) · 1.61 KB
/
layout.tsx
File metadata and controls
55 lines (48 loc) · 1.61 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
import { Analytics } from '@vercel/analytics/react'
import type { Metadata } from 'next'
import { Inter, Source_Code_Pro } from 'next/font/google'
import Script from 'next/script'
import { IS_PRODUCTION } from '@/config/env'
import { PageSkeleton } from '@/components/page-skeleton'
import './globals.css'
const inter = Inter({
variable: '--font-inter',
subsets: ['latin'],
})
const mono = Source_Code_Pro({
variable: '--font-mono',
subsets: ['latin'],
})
export const metadata: Metadata = {
title: 'React QR Code - Customizable QR Code Generator for React',
description:
'React QR Code is a highly customizable and lightweight QR code generator for React applications. Easily style QR codes with unique finder patterns, rounded corners, and customizable colors. Explore the documentation and live demo to get started quickly!',
verification: {
google: process.env.NEXT_PUBLIC_GOOGLE_SITE_VERIFICATION,
},
}
export default function RootLayout({
children,
}: Readonly<{
children: React.ReactNode
}>) {
return (
<html lang='en'>
<body className={`${inter.variable} ${mono.variable} antialiased`}>
<PageSkeleton>{children}</PageSkeleton>
<Analytics />
{IS_PRODUCTION && (
<Script
src='https://cloud.umami.is/script.js'
data-website-id={process.env.NEXT_PUBLIC_UMAMI_WEBSITE_ID}
/>
)}
<Script
async
src={`https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=${process.env.NEXT_PUBLIC_GOOGLE_ADS_CLIENT_ID}`}
crossOrigin='anonymous'
/>
</body>
</html>
)
}