| 1 | --- |
| 2 | // The header's right side: where people go from the docs, then g1t on X and 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://x.com/g1t_sh" aria-label="g1t on X" title="g1t on X" class="g1t-nav-icon"> |
| 10 | <svg viewBox="0 0 24 24" fill="currentColor" aria-hidden="true"><path d="M14.234 10.162 22.977 0h-2.072l-7.591 8.824L7.251 0H.258l9.168 13.343L.258 24H2.33l8.016-9.318L16.749 24h6.993zm-2.837 3.299-.929-1.329L3.076 1.56h3.182l5.965 8.532.929 1.329 7.754 11.09h-3.182z" /></svg> |
| 11 | </a> |
| 12 | <a href="https://g1t.sh/flagon-io/g1t" aria-label="Source on g1t" title="Source on g1t" class="g1t-nav-icon"> |
| 13 | <GitBranch /> |
| 14 | </a> |
| 15 | </nav> |
| 16 | |
| 17 | <style> |
| 18 | .g1t-nav { |
| 19 | display: flex; |
| 20 | align-items: center; |
| 21 | gap: 0.25rem; |
| 22 | } |
| 23 | a { |
| 24 | border-radius: 0.4rem; |
| 25 | padding: 0.3rem 0.6rem; |
| 26 | font-size: 0.85rem; |
| 27 | color: var(--g1t-muted); |
| 28 | text-decoration: none; |
| 29 | transition: color 0.15s, background 0.15s; |
| 30 | } |
| 31 | a:hover { |
| 32 | background: var(--g1t-raised); |
| 33 | color: var(--g1t-fg); |
| 34 | } |
| 35 | .g1t-nav-cta { |
| 36 | margin-left: 0.25rem; |
| 37 | background: var(--g1t-fg); |
| 38 | color: var(--g1t-bg); |
| 39 | font-weight: 500; |
| 40 | } |
| 41 | .g1t-nav-cta:hover { |
| 42 | background: #fff; |
| 43 | color: var(--g1t-bg); |
| 44 | } |
| 45 | .g1t-nav-icon { |
| 46 | display: inline-flex; |
| 47 | padding: 0.4rem; |
| 48 | } |
| 49 | .g1t-nav-icon :global(svg) { |
| 50 | width: 1rem; |
| 51 | height: 1rem; |
| 52 | } |
| 53 | @media (max-width: 50rem) { |
| 54 | a:not(.g1t-nav-icon):not(.g1t-nav-cta) { |
| 55 | display: none; |
| 56 | } |
| 57 | } |
| 58 | </style> |