1
- import interClass from '@gitroom/react/helpers/inter.font' ;
2
1
export const dynamic = 'force-dynamic' ;
3
2
import '../global.scss' ;
4
3
import 'react-tooltip/dist/react-tooltip.css' ;
5
4
import '@copilotkit/react-ui/styles.css' ;
6
5
import LayoutContext from '@gitroom/frontend/components/layout/layout.context' ;
7
6
import { ReactNode } from 'react' ;
8
- import { Chakra_Petch } from 'next/font/google' ;
7
+ import { Plus_Jakarta_Sans } from 'next/font/google' ;
9
8
import PlausibleProvider from 'next-plausible' ;
10
9
import clsx from 'clsx' ;
11
10
import { VariableContextComponent } from '@gitroom/react/helpers/variable.context' ;
@@ -18,21 +17,23 @@ import { headers } from 'next/headers';
18
17
import { headerName } from '@gitroom/react/translation/i18n.config' ;
19
18
import { HtmlComponent } from '@gitroom/frontend/components/layout/html.component' ;
20
19
21
- const chakra = Chakra_Petch ( {
22
- weight : '400' ,
20
+ const jakartaSans = Plus_Jakarta_Sans ( {
21
+ weight : [ '600' , '500' ] ,
22
+ style : [ 'normal' , 'italic' ] ,
23
23
subsets : [ 'latin' ] ,
24
24
} ) ;
25
+
25
26
export default async function AppLayout ( { children } : { children : ReactNode } ) {
26
27
const allHeaders = headers ( ) ;
27
28
const Plausible = ! ! process . env . STRIPE_PUBLISHABLE_KEY
28
29
? PlausibleProvider
29
30
: Fragment ;
30
31
return (
31
- < html className = { interClass } >
32
+ < html >
32
33
< head >
33
34
< link rel = "icon" href = "/favicon.ico" sizes = "any" />
34
35
</ head >
35
- < body className = { clsx ( chakra . className , 'dark text-primary !bg-primary' ) } >
36
+ < body className = { clsx ( jakartaSans . className , 'dark text-primary !bg-primary' ) } >
36
37
< HtmlComponent />
37
38
< VariableContextComponent
38
39
storageProvider = {
0 commit comments