File tree Expand file tree Collapse file tree 3 files changed +28
-1
lines changed Expand file tree Collapse file tree 3 files changed +28
-1
lines changed Original file line number Diff line number Diff line change 3
3
/* eslint-disable @typescript-eslint/no-unsafe-assignment -- Lots of Nextra magic. */
4
4
5
5
import { Navbar } from "nextra-theme-docs" ;
6
+ import "./navigation.css" ;
6
7
7
8
export function Navigation ( props : any ) {
8
9
// items last to override the default
9
10
// return <div>hello</div>;
10
- return < Navbar { ...props } /> ;
11
+ return (
12
+ < >
13
+ < div className = "top-banner" >
14
+ 🚀 BlockNote AI is here!{ " " }
15
+ < a href = "/docs/ai" > Access the early preview.</ a >
16
+ </ div >
17
+ < Navbar { ...props } />
18
+ </ >
19
+ ) ;
11
20
}
Original file line number Diff line number Diff line change
1
+ .top-banner {
2
+ background-color : # fef6d5 ;
3
+ color : # 000 ;
4
+ text-align : center;
5
+ padding : 0.2em 0 ;
6
+ font-size : 0.8em ;
7
+ font-style : italic;
8
+ border-bottom : 1px solid # e5e7eb ;
9
+ }
10
+
11
+ .top-banner a {
12
+ text-decoration : underline;
13
+ }
Original file line number Diff line number Diff line change 16
16
"title" : " Docs" ,
17
17
"display" : " children"
18
18
},
19
+ "ai" : {
20
+ "title" : " AI" ,
21
+ "href" : " /docs/ai" ,
22
+ "route" : " /needs-fake-route-otherwise-menu-shows-bold"
23
+ },
19
24
"examples" : {
20
25
"title" : " Examples" ,
21
26
"display" : " children"
You can’t perform that action at this time.
0 commit comments