| 1 | --- |
| 2 | // The header's right side: where people go from the docs, then the source. |
| 3 | import { GitBranch } from '@lucide/astro'; |
| 4 | --- |
| 5 | |
| 6 | <nav class="g1t-nav" aria-label="g1t"> |
| 7 | <a href="https://g1t.sh/">g1t.sh</a> |
| 8 | <a href="https://g1t.sh/register" class="g1t-nav-cta">Sign up</a> |
| 9 | <a href="https://g1t.sh/flagon-io/g1t" aria-label="Source on g1t" title="Source on g1t" class="g1t-nav-icon"> |
| 10 | <GitBranch /> |
| 11 | </a> |
| 12 | </nav> |
| 13 | |
| 14 | <style> |
| 15 | .g1t-nav { |
| 16 | display: flex; |
| 17 | align-items: center; |
| 18 | gap: 0.25rem; |
| 19 | } |
| 20 | a { |
| 21 | border-radius: 0.4rem; |
| 22 | padding: 0.3rem 0.6rem; |
| 23 | font-size: 0.85rem; |
| 24 | color: var(--g1t-muted); |
| 25 | text-decoration: none; |
| 26 | transition: color 0.15s, background 0.15s; |
| 27 | } |
| 28 | a:hover { |
| 29 | background: var(--g1t-raised); |
| 30 | color: var(--g1t-fg); |
| 31 | } |
| 32 | .g1t-nav-cta { |
| 33 | margin-left: 0.25rem; |
| 34 | background: var(--g1t-fg); |
| 35 | color: var(--g1t-bg); |
| 36 | font-weight: 500; |
| 37 | } |
| 38 | .g1t-nav-cta:hover { |
| 39 | background: #fff; |
| 40 | color: var(--g1t-bg); |
| 41 | } |
| 42 | .g1t-nav-icon { |
| 43 | display: inline-flex; |
| 44 | padding: 0.4rem; |
| 45 | } |
| 46 | .g1t-nav-icon :global(svg) { |
| 47 | width: 1rem; |
| 48 | height: 1rem; |
| 49 | } |
| 50 | @media (max-width: 50rem) { |
| 51 | a:not(.g1t-nav-icon):not(.g1t-nav-cta) { |
| 52 | display: none; |
| 53 | } |
| 54 | } |
| 55 | </style> |