()
| 18 | label: "Leaderboard", |
| 19 | }, |
| 20 | ]; |
| 21 | |
| 22 | export default function Header() { |
| 23 | return ( |
| 24 | <header className="absolute top-0 flex w-full min-w-0 items-center justify-between gap-2 p-2 sm:gap-4 sm:p-4"> |
| 25 | <div className="flex min-w-0 items-center gap-2 sm:gap-5"> |
| 26 | <Link className="shrink-0" href="/"> |
| 27 | <Image |
| 28 | alt="GitHub Creature home" |
| 29 | className="size-8 sm:size-[50px]" |
| 30 | height={50} |
| 31 | src="/github-creature-logo.png" |
| 32 | width={50} |
| 33 | /> |
| 34 | </Link> |
| 35 | |
| 36 | {navItems.map((item) => ( |
| 37 | <Link className="truncate text-sm" key={item.href} href={item.href}> |
| 38 | {item.label} |
| 39 | </Link> |
| 40 | ))} |
| 41 | </div> |
| 42 | |
| 43 | <div className="flex shrink-0 items-center gap-1 sm:gap-2"> |
| 44 | <Link |
| 45 | aria-label="GitHub repository" |
| 46 | className={cn( |
| 47 | buttonVariants({ variant: "ghost" }), |
| 48 | "size-8 px-0 sm:h-8 sm:w-auto sm:gap-2 sm:px-2" |
| 49 | )} |
| 50 | href="https://github.com/theorcdev/github-creature" |
| 51 | rel="noopener noreferrer" |
| 52 | target="_blank" |
| 53 | > |
| 54 | <HugeiconsIcon icon={Github} /> |
| 55 | <StarsCount /> |
| 56 | </Link> |
| 57 | <ModeSwitcher /> |
| 58 | </div> |
| 59 | </header> |
| 60 | ); |
| 61 | } |
| 62 |
nothing calls this directly
no outgoing calls
no test coverage detected