mirror of
https://github.com/ershisan99/www.git
synced 2025-12-17 12:34:17 +00:00
add fumadocs
This commit is contained in:
41
src/app/layout.config.tsx
Normal file
41
src/app/layout.config.tsx
Normal 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} />,
|
||||
},
|
||||
}
|
||||
Reference in New Issue
Block a user