Skip to content
45 linesCodeBlameRaw
1---
2// Where a feature stands in the alpha: Live (on g1t.sh for every
3// workspace), Preview (on g1t.sh, but limited to some workspaces or
4// unfinished) or Coming (planned, not built). Inline, in a table cell, a
5// heading or a line.
6interface Props {
7 is: 'live' | 'preview' | 'coming';
8}
9
10const { is } = Astro.props;
11const LABEL = { live: 'Live', preview: 'Preview', coming: 'Coming' } as const;
12---
13
14<span class:list={['status', 'not-content', is]}>{LABEL[is]}</span>
15
16<style>
17 .status {
18 display: inline-flex;
19 align-items: center;
20 padding: 0.05rem 0.5rem;
21 border-radius: 999px;
22 border: 1px solid transparent;
23 font-family: var(--g1t-font-mono);
24 font-size: 0.6875rem;
25 font-weight: 500;
26 letter-spacing: 0.04em;
27 text-transform: uppercase;
28 white-space: nowrap;
29 vertical-align: middle;
30 line-height: 1.5;
31 }
32 .live {
33 color: var(--g1t-success);
34 background: var(--g1t-success-low);
35 }
36 .preview {
37 color: var(--g1t-accent);
38 background: var(--g1t-accent-low);
39 }
40 .coming {
41 color: var(--g1t-muted);
42 background: var(--g1t-raised);
43 border-color: var(--g1t-line-strong);
44 }
45</style>