1
- import { Logo } from '@icons' ;
1
+ import { Logo , QQ } from '@icons' ;
2
2
import type { Metadata } from 'next' ;
3
3
import { Geist , Geist_Mono } from 'next/font/google' ;
4
4
import { Banner , Head } from 'nextra/components' ;
5
5
import { getPageMap } from 'nextra/page-map' ;
6
6
import { Footer , Layout , Link , Navbar } from 'nextra-theme-docs' ;
7
7
8
- import '@/ css/global.css' ;
8
+ import '@css/global.css' ;
9
9
import { cn } from '@/lib/utils' ;
10
10
11
11
const geistSans = Geist ( {
@@ -30,22 +30,20 @@ export const metadata: Metadata = {
30
30
icon : '/favicon.svg'
31
31
} ,
32
32
keywords : [ 'Soybean-React' , 'Soybean-React-Docs' , 'react' , 'admin' , 'template' ] ,
33
- title : 'soybean-admin-react-docs'
33
+ title : {
34
+ default : 'Soybean-React-Docs' ,
35
+ template : '%s | Soybean-React'
36
+ }
34
37
} ;
35
38
const navbar = (
36
39
< Navbar
37
- logo = {
38
- < Logo
39
- height = "20"
40
- className = { cn (
41
- 'hover:transition-all hover:duration-1000 motion-reduce:hover:transition-none' ,
42
- '[mask-image:linear-gradient(60deg,#000_25%,rgba(0,0,0,.2)_50%,#000_75%)] [mask-position:0] [mask-size:400%]' ,
43
- 'hover:[mask-position:100%]'
44
- ) }
45
- />
46
- }
47
- // ... Your additional navbar options
48
- />
40
+ chatIcon = { < QQ className = "w-[24px] h-[24px] " /> }
41
+ chatLink = "https://qm.qq.com/cgi-bin/qm/qr?k=lf7vqv-9JgJ_NDBAUk9EofQEfpqDw7so& jump_from = webapi & authKey = Ueo / dyEtrRm1vgkMI4yqiKjBRtKQuaEGNxMaXX56CoPQz2GRFP + qAADfKoe3ajJN "
42
+ logo = { < Logo className = "w-[32px] h-[32px] text-[var(--soybean)]" /> }
43
+ projectLink = "https://github.com/soybeanjs/soybean-admin-react"
44
+ >
45
+ < div className = "flex items-center gap-2" > 1111</ div >
46
+ </ Navbar >
49
47
) ;
50
48
51
49
const banner = (
@@ -84,12 +82,16 @@ export default async function RootLayout({ children }: { children: React.ReactNo
84
82
< body className = { `${ geistSans . variable } ${ geistMono . variable } antialiased` } >
85
83
< Layout
86
84
banner = { banner }
87
- docsRepositoryBase = "https://github.com/shuding/nextra/tree/main/ docs"
88
- editLink = "Edit this page on GitHub "
85
+ docsRepositoryBase = "https://github.com/soybeanjs/soybean-admin-react- docs"
86
+ editLink = "在github上编辑此页面 "
89
87
footer = { footer }
90
88
navbar = { navbar }
91
89
pageMap = { pageMap }
92
90
sidebar = { { defaultMenuCollapseLevel : 1 } }
91
+ feedback = { {
92
+ content : '反馈' ,
93
+ labels : 'feedback'
94
+ } }
93
95
>
94
96
{ children }
95
97
</ Layout >
0 commit comments