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 33/* eslint-disable @typescript-eslint/no-unsafe-assignment -- Lots of Nextra magic. */
44
55import { Navbar } from "nextra-theme-docs" ;
6+ import "./navigation.css" ;
67
78export function Navigation ( props : any ) {
89 // items last to override the default
910 // 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+ ) ;
1120}
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 1616 "title" : " Docs" ,
1717 "display" : " children"
1818 },
19+ "ai" : {
20+ "title" : " AI" ,
21+ "href" : " /docs/ai" ,
22+ "route" : " /needs-fake-route-otherwise-menu-shows-bold"
23+ },
1924 "examples" : {
2025 "title" : " Examples" ,
2126 "display" : " children"
You can’t perform that action at this time.
0 commit comments