-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy paththeme.config.tsx
More file actions
84 lines (80 loc) · 2.21 KB
/
theme.config.tsx
File metadata and controls
84 lines (80 loc) · 2.21 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
import React from 'react'
import type { ComponentProps } from 'react'
import { LastUpdated, Link, Navbar } from 'nextra-theme-docs'
const Logo = () => (
<div style={{ display: 'flex', alignItems: 'center', gap: '8px' }}>
<img src="/Logo-md-orange.svg" alt="Brasa" style={{ height: 28 }} />
</div>
)
type LayoutProps = ComponentProps<(typeof import('nextra-theme-docs'))['Layout']>
const themeConfig = {
navbar: <Navbar logo={<Logo />} projectLink="https://github.com/firstset/brasa-docs" />,
docsRepositoryBase: 'https://github.com/firstset/brasa-docs/tree/main',
footer: (
<div style={{ width: '100%' }}>
<div
style={{
display: 'flex',
justifyContent: 'space-between',
alignItems: 'center',
flexWrap: 'wrap',
gap: '1rem',
}}
>
<div>
<p style={{ margin: 0 }}>
© {new Date().getFullYear()} Brasa. All rights reserved.
</p>
</div>
<div style={{ display: 'flex', gap: '1.5rem' }}>
<Link
href="https://github.com/brasa-finance"
target="_blank"
rel="noopener noreferrer"
>
GitHub
</Link>
<Link
href="https://twitter.com/brasafinance"
target="_blank"
rel="noopener noreferrer"
>
Twitter
</Link>
<Link
href="https://app.brasa.finance"
target="_blank"
rel="noopener noreferrer"
>
App
</Link>
<Link href="/legal/terms">Terms</Link>
<Link href="/legal/privacy">Privacy</Link>
</div>
</div>
</div>
),
feedback: {
content: 'Question? Give us feedback →',
labels: 'feedback',
},
editLink: 'Edit this page on GitHub →',
navigation: {
prev: true,
next: true,
},
sidebar: {
toggleButton: true,
defaultMenuCollapseLevel: 1,
},
toc: {
backToTop: 'Back to top',
},
darkMode: true,
nextThemes: {
defaultTheme: 'system',
},
lastUpdated: <LastUpdated>Last updated on</LastUpdated>,
} satisfies Partial<Omit<LayoutProps, 'children' | 'pageMap'>>
export default themeConfig
export { Logo }