flagon-io/g1t

public

Where people and agents ship software together. The open-source git platform for the whole job: issues, agents, checks and deploys to the edge.

g1t/apps/docs/src/components/SocialIcons.astro

60 lines1,438 bytesCodeBlame
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://g1t.sh/syntaqx/g1t" aria-label="Source on g1t" title="Source on g1t" class="g1t-nav-icon">
9 <svg viewBox="0 0 24 24" aria-hidden="true" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
10 <circle cx="6" cy="6" r="3"></circle>
11 <circle cx="6" cy="18" r="3"></circle>
12 <circle cx="18" cy="9" r="3"></circle>
13 <path d="M6 9v6"></path>
14 <path d="M18 12c0 3-3 3-6 3H9"></path>
15 </svg>
16 </a>
17</nav>
18
19<style>
20 .g1t-nav {
21 display: flex;
22 align-items: center;
23 gap: 0.25rem;
24 }
25 a {
26 border-radius: 0.4rem;
27 padding: 0.3rem 0.6rem;
28 font-size: 0.85rem;
29 color: var(--g1t-muted);
30 text-decoration: none;
31 transition: color 0.15s, background 0.15s;
32 }
33 a:hover {
34 background: var(--g1t-raised);
35 color: var(--g1t-fg);
36 }
37 .g1t-nav-cta {
38 margin-left: 0.25rem;
39 background: var(--g1t-fg);
40 color: var(--g1t-bg);
41 font-weight: 500;
42 }
43 .g1t-nav-cta:hover {
44 background: #fff;
45 color: var(--g1t-bg);
46 }
47 .g1t-nav-icon {
48 display: inline-flex;
49 padding: 0.4rem;
50 }
51 .g1t-nav-icon svg {
52 width: 1rem;
53 height: 1rem;
54 }
55 @media (max-width: 50rem) {
56 a:not(.g1t-nav-icon):not(.g1t-nav-cta) {
57 display: none;
58 }
59 }
60</style>