stuff done
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
import type {Metadata} from 'next'
|
||||
import localFont from 'next/font/local'
|
||||
import {headers} from 'next/headers'
|
||||
import {ReactNode} from 'react'
|
||||
import {Toaster} from 'react-hot-toast'
|
||||
@@ -16,6 +17,42 @@ export const metadata: Metadata = {
|
||||
description: APP_DESCRIPTION
|
||||
}
|
||||
|
||||
const Myriad = localFont({
|
||||
variable: '--font-myriad',
|
||||
src: [
|
||||
/*{
|
||||
path: '../public/fonts/myriad-light.woff2',
|
||||
weight: '300',
|
||||
style: 'normal'
|
||||
},*/
|
||||
{
|
||||
path: '../public/fonts/myriad-regular.woff2',
|
||||
weight: '400',
|
||||
style: 'normal'
|
||||
},
|
||||
/*{
|
||||
path: '../public/fonts/myriad-it.woff2',
|
||||
weight: '400',
|
||||
style: 'italic'
|
||||
},*/
|
||||
{
|
||||
path: '../public/fonts/myriad-semibold.woff2',
|
||||
weight: '600',
|
||||
style: 'normal'
|
||||
},
|
||||
{
|
||||
path: '../public/fonts/myriad-bold.woff2',
|
||||
weight: '700',
|
||||
style: 'normal'
|
||||
}
|
||||
/*{
|
||||
path: '../public/fonts/myriad-boldit.woff2',
|
||||
weight: '700',
|
||||
style: 'italic'
|
||||
}*/
|
||||
]
|
||||
})
|
||||
|
||||
export default async function RootLayout({
|
||||
children
|
||||
}: Readonly<{children: ReactNode}>) {
|
||||
@@ -23,8 +60,8 @@ export default async function RootLayout({
|
||||
const locale = headersList.get('x-site-locale') ?? routing.defaultLocale
|
||||
|
||||
return (
|
||||
<html lang={locale} suppressHydrationWarning>
|
||||
<body className='min-h-screen antialiased'>
|
||||
<html lang={locale} suppressHydrationWarning className={Myriad.variable}>
|
||||
<body className={`min-h-screen antialiased`}>
|
||||
{children}
|
||||
{/*<Toaster />*/}
|
||||
<Toaster position='top-right' reverseOrder={false} />
|
||||
|
||||
Reference in New Issue
Block a user