@@ -2,29 +2,32 @@ import type { ReactNode } from 'react'
22import { defineI18nUI } from 'fumadocs-ui/i18n'
33import { DocsLayout } from 'fumadocs-ui/layouts/docs'
44import { RootProvider } from 'fumadocs-ui/provider/next'
5- import { Geist_Mono , Inter } from 'next/font/google'
5+ import { Martian_Mono } from 'next/font/google'
6+ import localFont from 'next/font/local'
67import Script from 'next/script'
78import {
89 SidebarFolder ,
910 SidebarItem ,
1011 SidebarSeparator ,
1112} from '@/components/docs-layout/sidebar-components'
1213import { Navbar } from '@/components/navbar/navbar'
13- import { AnimatedBlocks } from '@/components/ui/animated-blocks'
1414import { SimLogoFull } from '@/components/ui/sim-logo'
1515import { i18n } from '@/lib/i18n'
1616import { source } from '@/lib/source'
1717import '../global.css'
1818
19- const inter = Inter ( {
20- subsets : [ 'latin' ] ,
21- variable : '--font-geist-sans' ,
19+ const season = localFont ( {
20+ src : [ { path : '../fonts/SeasonSansUprightsVF.woff2' , weight : '300 800' , style : 'normal' } ] ,
2221 display : 'swap' ,
22+ preload : true ,
23+ variable : '--font-season' ,
24+ fallback : [ 'system-ui' , 'Segoe UI' , 'Roboto' , 'Helvetica Neue' , 'Arial' , 'Noto Sans' ] ,
25+ adjustFontFallback : 'Arial' ,
2326} )
2427
25- const geistMono = Geist_Mono ( {
28+ const martianMono = Martian_Mono ( {
2629 subsets : [ 'latin' ] ,
27- variable : '--font-geist -mono' ,
30+ variable : '--font-martian -mono' ,
2831 display : 'swap' ,
2932} )
3033
@@ -92,7 +95,7 @@ export default async function Layout({ children, params }: LayoutProps) {
9295 return (
9396 < html
9497 lang = { lang }
95- className = { `${ inter . variable } ${ geistMono . variable } ` }
98+ className = { `${ season . variable } ${ martianMono . variable } ` }
9699 suppressHydrationWarning
97100 >
98101 < head >
@@ -101,9 +104,8 @@ export default async function Layout({ children, params }: LayoutProps) {
101104 dangerouslySetInnerHTML = { { __html : JSON . stringify ( structuredData ) } }
102105 />
103106 </ head >
104- < body className = 'flex min-h-screen flex-col font-sans ' >
107+ < body className = 'flex min-h-screen flex-col font-season ' >
105108 < Script src = 'https://assets.onedollarstats.com/stonks.js' strategy = 'lazyOnload' />
106- < AnimatedBlocks />
107109 < RootProvider i18n = { provider ( lang ) } >
108110 < Navbar />
109111 < DocsLayout
0 commit comments