cloudflare/kumo

Public

mirrored fromhttps://github.com/cloudflare/kumoAvailable

CodeCommitsIssuesPull requestsActionsInsightsSecurity
d86c9318c15924a4d4fab2205271148f8f184454

Branches

Tags

  • No tags available.
0Branches0Tags
Go to file
Add file
Code

Clone

HTTPS

Download ZIP

packages/kumo-docs-astro/src/components/Header.astro

25lines · modepreview

---
declare const __KUMO_VERSION__: string;

const kumoVersion = typeof __KUMO_VERSION__ !== "undefined" ? __KUMO_VERSION__ : "dev";
---

<header
  class="sticky top-0 z-10 border-b border-kumo-line bg-kumo-elevated md:pr-12"
>
  <div
    class="mx-auto hidden h-12 items-center md:flex md:border-r md:border-kumo-line px-4"
  >
    <a
      href="https://github.com/cloudflare/kumo"
      target="_blank"
      rel="noopener noreferrer"
      class="ml-auto font-mono text-sm text-kumo-subtle transition-colors hover:text-kumo-default"
    >
      @cloudflare/kumo
      <span class="ml-1 rounded bg-kumo-control px-1.5 py-0.5 text-xs">
        v{kumoVersion}
      </span>
    </a>
  </div>
</header>