Something went wrong. Try again.
[READ-ONLY] Mirror of https://github.com/openstatusHQ/openstatus. ๐ซ Status page with uptime monitoring & API monitoring as code ๐ซ openstatus.dev
bun drizzle-orm monitoring monitoring-as-code nextjs observability on-call open-source shadcn-ui status-page statuspage synthetic-monitoring tinybird turso uptime uptime-checker uptime-monitor
Something went wrong. Try again.
2.1 kB ยท 58 lines
TSX
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859import { DropdownMenu, DropdownMenuContent, DropdownMenuItem, DropdownMenuTrigger,} from "@openstatus/ui/components/ui/dropdown-menu";import Link from "next/link";
import { headerLinks } from "../data/content";import { CmdK } from "./cmdk";import { LogoWithContextMenu } from "./logo-with-context-menu";
export function Header() { return ( <header className="border-border bg-border [&>*]:bg-background [&>*]:hover:bg-muted grid grid-cols-3 gap-px border lg:grid-cols-6 [&>*]:px-4 [&>*]:py-4"> <LogoWithContextMenu /> {headerLinks.map((section, _) => ( <DropdownMenu key={section.label}> <DropdownMenuTrigger className="group data-[state=open]:bg-muted flex items-center gap-1"> <span className="w-full truncate text-left">{section.label}</span> <span className="text-muted-foreground group-hover:text-foreground group-data-[state=open]:text-foreground relative top-[1px] shrink-0 origin-center font-sans text-[10px] transition duration-300 group-data-[state=open]:rotate-180" aria-hidden="true" > โฒ </span> </DropdownMenuTrigger> <DropdownMenuContent align="start" className="min-w-[var(--radix-dropdown-menu-trigger-width)] rounded-none" alignOffset={0} sideOffset={0} > {section.items.map((item) => ( <DropdownMenuItem key={item.href} className="rounded-none px-2 py-3 font-mono" asChild > <Link href={item.href}>{item.label}</Link> </DropdownMenuItem> ))} </DropdownMenuContent> </DropdownMenu> ))} <Link href="/pricing" className="truncate"> Pricing </Link> <CmdK /> <Link href="https://app.openstatus.dev/login" className="truncate text-blue-700 dark:text-blue-400" > Dashboard </Link> </header> );}