@superjackfruitlabs/vibekit-frame 0.0.0-stage → 0.0.17
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +29 -0
- package/LICENSE +26 -0
- package/README.md +99 -2
- package/package.json +43 -4
- package/src/brand/agentpod.svg +1 -0
- package/src/brand/captain-jack.svg +138 -0
- package/src/brand/lab.svg +25 -0
- package/src/brand/salaam.svg +1 -0
- package/src/brand/superbench.svg +1 -0
- package/src/brand/superdispatch.svg +1 -0
- package/src/brand/superexchange.svg +1 -0
- package/src/brand/superlibrary.svg +1 -0
- package/src/brand/supermessage.svg +1 -0
- package/src/brand/superpipeline.svg +1 -0
- package/src/brand/supertoolkit.svg +1 -0
- package/src/brand/superwitness.svg +1 -0
- package/src/client/backdrop-core.d.ts +2 -0
- package/src/client/backdrop-core.js +438 -0
- package/src/client/backdrop.ts +16 -0
- package/src/client/claims.ts +19 -0
- package/src/client/doorway.ts +141 -0
- package/src/client/footer.ts +34 -0
- package/src/client/header.ts +55 -0
- package/src/client/index.ts +54 -0
- package/src/client/jack-rig.ts +30 -0
- package/src/client/jack.ts +260 -0
- package/src/client/micro.ts +87 -0
- package/src/client/release.ts +31 -0
- package/src/client/theme-core.d.ts +19 -0
- package/src/client/theme-core.js +46 -0
- package/src/client/theme.ts +76 -0
- package/src/components/Claims.astro +31 -0
- package/src/components/Footer.astro +75 -0
- package/src/components/Frame.astro +29 -0
- package/src/components/ProductHeader.astro +39 -0
- package/src/components/SuiteBar.astro +44 -0
- package/src/components/SuiteHead.astro +26 -0
- package/src/components/early.js +94 -0
- package/src/components/shadow.ts +47 -0
- package/src/components/styles/bar.css +23 -0
- package/src/components/styles/claims.css +20 -0
- package/src/components/styles/footer.css +46 -0
- package/src/components/styles/header.css +35 -0
- package/src/components/styles/jack.css +28 -0
- package/src/components/styles/tokens.css +10 -0
- package/src/data/ledger.snapshot.json +621 -0
- package/src/data/ledger.ts +36 -0
- package/src/data/products.ts +123 -0
- package/src/data/release.ts +63 -0
- package/src/vendor/captain-jack/README.txt +3 -0
- package/src/vendor/captain-jack/THIRD_PARTY_NOTICES.txt +43 -0
- package/src/vendor/captain-jack/avatar.css +50 -0
- package/src/vendor/captain-jack/captain-jack.js +185 -0
- package/src/vendor/logo-motion.d.ts +2 -0
- package/src/vendor/logo-motion.js +142 -0
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
// Browser side of the suite theme: the preference, the fragment carrying it to the next
|
|
2
|
+
// product, and the bar's theme button. The logic is theme-core.js, which SuiteHead.astro also
|
|
3
|
+
// inlines into the head script, so first paint and later changes can never disagree.
|
|
4
|
+
import { mountThemeSwitch, type ThemePreference } from '@superjackfruitlabs/vibekit-ui/dom';
|
|
5
|
+
import { SITES, type Site } from '../data/products';
|
|
6
|
+
import { createTheme, matchFragment, parsePref, PREF_KEY, type Pref, type Theme } from './theme-core.js';
|
|
7
|
+
|
|
8
|
+
export type { Pref };
|
|
9
|
+
|
|
10
|
+
/** Switcher order on landing pages: no 'sun'. */
|
|
11
|
+
export const ORDER: Pref[] = ['light', 'system', 'dark'];
|
|
12
|
+
|
|
13
|
+
// Prototype frame.js ICON.
|
|
14
|
+
export const ICON: Record<Pref, string> = {
|
|
15
|
+
light: '<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round"><circle cx="12" cy="12" r="4"/><path d="M12 2v2M12 20v2M4.9 4.9l1.4 1.4M17.7 17.7l1.4 1.4M2 12h2M20 12h2M4.9 19.1l1.4-1.4M17.7 6.3l1.4-1.4"/></svg>',
|
|
16
|
+
system: '<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round"><rect x="3" y="4" width="18" height="12" rx="2"/><path d="M8 20h8M12 16v4"/></svg>',
|
|
17
|
+
dark: '<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M20 14.5A8 8 0 1 1 9.5 4a6.5 6.5 0 0 0 10.5 10.5z"/></svg>',
|
|
18
|
+
};
|
|
19
|
+
|
|
20
|
+
const HOSTS = 'sjl-suite-bar,sjl-product-header,sjl-claims,sjl-footer';
|
|
21
|
+
|
|
22
|
+
const read = (k: string): string | null => { try { return localStorage.getItem(k); } catch { return null; } };
|
|
23
|
+
const write = (k: string, v: string | null): void => {
|
|
24
|
+
try { v == null ? localStorage.removeItem(k) : localStorage.setItem(k, v); } catch { /* private mode: still theme the page */ }
|
|
25
|
+
};
|
|
26
|
+
|
|
27
|
+
function themeFor(slug: Site): Theme {
|
|
28
|
+
const p = SITES[slug];
|
|
29
|
+
return createTheme({
|
|
30
|
+
site: { key: p.themeKey, values: { light: p.themeValue('light'), dark: p.themeValue('dark') } },
|
|
31
|
+
read,
|
|
32
|
+
write,
|
|
33
|
+
systemLight: () => matchMedia('(prefers-color-scheme: light)').matches,
|
|
34
|
+
paint(siteValue, effective) {
|
|
35
|
+
const html = document.documentElement;
|
|
36
|
+
html.dataset.theme = siteValue;
|
|
37
|
+
html.dataset.sjlTheme = effective;
|
|
38
|
+
document.querySelectorAll(HOSTS).forEach((h) => h.setAttribute('data-sjl-theme', effective));
|
|
39
|
+
},
|
|
40
|
+
});
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
export function readPref(): Pref {
|
|
44
|
+
return parsePref(read(PREF_KEY));
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
/** Writes the suite preference and the site's own key, then themes the page and every frame host. */
|
|
48
|
+
export function setPref(slug: Site, pref: Pref): void {
|
|
49
|
+
const early = (globalThis as { __sjlFrameEarly?: { theme: { set(p: Pref): void } } }).__sjlFrameEarly;
|
|
50
|
+
// The head script owns the live matchMedia listener: go through it when it is there.
|
|
51
|
+
if (early) early.theme.set(pref); else themeFor(slug).set(pref);
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
export function carryFragment(): string {
|
|
55
|
+
return `#sjl-theme=${readPref()}`;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
/** If the URL is exactly '#sjl-theme=…', returns it and removes it from the address bar. Any other fragment is left alone. */
|
|
59
|
+
export function consumeFragment(loc: Location): Pref | null {
|
|
60
|
+
const carried = matchFragment(loc.hash);
|
|
61
|
+
if (carried) history.replaceState(null, '', loc.pathname + loc.search);
|
|
62
|
+
return carried;
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
/** Turns the bar's #mode button into the one-icon theme switch. */
|
|
66
|
+
export function mountThemeButton(barRoot: ShadowRoot): { destroy(): void } | null {
|
|
67
|
+
const button = barRoot.querySelector<HTMLButtonElement>('#mode');
|
|
68
|
+
const slug = (barRoot.host.getAttribute('data-product') ?? '') as Site;
|
|
69
|
+
if (!button || !SITES[slug]) return null;
|
|
70
|
+
return mountThemeSwitch(button, {
|
|
71
|
+
order: ORDER as ThemePreference[],
|
|
72
|
+
icons: ICON,
|
|
73
|
+
current: readPref(),
|
|
74
|
+
onChange: (t) => setPref(slug, t as Pref),
|
|
75
|
+
});
|
|
76
|
+
}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
---
|
|
2
|
+
import css from './styles/claims.css?raw';
|
|
3
|
+
import { loadClaims } from '../data/ledger';
|
|
4
|
+
import type { Slug } from '../data/products';
|
|
5
|
+
import { esc, product, styles } from './shadow';
|
|
6
|
+
|
|
7
|
+
interface Props { product: Slug }
|
|
8
|
+
const me = product(Astro.props.product);
|
|
9
|
+
const claims = await loadClaims(me.slug);
|
|
10
|
+
// "Works on its own" is a claim too, and not true of every product today.
|
|
11
|
+
const SOLO: Partial<Record<Slug, string>> = {
|
|
12
|
+
superdispatch: "<b>Nothing requires it, but it isn't standalone.</b> SuperPipeline and AgentPod work the same without SuperDispatch: an agent outside it keeps working by pull. SuperDispatch itself needs a SuperPipeline and an AgentPod to place anything.",
|
|
13
|
+
superexchange: "<b>Nothing requires it, but it isn't standalone.</b> SuperPipeline stays a board and SuperMessage a plain Matrix client without SuperExchange. SuperExchange itself needs a SuperPipeline, the suite's event relay and a Matrix homeserver.",
|
|
14
|
+
supertoolkit: "<b>Works on its own.</b> SuperToolkit needs no other product in the suite: it runs on your own machine beside your agents and brokers their calls to the services they use. AgentPod and Salaam can hand their agents to it when you want them to.",
|
|
15
|
+
superbench: "<b>Works on its own.</b> SuperBench needs no other product in the suite; suite integration is not built yet.",
|
|
16
|
+
superwitness: "<b>Nothing depends on it, but it isn't standalone yet.</b> No other product needs SuperWitness. Today it reads runs from SuperPipeline and AgentPod; using it with any agent on its own is still on the roadmap.",
|
|
17
|
+
};
|
|
18
|
+
const solo = SOLO[me.slug] ?? `<b>Works on its own.</b> ${me.name} doesn't need any other product in the suite. Use it alone through its own interface, or let it meet the others when you want them to.`;
|
|
19
|
+
// Claim ids are bookkeeping: strip any "(XX-01)"-style references from the visible text.
|
|
20
|
+
const clean = (t: string) => t.replace(/\s*\((?:[A-Z]+-\d+(?:,\s*)?)+\)/g, '').replace(/\*\*/g, '').replace(/`/g, '');
|
|
21
|
+
const grid = claims.length
|
|
22
|
+
? claims.map((c) => `<details class="claim"><summary class="head"><i class="dot ${c.status}" title="${c.status}"></i><span>${esc(clean(c.title))}</span></summary>
|
|
23
|
+
<div class="more"><div class="in">${c.caveat ? `<div class="cav"><b>${c.status === 'limited' ? 'Worth knowing' : 'In short'}.</b> ${esc(clean(c.caveat))}</div>` : ''}<button class="askit" type="button" data-q="${esc(`What does this mean in practice: ${clean(c.title).replace(/"/g, '')}?`)}">Ask Captain Jack about this →</button></div></div></details>`).join('')
|
|
24
|
+
: `<p class="sub">${me.name} isn't in the claims ledger yet, so this page makes no checked claims. Ask Captain Jack what he can say, and he'll tell you where his knowledge stops.</p>`;
|
|
25
|
+
const inner = `${styles(me, css)}<section aria-labelledby="sjl-claims-h"><div class="eyebrow">${me.street === 'main' ? 'Main Street' : 'Agent Quarter'} · ${me.role} · from the claims ledger</div>
|
|
26
|
+
<h2 id="sjl-claims-h">Claims you can check</h2><p class="sub">Captain Jack's notes, from the lab's claims ledger. Every claim here is one the ledger lets the lab make. Solid means verified against public source. Hollow means true, with a caveat. Open one to see the caveat.</p>
|
|
27
|
+
<div class="legend"><span><i class="dot verified"></i>verified</span><span><i class="dot"></i>limited, caveat attached</span></div>
|
|
28
|
+
<div class="grid" id="grid">${grid}</div>
|
|
29
|
+
<div class="solo">${solo}</div></section>`;
|
|
30
|
+
---
|
|
31
|
+
<sjl-claims data-product={me.slug}><template shadowrootmode="open" set:html={inner} /></sjl-claims>
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
---
|
|
2
|
+
// The suite footer, at the foot of every page: the products as small tiles in their two
|
|
3
|
+
// groups, this product's links, the suite's and the lab's, and one line about the lab. Calm and
|
|
4
|
+
// text-led: no illustration, no motion. The client only adds the visited ticks, a newer
|
|
5
|
+
// version, and the Ask Captain Jack button (hidden without JavaScript).
|
|
6
|
+
import css from './styles/footer.css?raw';
|
|
7
|
+
import { llmsOf, ORDER, PRODUCTS, type Site } from '../data/products';
|
|
8
|
+
import { releaseOf } from '../data/release';
|
|
9
|
+
import { esc, GH, logo, product, styles, SUITE_URL } from './shadow';
|
|
10
|
+
|
|
11
|
+
interface Props {
|
|
12
|
+
product: Site;
|
|
13
|
+
/** Extra links a site wants to keep from its own footer (support, terms, an archive...): a small row beside the closing line. */
|
|
14
|
+
links?: { label: string; href: string }[];
|
|
15
|
+
}
|
|
16
|
+
const me = product(Astro.props.product);
|
|
17
|
+
const lab = me.slug === 'lab';
|
|
18
|
+
const rel = lab || !me.repo ? null : await releaseOf(me.slug as Exclude<Site, 'lab'>);
|
|
19
|
+
|
|
20
|
+
type Link = { label: string; href: string; out?: boolean; id?: string };
|
|
21
|
+
const NEW_TAB = ' target="_blank" rel="noopener"';
|
|
22
|
+
const a = (l: Link): string => `<li><a href="${esc(l.href)}"${l.id ? ` id="${l.id}"` : ''}${l.out ? NEW_TAB : ''}>${esc(l.label)}</a></li>`;
|
|
23
|
+
const norm = (href: string): string => { try { return new URL(href, me.url).href.replace(/\/$/, ''); } catch { return href; } };
|
|
24
|
+
|
|
25
|
+
const own: Link[] = lab
|
|
26
|
+
? [{ label: me.docsLabel, href: me.docs ?? `${SUITE_URL}/blog/` }, { label: 'llms.txt', href: `${SUITE_URL}/llms.txt` }]
|
|
27
|
+
: [
|
|
28
|
+
...(me.docs ? [{ label: me.docsLabel, href: me.docs, out: true }] : []),
|
|
29
|
+
...(me.repo ? [
|
|
30
|
+
{ label: rel?.tag ? `Releases · ${rel.tag}` : 'Releases', href: `${me.repo}/releases`, out: true, id: 'rel' },
|
|
31
|
+
] : []),
|
|
32
|
+
{ label: 'llms.txt', href: llmsOf(me), out: true },
|
|
33
|
+
];
|
|
34
|
+
// A site's own links sit in the closing row, minus any the frame already gives (its Docs, its Source).
|
|
35
|
+
// ...and its source, which the GitHub mark by the closing line already links.
|
|
36
|
+
const seenHref = new Set([...own.map((l) => norm(l.href)), ...(me.repo ? [norm(me.repo)] : [])]);
|
|
37
|
+
const seenLabel = new Set([...own.map((l) => l.label.toLowerCase()), ...(me.repo ? ['github', 'source'] : [])]);
|
|
38
|
+
const extra = (Astro.props.links ?? []).filter((l) => {
|
|
39
|
+
const h = norm(l.href);
|
|
40
|
+
if (seenHref.has(h) || seenLabel.has(l.label.toLowerCase())) return false;
|
|
41
|
+
seenHref.add(h);
|
|
42
|
+
return true;
|
|
43
|
+
});
|
|
44
|
+
|
|
45
|
+
// The tiles above are the suite, so the lab's column only links what they don't: each
|
|
46
|
+
// superjackfruit.com page appears once, and the closing line links the home page.
|
|
47
|
+
const columns: { id: string; title: string; links: Link[] }[] = [
|
|
48
|
+
{ id: 'f-this', title: lab ? 'This site' : 'This product', links: own },
|
|
49
|
+
{ id: 'f-lab', title: 'Super Jackfruit Labs', links: [
|
|
50
|
+
...(lab ? [] : [{ label: 'The village', href: `${SUITE_URL}/village/` }, { label: 'Lab notes', href: `${SUITE_URL}/blog/` }]),
|
|
51
|
+
{ label: 'Contact', href: 'mailto:rakesh@superjackfruit.com' },
|
|
52
|
+
...(me.licence && me.repo ? [{ label: `${me.licence} licence`, href: `${me.repo}/blob/main/LICENSE`, out: true }] : []),
|
|
53
|
+
] },
|
|
54
|
+
];
|
|
55
|
+
|
|
56
|
+
const tile = (s: (typeof ORDER)[number]): string => {
|
|
57
|
+
const p = PRODUCTS[s];
|
|
58
|
+
const here = p.slug === me.slug;
|
|
59
|
+
return `<li><a class="tile" href="${p.url}" data-s="${p.slug}" style="--pc:${p.color}"${here ? ' aria-current="page"' : ''}><span class="mk">${logo(p.slug)}</span><span class="nm">${p.name}<span class="tick" aria-hidden="true">✓</span></span><span class="ln">${esc(p.line)}</span></a></li>`;
|
|
60
|
+
};
|
|
61
|
+
const group = (id: string, title: string, street: 'main' | 'quarter'): string =>
|
|
62
|
+
`<section class="grp grp-${street}" aria-labelledby="${id}"><h2 class="lbl" id="${id}">${title}</h2><ul class="tiles">${ORDER.filter((s) => PRODUCTS[s].street === street).map(tile).join('')}</ul></section>`;
|
|
63
|
+
|
|
64
|
+
// The closing line says who makes this and how, in the lab's own words.
|
|
65
|
+
const lab_ = `<a href="${SUITE_URL}/">Super Jackfruit Labs</a>`;
|
|
66
|
+
const line = lab
|
|
67
|
+
? 'One person and a crew of agents, building the tools they work with.'
|
|
68
|
+
: `Made at ${lab_}: one person and a crew of agents, building the tools they work with.`;
|
|
69
|
+
const gh = me.repo ? `<a class="gh" href="${esc(me.repo)}"${NEW_TAB} aria-label="Source on GitHub" title="Source on GitHub">${GH}</a>` : '';
|
|
70
|
+
const inner = `${styles(me, css)}<footer aria-label="Super Jackfruit Labs"><div class="in">
|
|
71
|
+
<div class="suite">${group('f-work', 'Your work', 'main')}${group('f-live', 'Where agents live', 'quarter')}</div>
|
|
72
|
+
<div class="cols">${columns.map((c) => `<nav aria-labelledby="${c.id}"><h2 class="lbl" id="${c.id}">${c.title}</h2><ul>${c.links.map(a).join('')}</ul></nav>`).join('')}</div>
|
|
73
|
+
</div><div class="base"><p>${line}</p>${extra.length ? `<nav class="more" aria-label="More from ${esc(me.name)}"><ul>${extra.map((l) => a(l)).join('')}</ul></nav>` : ''}${gh}<button class="ask" id="ask" type="button" hidden>Ask Captain Jack</button></div></footer>`;
|
|
74
|
+
---
|
|
75
|
+
<sjl-footer data-product={me.slug}><template shadowrootmode="open" set:html={inner} /></sjl-footer>
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
---
|
|
2
|
+
// The whole frame around a product page, in the decided order: suite bar, product header,
|
|
3
|
+
// the page itself, claims (with the "works on its own" note), the suite footer. The lab's site has no claims section.
|
|
4
|
+
import SuiteBar from './SuiteBar.astro';
|
|
5
|
+
import ProductHeader from './ProductHeader.astro';
|
|
6
|
+
import Claims from './Claims.astro';
|
|
7
|
+
import Footer from './Footer.astro';
|
|
8
|
+
import type { Site } from '../data/products';
|
|
9
|
+
|
|
10
|
+
interface Props {
|
|
11
|
+
product: Site;
|
|
12
|
+
cta: { label: string; href: string };
|
|
13
|
+
sections?: { label: string; href: string }[];
|
|
14
|
+
links?: { label: string; href: string }[];
|
|
15
|
+
/** false: Captain Jack does not pop up his hello on this page (e.g. it has its own welcome). */
|
|
16
|
+
greet?: boolean;
|
|
17
|
+
}
|
|
18
|
+
const { product, cta, sections, links, greet = true } = Astro.props;
|
|
19
|
+
---
|
|
20
|
+
<SuiteBar product={product} />
|
|
21
|
+
<ProductHeader product={product} cta={cta} sections={sections} greet={greet} />
|
|
22
|
+
<slot />
|
|
23
|
+
{product !== 'lab' && <Claims product={product} />}
|
|
24
|
+
<Footer product={product} links={links} />
|
|
25
|
+
<script>
|
|
26
|
+
// Hydrates the frame's client behaviour. The frame is fully rendered without this.
|
|
27
|
+
import { mountFrame } from '../client/index';
|
|
28
|
+
mountFrame();
|
|
29
|
+
</script>
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
---
|
|
2
|
+
import css from './styles/header.css?raw';
|
|
3
|
+
import { releaseOf } from '../data/release';
|
|
4
|
+
import type { Site } from '../data/products';
|
|
5
|
+
import { esc, jack, logo, product, styles, GH } from './shadow';
|
|
6
|
+
|
|
7
|
+
interface Props {
|
|
8
|
+
product: Site;
|
|
9
|
+
cta: { label: string; href: string };
|
|
10
|
+
/** In-page sections shown in the menu drawer, e.g. [{ label: 'Search', href: '#search' }]. */
|
|
11
|
+
sections?: { label: string; href: string }[];
|
|
12
|
+
greet?: boolean;
|
|
13
|
+
}
|
|
14
|
+
const { sections = [], greet = true } = Astro.props;
|
|
15
|
+
const me = product(Astro.props.product);
|
|
16
|
+
// The header's button is the product's own (sign in, download, install); the page's call to action stays in its hero.
|
|
17
|
+
const cta = me.app ?? Astro.props.cta;
|
|
18
|
+
const rel = me.slug === 'lab' ? null : await releaseOf(me.slug);
|
|
19
|
+
// The lab's "docs" is its own writing: same tab.
|
|
20
|
+
const docsTarget = me.slug === 'lab' ? '' : ' target="_blank" rel="noopener"';
|
|
21
|
+
// A product with no docs site yet links none.
|
|
22
|
+
const docs = me.docs ? `<a href="${me.docs}"${docsTarget}>${me.docsLabel}</a>` : '';
|
|
23
|
+
const gh = me.repo ? `<a class="gh" href="${me.repo}" target="_blank" rel="noopener" aria-label="Source on GitHub" title="Source on GitHub">${GH}</a>` : '';
|
|
24
|
+
// No pill for a product that has published no release yet: an empty one reads as broken.
|
|
25
|
+
const ver = !rel?.tag ? '' : `<a class="ver" id="ver" href="${esc(rel.url)}"${me.docs && rel.url.startsWith(me.docs) ? ' target="_blank" rel="noopener"' : ''}>${esc(rel.tag)}</a>`;
|
|
26
|
+
const drawer = sections.map((s) => `<a href="${esc(s.href)}">${esc(s.label)}</a>`).join('')
|
|
27
|
+
+ docs
|
|
28
|
+
+ (me.repo ? `<a href="${me.repo}" target="_blank" rel="noopener">GitHub</a>` : '');
|
|
29
|
+
const ctaDocs = /^https:\/\/(docs\.|github\.com)/.test(cta.href) ? ' target="_blank" rel="noopener"' : '';
|
|
30
|
+
const inner = `${styles(me, css)}<header id="h"><div class="in">
|
|
31
|
+
<a class="brand" href="/" id="brand"><span class="mark" id="mark">${logo(me.slug)}</span><span class="nm"${me.slug === 'lab' ? ' data-short="SJ Labs"' : ''}>${me.name}</span></a>
|
|
32
|
+
<span class="sec"></span>
|
|
33
|
+
<nav class="links" aria-label="Product">${docs}${gh}${ver}</nav>
|
|
34
|
+
<div class="askw"><button class="askj" id="askj" type="button" aria-label="Ask Captain Jack, the lab's guide">${jack()}<span>Ask Captain Jack about ${me.about}…</span><kbd>/</kbd></button><div class="hint" id="hint" role="status"></div></div>
|
|
35
|
+
<a class="cta" href="${esc(cta.href)}"${ctaDocs}>${esc(cta.label)}</a>
|
|
36
|
+
<details class="menu" id="menu"><summary aria-label="Menu">☰</summary></details>
|
|
37
|
+
</div><div class="drawer" id="drawer">${drawer}</div></header>`;
|
|
38
|
+
---
|
|
39
|
+
<sjl-product-header data-product={me.slug} data-greet={greet ? undefined : 'off'}><template shadowrootmode="open" set:html={inner} /></sjl-product-header>
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
---
|
|
2
|
+
import css from './styles/bar.css?raw';
|
|
3
|
+
import vkDom from '@superjackfruitlabs/vibekit-ui/dom.css?raw';
|
|
4
|
+
import { ICON } from '../client/theme';
|
|
5
|
+
import { llmsOf, ORDER, PRODUCTS, type Site } from '../data/products';
|
|
6
|
+
import { esc, logo, product, styles, SUITE_URL } from './shadow';
|
|
7
|
+
import { releaseOf } from '../data/release';
|
|
8
|
+
|
|
9
|
+
interface Props { product: Site }
|
|
10
|
+
const me = product(Astro.props.product);
|
|
11
|
+
const rel = me.slug === 'lab' ? null : await releaseOf(me.slug);
|
|
12
|
+
// What an agent reads instead of this page. Each line is a claims-ledger entry (id in brackets).
|
|
13
|
+
const AGENT_NOTES: Record<Site, string[]> = {
|
|
14
|
+
superpipeline: ['CLI: supi (macOS and Linux binaries) [SP-05]', 'REST or MCP for any external agent [SP-02]'],
|
|
15
|
+
superlibrary: ['CLI: suli, with a verified installer [SL-08]', 'MCP server with three read-only tools [SL-07]'],
|
|
16
|
+
superwitness: ['MCP server for agents [SW-05]'],
|
|
17
|
+
agentpod: ['CLI: fleet; node: apn (Linux and macOS binaries) [AP-01]'],
|
|
18
|
+
supermessage: ['Agents join as Matrix participants; turns and permission requests render as cards [SM-02]'],
|
|
19
|
+
salaam: ['CLI: salaam (alias sal), installed with a checksum-verified installer [SA-13]', 'ACP v1 clients can attach to sessions [SA-03]'],
|
|
20
|
+
superdispatch: ['HTTP operator API: decisions, suggestions, the dataset; no CLI yet'],
|
|
21
|
+
superexchange: ['A Matrix Application Service: answers in board rooms reach SuperPipeline; no CLI'],
|
|
22
|
+
supertoolkit: ['CLI: stk, from a checksum-verified installer; an MCP server for agents'],
|
|
23
|
+
superbench: ['CLI: bench, with a local daemon (benchd); JSON output; no docs site yet'],
|
|
24
|
+
lab: ORDER.map((s) => `${PRODUCTS[s].name}: ${PRODUCTS[s].url}${PRODUCTS[s].docs ? ` (docs ${PRODUCTS[s].docs})` : ''}`),
|
|
25
|
+
};
|
|
26
|
+
const row = (k: string, v: string, href = v): string => `<span class="k">${k.padEnd(9)}</span> <a href="${esc(href)}" target="_blank" rel="noopener">${esc(v)}</a>`;
|
|
27
|
+
const forAgents = `<dialog class="fa" id="fa" aria-label="For agents"><div class="top"><span>What an agent reads instead of this page</span><button id="fa-x" type="button" aria-label="Close">✕</button></div><pre><span class="c"># ${esc(me.name)} — ${esc(me.line)}</span>
|
|
28
|
+
${row('site', me.url)}
|
|
29
|
+
${me.docs ? `${row('docs', me.docs)}\n` : ''}${rel ? `${row('llms.txt', llmsOf(me))}\n${rel.tag ? `${row('version', rel.tag, rel.url)}\n` : ''}` : ''}
|
|
30
|
+
<span class="c"># ${rel ? 'interfaces (from the claims ledger)' : 'the products'}</span>
|
|
31
|
+
${AGENT_NOTES[me.slug].map((l) => '- ' + esc(l)).join('\n')}</pre></dialog>`;
|
|
32
|
+
// The spin-out/in animation is vibekit's: only its theme-switch rules are taken into the shadow root.
|
|
33
|
+
const vkSwitch = vkDom.split('\n').filter((l) => /^(\.vk-theme-switch__icon|@keyframes vk-theme)/.test(l)).join('');
|
|
34
|
+
if (!vkSwitch.includes('@keyframes vk-theme-out')) throw new Error('frontdoor: vibekit dom.css no longer carries the theme switch animation');
|
|
35
|
+
const links = ORDER.map((s, i) => {
|
|
36
|
+
const p = PRODUCTS[s];
|
|
37
|
+
const gap = i > 0 && p.street !== PRODUCTS[ORDER[i - 1]!].street ? '<span class="gap"></span><small>Agent Quarter</small>' : '';
|
|
38
|
+
return `${gap}<a href="${p.url}" data-s="${p.slug}" style="--pc:${p.color}"${p.slug === me.slug ? ' aria-current="page"' : ''} title="${esc(`${p.name} — ${p.line}`)}"><i></i><span class="lbl">${p.name}</span></a>`;
|
|
39
|
+
}).join('');
|
|
40
|
+
const inner = `${styles(me, vkSwitch + css)}<div class="bar"><a class="lab" href="${SUITE_URL}"><i>${logo('lab')}</i><b>Super Jackfruit Labs</b></a>
|
|
41
|
+
<nav aria-label="The suite"><small>Main Street</small>${links}</nav>
|
|
42
|
+
<div class="act"><button class="mode" id="mode" type="button" title="Theme: Match system · click for Dark" aria-label="Theme: Match system. Switch to Dark"><span class="vk-theme-switch__icon" aria-hidden="true">${ICON.system}</span></button><button class="agents" type="button" title="What an agent reads instead of this page" aria-haspopup="dialog">⌘ For agents</button></div></div>${forAgents}`;
|
|
43
|
+
---
|
|
44
|
+
<sjl-suite-bar data-product={me.slug}><template shadowrootmode="open" set:html={inner} /></sjl-suite-bar>
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
---
|
|
2
|
+
// Goes in <head>. One small inline script, no external JS: theme before first paint, and the
|
|
3
|
+
// arriving doorway between products.
|
|
4
|
+
import code from './early.js?raw';
|
|
5
|
+
import core from '../client/theme-core.js?raw';
|
|
6
|
+
import { ORDER, SITES, type Site } from '../data/products';
|
|
7
|
+
import { LOGOS, product } from './shadow';
|
|
8
|
+
|
|
9
|
+
interface Props { product: Site }
|
|
10
|
+
const me = product(Astro.props.product);
|
|
11
|
+
const data = {
|
|
12
|
+
here: me.slug,
|
|
13
|
+
logo: LOGOS[me.slug],
|
|
14
|
+
// The lab is listed too, so a doorway to or from it has its name, colour and theme key.
|
|
15
|
+
products: Object.fromEntries([...ORDER, 'lab' as const].map((s) => {
|
|
16
|
+
const p = SITES[s];
|
|
17
|
+
return [s, { name: p.name, color: p.color, url: p.url, port: p.port, key: p.themeKey, values: { light: p.themeValue('light'), dark: p.themeValue('dark') } }];
|
|
18
|
+
})),
|
|
19
|
+
};
|
|
20
|
+
// The theme logic is shared with the client (src/client/theme-core.js); only `export` is stripped.
|
|
21
|
+
const inlineCore = core.replace(/\/\*[\s\S]*?\*\//g, '').replace(/^\/\/.*\n/gm, '').replace(/^export /gm, '');
|
|
22
|
+
const script = code
|
|
23
|
+
.replace('/*__THEME_CORE__*/', () => inlineCore)
|
|
24
|
+
.replace('__SJL__', () => JSON.stringify(data).replace(/</g, '\\u003c'));
|
|
25
|
+
---
|
|
26
|
+
<script is:inline set:html={script}></script>
|
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
// Runs in <head> before first paint (inlined by SuiteHead.astro, which fills in the product data).
|
|
2
|
+
// Ported from the prototype's frame-early.js, without the logo-motion dependency: the doorway
|
|
3
|
+
// draws a static mark, which the client upgrades to the brand motion after first paint. Sets the suite theme on <html> (the site's own data-theme
|
|
4
|
+
// and storage key, plus data-sjl-theme for the frame's tokens) and on every sjl-* host as the
|
|
5
|
+
// parser creates it.
|
|
6
|
+
(() => {
|
|
7
|
+
const D = __SJL__;
|
|
8
|
+
const slugOf = (href) => {
|
|
9
|
+
try {
|
|
10
|
+
const u = new URL(href);
|
|
11
|
+
return Object.keys(D.products).find((s) => {
|
|
12
|
+
const site = D.products[s].url;
|
|
13
|
+
return u.origin === site || u.origin === site.replace('://', '://www.') || (/^(localhost|127\.0\.0\.1)$/.test(u.hostname) && +u.port === D.products[s].port);
|
|
14
|
+
}) ?? null;
|
|
15
|
+
} catch { return null; }
|
|
16
|
+
};
|
|
17
|
+
const html = document.documentElement;
|
|
18
|
+
const mq = matchMedia('(prefers-color-scheme: light)');
|
|
19
|
+
const me = D.products[D.here];
|
|
20
|
+
// The theme logic is src/client/theme-core.js, inlined here by SuiteHead.astro.
|
|
21
|
+
/*__THEME_CORE__*/
|
|
22
|
+
const T = createTheme({
|
|
23
|
+
site: { key: me.key, values: me.values },
|
|
24
|
+
read: (k) => { try { return localStorage.getItem(k); } catch { return null; } },
|
|
25
|
+
write: (k, v) => { try { v == null ? localStorage.removeItem(k) : localStorage.setItem(k, v); } catch {} },
|
|
26
|
+
systemLight: () => mq.matches,
|
|
27
|
+
paint(siteValue, t) {
|
|
28
|
+
html.dataset.theme = siteValue;
|
|
29
|
+
html.dataset.sjlTheme = t;
|
|
30
|
+
document.querySelectorAll('sjl-suite-bar,sjl-product-header,sjl-claims,sjl-footer').forEach((h) => h.setAttribute('data-sjl-theme', t));
|
|
31
|
+
},
|
|
32
|
+
});
|
|
33
|
+
const carried = matchFragment(location.hash);
|
|
34
|
+
if (carried) { T.set(carried); history.replaceState(null, '', location.pathname + location.search); } else T.apply();
|
|
35
|
+
const effective = T.effective;
|
|
36
|
+
mq.addEventListener('change', () => T.get() === 'system' && T.apply());
|
|
37
|
+
// Frame hosts are parsed after this script: theme each one as it arrives, before it paints.
|
|
38
|
+
const mo = new MutationObserver((list) => {
|
|
39
|
+
for (const r of list) for (const n of r.addedNodes) {
|
|
40
|
+
if (n.nodeType === 1 && n.localName.startsWith('sjl-')) n.setAttribute('data-sjl-theme', html.dataset.sjlTheme);
|
|
41
|
+
}
|
|
42
|
+
});
|
|
43
|
+
mo.observe(html, { childList: true, subtree: true });
|
|
44
|
+
addEventListener('DOMContentLoaded', () => { mo.disconnect(); T.apply(); }, { once: true });
|
|
45
|
+
|
|
46
|
+
const still = () => matchMedia('(prefers-reduced-motion: reduce)').matches;
|
|
47
|
+
// The doorway is an element on <html> itself, so it can stand before <body> exists.
|
|
48
|
+
// `logo` is the destination's mark when leaving (the client bundle carries every mark); arriving,
|
|
49
|
+
// it is this product's own mark, inlined here.
|
|
50
|
+
function doorway(slug, logo) {
|
|
51
|
+
const p = D.products[slug];
|
|
52
|
+
const light = effective() === 'light';
|
|
53
|
+
document.getElementById('sjl-doorway')?.remove();
|
|
54
|
+
const d = document.createElement('div');
|
|
55
|
+
d.id = 'sjl-doorway';
|
|
56
|
+
d.setAttribute('aria-hidden', 'true');
|
|
57
|
+
d.style.cssText = `position:fixed;inset:0;z-index:2147483647;pointer-events:none;display:grid;place-content:center;justify-items:center;gap:18px;will-change:opacity;background:radial-gradient(circle at 50% 46%,color-mix(in srgb,${p.color} ${light ? 22 : 30}%,transparent),transparent 62%),${light ? '#fbf8f4' : '#0d0c10'};color:${light ? '#1f1b18' : '#ece7e3'};font:600 19px/1.2 system-ui,-apple-system,'Segoe UI',sans-serif;letter-spacing:-.01em`;
|
|
58
|
+
const mark = document.createElement('div');
|
|
59
|
+
mark.style.cssText = 'width:72px;height:72px';
|
|
60
|
+
mark.innerHTML = logo ?? (slug === D.here ? D.logo : '');
|
|
61
|
+
const svg = mark.firstElementChild; if (svg) { svg.setAttribute('width', '72'); svg.setAttribute('height', '72'); }
|
|
62
|
+
const label = document.createElement('div');
|
|
63
|
+
label.textContent = p.name;
|
|
64
|
+
d.append(mark, label);
|
|
65
|
+
html.append(d);
|
|
66
|
+
return {
|
|
67
|
+
el: d,
|
|
68
|
+
mark,
|
|
69
|
+
fade(to, ms) {
|
|
70
|
+
if (still()) ms = 0;
|
|
71
|
+
return d.animate([{ opacity: to ? 0 : 1 }, { opacity: to ? 1 : 0 }], { duration: ms, easing: 'cubic-bezier(.4,0,.2,1)', fill: 'forwards' }).finished;
|
|
72
|
+
},
|
|
73
|
+
remove() { d.remove(); },
|
|
74
|
+
};
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
const from = document.referrer ? slugOf(document.referrer) : null;
|
|
78
|
+
const arrived = from && from !== D.here && !['reload', 'back_forward'].includes(performance.getEntriesByType?.('navigation')[0]?.type);
|
|
79
|
+
let arrival = null;
|
|
80
|
+
if (arrived) {
|
|
81
|
+
arrival = doorway(D.here);
|
|
82
|
+
// Never leave a visitor behind a doorway if the frame's client never loads.
|
|
83
|
+
arrival.failsafe = setTimeout(() => {
|
|
84
|
+
// The client claims the arrival (clearing this) as soon as it runs; firing means it never did.
|
|
85
|
+
html.dataset.sjlFailsafe = '1';
|
|
86
|
+
console.warn('[sjl-frame] client did not reveal arrival');
|
|
87
|
+
arrival.fade(false, 300).then(() => arrival.remove());
|
|
88
|
+
}, 1400);
|
|
89
|
+
}
|
|
90
|
+
window.__sjlFrameEarly = {
|
|
91
|
+
slugOf, doorway, arrival, from: arrived ? from : null,
|
|
92
|
+
theme: { get: T.get, set: T.set, effective, carry: T.carry },
|
|
93
|
+
};
|
|
94
|
+
})();
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
// Helpers shared by the frame's server-rendered components. Each component builds its shadow
|
|
2
|
+
// root's inner HTML as a string and emits it inside <template shadowrootmode="open">.
|
|
3
|
+
import tokens from './styles/tokens.css?raw';
|
|
4
|
+
import jackSvg from '../brand/captain-jack.svg?raw';
|
|
5
|
+
import supermessage from '../brand/supermessage.svg?raw';
|
|
6
|
+
import superpipeline from '../brand/superpipeline.svg?raw';
|
|
7
|
+
import superlibrary from '../brand/superlibrary.svg?raw';
|
|
8
|
+
import superwitness from '../brand/superwitness.svg?raw';
|
|
9
|
+
import agentpod from '../brand/agentpod.svg?raw';
|
|
10
|
+
import salaam from '../brand/salaam.svg?raw';
|
|
11
|
+
import superdispatch from '../brand/superdispatch.svg?raw';
|
|
12
|
+
import superexchange from '../brand/superexchange.svg?raw';
|
|
13
|
+
import supertoolkit from '../brand/supertoolkit.svg?raw';
|
|
14
|
+
import superbench from '../brand/superbench.svg?raw';
|
|
15
|
+
import lab from '../brand/lab.svg?raw';
|
|
16
|
+
import { onColor, SITES, type Product, type Site } from '../data/products';
|
|
17
|
+
|
|
18
|
+
export const LOGOS: Record<Site, string> = { supermessage, superpipeline, superlibrary, superwitness, agentpod, salaam, superdispatch, superexchange, supertoolkit, superbench, lab };
|
|
19
|
+
|
|
20
|
+
export const esc = (s: string): string =>
|
|
21
|
+
s.replace(/[&<>"']/g, (c) => ({ '&': '&', '<': '<', '>': '>', '"': '"', "'": ''' })[c]!);
|
|
22
|
+
|
|
23
|
+
export const product = (slug: Site): Product => {
|
|
24
|
+
const p = SITES[slug];
|
|
25
|
+
if (!p) throw new Error(`frontdoor: unknown product "${slug}"`);
|
|
26
|
+
return p;
|
|
27
|
+
};
|
|
28
|
+
|
|
29
|
+
/** Decorative copy of an SVG: no title/desc, hidden from assistive tech, sized by class. */
|
|
30
|
+
const decorative = (svg: string, cls: string): string =>
|
|
31
|
+
svg.replace(/<\?xml[^>]*>/, '').replace(/<title[^>]*>[\s\S]*?<\/title>/, '').replace(/<desc[^>]*>[\s\S]*?<\/desc>/, '')
|
|
32
|
+
.replace(/<svg\b([^>]*)>/, (_, a: string) => `<svg${a.replace(/\s(role|aria-label|aria-labelledby|width|height)="[^"]*"/g, '')} class="${cls}" aria-hidden="true" focusable="false">`)
|
|
33
|
+
.trim();
|
|
34
|
+
|
|
35
|
+
/** Captain Jack, the delivered rig, drawn static. */
|
|
36
|
+
export const jack = (): string => decorative(jackSvg, 'jack');
|
|
37
|
+
export const logo = (slug: Site): string => decorative(LOGOS[slug], 'logo');
|
|
38
|
+
|
|
39
|
+
/** The opening of a shadow root: shared tokens, the product colours, the component's CSS. */
|
|
40
|
+
export const styles = (p: Product, css: string): string => {
|
|
41
|
+
return `<style>${tokens}:host{--sjl-c:${p.color};--sjl-c-hi:${p.hi};--sjl-on-c:${onColor(p)}}${css}</style>`;
|
|
42
|
+
};
|
|
43
|
+
|
|
44
|
+
export const SUITE_URL = 'https://superjackfruit.com';
|
|
45
|
+
|
|
46
|
+
/** The GitHub mark, sized by its container; the header and the footer both use it. */
|
|
47
|
+
export const GH = '<svg viewBox="0 0 16 16" width="18" height="18" fill="currentColor" aria-hidden="true"><path 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"/></svg>';
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
.bar{display:flex;align-items:center;gap:14px;height:40px;padding:0 20px;background:var(--sjl-bg0);border-bottom:1px solid var(--sjl-line);font-size:13px}
|
|
2
|
+
.lab{display:flex;gap:8px;align-items:center;text-decoration:none;color:var(--sjl-mut);white-space:nowrap}.lab b{color:var(--sjl-tx);font-weight:600}
|
|
3
|
+
.lab i{width:16px;height:16px;display:block}.lab i svg{width:100%;height:100%;display:block}
|
|
4
|
+
nav{display:flex;gap:2px;margin:0 auto;align-items:center}
|
|
5
|
+
nav a{display:flex;align-items:center;gap:7px;padding:5px 10px;border-radius:99px;text-decoration:none;color:var(--sjl-mut);transition:background .2s,color .2s;white-space:nowrap}
|
|
6
|
+
nav a i{width:8px;height:8px;border-radius:50%;background:var(--pc);opacity:.6}
|
|
7
|
+
nav a:hover{background:var(--sjl-bg2);color:var(--sjl-tx)}nav a[aria-current]{background:color-mix(in srgb,var(--pc) 18%,var(--sjl-bg0));color:var(--sjl-tx)}nav a[aria-current] i{opacity:1;box-shadow:0 0 8px var(--pc)}
|
|
8
|
+
nav .gap{width:1px;height:16px;background:var(--sjl-line);margin:0 8px}
|
|
9
|
+
nav small{font-family:'IBM Plex Mono',ui-monospace,monospace;font-size:10px;color:var(--sjl-mut2);margin-right:4px;letter-spacing:.06em;text-transform:uppercase}
|
|
10
|
+
.act{display:flex;gap:6px}.act button{background:var(--sjl-bg2);border:1px solid var(--sjl-line);border-radius:99px;padding:4px 12px;font-size:12px;color:var(--sjl-tx2);display:flex;gap:6px;align-items:center}
|
|
11
|
+
.act button:hover{border-color:var(--sjl-c)}
|
|
12
|
+
.act .mode{position:relative;width:30px;height:26px;padding:0;justify-content:center;overflow:hidden}
|
|
13
|
+
.mode .vk-theme-switch__icon{display:grid;place-items:center;width:15px;height:15px}.mode .vk-theme-switch__icon svg{width:15px;height:15px}
|
|
14
|
+
@media (prefers-reduced-motion:reduce){.vk-theme-switch__icon.out,.vk-theme-switch__icon.in{animation:none}}
|
|
15
|
+
@media(max-width:1800px){nav small{display:none}}
|
|
16
|
+
@media(max-width:1680px){nav span.lbl{display:none}nav a{padding:5px 7px}}
|
|
17
|
+
@media(max-width:640px){.lab b{display:none}.act .agents{display:none}}
|
|
18
|
+
nav{min-width:0;overflow-x:auto;scrollbar-width:none}nav::-webkit-scrollbar{display:none}.act{flex-shrink:0}
|
|
19
|
+
.fa{background:var(--sjl-bg1);color:var(--sjl-tx);border:1px solid var(--sjl-line2);border-radius:14px;padding:0;width:min(640px,calc(100vw - 32px));box-shadow:0 30px 80px var(--sjl-shadow);font-family:'IBM Plex Mono',ui-monospace,monospace;font-size:13px}
|
|
20
|
+
.fa::backdrop{background:#0009}
|
|
21
|
+
.fa .top{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:10px 14px;border-bottom:1px solid var(--sjl-line);color:var(--sjl-mut);font-size:12px}
|
|
22
|
+
.fa .top button{background:none;border:0;color:var(--sjl-mut);font-size:15px;cursor:pointer;padding:2px 6px}.fa .top button:hover{color:var(--sjl-tx)}
|
|
23
|
+
.fa pre{margin:0;padding:16px 18px;white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.6;font:inherit}.fa .k{color:var(--sjl-hi)}.fa .c{color:var(--sjl-mut)}.fa a{color:inherit}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
section{max-width:1080px;margin:0 auto;padding:72px 24px 40px;border-top:1px solid var(--sjl-line)}
|
|
2
|
+
.eyebrow{font-family:'IBM Plex Mono',ui-monospace,monospace;font-size:12px;letter-spacing:.08em;text-transform:uppercase;color:var(--sjl-hi)}
|
|
3
|
+
h2{font-size:34px;line-height:1.15;margin:8px 0 6px;font-weight:600;letter-spacing:-.01em}
|
|
4
|
+
.sub{color:var(--sjl-mut);margin:0 0 14px;max-width:44em}
|
|
5
|
+
.legend{display:flex;gap:20px;font-size:13px;color:var(--sjl-mut);margin-bottom:22px;flex-wrap:wrap}.legend span{display:flex;gap:8px;align-items:center}
|
|
6
|
+
.grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(300px,100%),1fr));gap:12px;align-items:start}
|
|
7
|
+
.claim{border:1px solid var(--sjl-line);border-radius:14px;padding:14px 16px;background:color-mix(in srgb,var(--sjl-tx) 2%,transparent);transition:border-color .2s}
|
|
8
|
+
.claim:hover{border-color:color-mix(in srgb,var(--sjl-c) 50%,var(--sjl-line))}
|
|
9
|
+
.claim summary.head{list-style:none;cursor:pointer;display:flex;gap:10px;align-items:flex-start;width:100%;font-weight:600;font-size:15px;line-height:1.35}
|
|
10
|
+
.claim summary.head::-webkit-details-marker{display:none}
|
|
11
|
+
.dot{width:11px;height:11px;border-radius:50%;flex:none;margin-top:4px;border:2px solid var(--sjl-hi)}.dot.verified{background:var(--sjl-hi)}
|
|
12
|
+
.legend .dot{margin-top:0}
|
|
13
|
+
.more{font-size:13.5px;line-height:1.5;color:var(--sjl-tx2)}
|
|
14
|
+
.more>.in>:first-child{margin-top:10px}
|
|
15
|
+
.claim .dot{transition:transform .35s cubic-bezier(.34,1.56,.64,1)}.claim[open] .dot{transform:scale(1.25)}
|
|
16
|
+
@media (prefers-reduced-motion:reduce){.claim .dot{transition:none}}
|
|
17
|
+
.cav{border-left:2px solid var(--sjl-hi);padding:6px 10px;margin-bottom:8px;background:color-mix(in srgb,var(--sjl-hi) 7%,transparent);border-radius:0 8px 8px 0;color:var(--sjl-tx)}
|
|
18
|
+
.askit{margin-top:8px;background:none;border:0;padding:0;color:var(--sjl-hi);font-size:13px}
|
|
19
|
+
.solo{margin-top:26px;padding:16px 18px;border-radius:14px;border:1px dashed var(--sjl-line2);color:var(--sjl-tx2);font-size:14.5px}
|
|
20
|
+
.solo b{color:var(--sjl-tx)}
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
/* The suite footer. Colours are the frame's tokens (tokens.css), so it follows the suite's light
|
|
2
|
+
and dark like the bar, header and claims; shape and type sizes take the page's vibekit tokens
|
|
3
|
+
when it has them. No motion beyond a colour change on hover. */
|
|
4
|
+
footer{background:var(--sjl-bg0);border-top:1px solid var(--sjl-line);color:var(--sjl-tx2);font-size:14px;line-height:1.45}
|
|
5
|
+
.in{max-width:1080px;margin:0 auto;padding:36px 24px 8px;display:grid;grid-template-columns:minmax(0,1fr);gap:28px 40px;align-items:start}
|
|
6
|
+
.suite{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:16px 16px;align-items:start}
|
|
7
|
+
.grp-main .tiles,.grp-quarter .tiles{grid-template-columns:repeat(2,minmax(0,1fr))}
|
|
8
|
+
.lbl{margin:0 0 8px;padding:0 10px;font:500 11px/1.4 'IBM Plex Mono',ui-monospace,monospace;letter-spacing:.08em;text-transform:uppercase;color:var(--sjl-mut)}
|
|
9
|
+
.cols .lbl{padding:0}
|
|
10
|
+
ul{list-style:none;margin:0;padding:0}
|
|
11
|
+
.tiles{display:grid;gap:4px}
|
|
12
|
+
.tile{display:grid;grid-template-columns:22px minmax(0,1fr);grid-template-areas:"mk nm" "mk ln";column-gap:12px;row-gap:1px;align-items:center;min-height:44px;padding:8px 10px;border-radius:var(--vk-radius-sm,10px);border:1px solid transparent;text-decoration:none;color:var(--sjl-tx);transition:background-color .15s,border-color .15s}
|
|
13
|
+
.mk{grid-area:mk;align-self:start;width:22px;height:22px;margin-top:1px}.mk svg{display:block;width:100%;height:100%}
|
|
14
|
+
.nm{grid-area:nm;font-weight:600;font-size:14px;display:flex;align-items:baseline;gap:6px}
|
|
15
|
+
.ln{grid-area:ln;font-size:12.5px;line-height:1.35;color:var(--sjl-mut)}
|
|
16
|
+
.tile:hover{background:color-mix(in srgb,var(--sjl-tx) 5%,transparent)}
|
|
17
|
+
/* this product: a quiet outline in its own colour */
|
|
18
|
+
.tile[aria-current=page]{border-color:color-mix(in srgb,var(--pc) 60%,var(--sjl-line));background:color-mix(in srgb,var(--pc) 8%,transparent)}
|
|
19
|
+
.tick{display:none;font-size:11px;font-weight:500;color:var(--sjl-mut2)}
|
|
20
|
+
.tile.seen:not([aria-current]) .tick{display:inline}
|
|
21
|
+
.cols{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px 24px}
|
|
22
|
+
.cols a{display:flex;align-items:center;min-height:44px;color:var(--sjl-tx2);text-decoration:none;overflow-wrap:anywhere}
|
|
23
|
+
.cols a:hover{color:var(--sjl-tx);text-decoration:underline;text-underline-offset:3px}
|
|
24
|
+
.base{max-width:1080px;margin:0 auto;padding:8px 24px 20px;display:flex;justify-content:space-between;align-items:center;gap:4px 16px;flex-wrap:wrap;font-size:12.5px;color:var(--sjl-mut)}
|
|
25
|
+
.base p{margin:0}
|
|
26
|
+
.base p a{color:inherit;text-underline-offset:3px;text-decoration-color:color-mix(in srgb,currentColor 40%,transparent)}.base p a:hover{color:var(--sjl-tx)}
|
|
27
|
+
.more{flex:1}.more ul{display:flex;flex-wrap:wrap;gap:0 16px}.more a{display:flex;align-items:center;min-height:44px;color:var(--sjl-mut);text-decoration:none}.more a:hover{color:var(--sjl-tx);text-decoration:underline;text-underline-offset:3px}
|
|
28
|
+
.gh{display:inline-flex;align-items:center;justify-content:center;width:44px;height:44px;margin:0 -6px 0 auto;color:var(--sjl-mut);border-radius:var(--vk-radius-sm,6px)}.gh:hover{color:var(--sjl-tx)}.gh svg{width:18px;height:18px}
|
|
29
|
+
.ask{min-height:44px;padding:0;background:none;border:0;font-size:12.5px;color:var(--sjl-mut);text-decoration:underline;text-decoration-color:color-mix(in srgb,currentColor 40%,transparent);text-underline-offset:3px}
|
|
30
|
+
.ask:hover{color:var(--sjl-tx)}
|
|
31
|
+
.ask[hidden]{display:none}
|
|
32
|
+
a:focus-visible,button:focus-visible{outline:2px solid var(--sjl-hi);outline-offset:2px;border-radius:var(--vk-radius-sm,6px)}
|
|
33
|
+
.cols a:focus-visible,.ask:focus-visible{border-radius:4px}
|
|
34
|
+
@media (max-width:960px){.cols{grid-template-columns:repeat(2,minmax(0,1fr))}}
|
|
35
|
+
@media (max-width:640px){
|
|
36
|
+
.in{padding:28px 16px 8px;gap:24px}
|
|
37
|
+
.suite{grid-template-columns:minmax(0,1fr)}
|
|
38
|
+
.lbl{padding:0}
|
|
39
|
+
.tiles{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
|
|
40
|
+
.tile{grid-template-areas:"mk nm" "ln ln";row-gap:4px;align-items:center;align-content:start;height:100%;padding:10px;border-color:var(--sjl-line)}
|
|
41
|
+
.mk{align-self:center;margin:0}
|
|
42
|
+
.cols{gap:12px 16px}
|
|
43
|
+
.cols a{font-size:13.5px;line-height:1.3}
|
|
44
|
+
.base{padding:4px 16px 20px}
|
|
45
|
+
}
|
|
46
|
+
@media (prefers-reduced-motion:reduce){.tile{transition:none}}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
:host{position:sticky!important;top:0!important;z-index:2147483000!important}
|
|
2
|
+
header{backdrop-filter:blur(14px) saturate(1.4);-webkit-backdrop-filter:blur(14px) saturate(1.4);background:color-mix(in srgb,var(--sjl-glass) 72%,transparent);border-bottom:1px solid transparent;transition:background .25s,border-color .25s}
|
|
3
|
+
header.stuck{background:color-mix(in srgb,var(--sjl-glass) 88%,transparent);border-bottom-color:var(--sjl-line)}
|
|
4
|
+
.in{max-width:1180px;margin:0 auto;padding:0 24px;height:68px;display:flex;align-items:center;gap:28px;transition:height .25s}
|
|
5
|
+
header.stuck .in{height:54px}
|
|
6
|
+
.brand{min-width:0;flex-shrink:1;display:flex;align-items:center;gap:11px;text-decoration:none;font-weight:600;font-size:19px;letter-spacing:-.01em;color:var(--sjl-tx)}
|
|
7
|
+
.brand .mark{display:block;width:30px;height:30px;transition:width .25s,height .25s}.brand .mark svg{width:100%;height:100%;display:block}header.stuck .brand .mark{width:24px;height:24px}
|
|
8
|
+
nav{display:flex;align-items:center;gap:4px;font-size:14px}
|
|
9
|
+
nav a{white-space:nowrap;color:var(--sjl-mut);text-decoration:none;padding:6px 10px;border-radius:8px;transition:color .15s,background .15s}
|
|
10
|
+
nav a:hover{color:var(--sjl-tx);background:color-mix(in srgb,var(--sjl-tx) 6%,transparent)}nav a.on{color:var(--sjl-tx)}
|
|
11
|
+
.sec{flex:1}
|
|
12
|
+
.gh{display:grid;place-items:center;padding:6px;border-radius:8px}.gh svg{display:block;transition:transform .25s cubic-bezier(.34,1.56,.64,1)}.gh:hover svg{transform:scale(1.12) rotate(-6deg)}
|
|
13
|
+
.ver{font-family:'IBM Plex Mono',ui-monospace,monospace;font-size:12px;border:1px solid var(--sjl-line2);border-radius:99px;padding:3px 9px;color:var(--sjl-mut);text-decoration:none}
|
|
14
|
+
.ver:hover{border-color:var(--sjl-c);color:var(--sjl-tx)}
|
|
15
|
+
.cta{background:var(--sjl-c);color:var(--sjl-on-c);font-weight:600;font-size:14px;padding:8px 15px;border-radius:10px;text-decoration:none;white-space:nowrap;box-shadow:0 6px 18px -8px var(--sjl-c)}
|
|
16
|
+
.cta:hover{filter:brightness(1.08)}
|
|
17
|
+
.askj{display:flex;align-items:center;gap:8px;min-width:0;flex:1;background:color-mix(in srgb,var(--sjl-tx) 4%,transparent);border:1px solid var(--sjl-line2);border-radius:12px;padding:4px 8px 4px 5px;color:var(--sjl-mut);font-size:13.5px;text-align:left;transition:border-color .2s,background .2s}
|
|
18
|
+
.askj:hover,.askj:focus-visible{border-color:var(--sjl-c);background:color-mix(in srgb,var(--sjl-tx) 7%,transparent);color:var(--sjl-tx);outline:none}
|
|
19
|
+
.askj span{flex:1;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.askj kbd{font:500 11px ui-monospace,monospace;border:1px solid var(--sjl-line2);border-radius:5px;padding:1px 6px;color:var(--sjl-mut)}
|
|
20
|
+
.askj .jack{width:26px;height:26px}
|
|
21
|
+
.hint{position:absolute;top:calc(100% + 8px);left:0;width:max-content;max-width:min(320px,calc(100vw - 32px));background:var(--sjl-bg1);color:var(--sjl-tx);border:1px solid var(--sjl-line2);border-radius:4px 14px 14px 14px;padding:11px 13px;font-size:13.5px;line-height:1.45;box-shadow:0 14px 30px var(--sjl-shadow);display:none}.hint.on{display:block;animation:hint-in .25s ease-out}
|
|
22
|
+
.hint .who{display:block;margin-bottom:4px;font-size:12px;color:var(--sjl-mut)}.hint .who b{color:var(--sjl-tx);font-weight:600}.hint .acts{display:flex;gap:8px;margin-top:9px}.hint button{font:inherit;font-size:13px;border-radius:8px;padding:5px 11px;cursor:pointer;background:var(--sjl-c);color:var(--sjl-on-c);border:1px solid var(--sjl-c)}.hint button.no{background:transparent;color:var(--sjl-mut);border-color:var(--sjl-line2)}
|
|
23
|
+
@keyframes hint-in{from{opacity:0;transform:translateY(-4px)}}@media(prefers-reduced-motion:reduce){.hint.on{animation:none}}
|
|
24
|
+
.askw{position:relative;flex:0 1 380px;min-width:0;display:flex}
|
|
25
|
+
.menu{display:none;margin-left:auto}
|
|
26
|
+
.menu summary{list-style:none;border:1px solid var(--sjl-line2);border-radius:8px;padding:5px 9px}.menu summary::-webkit-details-marker{display:none}
|
|
27
|
+
.drawer{display:none}
|
|
28
|
+
@media(max-width:1100px){.askw{flex-basis:300px}}
|
|
29
|
+
@media(max-width:1000px){.ver{display:none}.in{gap:16px}}
|
|
30
|
+
@media(max-width:820px){.links,.askj span,.askj kbd{display:none}.askw{flex:0 0 auto}.menu{display:block}.in{gap:12px}
|
|
31
|
+
header:has(.menu[open]) .drawer,.drawer.on{display:flex;flex-direction:column;padding:8px 16px 16px;gap:2px;border-top:1px solid var(--sjl-line)}.drawer a{color:var(--sjl-tx2);text-decoration:none;padding:10px 4px;border-bottom:1px solid var(--sjl-line)}}
|
|
32
|
+
.nm{min-width:0;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.brand .mark{flex-shrink:0}
|
|
33
|
+
@media(max-width:520px){.askw{position:static}.hint{left:16px;right:16px;width:auto;max-width:none}.in{padding:0 16px;gap:8px}.brand{font-size:17px;gap:8px}.cta{padding:7px 11px;font-size:13px}.sec{flex:1 1 0;min-width:0}}
|
|
34
|
+
/* The lab's full name does not fit a phone header: show the short form, keep the full one for screen readers. */
|
|
35
|
+
@media(max-width:520px){.nm[data-short]{font-size:0}.nm[data-short]::after{content:attr(data-short);font-size:17px}}
|