File tree Expand file tree Collapse file tree 2 files changed +35
-0
lines changed
Expand file tree Collapse file tree 2 files changed +35
-0
lines changed Original file line number Diff line number Diff line change 11import { RootProvider } from 'fumadocs-ui/provider/next' ;
22import './global.css' ;
33import { Inter } from 'next/font/google' ;
4+ import { BetaBanner } from '@/components/beta-banner' ;
45
56const inter = Inter ( {
67 subsets : [ 'latin' ] ,
@@ -10,6 +11,7 @@ export default function Layout({ children }: LayoutProps<'/'>) {
1011 return (
1112 < html lang = "en" className = { inter . className } suppressHydrationWarning >
1213 < body className = "flex flex-col min-h-screen" >
14+ < BetaBanner />
1315 < RootProvider > { children } </ RootProvider >
1416 </ body >
1517 </ html >
Original file line number Diff line number Diff line change 1+ import Link from 'next/link' ;
2+
3+ export function BetaBanner ( ) {
4+ return (
5+ < div className = "relative bg-gradient-to-r from-blue-600 to-cyan-500 text-white" >
6+ < div className = "mx-auto max-w-7xl px-3 py-2 sm:px-6 lg:px-8" >
7+ < div className = "flex flex-wrap items-center justify-between gap-2" >
8+ < div className = "flex flex-1 items-center gap-2" >
9+ < span className = "flex h-6 w-6 items-center justify-center rounded-full bg-white/20 text-xs font-bold" >
10+ β
11+ </ span >
12+ < p className = "text-sm font-medium" >
13+ < span className = "inline" >
14+ ObjectQL v2.0 is currently in Beta.{ ' ' }
15+ </ span >
16+ < span className = "hidden sm:inline" >
17+ We're actively developing new features and improving stability.
18+ </ span >
19+ </ p >
20+ </ div >
21+ < div className = "flex items-center gap-3" >
22+ < Link
23+ href = "/docs/getting-started"
24+ className = "rounded-md bg-white/10 px-3 py-1.5 text-xs font-semibold hover:bg-white/20 transition-colors backdrop-blur-sm"
25+ >
26+ Get Started
27+ </ Link >
28+ </ div >
29+ </ div >
30+ </ div >
31+ </ div >
32+ ) ;
33+ }
You can’t perform that action at this time.
0 commit comments