Skip to content

Commit d7ec8a2

Browse files
Copilothotlong
andcommitted
Add beta notice banner to official website
Co-authored-by: hotlong <50353452+hotlong@users.noreply.github.com>
1 parent 8698725 commit d7ec8a2

File tree

2 files changed

+36
-0
lines changed

2 files changed

+36
-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: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
import Link from 'next/link';
2+
import { X } from 'lucide-react';
3+
4+
export function BetaBanner() {
5+
return (
6+
<div className="relative bg-gradient-to-r from-blue-600 to-cyan-500 text-white">
7+
<div className="mx-auto max-w-7xl px-3 py-2 sm:px-6 lg:px-8">
8+
<div className="flex flex-wrap items-center justify-between gap-2">
9+
<div className="flex flex-1 items-center gap-2">
10+
<span className="flex h-6 w-6 items-center justify-center rounded-full bg-white/20 text-xs font-bold">
11+
β
12+
</span>
13+
<p className="text-sm font-medium">
14+
<span className="inline">
15+
ObjectQL v2.0 is currently in Beta.{' '}
16+
</span>
17+
<span className="hidden sm:inline">
18+
We&apos;re actively developing new features and improving stability.
19+
</span>
20+
</p>
21+
</div>
22+
<div className="flex items-center gap-3">
23+
<Link
24+
href="/docs/getting-started"
25+
className="rounded-md bg-white/10 px-3 py-1.5 text-xs font-semibold hover:bg-white/20 transition-colors backdrop-blur-sm"
26+
>
27+
Get Started
28+
</Link>
29+
</div>
30+
</div>
31+
</div>
32+
</div>
33+
);
34+
}

0 commit comments

Comments
 (0)