MCPcopy Create free account
hub / github.com/ShaanCoding/makeread.me / SiteHeader

Function SiteHeader

frontend/components/site-header.tsx:11–59  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

9import MobileNav from "./mobile-nav"
10
11export function SiteHeader() {
12 return (
13 <header className="sticky top-0 z-40 w-full border-b bg-background/35">
14 <div className="mx-6 flex h-16 items-center space-x-4 sm:justify-between sm:space-x-0">
15 <Link href="/" className="flex items-center space-x-2 pr-6 md:pr-10">
16 <Image src="/logo.svg" alt="Logo" width={30} height={30} />
17 <span className="inline-block font-bold">{siteConfig.name}</span>
18 </Link>
19 <MainNav items={siteConfig.mainNav} />
20 <div className="flex flex-1 items-center justify-end space-x-4">
21 <nav className="flex items-center space-x-1">
22 <Link
23 href={siteConfig.links.github}
24 target="_blank"
25 rel="noreferrer"
26 >
27 <div
28 className={buttonVariants({
29 size: "icon",
30 variant: "ghost",
31 })}
32 >
33 <Icons.gitHub className="size-5" />
34 <span className="sr-only">GitHub</span>
35 </div>
36 </Link>
37 <Link
38 href={siteConfig.links.twitter}
39 target="_blank"
40 rel="noreferrer"
41 >
42 <div
43 className={buttonVariants({
44 size: "icon",
45 variant: "ghost",
46 })}
47 >
48 <Icons.twitter className="size-5 fill-current" />
49 <span className="sr-only">Twitter</span>
50 </div>
51 </Link>
52
53 <MobileNav />
54 </nav>
55 </div>
56 </div>
57 </header>
58 )
59}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected