feat: font change

This commit is contained in:
Nevo David 2024-09-11 00:17:30 +07:00
parent db2732e180
commit 72e8ef868f
3 changed files with 5 additions and 10 deletions

View File

@ -3,12 +3,15 @@ export const dynamic = 'force-dynamic';
import './global.scss';
import 'react-tooltip/dist/react-tooltip.css';
import '@copilotkit/react-ui/styles.css';
import LayoutContext from '@gitroom/frontend/components/layout/layout.context';
import { ReactNode } from 'react';
import { Chakra_Petch } from 'next/font/google';
import { isGeneral } from '@gitroom/react/helpers/is.general';
import PlausibleProvider from 'next-plausible';
import clsx from 'clsx';
import "@fontsource/chakra-petch";
const chakra = Chakra_Petch({ weight: '400', subsets: ['latin'] });
export default async function AppLayout({ children }: { children: ReactNode }) {
return (
@ -20,7 +23,7 @@ export default async function AppLayout({ children }: { children: ReactNode }) {
sizes="any"
/>
</head>
<body className={clsx('chakra-petch', 'text-primary dark')}>
<body className={clsx(chakra.className, 'text-primary dark')}>
<PlausibleProvider domain={isGeneral() ? "postiz.com" : "gitroom.com"}>
<LayoutContext>{children}</LayoutContext>
</PlausibleProvider>

7
package-lock.json generated
View File

@ -20,7 +20,6 @@
"@copilotkit/react-textarea": "1.1.0",
"@copilotkit/react-ui": "1.1.0",
"@copilotkit/runtime": "1.1.0",
"@fontsource/chakra-petch": "^5.0.22",
"@hookform/resolvers": "^3.3.4",
"@mantine/core": "^5.10.5",
"@mantine/dates": "^5.10.5",
@ -6243,12 +6242,6 @@
"resolved": "https://registry.npmjs.org/@floating-ui/utils/-/utils-0.2.4.tgz",
"integrity": "sha512-dWO2pw8hhi+WrXq1YJy2yCuWoL20PddgGaqTgVe4cOS9Q6qklXCiA1tJEqX6BEwRNSCP84/afac9hd4MS+zEUA=="
},
"node_modules/@fontsource/chakra-petch": {
"version": "5.0.22",
"resolved": "https://registry.npmjs.org/@fontsource/chakra-petch/-/chakra-petch-5.0.22.tgz",
"integrity": "sha512-dYhrz0As8T7H7NGeMbcwAf84xzlxzdfcXBqcgO5lWAGezud8zrrJKGHB/9To5fNQ1ZoqDVplXy3Hu+Ye7tFbvw==",
"license": "OFL-1.1"
},
"node_modules/@google/generative-ai": {
"version": "0.11.5",
"resolved": "https://registry.npmjs.org/@google/generative-ai/-/generative-ai-0.11.5.tgz",

View File

@ -33,7 +33,6 @@
"@copilotkit/react-textarea": "1.1.0",
"@copilotkit/react-ui": "1.1.0",
"@copilotkit/runtime": "1.1.0",
"@fontsource/chakra-petch": "^5.0.22",
"@hookform/resolvers": "^3.3.4",
"@mantine/core": "^5.10.5",
"@mantine/dates": "^5.10.5",