Skip to content

Commit

Permalink
fix: errors (#2137)
Browse files Browse the repository at this point in the history
* fix: fonts

* fix: delete commented codes

* fix: fonts

* fix: delete commented codes

* fix: Cspell error
  • Loading branch information
Cedric921 authored Feb 4, 2024
1 parent 966f5b6 commit eb1e56d
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 2 deletions.
3 changes: 2 additions & 1 deletion .cspell.json
Original file line number Diff line number Diff line change
Expand Up @@ -328,7 +328,8 @@
"screenshoots",
"tota",
"Intervall",
"Timesheets"
"Timesheets",
"dotenv"
],
"useGitignore": true,
"ignorePaths": [
Expand Down
16 changes: 15 additions & 1 deletion apps/web/app/[locale]/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,20 @@ interface Props {
};
}

import { Plus_Jakarta_Sans, Poppins } from 'next/font/google';

const jakarta = Plus_Jakarta_Sans({
subsets: ['latin'],
variable: '--font-jakarta',
display: 'swap'
});

const poppins = Poppins({
subsets: ['latin'],
weight: '500',
variable: '--font-poppins',
display: 'swap'
});
// export function generateStaticParams() {
// return locales.map((locale: any) => ({ locale }));
// }
Expand All @@ -53,7 +67,7 @@ const LocaleLayout = ({ children, params: { locale }, pageProps }: Props) => {
const messages = require(`../../messages/${locale}.json`);
console.log({ pageProps });
return (
<html lang={locale}>
<html lang={locale} className={`${poppins.variable} ${jakarta.variable}`}>
{/* <head>
<link rel="preconnect" href="https://fonts.googleapis.com" />
<link rel="preconnect" href="https://fonts.gstatic.com" crossOrigin="" />
Expand Down

0 comments on commit eb1e56d

Please sign in to comment.