-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathlayout.jsx
More file actions
33 lines (30 loc) · 743 Bytes
/
layout.jsx
File metadata and controls
33 lines (30 loc) · 743 Bytes
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
// This is the root layout component for your Next.js app.
// Learn more: https://nextjs.org/docs/app/building-your-application/routing/pages-and-layouts#root-layout-required
import { Inter } from 'next/font/google'
import { cn } from '@/lib/utils'
import './globals.css'
const fontHeading = Inter({
subsets: ['latin'],
display: 'swap',
variable: '--font-heading',
})
const fontBody = Inter({
subsets: ['latin'],
display: 'swap',
variable: '--font-body',
})
export default function Layout({ children }) {
return (
<html lang="en">
<body
className={cn(
'antialiased',
fontHeading.variable,
fontBody.variable
)}
>
{children}
</body>
</html>
)
}