refactor(website): font loading and reduce cls

This commit is contained in:
iCrawl
2023-03-25 13:44:35 +01:00
parent d6f4e60efd
commit ad31edc7aa
28 changed files with 100 additions and 62 deletions

View File

@@ -1,7 +1,13 @@
import localFont from 'next/font/local';
import { Inter, JetBrains_Mono } from 'next/font/google';
export const inter = localFont({
src: '../assets/fonts/Inter.ttf',
variable: '--font-inter',
export const inter = Inter({
subsets: ['latin'],
display: 'swap',
variable: '--font-inter',
});
export const jetBrainsMono = JetBrains_Mono({
subsets: ['latin'],
display: 'swap',
variable: '--font-mono',
});