g1t/apps/docs/src/components/Footer.astro
| 1 | --- |
| 2 | // Starlight's footer, then the same row as g1t.sh's: status, help, the |
| 3 | // policies, and who makes g1t. |
| 4 | import Default from '@astrojs/starlight/components/Footer.astro'; |
| 5 | |
| 6 | const year = new Date().getUTCFullYear(); |
| 7 | const links: [string, string][] = [ |
| 8 | ['Status', 'https://g1t.sh/status'], |
| 9 | ['Support', 'https://g1t.sh/support'], |
| 10 | ['Policies', 'https://g1t.sh/policies'], |
| 11 | ['Privacy', 'https://g1t.sh/policies/privacy'], |
| 12 | ['Security', 'https://g1t.sh/security'], |
| 13 | ]; |
| 14 | --- |
| 15 | |
| 16 | <Default /> |
| 17 | <nav class="g1t-legal" aria-label="About g1t"> |
| 18 | <ul> |
| 19 | { |
| 20 | links.map(([label, href]) => ( |
| 21 | <li> |
| 22 | <a href={href}>{label}</a> |
| 23 | </li> |
| 24 | )) |
| 25 | } |
| 26 | <li>© {year} <a href="https://www.flagon.io">Flagon, Inc.</a></li> |
| 27 | </ul> |
| 28 | </nav> |
| 29 | |
| 30 | <style> |
| 31 | .g1t-legal { |
| 32 | margin-top: 2.5rem; |
| 33 | padding-top: 1.25rem; |
| 34 | border-top: 1px solid var(--g1t-line); |
| 35 | font-size: var(--sl-text-xs); |
| 36 | color: var(--g1t-faint); |
| 37 | } |
| 38 | .g1t-legal ul { |
| 39 | display: flex; |
| 40 | flex-wrap: wrap; |
| 41 | gap: 0.375rem 1rem; |
| 42 | margin: 0; |
| 43 | padding: 0; |
| 44 | list-style: none; |
| 45 | } |
| 46 | .g1t-legal li { |
| 47 | margin: 0; |
| 48 | } |
| 49 | .g1t-legal a { |
| 50 | color: var(--g1t-muted); |
| 51 | text-decoration: none; |
| 52 | } |
| 53 | .g1t-legal a:hover { |
| 54 | color: var(--g1t-fg); |
| 55 | } |
| 56 | </style> |