Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions apps/site/app/layout.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import { RootProvider } from 'fumadocs-ui/provider/next';
import './global.css';
import { Inter } from 'next/font/google';
import { BetaBanner } from '@/components/beta-banner';

const inter = Inter({
subsets: ['latin'],
Expand All @@ -10,6 +11,7 @@ export default function Layout({ children }: LayoutProps<'/'>) {
return (
<html lang="en" className={inter.className} suppressHydrationWarning>
<body className="flex flex-col min-h-screen">
<BetaBanner />
<RootProvider>{children}</RootProvider>
</body>
</html>
Expand Down
33 changes: 33 additions & 0 deletions apps/site/components/beta-banner.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
import Link from 'next/link';

export function BetaBanner() {
return (
<div className="relative bg-gradient-to-r from-blue-600 to-cyan-500 text-white">
Copy link

Copilot AI Jan 25, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This banner should use a semantic HTML element for better accessibility. Consider wrapping the content in a

element or adding role="banner" to the outermost div to help screen reader users understand the purpose of this component. Since this is a site-wide announcement banner, using semantic HTML will improve the page structure and accessibility.

Copilot uses AI. Check for mistakes.
<div className="mx-auto max-w-7xl px-3 py-2 sm:px-6 lg:px-8">
<div className="flex flex-wrap items-center justify-between gap-2">
<div className="flex flex-1 items-center gap-2">
<span className="flex h-6 w-6 items-center justify-center rounded-full bg-white/20 text-xs font-bold">
Copy link

Copilot AI Jan 25, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The beta symbol (β) is decorative and should have aria-hidden="true" to prevent screen readers from announcing it. Screen readers would read this as "beta" which could be confusing since the text already states "Beta".

Suggested change
<span className="flex h-6 w-6 items-center justify-center rounded-full bg-white/20 text-xs font-bold">
<span
className="flex h-6 w-6 items-center justify-center rounded-full bg-white/20 text-xs font-bold"
aria-hidden="true"
>

Copilot uses AI. Check for mistakes.
β
</span>
<p className="text-sm font-medium">
<span className="inline">
ObjectQL v2.0 is currently in Beta.{' '}
</span>
<span className="hidden sm:inline">
We&apos;re actively developing new features and improving stability.
</span>
</p>
</div>
<div className="flex items-center gap-3">
<Link
href="/docs/getting-started"
className="rounded-md bg-white/10 px-3 py-1.5 text-xs font-semibold hover:bg-white/20 transition-colors backdrop-blur-sm"
>
Get Started
</Link>
</div>
</div>
</div>
</div>
);
}
Loading