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/SiteTitle.astro

58 lines1,650 bytesCodeBlame

Pick any line to see why it is the way it is: the commit, the pull request and issue it came from, and what the agent was thinking.

Docs worth reading, and kept that way1---
Invite-only launch: sign in with GitHub, repository access and lifecycle, many emails, a new look2// The wordmark and "Docs": the same G1T in pixel capitals as g1t.sh, the 1
3// in lavender, so the two read as one product. Copied from
4// apps/web/app/components/logo.tsx; keep the two in step.
5const G = ['.###.', '#...#', '#....', '#.###', '#...#', '#...#', '.###.'];
6const ONE = ['..#..', '.##..', '#.#..', '..#..', '..#..', '..#..', '#####'];
7const T = ['#####', '..#..', '..#..', '..#..', '..#..', '..#..', '..#..'];
8const pixels = (rows: string[], dx: number, one: boolean) =>
9 rows.flatMap((row, y) => [...row].flatMap((c, x) => (c === '#' ? [{ x: dx + x, y, one }] : [])));
10const word = [...pixels(G, 0, false), ...pixels(ONE, 6, true), ...pixels(T, 10, false)];
Docs worth reading, and kept that way11---
12
13<a href="/" class="g1t-title" aria-label="g1t docs home">
The logo stands on the baseline beside its name14 <span class="g1t-title-lockup">
Invite-only launch: sign in with GitHub, repository access and lifecycle, many emails, a new look15 <svg viewBox="1 1 148 68" role="img" aria-label="g1t">
16 {word.map((p) => (
17 <rect
18 x={p.x * 10 + 1}
19 y={p.y * 10 + 1}
20 width="8"
21 height="8"
22 fill={p.one ? 'var(--g1t-merged)' : 'currentColor'}
23 />
24 ))}
25 </svg>
The logo stands on the baseline beside its name26 </span>
Docs worth reading, and kept that way27 <span class="g1t-title-docs">Docs</span>
28</a>
29
30<style>
31 .g1t-title {
32 display: inline-flex;
33 align-items: center;
The logo stands on the baseline beside its name34 gap: 0.6rem;
Docs worth reading, and kept that way35 color: var(--g1t-fg);
36 text-decoration: none;
37 }
Invite-only launch: sign in with GitHub, repository access and lifecycle, many emails, a new look38 /* As on g1t.sh: a cell is 0.125em, the letters 0.85em tall. */
The logo stands on the baseline beside its name39 .g1t-title-lockup {
40 display: inline-flex;
41 align-items: baseline;
Invite-only launch: sign in with GitHub, repository access and lifecycle, many emails, a new look42 font-size: 1.5rem;
The logo stands on the baseline beside its name43 line-height: 1;
44 }
Docs worth reading, and kept that way45 svg {
Invite-only launch: sign in with GitHub, repository access and lifecycle, many emails, a new look46 height: 0.85em;
The logo stands on the baseline beside its name47 width: auto;
48 flex-shrink: 0;
Docs worth reading, and kept that way49 }
50 .g1t-title-docs {
51 border-radius: 999px;
52 padding: 0.1rem 0.5rem;
53 font-size: 0.72rem;
54 font-weight: 500;
55 color: var(--g1t-muted);
56 box-shadow: inset 0 0 0 1px var(--g1t-line-strong);
57 }
58</style>