MCPcopy Create free account
hub / github.com/anomalyco/models.dev / Header

Function Header

packages/web/src/render.tsx:616–718  ·  view source on GitHub ↗
(props: { active: ActiveSection })

Source from the content-addressed store, hash-verified

614}
615
616function Header(props: { active: ActiveSection }) {
617 return (
618 <header>
619 <div class="left">
620 <a class="brand" href="/">
621 <h1>Models.dev</h1>
622 </a>
623 <span class="slash"></span>
624 <p>An open-source database of AI models</p>
625 </div>
626 <div class="right">
627 <nav class="top-nav" aria-label="Primary">
628 <a class={props.active === "models" ? "active" : ""} href="/models">
629 Models
630 </a>
631 <a
632 class={props.active === "providers" ? "active" : ""}
633 href="/providers"
634 >
635 Providers
636 </a>
637 <a class={props.active === "labs" ? "active" : ""} href="/labs">
638 Labs
639 </a>
640 </nav>
641 <a
642 class="github"
643 target="_blank"
644 rel="noopener noreferrer"
645 href="https://github.com/sst/models.dev"
646 aria-label="GitHub"
647 >
648 <svg
649 xmlns="http://www.w3.org/2000/svg"
650 width="24"
651 height="24"
652 viewBox="0 0 24 24"
653 >
654 <path
655 fill="currentColor"
656 d="M12 2A10 10 0 0 0 2 12c0 4.42 2.87 8.17 6.84 9.5c.5.08.66-.23.66-.5v-1.69c-2.77.6-3.36-1.34-3.36-1.34c-.46-1.16-1.11-1.47-1.11-1.47c-.91-.62.07-.6.07-.6c1 .07 1.53 1.03 1.53 1.03c.87 1.52 2.34 1.07 2.91.83c.09-.65.35-1.09.63-1.34c-2.22-.25-4.55-1.11-4.55-4.92c0-1.11.38-2 1.03-2.71c-.1-.25-.45-1.29.1-2.64c0 0 .84-.27 2.75 1.02c.79-.22 1.65-.33 2.5-.33s1.71.11 2.5.33c1.91-1.29 2.75-1.02 2.75-1.02c.55 1.35.2 2.39.1 2.64c.65.71 1.03 1.6 1.03 2.71c0 3.82-2.34 4.66-4.57 4.91c.36.31.69.92.69 1.85V21c0 .27.16.59.67.5C19.14 20.16 22 16.42 22 12A10 10 0 0 0 12 2"
657 ></path>
658 </svg>
659 </a>
660 <div class="search-container">
661 <button
662 type="button"
663 id="search-trigger"
664 class="search-trigger"
665 aria-label="Search"
666 aria-keyshortcuts="Control+F Meta+F Control+K Meta+K"
667 aria-haspopup="dialog"
668 aria-controls="search-modal"
669 >
670 <span class="search-trigger-label">
671 <svg
672 xmlns="http://www.w3.org/2000/svg"
673 width="14"

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected