g1t/apps/docs/src/components/SocialIcons.astro
| 1 | --- |
| 2 | // The header's right side: where people go from the docs, then the source. |
| 3 | --- |
| 4 | |
| 5 | <nav class="g1t-nav" aria-label="g1t"> |
| 6 | <a href="https://g1t.sh/">g1t.sh</a> |
| 7 | <a href="https://g1t.sh/register" class="g1t-nav-cta">Sign up</a> |
| 8 | <a href="https://github.com/syntaqx/g1t" aria-label="Source on GitHub" class="g1t-nav-icon"> |
| 9 | <svg viewBox="0 0 16 16" aria-hidden="true" fill="currentColor"> |
| 10 | <path |
| 11 | d="M8 0C3.58 0 0 3.58 0 8c0 3.54 2.29 6.53 5.47 7.59.4.07.55-.17.55-.38 0-.19-.01-.82-.01-1.49-2.01.37-2.53-.49-2.69-.94-.09-.23-.48-.94-.82-1.13-.28-.15-.68-.52-.01-.53.63-.01 1.08.58 1.23.82.72 1.21 1.87.87 2.33.66.07-.52.28-.87.51-1.07-1.78-.2-3.64-.89-3.64-3.95 0-.87.31-1.59.82-2.15-.08-.2-.36-1.02.08-2.12 0 0 .67-.21 2.2.82.64-.18 1.32-.27 2-.27.68 0 1.36.09 2 .27 1.53-1.04 2.2-.82 2.2-.82.44 1.1.16 1.92.08 2.12.51.56.82 1.27.82 2.15 0 3.07-1.87 3.75-3.65 3.95.29.25.54.73.54 1.48 0 1.07-.01 1.93-.01 2.2 0 .21.15.46.55.38A8.013 8.013 0 0016 8c0-4.42-3.58-8-8-8z" |
| 12 | ></path> |
| 13 | </svg> |
| 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 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> |