@addiscorp/kit 0.4.1 → 0.5.0
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/README.md +1 -1
- package/dist/footer/index.d.ts +5 -1
- package/dist/footer/index.js +4 -2
- package/dist/kit.css +6 -0
- package/dist/tool/index.d.ts +6 -2
- package/dist/tool/index.js +8 -4
- package/dist/tool/marks.js +11 -0
- package/dist/tool/tools.d.ts +6 -1
- package/dist/tool/tools.js +7 -0
- package/dist/tool.css +7 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -42,7 +42,7 @@ import { Header, Footer, HeaderButton, PersonIcon, themeBoot } from '@addiscorp/
|
|
|
42
42
|
- **The menu**: the brand button opens it; ⌘M / Ctrl+M opens and closes it; ⌘S, Ctrl+S or `/` opens it on search; typing anywhere searches; ↑ ↓ move, Enter opens, 1–9 open a numbered tile, Esc closes, `?` lists the shortcuts. A click outside or a navigation closes it.
|
|
43
43
|
- **Groups** are tiles (numbered 1–9 in order across groups) or rows (`layout: 'list'`); a `searchOnly` group appears only as search matches. An item has a `href` or an `onSelect`, an optional `icon`, `detail` and `keywords`.
|
|
44
44
|
- **`HeaderButton`**: a round button with a popover, one popover open at a time with the menu: account, notifications (`badge`), settings, or anything else.
|
|
45
|
-
- **`Footer`**: who makes the site, the one copyright line (Addis Corp by default; `owner` changes it); the product's license (`MIT license`, to `/license/`) when `license` is passed; Terms and Privacy, which every Addis site links to the same pages on addis.gg (`TERMS_HREF`, `PRIVACY_HREF`); the light/dark switch.
|
|
45
|
+
- **`Footer`**: who makes the site, the one copyright line (Addis Corp by default; `owner` changes it); the product's license (`MIT license`, to `/license/`) when `license` is passed; Terms and Privacy, which every Addis site links to the same pages on addis.gg (`TERMS_HREF`, `PRIVACY_HREF`), folded on a phone (600px and narrower) into one "legal" link to addis.gg/legal/ (`LEGAL_HREF`), which links to both; `extra`, a site's own control just before the theme switch (a button styled `ak-theme-toggle`); the light/dark switch.
|
|
46
46
|
- **Theme**: `themeBoot` sets light or dark before paint (a `theme` cookie wins, else the system); `ThemeToggle` switches and remembers.
|
|
47
47
|
|
|
48
48
|
## The license
|
package/dist/footer/index.d.ts
CHANGED
|
@@ -9,11 +9,15 @@ export declare const ADDIS: Owner;
|
|
|
9
9
|
/** The terms and privacy pages: one place on addis.gg for every Addis site. */
|
|
10
10
|
export declare const TERMS_HREF = "https://addis.gg/terms/";
|
|
11
11
|
export declare const PRIVACY_HREF = "https://addis.gg/privacy/";
|
|
12
|
+
/** One link to both, on a phone: addis.gg/legal/ links to terms and privacy. */
|
|
13
|
+
export declare const LEGAL_HREF = "https://addis.gg/legal/";
|
|
12
14
|
export type FooterProps = {
|
|
13
15
|
owner?: Owner;
|
|
14
16
|
/** The year in the copyright line; this year by default. */
|
|
15
17
|
year?: number;
|
|
16
18
|
/** A small line under the footer row, e.g. trademark notices. */
|
|
17
19
|
note?: ReactNode;
|
|
20
|
+
/** A site's own control, just before the theme switch (a button the size of it, `ak-theme-toggle`). */
|
|
21
|
+
extra?: ReactNode;
|
|
18
22
|
};
|
|
19
|
-
export declare function Footer({ owner, year, note }: FooterProps): import("react/jsx-runtime").JSX.Element;
|
|
23
|
+
export declare function Footer({ owner, year, note, extra }: FooterProps): import("react/jsx-runtime").JSX.Element;
|
package/dist/footer/index.js
CHANGED
|
@@ -9,8 +9,10 @@ export const ADDIS = {
|
|
|
9
9
|
/** The terms and privacy pages: one place on addis.gg for every Addis site. */
|
|
10
10
|
export const TERMS_HREF = 'https://addis.gg/terms/';
|
|
11
11
|
export const PRIVACY_HREF = 'https://addis.gg/privacy/';
|
|
12
|
-
|
|
13
|
-
|
|
12
|
+
/** One link to both, on a phone: addis.gg/legal/ links to terms and privacy. */
|
|
13
|
+
export const LEGAL_HREF = 'https://addis.gg/legal/';
|
|
14
|
+
export function Footer({ owner = ADDIS, year = new Date().getFullYear(), note, extra }) {
|
|
15
|
+
return (_jsxs("footer", { className: "ak-foot", children: [_jsxs("a", { className: "ak-credit", href: owner.href, children: [owner.logo, "\u00A9 ", year, " ", owner.name] }), _jsxs("nav", { className: "ak-foot-end", "aria-label": "Legal", children: [_jsx("a", { className: "ak-foot-wide", href: TERMS_HREF, children: "terms" }), _jsx("a", { className: "ak-foot-wide", href: PRIVACY_HREF, children: "privacy" }), _jsx("a", { className: "ak-foot-narrow", href: LEGAL_HREF, children: "legal" }), extra, _jsx(ThemeToggle, {})] }), note && _jsx("p", { className: "ak-foot-note", children: note })] }));
|
|
14
16
|
}
|
|
15
17
|
function AddisMark() {
|
|
16
18
|
return (_jsx("svg", { className: "ak-owner-mark", xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 64 64", width: 32, height: 32, "aria-hidden": "true", dangerouslySetInnerHTML: { __html: '<circle cx="32" cy="32" r="31" fill="#1b1914"/><path fill="#f3efe3" d="M28.48 41L23.89 41L29.63 28.07Q26.87 27.73 25.60 26.27Q24.33 24.82 24.33 22.28L24.33 22.28L24.33 18.87L28.73 18.87L28.73 21.44Q28.73 23.27 29.52 23.95Q30.31 24.63 32.11 24.63L32.11 24.63L35.70 24.63L28.48 41ZM40.17 41L35.55 41Q35.52 38.21 35.08 36.51Q34.65 34.80 33.81 33.85Q32.98 32.91 31.74 32.38L31.74 32.38L33.19 28.91Q35.39 29.69 36.93 31.11Q38.46 32.54 39.28 34.92Q40.11 37.31 40.17 41L40.17 41Z"/><rect x="20" y="47.5" width="8" height="3" fill="#078930"/><rect x="28" y="47.5" width="8" height="3" fill="#fcdd09"/><rect x="36" y="47.5" width="8" height="3" fill="#da121a"/>' } }));
|
package/dist/kit.css
CHANGED
|
@@ -116,6 +116,12 @@
|
|
|
116
116
|
.ak-foot-end { flex-wrap: wrap; justify-content: flex-end; }
|
|
117
117
|
.ak-foot-end a { color: inherit; text-decoration: none; }
|
|
118
118
|
.ak-foot-end a:hover { color: var(--ak-ink); text-decoration: underline; text-underline-offset: 3px; }
|
|
119
|
+
/* Terms and privacy on a wide screen; on a phone one "legal" link to both. */
|
|
120
|
+
.ak-foot-end .ak-foot-narrow { display: none; }
|
|
121
|
+
@media (max-width: 600px) {
|
|
122
|
+
.ak-foot-end .ak-foot-wide { display: none; }
|
|
123
|
+
.ak-foot-end .ak-foot-narrow { display: inline; }
|
|
124
|
+
}
|
|
119
125
|
|
|
120
126
|
/* Status: where a product stands. Beta is a filled dot, alpha a hollow one. */
|
|
121
127
|
.ak-pills { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
|
package/dist/tool/index.d.ts
CHANGED
|
@@ -3,7 +3,7 @@ import type { LinkComponent } from '../header/index.js';
|
|
|
3
3
|
import type { License } from '../license/index.js';
|
|
4
4
|
import { type Stage } from '../status/index.js';
|
|
5
5
|
import { type ToolId } from './tools.js';
|
|
6
|
-
export { TOOLS, toolInfo, toolName, type ToolId, type ToolInfo } from './tools.js';
|
|
6
|
+
export { TOOLS, FAMILY, toolInfo, toolName, type ToolId, type ToolInfo } from './tools.js';
|
|
7
7
|
export { MARKS } from './marks.js';
|
|
8
8
|
export { CopyButton } from './copy.js';
|
|
9
9
|
/** A tool's mark, drawn for light and dark; the theme picks one. */
|
|
@@ -131,7 +131,7 @@ export type WorksWith = {
|
|
|
131
131
|
items: WorksItem[];
|
|
132
132
|
};
|
|
133
133
|
/**
|
|
134
|
-
* "Why <tool> · the short version": three benefits, and
|
|
134
|
+
* "Why <tool> · the short version": three benefits, and "More from Addis" (FAMILY, less this tool). A tool can put a
|
|
135
135
|
* "Works with" card in the third benefit's place instead.
|
|
136
136
|
*/
|
|
137
137
|
export declare function Why({ tool, benefits, works }: {
|
|
@@ -143,6 +143,10 @@ export declare function Why({ tool, benefits, works }: {
|
|
|
143
143
|
benefits: [Benefit, Benefit];
|
|
144
144
|
works: WorksWith;
|
|
145
145
|
})): import("react/jsx-runtime").JSX.Element;
|
|
146
|
+
/** The "More from Addis" card: FAMILY in order, less the site it is on. For a site that builds its own Why. */
|
|
147
|
+
export declare function MoreFromAddis({ tool }: {
|
|
148
|
+
tool: ToolId;
|
|
149
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
146
150
|
export type DocsPage = {
|
|
147
151
|
href: string;
|
|
148
152
|
title: string;
|
package/dist/tool/index.js
CHANGED
|
@@ -3,8 +3,8 @@ import { Footer } from '../footer/index.js';
|
|
|
3
3
|
import { ProductPills } from '../status/index.js';
|
|
4
4
|
import { CopyButton } from './copy.js';
|
|
5
5
|
import { MARKS } from './marks.js';
|
|
6
|
-
import {
|
|
7
|
-
export { TOOLS, toolInfo, toolName } from './tools.js';
|
|
6
|
+
import { FAMILY, toolInfo, toolName } from './tools.js';
|
|
7
|
+
export { TOOLS, FAMILY, toolInfo, toolName } from './tools.js';
|
|
8
8
|
export { MARKS } from './marks.js';
|
|
9
9
|
export { CopyButton } from './copy.js';
|
|
10
10
|
const PlainLink = (props) => _jsx("a", { ...props });
|
|
@@ -49,11 +49,15 @@ export function Reel({ scenes }) {
|
|
|
49
49
|
return (_jsxs("div", { children: [_jsx("style", { children: css }), _jsx("div", { className: "akt-reel", children: _jsx("div", { className: "akt-stage", children: scenes.map((scene, i) => (_jsxs("div", { className: "akt-scene", style: { animation: `akt-scene-${scenes.length} ${cycle}s ${i * SCENE_SECONDS}s infinite both` }, children: [_jsxs("div", { className: "akt-tab", children: [_jsx("i", {}), scene.title] }), _jsx("div", { className: "akt-term", children: scene.lines.map((line, j) => (_jsxs("div", { className: `akt-ln akt-${line.kind ?? 'output'}`, style: { animation: `akt-line ${cycle}s ${(i * SCENE_SECONDS + 0.3 + j * 0.45).toFixed(2)}s infinite both` }, children: [_jsx("span", { className: "akt-no", children: j + 1 }), _jsx("span", { className: "akt-tx", children: line.text })] }, j))) }), _jsx("div", { className: "akt-cap", children: scene.caption })] }, i))) }) }), _jsx("div", { className: "akt-dots", "aria-hidden": "true", children: scenes.map((_, i) => _jsx("i", { style: { animation: `akt-dot-${scenes.length} ${cycle}s ${i * SCENE_SECONDS}s infinite` } }, i)) })] }));
|
|
50
50
|
}
|
|
51
51
|
/**
|
|
52
|
-
* "Why <tool> · the short version": three benefits, and
|
|
52
|
+
* "Why <tool> · the short version": three benefits, and "More from Addis" (FAMILY, less this tool). A tool can put a
|
|
53
53
|
* "Works with" card in the third benefit's place instead.
|
|
54
54
|
*/
|
|
55
55
|
export function Why({ tool, benefits, works }) {
|
|
56
|
-
return (_jsxs("section", { className: "akt-why", children: [_jsxs("h2", { children: ["Why ", toolName(tool), _jsx("small", { children: "the short version" })] }), _jsxs("div", { className: "akt-cards", children: [benefits.map((benefit) => (_jsxs("div", { className: "akt-card", children: [_jsx("div", { className: "akt-dash" }), _jsx("h3", { children: benefit.title }), _jsx("p", { children: benefit.text })] }, benefit.title))), works && _jsx(Works, { works: works }),
|
|
56
|
+
return (_jsxs("section", { className: "akt-why", children: [_jsxs("h2", { children: ["Why ", toolName(tool), _jsx("small", { children: "the short version" })] }), _jsxs("div", { className: "akt-cards", children: [benefits.map((benefit) => (_jsxs("div", { className: "akt-card", children: [_jsx("div", { className: "akt-dash" }), _jsx("h3", { children: benefit.title }), _jsx("p", { children: benefit.text })] }, benefit.title))), works && _jsx(Works, { works: works }), _jsx(MoreFromAddis, { tool: tool })] })] }));
|
|
57
|
+
}
|
|
58
|
+
/** The "More from Addis" card: FAMILY in order, less the site it is on. For a site that builds its own Why. */
|
|
59
|
+
export function MoreFromAddis({ tool }) {
|
|
60
|
+
return (_jsxs("div", { className: "akt-card", children: [_jsx("h3", { children: "More from Addis" }), _jsx("div", { className: "akt-family", children: FAMILY.filter((id) => id !== tool).map(toolInfo).map((t) => (_jsxs("a", { className: "akt-row", href: `https://${t.domain}`, children: [_jsxs("strong", { children: [_jsx(Mark, { tool: t.id, size: 18 }), t.name ?? t.id] }), _jsx("span", { children: t.short })] }, t.id))) })] }));
|
|
57
61
|
}
|
|
58
62
|
function Works({ works }) {
|
|
59
63
|
return (_jsxs("div", { className: "akt-card akt-works", children: [_jsxs("h3", { children: [works.title, works.note && _jsx("small", { children: works.note })] }), _jsx("div", { className: "akt-family", children: works.items.map((item) => (_jsxs("div", { className: "akt-work", children: [item.logo && (item.logo.dark
|
package/dist/tool/marks.js
CHANGED
|
@@ -38,4 +38,15 @@ export const MARKS = {
|
|
|
38
38
|
light: "<defs><linearGradient id=\"akt-gild-l-ground\" gradientUnits=\"userSpaceOnUse\" x1=\"0\" y1=\"100\" x2=\"0\" y2=\"924\"><stop offset=\"0\" stop-color=\"#FBF4E2\"/><stop offset=\"1\" stop-color=\"#E8D7AE\"/></linearGradient><clipPath id=\"akt-gild-l-clip\"><path d=\"M285 100H739C841 100 924 183 924 285V739C924 841 841 924 739 924H285C183 924 100 841 100 739V285C100 183 183 100 285 100Z\"/></clipPath><path id=\"akt-gild-l-g\" d=\"M609.1 551.9Q594.6 607.1 567.8 643.3Q541.1 679.4 502.4 697.2Q463.7 715 412.7 715Q376.9 715 357 703.1Q337.2 691.2 337.2 672.7Q337.2 659.8 345.8 650.8Q354.5 641.8 369.8 641.8Q382.3 641.8 393 648.1Q403.7 654.5 413.5 662.8Q423.4 671.1 433.2 677.4Q443 683.8 453.8 683.8Q467.6 683.8 479.9 675.9Q492.2 668.1 502.5 651.7Q512.7 635.2 519.8 609.4L569.9 431.4L574.5 438.4Q556.2 481.6 536.2 508.8Q516.2 536.1 494.4 549Q472.6 561.8 448.5 561.8Q427.6 561.8 412.4 552Q397.1 542.1 389.9 522.2Q382.6 502.4 385.1 472.3Q387.5 441.9 398.6 412Q409.6 382.1 428.5 355.6Q447.3 329.2 473.3 308.8Q499.2 288.4 531.3 276.7Q563.4 265 600.9 265Q627.9 265 647.4 269.1Q666.9 273.1 677.2 279.7Q687.6 286.3 686.8 294.1Q686.2 300.2 682.8 303.6Q679.4 307 675.7 310.9Q672 314.7 670 322.1ZM464.3 469.6Q462.1 488.6 464.6 500.2Q467.1 511.8 472.6 517Q478.1 522.2 485 522.2Q497.7 522.2 511.5 509.9Q525.3 497.6 538.6 476.6Q552 455.6 563.4 429.4Q574.8 403.1 582.9 375Q591 346.8 594.3 320.7Q596.5 306.6 593.5 298.8Q590.4 291.1 579.8 291.1Q564.9 291.1 549.5 301.5Q534.1 311.9 519.9 329.8Q505.7 347.7 493.9 370.7Q482.2 393.6 474.4 419Q466.6 444.4 464.3 469.6Z\"/></defs><g transform=\"scale(0.0291262) translate(-100 -100)\"><path d=\"M285 100H739C841 100 924 183 924 285V739C924 841 841 924 739 924H285C183 924 100 841 100 739V285C100 183 183 100 285 100Z\" fill=\"url(#akt-gild-l-ground)\"/><g clip-path=\"url(#akt-gild-l-clip)\"><use href=\"#akt-gild-l-g\" transform=\"translate(23.1 42)\" fill=\"#4E330D\" opacity=\"0.35\"/><use href=\"#akt-gild-l-g\" transform=\"translate(19.2 35)\" fill=\"#6F4914\" opacity=\"0.42\"/><use href=\"#akt-gild-l-g\" transform=\"translate(15.4 28)\" fill=\"#8F611C\" opacity=\"0.52\"/><use href=\"#akt-gild-l-g\" transform=\"translate(11.6 21)\" fill=\"#AD7A26\" opacity=\"0.62\"/><use href=\"#akt-gild-l-g\" transform=\"translate(7.7 14)\" fill=\"#C99433\" opacity=\"0.72\"/><use href=\"#akt-gild-l-g\" transform=\"translate(3.9 7)\" fill=\"#E3B546\" opacity=\"0.82\"/><use href=\"#akt-gild-l-g\" fill=\"url(#akt-gild-l-ground)\" stroke=\"url(#akt-gild-l-ground)\" stroke-width=\"36\" stroke-linejoin=\"round\"/><use href=\"#akt-gild-l-g\" fill=\"#111111\"/></g></g>",
|
|
39
39
|
dark: "<defs><linearGradient id=\"akt-gild-d-ground\" gradientUnits=\"userSpaceOnUse\" x1=\"0\" y1=\"100\" x2=\"0\" y2=\"924\"><stop offset=\"0\" stop-color=\"#EDC65E\"/><stop offset=\"1\" stop-color=\"#A8761F\"/></linearGradient><clipPath id=\"akt-gild-d-clip\"><path d=\"M285 100H739C841 100 924 183 924 285V739C924 841 841 924 739 924H285C183 924 100 841 100 739V285C100 183 183 100 285 100Z\"/></clipPath><path id=\"akt-gild-d-g\" d=\"M609.1 551.9Q594.6 607.1 567.8 643.3Q541.1 679.4 502.4 697.2Q463.7 715 412.7 715Q376.9 715 357 703.1Q337.2 691.2 337.2 672.7Q337.2 659.8 345.8 650.8Q354.5 641.8 369.8 641.8Q382.3 641.8 393 648.1Q403.7 654.5 413.5 662.8Q423.4 671.1 433.2 677.4Q443 683.8 453.8 683.8Q467.6 683.8 479.9 675.9Q492.2 668.1 502.5 651.7Q512.7 635.2 519.8 609.4L569.9 431.4L574.5 438.4Q556.2 481.6 536.2 508.8Q516.2 536.1 494.4 549Q472.6 561.8 448.5 561.8Q427.6 561.8 412.4 552Q397.1 542.1 389.9 522.2Q382.6 502.4 385.1 472.3Q387.5 441.9 398.6 412Q409.6 382.1 428.5 355.6Q447.3 329.2 473.3 308.8Q499.2 288.4 531.3 276.7Q563.4 265 600.9 265Q627.9 265 647.4 269.1Q666.9 273.1 677.2 279.7Q687.6 286.3 686.8 294.1Q686.2 300.2 682.8 303.6Q679.4 307 675.7 310.9Q672 314.7 670 322.1ZM464.3 469.6Q462.1 488.6 464.6 500.2Q467.1 511.8 472.6 517Q478.1 522.2 485 522.2Q497.7 522.2 511.5 509.9Q525.3 497.6 538.6 476.6Q552 455.6 563.4 429.4Q574.8 403.1 582.9 375Q591 346.8 594.3 320.7Q596.5 306.6 593.5 298.8Q590.4 291.1 579.8 291.1Q564.9 291.1 549.5 301.5Q534.1 311.9 519.9 329.8Q505.7 347.7 493.9 370.7Q482.2 393.6 474.4 419Q466.6 444.4 464.3 469.6Z\"/></defs><g transform=\"scale(0.0291262) translate(-100 -100)\"><path d=\"M285 100H739C841 100 924 183 924 285V739C924 841 841 924 739 924H285C183 924 100 841 100 739V285C100 183 183 100 285 100Z\" fill=\"url(#akt-gild-d-ground)\"/><g clip-path=\"url(#akt-gild-d-clip)\"><use href=\"#akt-gild-d-g\" transform=\"translate(23.1 42)\" fill=\"#4E330D\" opacity=\"0.35\"/><use href=\"#akt-gild-d-g\" transform=\"translate(19.2 35)\" fill=\"#6F4914\" opacity=\"0.42\"/><use href=\"#akt-gild-d-g\" transform=\"translate(15.4 28)\" fill=\"#8F611C\" opacity=\"0.52\"/><use href=\"#akt-gild-d-g\" transform=\"translate(11.6 21)\" fill=\"#AD7A26\" opacity=\"0.62\"/><use href=\"#akt-gild-d-g\" transform=\"translate(7.7 14)\" fill=\"#C99433\" opacity=\"0.72\"/><use href=\"#akt-gild-d-g\" transform=\"translate(3.9 7)\" fill=\"#F6DC8F\" opacity=\"0.82\"/><use href=\"#akt-gild-d-g\" fill=\"url(#akt-gild-d-ground)\" stroke=\"url(#akt-gild-d-ground)\" stroke-width=\"36\" stroke-linejoin=\"round\"/><use href=\"#akt-gild-d-g\" fill=\"#111111\"/></g></g>",
|
|
40
40
|
},
|
|
41
|
+
// ava's icon (addis.gg public/icons/ava.svg, from avacanada/ava): the a with its rainbow trail on the violet tile,
|
|
42
|
+
// the same in both themes; ids carry the variant, since the theme hides one.
|
|
43
|
+
ava: {
|
|
44
|
+
light: "<defs><linearGradient id=\"akt-ava-l-ground\" gradientUnits=\"userSpaceOnUse\" x1=\"0\" y1=\"100\" x2=\"0\" y2=\"924\"><stop offset=\"0\" stop-color=\"#7C5CFF\"/><stop offset=\"1\" stop-color=\"#5636D8\"/></linearGradient><linearGradient id=\"akt-ava-l-ground-a\" gradientUnits=\"userSpaceOnUse\" x1=\"0\" y1=\"870.2\" x2=\"0\" y2=\"-503.2\"><stop offset=\"0\" stop-color=\"#7C5CFF\"/><stop offset=\"1\" stop-color=\"#5636D8\"/></linearGradient><clipPath id=\"akt-ava-l-clip\"><path d=\"M285 100 H739 C841 100 924 183 924 285 V739 C924 841 841 924 739 924 H285 C183 924 100 841 100 739 V285 C100 183 183 100 285 100 Z\"/></clipPath><path id=\"akt-ava-l-a\" transform=\"matrix(0.6 0 0 -0.6 309.5 622.1)\" d=\"M318 -4Q245 -4 187.0 32.5Q129 69 95.5 131.5Q62 194 62 273Q62 352 98.5 415.0Q135 478 197.5 514.5Q260 551 338 551Q416 551 478.0 514.5Q540 478 576.5 415.0Q613 352 613 273H574Q574 194 540.5 131.5Q507 69 449.0 32.5Q391 -4 318 -4ZM338 86Q389 86 429.0 110.5Q469 135 492.0 177.5Q515 220 515 273Q515 327 492.0 369.5Q469 412 429.0 436.5Q389 461 338 461Q288 461 247.5 436.5Q207 412 183.5 369.5Q160 327 160 273Q160 220 183.5 177.5Q207 135 247.5 110.5Q288 86 338 86ZM562 -1Q540 -1 525.5 13.5Q511 28 511 50V203L530 309L613 273V50Q613 28 598.5 13.5Q584 -1 562 -1Z\"/></defs><g transform=\"scale(0.0291262) translate(-100 -100)\"><path d=\"M285 100 H739 C841 100 924 183 924 285 V739 C924 841 841 924 739 924 H285 C183 924 100 841 100 739 V285 C100 183 183 100 285 100 Z\" fill=\"url(#akt-ava-l-ground)\"/><g clip-path=\"url(#akt-ava-l-clip)\"><use href=\"#akt-ava-l-a\" y=\"360\" fill=\"#A68BFF\" opacity=\"0.35\"/><use href=\"#akt-ava-l-a\" y=\"300\" fill=\"#3FD0FF\" opacity=\"0.42\"/><use href=\"#akt-ava-l-a\" y=\"240\" fill=\"#4CD964\" opacity=\"0.52\"/><use href=\"#akt-ava-l-a\" y=\"180\" fill=\"#FFE14D\" opacity=\"0.62\"/><use href=\"#akt-ava-l-a\" y=\"120\" fill=\"#FF9F1C\" opacity=\"0.72\"/><use href=\"#akt-ava-l-a\" y=\"60\" fill=\"#FF5A5F\" opacity=\"0.82\"/><circle cx=\"513.2\" cy=\"458.0\" r=\"162.5\" fill=\"url(#akt-ava-l-ground)\"/><use href=\"#akt-ava-l-a\" fill=\"none\" stroke=\"url(#akt-ava-l-ground-a)\" stroke-width=\"50\" stroke-linejoin=\"round\"/><use href=\"#akt-ava-l-a\" fill=\"#FFFFFF\"/></g></g>",
|
|
45
|
+
dark: "<defs><linearGradient id=\"akt-ava-d-ground\" gradientUnits=\"userSpaceOnUse\" x1=\"0\" y1=\"100\" x2=\"0\" y2=\"924\"><stop offset=\"0\" stop-color=\"#7C5CFF\"/><stop offset=\"1\" stop-color=\"#5636D8\"/></linearGradient><linearGradient id=\"akt-ava-d-ground-a\" gradientUnits=\"userSpaceOnUse\" x1=\"0\" y1=\"870.2\" x2=\"0\" y2=\"-503.2\"><stop offset=\"0\" stop-color=\"#7C5CFF\"/><stop offset=\"1\" stop-color=\"#5636D8\"/></linearGradient><clipPath id=\"akt-ava-d-clip\"><path d=\"M285 100 H739 C841 100 924 183 924 285 V739 C924 841 841 924 739 924 H285 C183 924 100 841 100 739 V285 C100 183 183 100 285 100 Z\"/></clipPath><path id=\"akt-ava-d-a\" transform=\"matrix(0.6 0 0 -0.6 309.5 622.1)\" d=\"M318 -4Q245 -4 187.0 32.5Q129 69 95.5 131.5Q62 194 62 273Q62 352 98.5 415.0Q135 478 197.5 514.5Q260 551 338 551Q416 551 478.0 514.5Q540 478 576.5 415.0Q613 352 613 273H574Q574 194 540.5 131.5Q507 69 449.0 32.5Q391 -4 318 -4ZM338 86Q389 86 429.0 110.5Q469 135 492.0 177.5Q515 220 515 273Q515 327 492.0 369.5Q469 412 429.0 436.5Q389 461 338 461Q288 461 247.5 436.5Q207 412 183.5 369.5Q160 327 160 273Q160 220 183.5 177.5Q207 135 247.5 110.5Q288 86 338 86ZM562 -1Q540 -1 525.5 13.5Q511 28 511 50V203L530 309L613 273V50Q613 28 598.5 13.5Q584 -1 562 -1Z\"/></defs><g transform=\"scale(0.0291262) translate(-100 -100)\"><path d=\"M285 100 H739 C841 100 924 183 924 285 V739 C924 841 841 924 739 924 H285 C183 924 100 841 100 739 V285 C100 183 183 100 285 100 Z\" fill=\"url(#akt-ava-d-ground)\"/><g clip-path=\"url(#akt-ava-d-clip)\"><use href=\"#akt-ava-d-a\" y=\"360\" fill=\"#A68BFF\" opacity=\"0.35\"/><use href=\"#akt-ava-d-a\" y=\"300\" fill=\"#3FD0FF\" opacity=\"0.42\"/><use href=\"#akt-ava-d-a\" y=\"240\" fill=\"#4CD964\" opacity=\"0.52\"/><use href=\"#akt-ava-d-a\" y=\"180\" fill=\"#FFE14D\" opacity=\"0.62\"/><use href=\"#akt-ava-d-a\" y=\"120\" fill=\"#FF9F1C\" opacity=\"0.72\"/><use href=\"#akt-ava-d-a\" y=\"60\" fill=\"#FF5A5F\" opacity=\"0.82\"/><circle cx=\"513.2\" cy=\"458.0\" r=\"162.5\" fill=\"url(#akt-ava-d-ground)\"/><use href=\"#akt-ava-d-a\" fill=\"none\" stroke=\"url(#akt-ava-d-ground-a)\" stroke-width=\"50\" stroke-linejoin=\"round\"/><use href=\"#akt-ava-d-a\" fill=\"#FFFFFF\"/></g></g>",
|
|
46
|
+
},
|
|
47
|
+
// simien's icon on addis.gg (public/icons/simien.svg): the white diamond on its navy tile, both themes.
|
|
48
|
+
simien: {
|
|
49
|
+
light: "<g transform=\"scale(0.24)\"><rect x=\"0.5\" y=\"0.5\" width=\"99\" height=\"99\" rx=\"22\" fill=\"#14243A\"/><rect x=\"30\" y=\"30\" width=\"40\" height=\"40\" rx=\"4.8\" transform=\"rotate(45 50 50)\" fill=\"#FFFFFF\"/></g>",
|
|
50
|
+
dark: "<g transform=\"scale(0.24)\"><rect x=\"0.5\" y=\"0.5\" width=\"99\" height=\"99\" rx=\"22\" fill=\"#14243A\"/><rect x=\"30\" y=\"30\" width=\"40\" height=\"40\" rx=\"4.8\" transform=\"rotate(45 50 50)\" fill=\"#FFFFFF\"/></g>",
|
|
51
|
+
},
|
|
41
52
|
};
|
package/dist/tool/tools.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export type ToolId = 'rixse' | 'mirab' | 'woreda' | 'kebele' | 'gelada' | 'harar' | 'p8' | 'securecore' | 'gild';
|
|
1
|
+
export type ToolId = 'ava' | 'simien' | 'rixse' | 'mirab' | 'woreda' | 'kebele' | 'gelada' | 'harar' | 'p8' | 'securecore' | 'gild';
|
|
2
2
|
export type ToolInfo = {
|
|
3
3
|
id: ToolId;
|
|
4
4
|
/** Its site, without the scheme: `mirab.addis.gg`. */
|
|
@@ -9,6 +9,11 @@ export type ToolInfo = {
|
|
|
9
9
|
name?: string;
|
|
10
10
|
};
|
|
11
11
|
export declare const TOOLS: ToolInfo[];
|
|
12
|
+
/**
|
|
13
|
+
* The "More from Addis" card on every tool site, in this order: ava first, then the projects in
|
|
14
|
+
* addis.gg's order (Sami, 28 Nov). rixse, kebele and gelada left the list but keep their sites.
|
|
15
|
+
*/
|
|
16
|
+
export declare const FAMILY: ToolId[];
|
|
12
17
|
export declare function toolInfo(id: ToolId): ToolInfo;
|
|
13
18
|
/** A tool's name as every site shows it: its display name, else its id. */
|
|
14
19
|
export declare function toolName(id: ToolId): string;
|
package/dist/tool/tools.js
CHANGED
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
export const TOOLS = [
|
|
2
|
+
{ id: 'ava', domain: 'heyava.ca', short: 'Your assistant, on your computer.' },
|
|
3
|
+
{ id: 'simien', domain: 'simien.dev', short: 'Build your own models.' },
|
|
2
4
|
{ id: 'rixse', domain: 'rixse.addis.gg', short: 'The gateway. Agents ask, you decide.' },
|
|
3
5
|
{ id: 'mirab', domain: 'mirab.addis.gg', short: 'Agents in VMs on your own machine.' },
|
|
4
6
|
{ id: 'woreda', domain: 'woreda.addis.gg', short: 'Self-hosted GitHub Actions runners.' },
|
|
@@ -9,6 +11,11 @@ export const TOOLS = [
|
|
|
9
11
|
{ id: 'securecore', name: 'SecureCore', domain: 'securecore.addis.gg', short: 'Every WordPress plugin in its own sandbox.' },
|
|
10
12
|
{ id: 'gild', domain: 'gild.addis.gg', short: 'Channels where people and agents work together.' },
|
|
11
13
|
];
|
|
14
|
+
/**
|
|
15
|
+
* The "More from Addis" card on every tool site, in this order: ava first, then the projects in
|
|
16
|
+
* addis.gg's order (Sami, 28 Nov). rixse, kebele and gelada left the list but keep their sites.
|
|
17
|
+
*/
|
|
18
|
+
export const FAMILY = ['ava', 'p8', 'simien', 'mirab', 'woreda', 'gild', 'harar', 'securecore'];
|
|
12
19
|
export function toolInfo(id) {
|
|
13
20
|
const info = TOOLS.find((t) => t.id === id);
|
|
14
21
|
if (!info)
|
package/dist/tool.css
CHANGED
|
@@ -225,3 +225,10 @@
|
|
|
225
225
|
.akt[data-tool="gild"] :is(h1, h2, h3) { font-weight: 600; letter-spacing: -0.01em; font-variation-settings: "SOFT" 50; }
|
|
226
226
|
.akt[data-tool="gild"] .akt-brand { font-style: italic; font-variation-settings: "SOFT" 50; }
|
|
227
227
|
.akt[data-tool="gild"] .akt-hero h1 em { font-style: italic; color: var(--akt-ink); text-shadow: .025em .045em 0 var(--akt-gilt-1), .05em .09em 0 var(--akt-gilt-2), .075em .135em 0 var(--akt-gilt-3); }
|
|
228
|
+
/* ava and simien are named in "More from Addis"; their colours are their addis.gg cards'. */
|
|
229
|
+
.akt[data-tool="ava"] { --akt-reel: #120E22; --akt-reelline: #2A2440; --akt-reelhl: #251C4D; --akt-reelacc: #A68BFF; --akt-accent: #5636D8; --akt-btn: #5636D8; --akt-onbtn: #FFFFFF; --akt-dotoff: #BBBFC4; }
|
|
230
|
+
:root[data-theme="dark"] .akt[data-tool="ava"] { --akt-reel: #120E22; --akt-reelline: #2A2440; --akt-reelhl: #251C4D; --akt-reelacc: #A68BFF; --akt-ground: #14101F; --akt-card: #0E0B17; --akt-faint: #2E2842; --akt-dots: #241F35; --akt-accent: #A68BFF; --akt-btn: #A68BFF; --akt-onbtn: #14101F; --akt-dotoff: #463F5C; }
|
|
231
|
+
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .akt[data-tool="ava"] { --akt-reel: #120E22; --akt-reelline: #2A2440; --akt-reelhl: #251C4D; --akt-reelacc: #A68BFF; --akt-ground: #14101F; --akt-card: #0E0B17; --akt-faint: #2E2842; --akt-dots: #241F35; --akt-accent: #A68BFF; --akt-btn: #A68BFF; --akt-onbtn: #14101F; --akt-dotoff: #463F5C; } }
|
|
232
|
+
.akt[data-tool="simien"] { --akt-reel: #0E1520; --akt-reelline: #26303D; --akt-reelhl: #2A2024; --akt-reelacc: #FFB23F; --akt-accent: #C4511F; --akt-btn: #14243A; --akt-onbtn: #FFF4DC; --akt-dotoff: #BBBFC4; }
|
|
233
|
+
:root[data-theme="dark"] .akt[data-tool="simien"] { --akt-reel: #0E1520; --akt-reelline: #26303D; --akt-reelhl: #2A2024; --akt-reelacc: #FFB23F; --akt-ground: #101722; --akt-card: #0B1018; --akt-faint: #2A3240; --akt-dots: #212937; --akt-accent: #FFB23F; --akt-btn: #FFB23F; --akt-onbtn: #14243A; --akt-dotoff: #424B59; }
|
|
234
|
+
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .akt[data-tool="simien"] { --akt-reel: #0E1520; --akt-reelline: #26303D; --akt-reelhl: #2A2024; --akt-reelacc: #FFB23F; --akt-ground: #101722; --akt-card: #0B1018; --akt-faint: #2A3240; --akt-dots: #212937; --akt-accent: #FFB23F; --akt-btn: #FFB23F; --akt-onbtn: #14243A; --akt-dotoff: #424B59; } }
|
package/package.json
CHANGED