@profullstack/waitlist 0.14.0 → 0.15.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 +2 -1
- package/package.json +1 -1
- package/src/build.js +53 -3
- package/src/builder.js +117 -0
- package/src/community.js +1 -0
- package/src/plugins.js +1 -1
- package/src/waitlist.css +11 -1
package/README.md
CHANGED
|
@@ -120,7 +120,7 @@ The page reports one exposure a day; a signup is the conversion. Both go through
|
|
|
120
120
|
waitlist API, which holds the CrawlProof token. Stop the experiment with a winner in
|
|
121
121
|
CrawlProof and every page switches to it. Turn it off per site with `"ab": false`.
|
|
122
122
|
|
|
123
|
-
## Plugins (0.4; buyaday 0.6; book + promo 0.7; affiliate 0.9; paid referral terms 0.13; advisor 0.14)
|
|
123
|
+
## Plugins (0.4; buyaday 0.6; book + promo 0.7; affiliate 0.9; paid referral terms 0.13; advisor 0.14; builder 0.15)
|
|
124
124
|
|
|
125
125
|
Every page showcases all plugins by default. Pick per site in `sites.json`:
|
|
126
126
|
`"plugins": ["form", "board"]` keeps only those, `"plugins": { "faq": false }` drops some.
|
|
@@ -141,6 +141,7 @@ Every page showcases all plugins by default. Pick per site in `sites.json`:
|
|
|
141
141
|
| `promo` | "More from the network": sister properties from the live `@profullstack/cross-promo` catalog, tagged `utm_medium=waitlist`. `"promoAudience": "developers"` (or a list) overrides the audience picked from the hierarchy |
|
|
142
142
|
| `community` | A header bar with Search and a branded **Community** button to the name's own tsbb board (`https://bbs.<name>.pit.world`, sign in with pit.world / CoinPay OAuth 2.1, or `tsbb login <board> --with coinpay`). Linked only once the board answers over HTTPS, so new names gain it as their certificate lands. Writes `brand.json` (look, colours, light/dark, closest tsbb skin) that pit.world's board seed uses to match the site |
|
|
143
143
|
| `advisor` | An **Advisor** page (`advisor/`) that answers questions about the site's own topic from what the build holds: the pitch, the FAQ, the resources and the text search results. The visitor signs in with their own c0mpute account (OAuth 2.1 + PKCE, scope `inference`, through CoinPay or a passkey) and the page calls c0mpute's chat API with that key, billed to them: no server and no key on the site. Also writes `advisor/dataset.jsonl` (the same notes as a `c0mpute train lora` dataset), `context.json` and `prompt.txt`, and prints the CLI commands to ask or train from a terminal. Skipped when the build holds fewer than 3 documents. Settings: `advisor: { clientId, model }` (the page registers its own OAuth client on first sign-in when no `clientId` is given). Asking from the browser needs c0mpute to allow cross-origin calls to `/v1/chat/completions` (profullstack/c0mpute#718) |
|
|
144
|
+
| `builder` | A **Build** page (`builder/`) so the people waiting can help build the app: start or clone its repo on c0mpute git (public repos are kept by the network and free to clone), design the schema on dbml.db and create a live Postgres with `c0mpute db create`, prototype features with feature.agent (linked with `?ref=<host>`), and take ideas to the name's board. Plain HTML, no script, no server. Settings: `builder: { repo: "c0mpute://<owner key>/<repo>", schema: "https://..." }`; without `repo` the page shows how to start one |
|
|
144
145
|
| (search, resources) | Every search item and resource carries pit.world's result tools from `https://pit.world/widgets.js`: vote, Summarize, Listen and Share. They work without an account; on a pit.world host, "Sign in with CoinPay" (OAuth 2.1 + PKCE through pit.world) raises the limits. From a terminal the same account is `pit login` |
|
|
145
146
|
| `affiliate` | Referrals (0.9). Every signup gets a personal link `https://<site>/?ref=<code>`, shown right after joining by `<pf-referral-share>` ("You are #X of Y, N people referred.", copy button, plain X/Bluesky/LinkedIn/email links) and in the confirmation email with a signed status page. A visitor who arrives with `?ref=` keeps a 30-day first-party, first-touch cookie `wl_ref`; their signup credits the referrer once they confirm. Each confirmed referral moves the referrer up `bumpPlaces`. A "Move up the list" section bakes `<pf-referral-leaderboard>` (handles or masked emails only). With `buyaday` on, a door sold to a referred visitor credits the referrer too (holi.days `ref=<code>.<site>`), and since 0.13 the page states the paid terms: the referrer earns `commissionPct` of what that visitor pays and the visitor gets `discountPct` off. See below |
|
|
146
147
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@profullstack/waitlist",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.15.0",
|
|
4
4
|
"description": "Email waitlist for any launch page: a <waitlist-form> web component, a live signup chart, and a static-site builder on @profullstack/css + @profullstack/charts.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|
package/src/build.js
CHANGED
|
@@ -5,6 +5,7 @@
|
|
|
5
5
|
import { mkdir, writeFile, copyFile, readFile, readdir } from 'node:fs/promises';
|
|
6
6
|
import { pluginSet, keywordsFor, runPlugins, baseSlot, affiliateConfig } from './plugins.js';
|
|
7
7
|
import { ADVISOR_PATH, advisorCardHtml, advisorContextJson, advisorCorpus, advisorConfig, advisorDataset, advisorMeta, advisorPageHtml } from './advisor.js';
|
|
8
|
+
import { BUILDER_PATH, builderCardHtml, builderConfig, builderMeta, builderPageHtml } from './builder.js';
|
|
8
9
|
import { boardLive, boardUrl, brandJson, navHtml } from './community.js';
|
|
9
10
|
import {
|
|
10
11
|
TABS, SORTS, tabPath, searchPageHtml, searchPageMeta, searchJson, searchLlms, manifestJson,
|
|
@@ -135,6 +136,7 @@ export function normalize(spec) {
|
|
|
135
136
|
promoAudience: spec.promoAudience || null,
|
|
136
137
|
booking: spec.booking && typeof spec.booking === 'object' ? spec.booking : null,
|
|
137
138
|
advisor: spec.advisor && typeof spec.advisor === 'object' ? spec.advisor : null,
|
|
139
|
+
builder: builderConfig(spec.builder, name),
|
|
138
140
|
indexnowKey: spec.indexnowKey || indexNowKey(name),
|
|
139
141
|
updated: spec.updated || new Date().toISOString().slice(0, 10),
|
|
140
142
|
};
|
|
@@ -153,6 +155,40 @@ export function normalize(spec) {
|
|
|
153
155
|
return s;
|
|
154
156
|
}
|
|
155
157
|
|
|
158
|
+
/**
|
|
159
|
+
* Everything under <main>: the site's own links and small print, then the
|
|
160
|
+
* network footers, on one band in the look's surface colour so the text never
|
|
161
|
+
* sits straight on a patterned page background (geocities stars, matrix rain).
|
|
162
|
+
*
|
|
163
|
+
* The site's block is a <div>, not a <footer>: @profullstack/footer hides every
|
|
164
|
+
* other <footer> on a page it is on, which used to hide these links.
|
|
165
|
+
*
|
|
166
|
+
* "Also at <native name>" only helps on an address other than the native one.
|
|
167
|
+
* The pit.world relay rewrites Moshpit links to its own host, which turned the
|
|
168
|
+
* sentence into a link to the page you are on; the script hides it then.
|
|
169
|
+
*/
|
|
170
|
+
export function footZoneHtml(s, footers = '') {
|
|
171
|
+
const links = [
|
|
172
|
+
`<a href="./">${esc(s.title)}</a>`,
|
|
173
|
+
s.searchLive ? '<a href="search/">Search</a>' : '',
|
|
174
|
+
s.advisorLive ? '<a href="advisor/">Advisor</a>' : '',
|
|
175
|
+
s.builderLive ? '<a href="builder/">Build</a>' : '',
|
|
176
|
+
'<a href="llms.txt">llms.txt</a>',
|
|
177
|
+
s.moshpit ? '<a href="https://pit.world/directory">pit.world directory</a>' : '',
|
|
178
|
+
].filter(Boolean);
|
|
179
|
+
const native = s.moshpit && s.nativeUrl !== s.url
|
|
180
|
+
? ` <span data-wl-native>Also at <a href="${esc(s.nativeUrl)}">${esc(s.nativeUrl.replace(/\/$/, ''))}</a> on the Moshpit.</span>`
|
|
181
|
+
: '';
|
|
182
|
+
return `<div class="waitlist-footers">
|
|
183
|
+
<div class="waitlist-foot container">
|
|
184
|
+
<p class="waitlist-foot-links">${links.join('<span aria-hidden="true"> · </span>')}</p>
|
|
185
|
+
<p class="waitlist-meta">One email when it opens, nothing else. Hosted on <a href="https://c0mpute.com/hosting">c0mpute</a>.${native}</p>
|
|
186
|
+
</div>
|
|
187
|
+
${footers}
|
|
188
|
+
</div>
|
|
189
|
+
${native ? '<script>document.querySelectorAll("[data-wl-native]").forEach(function(n){var a=n.querySelector("a");if(a&&a.host===location.host)n.hidden=true})</script>' : ''}`;
|
|
190
|
+
}
|
|
191
|
+
|
|
156
192
|
/**
|
|
157
193
|
* The page shell every page shares: look, A/B script, stylesheets, marquee,
|
|
158
194
|
* footers, scripts and the crawlproof tag. `head` is the page's own SEO head;
|
|
@@ -177,10 +213,8 @@ ${slot.head.join('\n')}
|
|
|
177
213
|
${navHtml(s, { community: s.community ?? null, esc })}
|
|
178
214
|
<main class="container">
|
|
179
215
|
${main}
|
|
180
|
-
<p class="waitlist-meta">${s.moshpit ? `Also at <a href="${esc(s.nativeUrl)}">${esc(s.nativeUrl.replace(/\/$/, ''))}</a> on the Moshpit. ` : ''}One email when it opens, nothing else. Hosted on <a href="https://c0mpute.com/hosting">c0mpute</a>.</p>
|
|
181
216
|
</main>
|
|
182
|
-
|
|
183
|
-
${footers}
|
|
217
|
+
${footZoneHtml(s, footers)}
|
|
184
218
|
<script src="assets/charts.global.js"></script>
|
|
185
219
|
<script type="module" src="assets/waitlist.js"></script>
|
|
186
220
|
${slot.scripts.join('\n')}
|
|
@@ -275,6 +309,8 @@ export async function buildSite(spec, out, { footers = true, images = true, fetc
|
|
|
275
309
|
await copyFile(join(here, 'advisor-client.js'), join(out, 'assets', 'advisor.js'));
|
|
276
310
|
slot.cards.push(advisorCardHtml(s, corpus));
|
|
277
311
|
}
|
|
312
|
+
s.builderLive = s.plugins.has('builder');
|
|
313
|
+
if (s.builderLive) slot.cards.push(builderCardHtml(s));
|
|
278
314
|
// community: the name's own board, linked once it answers over HTTPS; brand.json for its look.
|
|
279
315
|
if (s.plugins.has('community')) {
|
|
280
316
|
s.community = (await boardLive(boardUrl(s), { fetchImpl })) ? boardUrl(s) : null;
|
|
@@ -287,6 +323,7 @@ export async function buildSite(spec, out, { footers = true, images = true, fetc
|
|
|
287
323
|
await writeFile(join(out, '404.html'), withAssetVersion(pageHtml(s, { footers: foot, noindex: true, slot }), ver));
|
|
288
324
|
const pages = s.searchLive ? await writeSearch(s, search, out, { footers: foot, slot, ver, images }) : [];
|
|
289
325
|
if (s.advisorLive) pages.push(await writeAdvisor(s, corpus, out, { footers: foot, slot, ver }));
|
|
326
|
+
if (s.builderLive) pages.push(await writeBuilder(s, out, { footers: foot, slot, ver }));
|
|
290
327
|
s.extraUrls = pages.map((p) => p.url);
|
|
291
328
|
await writeFile(join(out, 'site.webmanifest'), manifestJson(s, s.searchLive ? search : null));
|
|
292
329
|
await writeFile(join(out, 'opensearch.xml'), openSearchXml(s));
|
|
@@ -328,6 +365,19 @@ async function writeSearch(s, search, out, { footers, slot, ver, images }) {
|
|
|
328
365
|
return pages;
|
|
329
366
|
}
|
|
330
367
|
|
|
368
|
+
/** Write the Build page. Returns the sitemap entry. */
|
|
369
|
+
async function writeBuilder(s, out, { footers, slot, ver }) {
|
|
370
|
+
const dir = join(out, BUILDER_PATH);
|
|
371
|
+
await mkdir(dir, { recursive: true });
|
|
372
|
+
const pageSlot = { ...slot, cards: [], sections: [] };
|
|
373
|
+
const { html } = builderPageHtml(s, {
|
|
374
|
+
rebase,
|
|
375
|
+
chrome: ({ head, body, spec }) => withAssetVersion(shellHtml(spec, { head, main: `${body}\n<section class="card stack" aria-label="Waitlist"><h2>Get ${esc(s.title)} when it opens</h2>${slot.hero.join('\n')}</section>`, footers, slot: pageSlot }), ver),
|
|
376
|
+
});
|
|
377
|
+
await writeFile(join(dir, 'index.html'), html);
|
|
378
|
+
return { url: builderMeta(s).url, lastmod: s.updated, changefreq: 'weekly' };
|
|
379
|
+
}
|
|
380
|
+
|
|
331
381
|
/** Below this many documents an advisor would only be guessing. */
|
|
332
382
|
export const ADVISOR_MIN_DOCS = 3;
|
|
333
383
|
|
package/src/builder.js
ADDED
|
@@ -0,0 +1,117 @@
|
|
|
1
|
+
// The `builder` plugin: a Build page on every site, so the people waiting for
|
|
2
|
+
// a name can help build it instead of only waiting.
|
|
3
|
+
//
|
|
4
|
+
// It is a hub over things that already run on the network, each with the
|
|
5
|
+
// exact command or link to start:
|
|
6
|
+
// code c0mpute git (repos the network keeps; public ones are free to clone)
|
|
7
|
+
// data dbml.db for the schema, `c0mpute db` for a live Postgres
|
|
8
|
+
// features feature.agent, which builds features for a site from the browser
|
|
9
|
+
// ideas the name's own board, when it is live
|
|
10
|
+
//
|
|
11
|
+
// Sign-in is the visitor's own c0mpute account (CoinPay or a passkey), in the
|
|
12
|
+
// CLI (`c0mpute login`) and on the Advisor page. This page has no server.
|
|
13
|
+
import { esc, headTags, clip } from './seo.js';
|
|
14
|
+
|
|
15
|
+
export const BUILDER_PATH = 'builder/';
|
|
16
|
+
export const FEATURE_AGENT = 'https://feature.agent.pit.world';
|
|
17
|
+
export const DBML_DB = 'https://dbml.db.pit.world';
|
|
18
|
+
export const C0MPUTE = 'https://c0mpute.com';
|
|
19
|
+
|
|
20
|
+
/** A repo name c0mpute git accepts: 1-59 of a-z, 0-9 and '-'. */
|
|
21
|
+
export function repoSlug(name) {
|
|
22
|
+
return String(name ?? '').toLowerCase().replace(/[^a-z0-9]+/g, '-').replace(/^-+|-+$/g, '').slice(0, 59) || 'site';
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
/**
|
|
26
|
+
* `builder` in sites.json:
|
|
27
|
+
* "builder": { "repo": "c0mpute://<64 hex owner key>/<repo>", "schema": "https://dbml.db.pit.world/..." }
|
|
28
|
+
* Both optional. Without `repo` the page shows how to start one; a value that
|
|
29
|
+
* is not a c0mpute repo URL is ignored rather than printed into a command.
|
|
30
|
+
*/
|
|
31
|
+
export function builderConfig(raw, name) {
|
|
32
|
+
const r = raw && typeof raw === 'object' ? raw : {};
|
|
33
|
+
const m = /^c0mpute:\/\/([0-9a-f]{64})\/([a-z0-9-]{1,59})$/.exec(String(r.repo ?? ''));
|
|
34
|
+
let schema = null;
|
|
35
|
+
try {
|
|
36
|
+
const u = new URL(String(r.schema ?? ''));
|
|
37
|
+
if (u.protocol === 'https:') schema = u.href;
|
|
38
|
+
} catch {}
|
|
39
|
+
return {
|
|
40
|
+
slug: repoSlug(name),
|
|
41
|
+
repo: m ? { url: m[0], owner: m[1], name: m[2], https: `https://gateway.c0mpute.com/git/${m[1]}/${m[2]}.git` } : null,
|
|
42
|
+
schema,
|
|
43
|
+
};
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
/** The shell commands the page prints. */
|
|
47
|
+
export function builderCommands(s) {
|
|
48
|
+
const b = s.builder;
|
|
49
|
+
return {
|
|
50
|
+
install: ['curl -fsSL https://c0mpute.com/install.sh | sh', 'c0mpute login'],
|
|
51
|
+
code: b.repo
|
|
52
|
+
? [`git clone ${b.repo.https}`, `# or, with the c0mpute helper:`, `c0mpute git clone ${b.repo.url}`]
|
|
53
|
+
: ['c0mpute git install-helper', `mkdir ${b.slug} && cd ${b.slug} && git init`, `c0mpute git init ${b.slug} --public`, 'git push origin main', 'c0mpute git url # the clone URL to share'],
|
|
54
|
+
data: [`c0mpute db create ${b.slug}`],
|
|
55
|
+
};
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
export function builderMeta(s) {
|
|
59
|
+
return {
|
|
60
|
+
url: `${s.url}${BUILDER_PATH}`,
|
|
61
|
+
seoTitle: clip(`Build ${s.title} with us`, 60),
|
|
62
|
+
description: clip(`${s.title} is being built in the open. Get the code, the schema and the tools to add a feature yourself, on the c0mpute network.`, 158),
|
|
63
|
+
h1: `Build ${s.title} with us`,
|
|
64
|
+
};
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
/** The home page card that links to the Build page. */
|
|
68
|
+
export function builderCardHtml(s) {
|
|
69
|
+
return `<section class="card stack" aria-labelledby="builder-card"><h2 id="builder-card">Help build it</h2>
|
|
70
|
+
<p>${esc(s.title)} is not open yet. The code, the schema and the tools to add a feature are.</p>
|
|
71
|
+
<p><a class="button" href="${BUILDER_PATH}">Start building</a></p></section>`;
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
const pre = (lines) => `<pre><code>${esc(lines.join('\n'))}</code></pre>`;
|
|
75
|
+
|
|
76
|
+
/**
|
|
77
|
+
* The Build page. `chrome({ head, body, spec })` renders the shared shell.
|
|
78
|
+
* Plain HTML: every step is a link or a command, so it works with no script.
|
|
79
|
+
*/
|
|
80
|
+
export function builderPageHtml(s, { chrome, rebase }) {
|
|
81
|
+
const m = builderMeta(s);
|
|
82
|
+
const ps = { ...s, url: m.url, seoTitle: m.seoTitle, description: m.description };
|
|
83
|
+
const b = s.builder;
|
|
84
|
+
const cmd = builderCommands(s);
|
|
85
|
+
const ref = encodeURIComponent(s.host);
|
|
86
|
+
const body = `<header class="waitlist-hero stack" data-space="md">
|
|
87
|
+
<p class="waitlist-kicker"><a href="../">← ${esc(s.title)}</a> <span class="badge">Build</span></p>
|
|
88
|
+
<h1>${esc(m.h1)}</h1>
|
|
89
|
+
<p class="waitlist-answer">${esc(s.title)} is not open yet, and it does not have to be built behind a door. Everything below runs on the <a href="${C0MPUTE}">c0mpute</a> network: take the code, shape the data, or add a feature from your browser.</p>
|
|
90
|
+
</header>
|
|
91
|
+
<div class="grid" data-columns="2">
|
|
92
|
+
<section class="card stack" aria-labelledby="build-code"><h2 id="build-code">1. Code</h2>
|
|
93
|
+
<p>${b.repo ? `The ${esc(s.title)} repo is public and kept by the network. Clone it:` : `There is no shared ${esc(s.title)} repo yet. Start one: public repos are kept by the network and free to clone.`}</p>
|
|
94
|
+
${pre(cmd.code)}
|
|
95
|
+
<p class="muted">Repos are signed by your key and kept in three copies. Private repos are end-to-end encrypted.</p>
|
|
96
|
+
</section>
|
|
97
|
+
<section class="card stack" aria-labelledby="build-data"><h2 id="build-data">2. Data</h2>
|
|
98
|
+
<p>Design the schema in DBML, review it, then turn it into a live Postgres on the network.</p>
|
|
99
|
+
<p><a class="button" href="${esc(b.schema || DBML_DB)}" rel="noopener">${b.schema ? `Open the ${esc(s.title)} schema` : 'Open dbml.db'}</a></p>
|
|
100
|
+
${pre(cmd.data)}
|
|
101
|
+
</section>
|
|
102
|
+
<section class="card stack" aria-labelledby="build-features"><h2 id="build-features">3. Features</h2>
|
|
103
|
+
<p><a href="${FEATURE_AGENT}/?ref=${ref}" rel="noopener">feature.agent</a> builds a feature for any site from a description and runs it in your browser. Use it to prototype what ${esc(s.title)} should do, on the sites you already use.</p>
|
|
104
|
+
<p><a class="button" href="${FEATURE_AGENT}/?ref=${ref}" rel="noopener">Try feature.agent</a></p>
|
|
105
|
+
<p class="muted">30-day trial, no card. Then a few builds a day free, or Pro.</p>
|
|
106
|
+
</section>
|
|
107
|
+
<section class="card stack" aria-labelledby="build-ideas"><h2 id="build-ideas">4. Ideas</h2>
|
|
108
|
+
<p>Say what you want built, or pick up what someone else asked for.</p>
|
|
109
|
+
<p>${s.community ? `<a class="button" href="${esc(s.community)}" rel="noopener">Open the ${esc(s.title)} board</a>` : `<a class="button" href="../">Join the discussion on the home page</a>`}${s.advisorLive ? ` <a href="../advisor/">Ask the advisor</a>` : ''}</p>
|
|
110
|
+
</section>
|
|
111
|
+
</div>
|
|
112
|
+
<section class="stack builder-section" aria-labelledby="build-start"><h2 id="build-start">Set up once</h2>
|
|
113
|
+
<p>One sign-in covers all of it: your c0mpute account, through CoinPay or a passkey.</p>
|
|
114
|
+
${pre(cmd.install)}
|
|
115
|
+
</section>`;
|
|
116
|
+
return { html: rebase(chrome({ head: headTags(ps), body, spec: ps }), '../'), path: 'builder', meta: m };
|
|
117
|
+
}
|
package/src/community.js
CHANGED
|
@@ -79,6 +79,7 @@ export function navHtml(s, { community = null, esc }) {
|
|
|
79
79
|
const links = [
|
|
80
80
|
s.searchLive ? `<a href="search/">Search</a>` : '',
|
|
81
81
|
s.advisorLive ? `<a href="advisor/">Advisor</a>` : '',
|
|
82
|
+
s.builderLive ? `<a href="builder/">Build</a>` : '',
|
|
82
83
|
community ? `<a class="waitlist-community" href="${esc(community)}" rel="noopener">Community</a>` : '',
|
|
83
84
|
].filter(Boolean);
|
|
84
85
|
if (!links.length) return '';
|
package/src/plugins.js
CHANGED
|
@@ -25,7 +25,7 @@ import { fetchSearch, searchCardHtml } from './search.js';
|
|
|
25
25
|
|
|
26
26
|
const require = createRequire(import.meta.url);
|
|
27
27
|
|
|
28
|
-
export const PLUGINS = ['form', 'stats', 'ab', 'faq', 'search', 'resources', 'board', 'share', 'feed', 'buyaday', 'book', 'promo', 'affiliate', 'community', 'advisor'];
|
|
28
|
+
export const PLUGINS = ['form', 'stats', 'ab', 'faq', 'search', 'resources', 'board', 'share', 'feed', 'buyaday', 'book', 'promo', 'affiliate', 'community', 'advisor', 'builder'];
|
|
29
29
|
|
|
30
30
|
/** Resolve a site's `plugins` setting to a Set (default: all of them). */
|
|
31
31
|
export function pluginSet(setting) {
|
package/src/waitlist.css
CHANGED
|
@@ -10,6 +10,15 @@
|
|
|
10
10
|
.waitlist-points li { margin-block: 0.35rem; }
|
|
11
11
|
.waitlist-stats [data-empty] { color: var(--pf-color-muted, inherit); margin: 0; }
|
|
12
12
|
.waitlist-meta { font-size: 0.9rem; color: var(--pf-color-muted, inherit); }
|
|
13
|
+
/* The footer band: the site's links and small print, then the network footers, on the
|
|
14
|
+
look's surface so they read on any page background. Everything inside inherits its ink. */
|
|
15
|
+
.waitlist-footers { margin-block-start: 3rem; padding-block: 1.75rem 2rem; background: var(--pf-color-surface, Canvas); color: var(--pf-color-ink, CanvasText); border-block-start: 2px solid var(--pf-color-border, currentColor); text-align: center; }
|
|
16
|
+
.waitlist-foot { display: grid; gap: 0.4rem; justify-items: center; margin-block-end: 1.5rem; }
|
|
17
|
+
.waitlist-foot p { margin: 0; max-width: 46rem; }
|
|
18
|
+
.waitlist-foot-links { font-family: var(--pf-font-mono, ui-monospace, monospace); font-size: 0.85rem; letter-spacing: 0.04em; }
|
|
19
|
+
.waitlist-footers .waitlist-meta { color: color-mix(in srgb, currentColor 78%, transparent); }
|
|
20
|
+
.waitlist-footers .pfs-footer { border-block-start-color: color-mix(in srgb, currentColor 22%, transparent); padding-block-start: 1.25rem; }
|
|
21
|
+
.waitlist-footers a { text-underline-offset: 0.18em; }
|
|
13
22
|
.waitlist-answer { max-width: 40rem; margin: 0; }
|
|
14
23
|
.waitlist-faq { margin-block: 1.5rem; }
|
|
15
24
|
.waitlist-faq details { border-block-start: 1px solid var(--pf-color-border, currentColor); padding-block: 0.6rem; }
|
|
@@ -58,7 +67,8 @@
|
|
|
58
67
|
|
|
59
68
|
/* advisor plugin: the question box on advisor/ (src/advisor-client.js). */
|
|
60
69
|
site-advisor { display: block; }
|
|
61
|
-
.advisor-section { margin-block-start: 2rem; }
|
|
70
|
+
.advisor-section, .builder-section { margin-block-start: 2rem; }
|
|
71
|
+
.builder-section pre, .card pre { overflow-x: auto; }
|
|
62
72
|
.advisor-section pre { overflow-x: auto; }
|
|
63
73
|
.advisor-turn { padding-block: 0.6rem; border-block-end: 1px solid color-mix(in srgb, currentColor 18%, transparent); }
|
|
64
74
|
.advisor-who { margin: 0 0 0.2rem; font-size: 0.8em; }
|