@openelement/create 1.0.0-alpha.12 → 1.0.0-alpha.14
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 +16 -13
- package/package.json +1 -1
- package/src/cli.js +10 -1
- package/src/template-builder.js +3 -1
- package/src/version.js +1 -1
- package/templates/README.tmpl +73 -33
- package/templates/app/components/badges.css +24 -5
- package/templates/app/components/page-404.css +21 -7
- package/templates/app/components/page-404.tsx.tmpl +16 -35
- package/templates/app/components/page-about.css +72 -15
- package/templates/app/components/page-about.tsx.tmpl +62 -78
- package/templates/app/components/page-home.css +135 -23
- package/templates/app/components/page-home.tsx.tmpl +87 -103
- package/templates/app/components/site-chrome.css +68 -15
- package/templates/app/head.tsx.tmpl +8 -4
- package/templates/app/islands/app-shell.tsx.tmpl +54 -0
- package/templates/app/islands/live-timer.css +21 -7
- package/templates/app/islands/live-timer.tsx.tmpl +9 -9
- package/templates/app/islands/my-counter.css +32 -11
- package/templates/app/islands/my-counter.tsx.tmpl +13 -9
- package/templates/app/routes/404.tsx.tmpl +10 -6
- package/templates/app/routes/about.tsx.tmpl +4 -4
- package/templates/app/routes/api/ping.ts.tmpl +2 -2
- package/templates/app/routes/index.tsx.tmpl +4 -4
- package/templates/app/styles/theme.css +2 -2
- package/templates/openelement.config.ts.tmpl +8 -8
- package/templates/package.json.tmpl +17 -17
- package/templates/pnpm-workspace.yaml.tmpl +29 -0
- package/templates/vite.config.ts.tmpl +12 -3
package/README.md
CHANGED
|
@@ -12,9 +12,9 @@ Docs and guides: <https://openelement.org>.
|
|
|
12
12
|
|
|
13
13
|
`@openelement/create` generates a new openElement project from ONE template —
|
|
14
14
|
the showcase starter: a static-first landing page with two islands, a fully
|
|
15
|
-
static About page, an `/api/ping` server route, and a
|
|
16
|
-
sheet (
|
|
17
|
-
Node/pnpm project.
|
|
15
|
+
static About page, an `/api/ping` server route, and a Tailwind-ON design-token
|
|
16
|
+
sheet (the `@theme` role table; one template, no variants). The generated
|
|
17
|
+
project is a plain Node/pnpm project.
|
|
18
18
|
|
|
19
19
|
## Usage (1.0 Alpha)
|
|
20
20
|
|
|
@@ -45,18 +45,19 @@ npx @openelement/create my-app --no-install --no-git -t showcase
|
|
|
45
45
|
resolves to `@scope/create` at the scope's default dist-tag — with no tag in
|
|
46
46
|
the command, that is `latest`, which the 1.0 line rides — so the canonical
|
|
47
47
|
spelling names no tag, and npm runs this package's generator. The version a
|
|
48
|
-
versionless install resolves is
|
|
49
|
-
`
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
48
|
+
versionless install resolves is registry truth: read it from the live registry
|
|
49
|
+
(`npm view @openelement/create dist-tags`), and from the framework's tracked
|
|
50
|
+
release-state manifest, which records the version each dist-tag was last
|
|
51
|
+
verified to serve. The 1.0 line is a new baseline — not a 0.x upgrade, with no
|
|
52
|
+
migration path from 0.x. Pin an exact version when reproducibility matters:
|
|
53
53
|
|
|
54
54
|
```bash
|
|
55
|
-
npm create @openelement@1.0.0-alpha.
|
|
55
|
+
npm create @openelement@1.0.0-alpha.13 my-app
|
|
56
56
|
```
|
|
57
57
|
|
|
58
|
-
The generated starter
|
|
59
|
-
from
|
|
58
|
+
The generated starter depends on `@openelement/*` through caret ranges over
|
|
59
|
+
the release it was generated from, so `pnpm update` picks up later `1.0.0`
|
|
60
|
+
prereleases without a manifest edit.
|
|
60
61
|
|
|
61
62
|
The canonical install command is exported from `@openelement/create/install-command` (one builder, every documented copy derives from it).
|
|
62
63
|
|
|
@@ -99,8 +100,10 @@ npm create @openelement@0.43 my-app
|
|
|
99
100
|
|
|
100
101
|
## What It Creates
|
|
101
102
|
|
|
102
|
-
- `package.json` - starter dependencies (
|
|
103
|
-
|
|
103
|
+
- `package.json` - starter dependencies (`@openelement/*` with caret ranges
|
|
104
|
+
over the generated-from release)
|
|
105
|
+
and the lifecycle scripts (`dev`/`check`/`test`/`build`/`start`; `build` and
|
|
106
|
+
`start` run the `openelement` bin from `@openelement/router`)
|
|
104
107
|
- `tsconfig.json` - the type-check surface for `pnpm check`: JSX authoring
|
|
105
108
|
through the element import source, whole-`app/` coverage
|
|
106
109
|
- `vite.config.ts` - Vite build configuration only; framework options still
|
package/package.json
CHANGED
package/src/cli.js
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
+
import { CREATE_VERSION } from "./version.js";
|
|
2
3
|
import { buildTemplates, resolveVersions, validateProjectName } from "./template-builder.js";
|
|
3
4
|
import { createInstallCommand } from "./install-command.js";
|
|
4
5
|
import { detectPackageManager } from "./pm.js";
|
|
@@ -173,11 +174,19 @@ function initGitRepository(targetDir, relativeTarget) {
|
|
|
173
174
|
}
|
|
174
175
|
console.info(" initialized git repository (with .gitignore)");
|
|
175
176
|
}
|
|
176
|
-
/**
|
|
177
|
+
/**
|
|
178
|
+
* The boxed end-of-run handoff: where to go, what to run, where to read, and
|
|
179
|
+
* which generator version produced the scaffold. The version line is load
|
|
180
|
+
* bearing: a cached `npm exec` / `npx` run resolves whatever copy it first
|
|
181
|
+
* downloaded, so the box is the one place a stale generator announces itself
|
|
182
|
+
* (#1634). The framework's packed-starter qualification asserts the line on
|
|
183
|
+
* the packed artifact.
|
|
184
|
+
*/
|
|
177
185
|
function printHandoff(relativeTarget, pm, startRequested) {
|
|
178
186
|
const devCommand = pm ? `${pm} run dev` : "pnpm run dev";
|
|
179
187
|
const lines = [
|
|
180
188
|
"openElement project ready",
|
|
189
|
+
`(@openelement/create ${CREATE_VERSION})`,
|
|
181
190
|
"",
|
|
182
191
|
`cd ${relativeTarget}`,
|
|
183
192
|
`${devCommand} # start the dev server`,
|
package/src/template-builder.js
CHANGED
|
@@ -40,6 +40,7 @@ const TEMPLATE_FILES = [
|
|
|
40
40
|
["package.json.tmpl", "package.json"],
|
|
41
41
|
["tsconfig.json.tmpl", "tsconfig.json"],
|
|
42
42
|
["vite.config.ts.tmpl", "vite.config.ts"],
|
|
43
|
+
["pnpm-workspace.yaml.tmpl", "pnpm-workspace.yaml"],
|
|
43
44
|
["openelement.config.ts.tmpl", "openelement.config.ts"],
|
|
44
45
|
["app/styles/theme.css", "app/styles/theme.css"],
|
|
45
46
|
["app/styles/recipes.css", "app/styles/recipes.css"],
|
|
@@ -59,7 +60,8 @@ const TEMPLATE_FILES = [
|
|
|
59
60
|
["app/islands/my-counter.tsx.tmpl", "app/islands/my-counter.tsx"],
|
|
60
61
|
["app/islands/my-counter.css", "app/islands/my-counter.css"],
|
|
61
62
|
["app/islands/live-timer.tsx.tmpl", "app/islands/live-timer.tsx"],
|
|
62
|
-
["app/islands/live-timer.css", "app/islands/live-timer.css"]
|
|
63
|
+
["app/islands/live-timer.css", "app/islands/live-timer.css"],
|
|
64
|
+
["app/islands/app-shell.tsx.tmpl", "app/islands/app-shell.tsx"]
|
|
63
65
|
];
|
|
64
66
|
function versionTokens(v) {
|
|
65
67
|
return {
|
package/src/version.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
//#region src/version.ts
|
|
2
2
|
/** The published CLI version, embedded so packed npm installs are self-contained. */
|
|
3
|
-
const CREATE_VERSION = "1.0.0-alpha.
|
|
3
|
+
const CREATE_VERSION = "1.0.0-alpha.14";
|
|
4
4
|
/**
|
|
5
5
|
* The Vite release pinned into the generated starter's package.json (the
|
|
6
6
|
* `${v.vite}` scaffold token in the npm/pnpm starter). Embedded for the same
|
package/templates/README.tmpl
CHANGED
|
@@ -15,19 +15,20 @@ root holds the build's internal state (head-convention bookkeeping and build
|
|
|
15
15
|
plans). `pnpm dev` and `pnpm build` write it as needed; the `.gitignore`
|
|
16
16
|
excludes it and deleting it is safe — the next run recreates it.
|
|
17
17
|
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
18
|
+
The `@openelement/element` and `@openelement/router` dependencies carry caret
|
|
19
|
+
ranges over the `1.0.0` release this starter was generated from, so
|
|
20
|
+
`pnpm update` picks up later `1.0.0` prereleases (and the final `1.0.0`)
|
|
21
|
+
without editing this file.
|
|
21
22
|
|
|
22
23
|
## The JS cost map
|
|
23
24
|
|
|
24
|
-
| Surface
|
|
25
|
-
|
|
|
26
|
-
| `/` hero + architecture sections
|
|
27
|
-
| `/` counter island (`my-counter`)
|
|
28
|
-
| `/` live timer island (`live-timer`) | yes, client-only
|
|
29
|
-
| `/about`
|
|
30
|
-
| `/api/ping`
|
|
25
|
+
| Surface | Ships JavaScript? | Why |
|
|
26
|
+
| ------------------------------------ | --------------------- | ------------------------------------- |
|
|
27
|
+
| `/` hero + architecture sections | no | prerendered markup, styled with CSS |
|
|
28
|
+
| `/` counter island (`my-counter`) | yes, hydrates on idle | the one interactive piece |
|
|
29
|
+
| `/` live timer island (`live-timer`) | yes, client-only | a live clock has nothing to prerender |
|
|
30
|
+
| `/about` | no islands at all | fully static SSG output |
|
|
31
|
+
| `/api/ping` | no (server) | a plain `Request → Response` handler |
|
|
31
32
|
|
|
32
33
|
The badge classes (`badge-static`, `badge-island`) live in
|
|
33
34
|
`app/components/badges.css` — copy them onto new sections and keep the
|
|
@@ -47,12 +48,13 @@ Framework options have exactly one home: `openelement.config.ts`. It is
|
|
|
47
48
|
optional and nearly empty — every option it omits comes from a file
|
|
48
49
|
convention:
|
|
49
50
|
|
|
50
|
-
| Option
|
|
51
|
-
|
|
|
52
|
-
| design tokens
|
|
53
|
-
|
|
|
54
|
-
|
|
|
55
|
-
|
|
|
51
|
+
| Option | Convention |
|
|
52
|
+
| --------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
|
53
|
+
| design tokens | `app/styles/theme.css` (the @theme role sheet) |
|
|
54
|
+
| app shell | `app/islands/app-shell.tsx` (the shared site chrome every page renders inside) |
|
|
55
|
+
| document head content | `app/head.tsx` (meta tags, preloads, inline CSS) |
|
|
56
|
+
| site title | the `name` field of `package.json` |
|
|
57
|
+
| static-shape recipes | `app/styles/recipes.css` (zero-interaction badge/callout/card/tabs shapes as plain HTML+CSS — the @openelement/ui components retired to these recipes in #1557) |
|
|
56
58
|
|
|
57
59
|
Passing framework options inline to `openElement()` while the config file
|
|
58
60
|
carries options is a hard error, and an unknown key fails the build with the
|
|
@@ -67,7 +69,16 @@ accepted-key list. `vite.config.ts` stays Vite-only: `plugins: [...openElement()
|
|
|
67
69
|
array them in `static styles`, sharing `site-chrome.css`/`badges.css`).
|
|
68
70
|
- `app/islands/` — client islands, the only code that ships JavaScript. Each
|
|
69
71
|
island declares its hydration strategy (`idle`, `load`, `visible`,
|
|
70
|
-
client-only) through `defineIslandConfig`.
|
|
72
|
+
client-only) through `defineIslandConfig`. The directory also hosts
|
|
73
|
+
`app-shell.tsx` — not an island itself, but the auto-registered application
|
|
74
|
+
shell (see below).
|
|
75
|
+
- `app/islands/app-shell.tsx` — the site chrome every page renders inside:
|
|
76
|
+
the header, the `main` content region, and the footer live here exactly
|
|
77
|
+
once instead of being copied onto each page. The build registers the shell
|
|
78
|
+
automatically and projects each page's render into its default slot, so a
|
|
79
|
+
page module carries only its own content. The shell is a convention: delete
|
|
80
|
+
the file and pages still render (carrying their own chrome again), or opt
|
|
81
|
+
out explicitly with `appShell: false` in `openelement.config.ts`.
|
|
71
82
|
- `app/styles/theme.css` — the @theme role sheet: Tailwind-ON roles, the starter palette aliases, dark and forced-colors pairs. Dev serves it directly; the build compiles it through the router's Tailwind preset.
|
|
72
83
|
Dark values ride `prefers-color-scheme`; no theme runtime.
|
|
73
84
|
- `app/styles/recipes.css` — documented plain HTML+CSS recipes for the
|
|
@@ -78,24 +89,41 @@ accepted-key list. `vite.config.ts` stays Vite-only: `plugins: [...openElement()
|
|
|
78
89
|
|
|
79
90
|
## Scripts
|
|
80
91
|
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
92
|
+
The starter runs on the Vite+ toolchain (`vite-plus`, the `vp` command):
|
|
93
|
+
|
|
94
|
+
- `pnpm dev` — start the dev server (`vp dev`).
|
|
95
|
+
- `pnpm fmt` — format the sources (`vp fmt`).
|
|
96
|
+
- `pnpm lint` — lint the sources (`vp lint`).
|
|
97
|
+
- `pnpm typecheck` — type-check every route/component file (`tsc --noEmit`).
|
|
98
|
+
The check covers the whole `app/` directory (`tsconfig.json`), so new files
|
|
99
|
+
are picked up automatically.
|
|
85
100
|
- `pnpm test` — run Node's built-in test runner (the starter ships none).
|
|
86
|
-
- `pnpm build` — production build
|
|
101
|
+
- `pnpm build` — production build into `dist/`: prerendered HTML for every
|
|
102
|
+
static route, plus the request-time server when the app has one.
|
|
87
103
|
- `pnpm start` — serve the production build.
|
|
88
|
-
|
|
104
|
+
|
|
105
|
+
`build` and `start` run the router CLI's short `oe` bin from the
|
|
106
|
+
`@openelement/router` dependency (`oe build` / `oe start`; the same entry is
|
|
107
|
+
installed as `openelement`, so both spellings work). The CLI also carries a
|
|
108
|
+
static-only `oe start --mode=preview`, which refuses a build that has a
|
|
109
|
+
request-time server.
|
|
110
|
+
|
|
111
|
+
The Vite tree itself is catalog-managed: `pnpm-workspace.yaml` points `vite`
|
|
112
|
+
at the Vite+ core (`@voidzero-dev/vite-plus-core`) through a catalog entry
|
|
113
|
+
and a `vite@*` override, so every peer that asks for vite resolves the same
|
|
114
|
+
Vite+ build — there is no direct `vite` devDependency to pin.
|
|
89
115
|
|
|
90
116
|
## Styling ownership
|
|
91
117
|
|
|
92
118
|
Global design tokens and the document baseline (`body`, `::selection`) live
|
|
93
|
-
in `app/styles/theme.css`.
|
|
94
|
-
`
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
119
|
+
in `app/styles/theme.css`. The app shell owns the shared chrome sheet
|
|
120
|
+
(`app/components/site-chrome.css`), arrayed in its `static styles`. Pages use
|
|
121
|
+
light roots and own their rules in `static styles`, arrayed from imported
|
|
122
|
+
`.css` files (#1558 — the one style authoring form): the server inlines each
|
|
123
|
+
page's sheets into the SSR output as a `@scope(<page-tag>)` style block, so
|
|
124
|
+
pages are fully styled with zero client JavaScript. Islands carry their own
|
|
125
|
+
`.css` sheets the same way; in island chunks those ride the style-asset
|
|
126
|
+
protocol as real `.css` assets.
|
|
99
127
|
|
|
100
128
|
## Brand assets
|
|
101
129
|
|
|
@@ -105,13 +133,25 @@ unused.
|
|
|
105
133
|
|
|
106
134
|
## Dependency notes
|
|
107
135
|
|
|
108
|
-
`@
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
136
|
+
`@openelement/element` and `@openelement/router` are the runtime dependencies
|
|
137
|
+
your app imports. Everything else rides devDependencies: `vite-plus` (the
|
|
138
|
+
`vp` toolchain the scripts run through; the Vite tree itself resolves through
|
|
139
|
+
the `pnpm-workspace.yaml` catalog), the Tailwind-ON build-time pins, the
|
|
140
|
+
dev-server pair — `@hono/vite-dev-server` (loaded lazily by the dev server)
|
|
141
|
+
and its `hono` peer — and the `typescript` pin. None of them resolve under a
|
|
142
|
+
production install: `npm install --omit=dev` in a production image installs
|
|
143
|
+
only the runtime pair. The generated server entry itself imports no
|
|
112
144
|
HTTP framework — it composes on the internal WinterCG layer (#1560); `hono`
|
|
113
145
|
is an optional peer of `@openelement/router`, and `@openelement/router/hono`
|
|
114
146
|
(`createHonoAdapter`) is the one opt-in if you ever want to mount the built
|
|
115
147
|
handler inside your own Hono app. For Nitro deployments, the built handler
|
|
116
148
|
bridges through the `@openelement/router/nitro-mount` subpath of the one
|
|
117
149
|
`@openelement/router` dependency. Do not remove them.
|
|
150
|
+
|
|
151
|
+
`pnpm-workspace.yaml` ships with the scaffold and is pnpm's own bookkeeping:
|
|
152
|
+
it carries the Vite+ catalog and override pair, and `minimumReleaseAge` — the
|
|
153
|
+
supply-chain window that withholds freshly published versions — with the
|
|
154
|
+
exemptions this project starts with (the `@openelement` packages at the
|
|
155
|
+
version it was generated from, plus `vite-plus`). pnpm rewrites the file when
|
|
156
|
+
you approve more packages inside that window; keep it and review the
|
|
157
|
+
exemptions it lists.
|
|
@@ -1,5 +1,24 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
1
|
+
.badge {
|
|
2
|
+
display: inline-flex;
|
|
3
|
+
align-items: center;
|
|
4
|
+
gap: 0.4em;
|
|
5
|
+
padding: 0.2rem 0.65rem;
|
|
6
|
+
border-radius: 999px;
|
|
7
|
+
font-size: 0.72rem;
|
|
8
|
+
font-weight: 600;
|
|
9
|
+
letter-spacing: 0.04em;
|
|
10
|
+
text-transform: uppercase;
|
|
11
|
+
border: 1px solid var(--line);
|
|
12
|
+
color: var(--ink-soft);
|
|
13
|
+
background: var(--surface);
|
|
14
|
+
}
|
|
15
|
+
.badge-static {
|
|
16
|
+
border-color: color-mix(in srgb, var(--ok) 35%, transparent);
|
|
17
|
+
color: var(--ok);
|
|
18
|
+
background: color-mix(in srgb, var(--ok) 8%, transparent);
|
|
19
|
+
}
|
|
20
|
+
.badge-island {
|
|
21
|
+
border-color: color-mix(in srgb, var(--brand) 40%, transparent);
|
|
22
|
+
color: var(--brand);
|
|
23
|
+
background: var(--brand-soft);
|
|
24
|
+
}
|
|
@@ -1,7 +1,21 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
1
|
+
:host {
|
|
2
|
+
display: block;
|
|
3
|
+
}
|
|
4
|
+
h1 {
|
|
5
|
+
font-size: 2.4rem;
|
|
6
|
+
letter-spacing: -0.02em;
|
|
7
|
+
margin: 0.75rem 0 0.5rem;
|
|
8
|
+
font-weight: 700;
|
|
9
|
+
}
|
|
10
|
+
p {
|
|
11
|
+
color: var(--ink-soft);
|
|
12
|
+
line-height: 1.6;
|
|
13
|
+
}
|
|
14
|
+
a {
|
|
15
|
+
color: var(--brand);
|
|
16
|
+
font-weight: 600;
|
|
17
|
+
text-decoration: none;
|
|
18
|
+
}
|
|
19
|
+
a:hover {
|
|
20
|
+
text-decoration: underline;
|
|
21
|
+
}
|
|
@@ -1,46 +1,27 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Styled 404 page element (#923): the request-time server renders this page
|
|
3
|
-
* with a 404 status for unmatched paths;
|
|
4
|
-
*
|
|
5
|
-
*
|
|
6
|
-
*
|
|
3
|
+
* with a 404 status for unmatched paths; a build with no request-time route
|
|
4
|
+
* prerenders the route (see ./../routes/404.tsx) to dist/404.html instead.
|
|
5
|
+
* The path-derived tag is 'el-404'. Light root: the page owns its rules via
|
|
6
|
+
* `static styles` (the imported .css sheets), inlined into SSR as
|
|
7
|
+
* @scope(el-404). Like every page it renders inside the app shell
|
|
8
|
+
* (app/islands/app-shell.tsx), which owns the header and footer.
|
|
7
9
|
*/
|
|
8
|
-
import { element, OpenElement } from
|
|
9
|
-
import notFoundPageStyles from
|
|
10
|
-
import siteChromeStyles from './site-chrome.css';
|
|
10
|
+
import { element, OpenElement } from "@openelement/element";
|
|
11
|
+
import notFoundPageStyles from "./page-404.css";
|
|
11
12
|
|
|
12
|
-
@element(
|
|
13
|
+
@element("el-404", { root: "light" })
|
|
13
14
|
export default class NotFoundPage extends OpenElement {
|
|
14
|
-
static override styles = [notFoundPageStyles
|
|
15
|
+
static override styles = [notFoundPageStyles];
|
|
15
16
|
|
|
16
17
|
render() {
|
|
17
18
|
return (
|
|
18
|
-
<div class=
|
|
19
|
-
<
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
<nav>
|
|
25
|
-
<a href='/'>Home</a>
|
|
26
|
-
<a href='/about'>About</a>
|
|
27
|
-
<a href='/api/ping'>API</a>
|
|
28
|
-
</nav>
|
|
29
|
-
</div>
|
|
30
|
-
</header>
|
|
31
|
-
<main>
|
|
32
|
-
<h1>404</h1>
|
|
33
|
-
<p>The page you are looking for does not exist.</p>
|
|
34
|
-
<p>
|
|
35
|
-
<a href='/'>Back to the homepage</a>
|
|
36
|
-
</p>
|
|
37
|
-
</main>
|
|
38
|
-
<footer class='site-foot'>
|
|
39
|
-
<div class='bar'>
|
|
40
|
-
<span>Generated by @openelement/create.</span>
|
|
41
|
-
<a href='https://openelement.org'>openelement.org</a>
|
|
42
|
-
</div>
|
|
43
|
-
</footer>
|
|
19
|
+
<div class="page-content">
|
|
20
|
+
<h1>404</h1>
|
|
21
|
+
<p>The page you are looking for does not exist.</p>
|
|
22
|
+
<p>
|
|
23
|
+
<a href="/">Back to the homepage</a>
|
|
24
|
+
</p>
|
|
44
25
|
</div>
|
|
45
26
|
);
|
|
46
27
|
}
|
|
@@ -1,15 +1,72 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
1
|
+
:host {
|
|
2
|
+
display: block;
|
|
3
|
+
}
|
|
4
|
+
.eyebrow {
|
|
5
|
+
color: var(--brand);
|
|
6
|
+
font-weight: 600;
|
|
7
|
+
font-size: 0.78rem;
|
|
8
|
+
letter-spacing: 0.14em;
|
|
9
|
+
text-transform: uppercase;
|
|
10
|
+
margin: 0;
|
|
11
|
+
}
|
|
12
|
+
h1 {
|
|
13
|
+
font-size: clamp(1.9rem, 5vw, 2.6rem);
|
|
14
|
+
line-height: 1.15;
|
|
15
|
+
letter-spacing: -0.02em;
|
|
16
|
+
margin: 0.75rem 0 1rem;
|
|
17
|
+
font-weight: 700;
|
|
18
|
+
}
|
|
19
|
+
.lede {
|
|
20
|
+
font-size: 1.08rem;
|
|
21
|
+
color: var(--ink-soft);
|
|
22
|
+
max-width: 58ch;
|
|
23
|
+
margin: 0 0 2rem;
|
|
24
|
+
}
|
|
25
|
+
h2 {
|
|
26
|
+
font-size: 1.25rem;
|
|
27
|
+
letter-spacing: -0.01em;
|
|
28
|
+
margin: 2.25rem 0 0.6rem;
|
|
29
|
+
}
|
|
30
|
+
p {
|
|
31
|
+
margin: 0.6rem 0;
|
|
32
|
+
max-width: 62ch;
|
|
33
|
+
}
|
|
34
|
+
p code,
|
|
35
|
+
li code {
|
|
36
|
+
font-family: var(--font-mono);
|
|
37
|
+
font-size: 0.85em;
|
|
38
|
+
background: var(--surface);
|
|
39
|
+
border: 1px solid var(--line);
|
|
40
|
+
border-radius: 5px;
|
|
41
|
+
padding: 0.08em 0.35em;
|
|
42
|
+
}
|
|
43
|
+
.conventions {
|
|
44
|
+
list-style: none;
|
|
45
|
+
margin: 1rem 0 0;
|
|
46
|
+
padding: 0;
|
|
47
|
+
border-top: 1px solid var(--line);
|
|
48
|
+
}
|
|
49
|
+
.conventions li {
|
|
50
|
+
display: flex;
|
|
51
|
+
gap: 1rem;
|
|
52
|
+
padding: 0.7rem 0;
|
|
53
|
+
border-bottom: 1px solid var(--line);
|
|
54
|
+
flex-wrap: wrap;
|
|
55
|
+
}
|
|
56
|
+
.conventions code {
|
|
57
|
+
font-family: var(--font-mono);
|
|
58
|
+
font-size: 0.85rem;
|
|
59
|
+
color: var(--brand);
|
|
60
|
+
min-width: 15rem;
|
|
61
|
+
}
|
|
62
|
+
.conventions span {
|
|
63
|
+
color: var(--ink-soft);
|
|
64
|
+
font-size: 0.92rem;
|
|
65
|
+
}
|
|
66
|
+
a {
|
|
67
|
+
color: var(--brand);
|
|
68
|
+
text-decoration: none;
|
|
69
|
+
}
|
|
70
|
+
a:hover {
|
|
71
|
+
text-decoration: underline;
|
|
72
|
+
}
|