create-shibumi 0.2.7 → 0.2.9
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/package.json +1 -1
- package/scripts/shibumi.lock.json +2 -2
- package/scripts/ship.lock.json +2 -2
- package/src/templates/blog/agents.md +3 -1
- package/src/templates/blog/bun.lock +1 -0
- package/src/templates/blog/package.json +2 -1
- package/src/templates/blog/public/favicon.svg +1 -0
- package/src/templates/blog/public/style.css +77 -4
- package/src/templates/blog/src/components/BaseHead.astro +4 -0
- package/src/templates/blog/src/content/blog/one-vps-is-plenty.md +7 -5
- package/src/templates/blog/src/content/blog/own-your-source.md +9 -5
- package/src/templates/blog/src/content/blog/writing-for-agents.md +7 -5
- package/src/templates/blog/src/content.config.ts +3 -0
- package/src/templates/blog/src/layouts/Base.astro +12 -1
- package/src/templates/blog/src/pages/index.astro +5 -2
- package/src/templates/blog/src/pages/llms.txt.ts +1 -1
- package/src/templates/blog/src/pages/posts/[id].astro +2 -1
- package/src/templates/blog/src/pages/posts/[id].md.ts +1 -1
- package/src/templates/blog/src/pages/rss.xml.ts +1 -1
- package/src/templates/full-stack/public/favicon.svg +1 -0
- package/src/templates/full-stack/public/style.css +11 -6
- package/src/templates/full-stack/public/vendor/shibumi.css +18 -14
- package/src/templates/full-stack/src/app.ts +5 -3
- package/src/templates/shibumi.ts +2 -2
- package/src/templates/ship.ts +27 -6
- package/src/templates/static/bun.lock +25 -0
- package/src/templates/static/package.json +4 -1
- package/src/templates/static/public/favicon.svg +1 -0
- package/src/templates/static/public/index.html +11 -3
- package/src/templates/static/public/style.css +66 -20
- package/src/templates/web/public/favicon.svg +1 -0
- package/src/templates/web/public/style.css +11 -6
- package/src/templates/web/public/vendor/shibumi.css +18 -14
- package/src/templates/web/src/app.ts +4 -2
package/package.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"version": "0.2.
|
|
2
|
+
"version": "0.2.7",
|
|
3
3
|
"extensions": [
|
|
4
4
|
{
|
|
5
5
|
"name": "admin",
|
|
@@ -18,5 +18,5 @@
|
|
|
18
18
|
"version": "1.0.1"
|
|
19
19
|
}
|
|
20
20
|
],
|
|
21
|
-
"sha256": "
|
|
21
|
+
"sha256": "f859ca8e76ee58d8bbafb162ec8e06a794c9db6586759916a8e4b4d45568c5d4"
|
|
22
22
|
}
|
package/scripts/ship.lock.json
CHANGED
|
@@ -14,7 +14,9 @@ bun ship # verify dist/, build the static image, upload, deploy
|
|
|
14
14
|
|
|
15
15
|
## Routes and templates
|
|
16
16
|
|
|
17
|
-
- Posts are markdown files in `src/content/blog/`; the schema in `src/content.config.ts` requires title (max 60), description (50 to 160 characters, drives meta/RSS/llms.txt), date, optional ogImage.
|
|
17
|
+
- Posts are markdown files in `src/content/blog/`; the schema in `src/content.config.ts` requires title (max 60), description (50 to 160 characters, drives meta/RSS/llms.txt), date, optional ogImage, and an optional `draft` flag (default false).
|
|
18
|
+
- `draft: true` keeps a post out of everything: no page, no listing, no RSS, no llms.txt, no markdown alternate. Publish by removing the flag and running `bun ship`.
|
|
19
|
+
- Images: put files in `src/assets/` and reference them relatively from the markdown (``); Astro optimizes them at build. Files in `public/` are served verbatim by URL.
|
|
18
20
|
- `src/pages/index.astro` lists posts; `src/pages/posts/[id].astro` renders one; `src/layouts/Base.astro` and `src/components/BaseHead.astro` own the frame and every meta tag.
|
|
19
21
|
- Generated endpoints: `/rss.xml`, `/llms.txt`, `/robots.txt`, and a markdown alternate for every post at `/posts/<id>.md`. All derive from the content collection; never hand-edit their output.
|
|
20
22
|
- Site identity lives in `src/site.ts`. Design lives in `public/style.css` (one file, shibumi tokens, semantic selectors).
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
"check": "astro check",
|
|
10
10
|
"preview": "astro preview",
|
|
11
11
|
"ship": "bun scripts/ship.ts",
|
|
12
|
-
"ship:setup": "bun scripts/ship.ts --setup --static --output-dir dist --build-script build",
|
|
12
|
+
"ship:setup": "bun scripts/ship.ts --setup --static --output-dir dist --build-script build --no-spa",
|
|
13
13
|
"ship:update": "bun scripts/ship.ts --update",
|
|
14
14
|
"ship:status": "bun scripts/ship.ts --status",
|
|
15
15
|
"ship:logs": "bun scripts/ship.ts --logs"
|
|
@@ -21,6 +21,7 @@
|
|
|
21
21
|
},
|
|
22
22
|
"devDependencies": {
|
|
23
23
|
"@astrojs/check": "0.9.10",
|
|
24
|
+
"@clack/prompts": "1.7.0",
|
|
24
25
|
"typescript": "5.9.2"
|
|
25
26
|
},
|
|
26
27
|
"engines": {
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><style>text{fill:#e95f19;font-family:"Hiragino Sans","Noto Sans JP",sans-serif}@media (prefers-color-scheme:dark){text{fill:#ff8648}}</style><text x="50" y="55" font-size="62" text-anchor="middle" dominant-baseline="central">渋</text></svg>
|
|
@@ -36,14 +36,27 @@
|
|
|
36
36
|
line-height: 1.6;
|
|
37
37
|
|
|
38
38
|
> header {
|
|
39
|
-
|
|
40
|
-
|
|
39
|
+
max-width: 40.5rem;
|
|
40
|
+
margin: 0 auto;
|
|
41
|
+
padding-top: 1rem;
|
|
41
42
|
|
|
42
43
|
a {
|
|
44
|
+
display: inline-flex;
|
|
45
|
+
align-items: center;
|
|
46
|
+
gap: 0.7rem;
|
|
43
47
|
color: var(--ink);
|
|
44
|
-
font-
|
|
48
|
+
font-family: ui-serif, Georgia, "Iowan Old Style", Cambria, serif;
|
|
49
|
+
font-size: 1.25rem;
|
|
50
|
+
font-weight: 500;
|
|
51
|
+
letter-spacing: 0.01em;
|
|
45
52
|
text-decoration: none;
|
|
46
53
|
}
|
|
54
|
+
|
|
55
|
+
.mark-badge {
|
|
56
|
+
color: var(--accent);
|
|
57
|
+
font-family: "Hiragino Sans", "Noto Sans JP", sans-serif;
|
|
58
|
+
font-size: 1.125rem;
|
|
59
|
+
}
|
|
47
60
|
}
|
|
48
61
|
|
|
49
62
|
> main {
|
|
@@ -53,7 +66,6 @@
|
|
|
53
66
|
}
|
|
54
67
|
|
|
55
68
|
> footer {
|
|
56
|
-
border-top: 1px solid var(--hairline);
|
|
57
69
|
padding-block: 4rem;
|
|
58
70
|
text-align: center;
|
|
59
71
|
color: var(--muted);
|
|
@@ -145,3 +157,64 @@
|
|
|
145
157
|
margin-top: 0;
|
|
146
158
|
}
|
|
147
159
|
}
|
|
160
|
+
|
|
161
|
+
/* Post images: full column width, soft corners, credit line stays quiet. */
|
|
162
|
+
article img {
|
|
163
|
+
display: block;
|
|
164
|
+
width: 100%;
|
|
165
|
+
height: auto;
|
|
166
|
+
border-radius: 0.6rem;
|
|
167
|
+
opacity: 0.9;
|
|
168
|
+
transition: opacity 200ms ease;
|
|
169
|
+
}
|
|
170
|
+
|
|
171
|
+
article img:hover,
|
|
172
|
+
article img:focus-visible {
|
|
173
|
+
opacity: 1;
|
|
174
|
+
}
|
|
175
|
+
|
|
176
|
+
article small {
|
|
177
|
+
display: block;
|
|
178
|
+
margin-top: 0.5rem;
|
|
179
|
+
color: var(--muted);
|
|
180
|
+
font-size: 0.8rem;
|
|
181
|
+
}
|
|
182
|
+
|
|
183
|
+
.home-title {
|
|
184
|
+
display: flex;
|
|
185
|
+
align-items: baseline;
|
|
186
|
+
gap: 1rem;
|
|
187
|
+
}
|
|
188
|
+
|
|
189
|
+
.home-title .mark-badge {
|
|
190
|
+
color: var(--accent);
|
|
191
|
+
font-family: "Hiragino Sans", "Noto Sans JP", sans-serif;
|
|
192
|
+
font-size: 0.42em;
|
|
193
|
+
}
|
|
194
|
+
|
|
195
|
+
.post-end {
|
|
196
|
+
margin-top: 4rem;
|
|
197
|
+
}
|
|
198
|
+
|
|
199
|
+
.ghost-pill {
|
|
200
|
+
display: inline-block;
|
|
201
|
+
padding: 0.5rem 1.3rem;
|
|
202
|
+
border: 1px solid var(--hairline);
|
|
203
|
+
border-radius: 999px;
|
|
204
|
+
color: var(--muted);
|
|
205
|
+
text-decoration: none;
|
|
206
|
+
transition: color 160ms ease, border-color 160ms ease;
|
|
207
|
+
}
|
|
208
|
+
|
|
209
|
+
.ghost-pill:hover,
|
|
210
|
+
.ghost-pill:focus-visible {
|
|
211
|
+
color: var(--accent);
|
|
212
|
+
border-color: var(--accent);
|
|
213
|
+
}
|
|
214
|
+
|
|
215
|
+
article :not(pre) > code {
|
|
216
|
+
padding: 0.12em 0.42em;
|
|
217
|
+
border-radius: 0.35rem;
|
|
218
|
+
background: color-mix(in srgb, var(--ink) 6%, transparent);
|
|
219
|
+
font-size: 0.85em;
|
|
220
|
+
}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
---
|
|
2
|
+
import { ClientRouter } from "astro:transitions";
|
|
2
3
|
import { SITE } from "../site";
|
|
3
4
|
|
|
4
5
|
interface Props {
|
|
@@ -16,6 +17,9 @@ const isArticle = Boolean(publishedTime);
|
|
|
16
17
|
---
|
|
17
18
|
|
|
18
19
|
<meta charset="utf-8" />
|
|
20
|
+
<link rel="icon" type="image/svg+xml" href="/favicon.svg" />
|
|
21
|
+
<meta name="generator" content="create-shibumi (shibumistack.dev)" />
|
|
22
|
+
<ClientRouter />
|
|
19
23
|
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
|
20
24
|
<title>{title}</title>
|
|
21
25
|
<meta name="description" content={description} />
|
|
@@ -1,13 +1,15 @@
|
|
|
1
1
|
---
|
|
2
2
|
title: One VPS is plenty
|
|
3
|
-
description:
|
|
3
|
+
description: This blog is static files in a 1.4 MB container on a shared five-euro VPS. The deploy script, not the hardware, is what platforms were selling.
|
|
4
4
|
date: 2026-07-15
|
|
5
5
|
---
|
|
6
6
|
|
|
7
|
-
This site is static files behind a 1.4 MB container on a small VPS
|
|
7
|
+
This site is static files behind a 1.4 MB container on a small VPS that also runs four other projects. A five-euro machine serves this traffic without noticing.
|
|
8
8
|
|
|
9
|
-
|
|
9
|
+
People stayed on platforms for the deploy story: what happens when the build breaks, how to roll back, whether the thing you tested is the thing that shipped.
|
|
10
10
|
|
|
11
|
-
|
|
11
|
+

|
|
12
12
|
|
|
13
|
-
|
|
13
|
+
<small>Photo via [Pexels](https://www.pexels.com/photo/289586/)</small>
|
|
14
|
+
|
|
15
|
+
Those answers fit in a script. Build the exact commit, verify the output, upload the image over SSH, health-check before cutover, keep the previous image for rollback. `bun ship` runs all of it, and the script is short enough to read before you trust it.
|
|
@@ -1,13 +1,17 @@
|
|
|
1
1
|
---
|
|
2
2
|
title: Own your source
|
|
3
|
-
description:
|
|
3
|
+
description: This starter copies routes, styles, and config into your repository as plain files. What that costs you, and what it saves, six months in.
|
|
4
4
|
date: 2026-08-01
|
|
5
5
|
---
|
|
6
6
|
|
|
7
|
-
|
|
7
|
+
This starter does not install itself as a dependency. It copies files into your repository and gets out of the way.
|
|
8
8
|
|
|
9
|
-
The difference shows up six months in.
|
|
9
|
+
The difference shows up six months in. To change behavior that lives in a package, you read someone else's issue tracker and wait for a release. To change behavior that lives in your repository, you edit a file you have already read.
|
|
10
10
|
|
|
11
|
-
|
|
11
|
+

|
|
12
12
|
|
|
13
|
-
|
|
13
|
+
<small>Photo via [Pexels](https://www.pexels.com/photo/close-up-of-ink-brushes-6315632/)</small>
|
|
14
|
+
|
|
15
|
+
Generated code earned its bad reputation from generators that produced more code than anyone could maintain. So this one generates little: a route file, a layout, a stylesheet with five variables. Reading all of it takes one sitting.
|
|
16
|
+
|
|
17
|
+
One test tells you whether you own a project: delete the tool that made it. This site still builds, still deploys, and still makes sense with create-shibumi gone.
|
|
@@ -1,13 +1,15 @@
|
|
|
1
1
|
---
|
|
2
2
|
title: Writing for readers who curl
|
|
3
|
-
description:
|
|
3
|
+
description: Every post here is served twice, as rendered HTML and as plain markdown, with an llms.txt index. One endpoint covers the agent readers.
|
|
4
4
|
date: 2026-06-20
|
|
5
5
|
---
|
|
6
6
|
|
|
7
|
-
|
|
7
|
+
Half the readers of this post are agents: HTTP clients with a token budget instead of a viewport.
|
|
8
8
|
|
|
9
|
-
|
|
9
|
+
So every post here exists twice. There is the HTML you may be reading, and a plain markdown file at the same URL with `.md` appended. An `llms.txt` at the root lists every post with a one-line summary, so an agent can survey the whole site in one small request instead of scraping navigation markup.
|
|
10
10
|
|
|
11
|
-
|
|
11
|
+

|
|
12
12
|
|
|
13
|
-
|
|
13
|
+
<small>Photo via [Pexels](https://www.pexels.com/photo/calligraphy-using-a-blank-ink-and-paint-brush-9478289/)</small>
|
|
14
|
+
|
|
15
|
+
The markdown already existed; the build publishes it instead of throwing it away. One endpoint, about a dozen lines of it.
|
|
@@ -11,6 +11,9 @@ const blog = defineCollection({
|
|
|
11
11
|
description: z.string().min(50).max(160),
|
|
12
12
|
date: z.coerce.date(),
|
|
13
13
|
ogImage: z.string().optional(),
|
|
14
|
+
// Draft posts build nowhere: no page, no listing, no RSS, no llms.txt.
|
|
15
|
+
// Flip to false (or remove the line) to publish.
|
|
16
|
+
draft: z.boolean().default(false),
|
|
14
17
|
}),
|
|
15
18
|
});
|
|
16
19
|
|
|
@@ -2,6 +2,8 @@
|
|
|
2
2
|
import BaseHead from "../components/BaseHead.astro";
|
|
3
3
|
import { SITE } from "../site";
|
|
4
4
|
|
|
5
|
+
const isHome = Astro.url.pathname === "/";
|
|
6
|
+
|
|
5
7
|
interface Props {
|
|
6
8
|
title: string;
|
|
7
9
|
description: string;
|
|
@@ -17,7 +19,16 @@ interface Props {
|
|
|
17
19
|
<BaseHead {...Astro.props} />
|
|
18
20
|
</head>
|
|
19
21
|
<body>
|
|
20
|
-
|
|
22
|
+
{
|
|
23
|
+
!isHome && (
|
|
24
|
+
<header>
|
|
25
|
+
<a href="/" class="mark">
|
|
26
|
+
<span class="mark-badge" transition:name="site-mark">渋み</span>
|
|
27
|
+
<span transition:name="site-title">{SITE.name}</span>
|
|
28
|
+
</a>
|
|
29
|
+
</header>
|
|
30
|
+
)
|
|
31
|
+
}
|
|
21
32
|
<main>
|
|
22
33
|
<slot />
|
|
23
34
|
</main>
|
|
@@ -3,7 +3,7 @@ import { getCollection } from "astro:content";
|
|
|
3
3
|
import Base from "../layouts/Base.astro";
|
|
4
4
|
import { SITE } from "../site";
|
|
5
5
|
|
|
6
|
-
const posts = (await getCollection("blog")).sort(
|
|
6
|
+
const posts = (await getCollection("blog", ({ data }) => !data.draft)).sort(
|
|
7
7
|
(a, b) => b.data.date.valueOf() - a.data.date.valueOf()
|
|
8
8
|
);
|
|
9
9
|
const formatDate = (date: Date) =>
|
|
@@ -12,7 +12,10 @@ const formatDate = (date: Date) =>
|
|
|
12
12
|
|
|
13
13
|
<Base title={SITE.name} description={SITE.description}>
|
|
14
14
|
<article>
|
|
15
|
-
<h1>
|
|
15
|
+
<h1 class="home-title">
|
|
16
|
+
<span class="mark-badge" transition:name="site-mark">渋み</span>
|
|
17
|
+
<span transition:name="site-title">{SITE.name}</span>
|
|
18
|
+
</h1>
|
|
16
19
|
<ul class="posts">
|
|
17
20
|
{
|
|
18
21
|
posts.map((post) => (
|
|
@@ -5,7 +5,7 @@ import { getCollection } from "astro:content";
|
|
|
5
5
|
import { SITE } from "../site";
|
|
6
6
|
|
|
7
7
|
export const GET: APIRoute = async (context) => {
|
|
8
|
-
const posts = (await getCollection("blog")).sort(
|
|
8
|
+
const posts = (await getCollection("blog", ({ data }) => !data.draft)).sort(
|
|
9
9
|
(a, b) => b.data.date.valueOf() - a.data.date.valueOf()
|
|
10
10
|
);
|
|
11
11
|
const lines = [
|
|
@@ -3,7 +3,7 @@ import { getCollection, render } from "astro:content";
|
|
|
3
3
|
import Base from "../../layouts/Base.astro";
|
|
4
4
|
|
|
5
5
|
export async function getStaticPaths() {
|
|
6
|
-
return (await getCollection("blog")).map((post) => ({
|
|
6
|
+
return (await getCollection("blog", ({ data }) => !data.draft)).map((post) => ({
|
|
7
7
|
params: { id: post.id },
|
|
8
8
|
props: { post },
|
|
9
9
|
}));
|
|
@@ -27,5 +27,6 @@ const formatDate = (date: Date) =>
|
|
|
27
27
|
<h1>{post.data.title}</h1>
|
|
28
28
|
<p class="lede">{post.data.description}</p>
|
|
29
29
|
<Content />
|
|
30
|
+
<p class="post-end"><a class="ghost-pill" href="/">← Back to the blog</a></p>
|
|
30
31
|
</article>
|
|
31
32
|
</Base>
|
|
@@ -4,7 +4,7 @@ import { getCollection, getEntry } from "astro:content";
|
|
|
4
4
|
import type { APIRoute } from "astro";
|
|
5
5
|
|
|
6
6
|
export async function getStaticPaths() {
|
|
7
|
-
return (await getCollection("blog")).map((post) => ({ params: { id: post.id } }));
|
|
7
|
+
return (await getCollection("blog", ({ data }) => !data.draft)).map((post) => ({ params: { id: post.id } }));
|
|
8
8
|
}
|
|
9
9
|
|
|
10
10
|
export const GET: APIRoute = async ({ params }) => {
|
|
@@ -4,7 +4,7 @@ import { getCollection } from "astro:content";
|
|
|
4
4
|
import { SITE } from "../site";
|
|
5
5
|
|
|
6
6
|
export const GET: APIRoute = async (context) => {
|
|
7
|
-
const posts = (await getCollection("blog")).sort(
|
|
7
|
+
const posts = (await getCollection("blog", ({ data }) => !data.draft)).sort(
|
|
8
8
|
(a, b) => b.data.date.valueOf() - a.data.date.valueOf()
|
|
9
9
|
);
|
|
10
10
|
return rss({
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><style>text{fill:#e95f19;font-family:"Hiragino Sans","Noto Sans JP",sans-serif}@media (prefers-color-scheme:dark){text{fill:#ff8648}}</style><text x="50" y="55" font-size="62" text-anchor="middle" dominant-baseline="central">渋</text></svg>
|
|
@@ -2,6 +2,12 @@
|
|
|
2
2
|
Edit freely; this file is yours. Tokens: --paper --ink --muted --line
|
|
3
3
|
--accent, type scale --text-xs..--text-2xl, --font-sans/serif/mono. */
|
|
4
4
|
|
|
5
|
+
/* The vendored shibumi.css sets a kozo paper background for the sites; apps
|
|
6
|
+
stay flat, and this override also stops the browser fetching the image. */
|
|
7
|
+
body {
|
|
8
|
+
background-image: none;
|
|
9
|
+
}
|
|
10
|
+
|
|
5
11
|
.scaffold {
|
|
6
12
|
max-width: 40.625rem;
|
|
7
13
|
margin: 0 auto;
|
|
@@ -83,7 +89,7 @@
|
|
|
83
89
|
border-top: 1px solid var(--line);
|
|
84
90
|
}
|
|
85
91
|
|
|
86
|
-
main .endpoints a {
|
|
92
|
+
main .endpoints a:not(.btn):not(.button) {
|
|
87
93
|
display: flex;
|
|
88
94
|
align-items: baseline;
|
|
89
95
|
justify-content: space-between;
|
|
@@ -95,13 +101,12 @@ main .endpoints a {
|
|
|
95
101
|
transition: background 160ms ease;
|
|
96
102
|
}
|
|
97
103
|
|
|
98
|
-
main .endpoints a:hover,
|
|
99
|
-
main .endpoints a:focus-visible {
|
|
104
|
+
main .endpoints a:not(.btn):not(.button):hover,
|
|
105
|
+
main .endpoints a:not(.btn):not(.button):focus-visible {
|
|
100
106
|
background: var(--faint);
|
|
101
107
|
}
|
|
102
108
|
|
|
103
|
-
.
|
|
104
|
-
font-family: var(--font-mono);
|
|
109
|
+
main .endpoints code {
|
|
105
110
|
font-size: var(--text-sm);
|
|
106
111
|
}
|
|
107
112
|
/* Inline code as rounded chips on the faint layer. */
|
|
@@ -114,7 +119,7 @@ main .endpoints a:focus-visible {
|
|
|
114
119
|
}
|
|
115
120
|
|
|
116
121
|
|
|
117
|
-
main .endpoints a:hover
|
|
122
|
+
main .endpoints a:hover code {
|
|
118
123
|
color: var(--accent);
|
|
119
124
|
}
|
|
120
125
|
|
|
@@ -60,19 +60,23 @@ body {
|
|
|
60
60
|
background: var(--bg);
|
|
61
61
|
}
|
|
62
62
|
|
|
63
|
-
|
|
64
|
-
|
|
63
|
+
/* Kozo paper texture, light theme only; dark stays flat ink. The image lives
|
|
64
|
+
next to this stylesheet in every consumer, hence the relative URL. */
|
|
65
|
+
body {
|
|
66
|
+
background-image: url("kozo.webp");
|
|
67
|
+
background-size: cover;
|
|
68
|
+
background-position: center;
|
|
69
|
+
background-attachment: fixed;
|
|
70
|
+
background-repeat: no-repeat;
|
|
65
71
|
}
|
|
72
|
+
@media (prefers-color-scheme: dark) {
|
|
73
|
+
body { background-image: none; }
|
|
74
|
+
}
|
|
75
|
+
[data-theme="light"] body { background-image: url("kozo.webp"); }
|
|
76
|
+
[data-theme="dark"] body { background-image: none; }
|
|
66
77
|
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
content: "";
|
|
70
|
-
position: fixed;
|
|
71
|
-
inset: 0;
|
|
72
|
-
z-index: -1;
|
|
73
|
-
pointer-events: none;
|
|
74
|
-
opacity: 0.33;
|
|
75
|
-
background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.88' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.08'/%3E%3C/svg%3E");
|
|
78
|
+
h1, h2, h3 {
|
|
79
|
+
font-family: var(--font-serif);
|
|
76
80
|
}
|
|
77
81
|
|
|
78
82
|
a { color: inherit; }
|
|
@@ -123,9 +127,9 @@ main a:not(.btn):not(.button):focus-visible {
|
|
|
123
127
|
width: 100vw;
|
|
124
128
|
height: 100%;
|
|
125
129
|
transform: translateX(-50%);
|
|
126
|
-
background: light-dark(rgb(245 240 228 /
|
|
127
|
-
backdrop-filter: blur(1.
|
|
128
|
-
-webkit-backdrop-filter: blur(1.
|
|
130
|
+
background: light-dark(rgb(245 240 228 / 0%), rgb(27 19 15 / 72%));
|
|
131
|
+
backdrop-filter: blur(1.25rem);
|
|
132
|
+
-webkit-backdrop-filter: blur(1.25rem);
|
|
129
133
|
}
|
|
130
134
|
|
|
131
135
|
.mark {
|
|
@@ -107,6 +107,8 @@ const page = `<!doctype html>
|
|
|
107
107
|
<meta charset="utf-8" />
|
|
108
108
|
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
|
109
109
|
<title>Full Stack app · shibumi</title>
|
|
110
|
+
<link rel="icon" type="image/svg+xml" href="/public/favicon.svg" />
|
|
111
|
+
<meta name="generator" content="create-shibumi (shibumistack.dev)" />
|
|
110
112
|
<link rel="stylesheet" href="/public/vendor/shibumi.css" />
|
|
111
113
|
<link rel="stylesheet" href="/public/style.css" />
|
|
112
114
|
<!-- app.js must load before Alpine so the alpine:init listener exists
|
|
@@ -125,9 +127,9 @@ const page = `<!doctype html>
|
|
|
125
127
|
<span class="demo-hint">stored in SQLite; reloads and deploys keep it</span>
|
|
126
128
|
</section>
|
|
127
129
|
<ul class="endpoints">
|
|
128
|
-
<li><a href="/api/hello?name=you"><
|
|
129
|
-
<li><a href="/api/notes"><
|
|
130
|
-
<li><a href="/healthz"><
|
|
130
|
+
<li><a href="/api/hello?name=you"><code>GET /api/hello</code><span>query validated with Zod</span></a></li>
|
|
131
|
+
<li><a href="/api/notes"><code>GET /api/notes</code><span>Drizzle read from SQLite on the data volume</span></a></li>
|
|
132
|
+
<li><a href="/healthz"><code>GET /healthz</code><span>the check every deploy waits for</span></a></li>
|
|
131
133
|
</ul>
|
|
132
134
|
<footer class="colophon">
|
|
133
135
|
<p>This page lives in <code>src/app.ts</code>. House rules for coding agents are in <code>agents.md</code>. Add features with <code>bun shi add auth</code>.</p>
|