Skip to content

Commit bb13805

Browse files
authored
Merge pull request #191 from objectstack-ai/copilot/add-beta-notification
2 parents e1c551c + de1972a commit bb13805

File tree

2 files changed

+35
-0
lines changed

2 files changed

+35
-0
lines changed

apps/site/app/layout.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import { RootProvider } from 'fumadocs-ui/provider/next';
22
import './global.css';
33
import { Inter } from 'next/font/google';
4+
import { BetaBanner } from '@/components/beta-banner';
45

56
const 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>
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
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&apos;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+
}

0 commit comments

Comments
 (0)