Skip to content

Commit 0bfac5a

Browse files
chore: font and items
1 parent 6fc1745 commit 0bfac5a

File tree

9 files changed

+253
-345
lines changed

9 files changed

+253
-345
lines changed

apps/docs/app/[lang]/layout.tsx

Lines changed: 12 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -2,29 +2,32 @@ import type { ReactNode } from 'react'
22
import { defineI18nUI } from 'fumadocs-ui/i18n'
33
import { DocsLayout } from 'fumadocs-ui/layouts/docs'
44
import { 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'
67
import Script from 'next/script'
78
import {
89
SidebarFolder,
910
SidebarItem,
1011
SidebarSeparator,
1112
} from '@/components/docs-layout/sidebar-components'
1213
import { Navbar } from '@/components/navbar/navbar'
13-
import { AnimatedBlocks } from '@/components/ui/animated-blocks'
1414
import { SimLogoFull } from '@/components/ui/sim-logo'
1515
import { i18n } from '@/lib/i18n'
1616
import { source } from '@/lib/source'
1717
import '../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
87.5 KB
Binary file not shown.

0 commit comments

Comments
 (0)