()
| 55 | } |
| 56 | |
| 57 | export function Header() { |
| 58 | return ( |
| 59 | <div className="relative z-30 flex items-center justify-between"> |
| 60 | <div className="fixed inset-x-0 top-0 z-50 bg-background/92 backdrop-blur-xl"> |
| 61 | <div className="mx-auto flex h-[56px] w-full max-w-[1300px] items-center justify-between px-4 text-[15px] md:h-[60px] md:px-6"> |
| 62 | <Link href="/" className="flex items-center text-foreground"> |
| 63 | <img |
| 64 | src="/logo-lockup.svg" |
| 65 | alt="Cursor Directory" |
| 66 | className="h-[18px] w-auto dark:brightness-100 brightness-0" |
| 67 | /> |
| 68 | </Link> |
| 69 | |
| 70 | <Suspense fallback={null}> |
| 71 | <MobileMenu /> |
| 72 | </Suspense> |
| 73 | |
| 74 | <div className="hidden items-center gap-2 md:flex"> |
| 75 | <Suspense fallback={<NavLinksList pathname={null} />}> |
| 76 | <ActiveNavLinks /> |
| 77 | </Suspense> |
| 78 | |
| 79 | <Link href="/plugins/new"> |
| 80 | <Button variant="default" className="h-8 rounded-full px-4"> |
| 81 | Submit a plugin |
| 82 | </Button> |
| 83 | </Link> |
| 84 | |
| 85 | <div className="flex min-w-[88px] items-center justify-end"> |
| 86 | {/* Fallback matches UserMenu's own loading skeleton so the |
| 87 | static shell shows the same placeholder instead of a gap. */} |
| 88 | <Suspense fallback={<Skeleton className="size-6 rounded-none" />}> |
| 89 | <UserMenu /> |
| 90 | </Suspense> |
| 91 | </div> |
| 92 | </div> |
| 93 | </div> |
| 94 | </div> |
| 95 | </div> |
| 96 | ); |
| 97 | } |
nothing calls this directly
no outgoing calls
no test coverage detected