add fumadocs

This commit is contained in:
2025-04-06 15:29:26 +02:00
parent d1974db5ed
commit d6c1a29771
27 changed files with 1176 additions and 157 deletions

41
src/app/layout.config.tsx Normal file
View File

@@ -0,0 +1,41 @@
import type { BaseLayoutProps } from 'fumadocs-ui/layouts/shared'
import { Award, BookOpen, Info, Trophy } from 'lucide-react'
import { Header } from './_components/header'
const links = [
{
text: 'Documentation',
url: '/docs',
icon: <BookOpen />,
},
{
text: 'Leaderboards',
url: '/leaderboards',
icon: <Trophy />,
},
{
text: 'About',
url: '/about',
icon: <Info />,
},
{
text: 'Credits',
url: '/credits',
icon: <Award />,
},
]
const nav = {
title: (
<div className='flex items-center space-x-2'>
<img src={'/logo.png'} alt={'Balatro Multiplayer'} className={'size-8'} />
<span className='inline-block font-bold'>Balatro Multiplayer</span>
</div>
),
}
export const baseOptions: BaseLayoutProps = {
links,
nav: {
...nav,
component: <Header finalLinks={links} nav={nav} />,
},
}