coloring
This commit is contained in:
parent
96f1e89327
commit
58a4b638ee
Binary file not shown.
|
After Width: | Height: | Size: 1.1 MiB |
Binary file not shown.
|
After Width: | Height: | Size: 1.0 MiB |
Binary file not shown.
|
After Width: | Height: | Size: 825 KiB |
Binary file not shown.
|
|
@ -232,6 +232,20 @@
|
||||||
</div>
|
</div>
|
||||||
</a>
|
</a>
|
||||||
|
|
||||||
|
<a class="cat-card" href="/tasks/space-coloring/">
|
||||||
|
<div class="cat-image">
|
||||||
|
<img src="/assets/themes/nms/coloring-pages/coloring1.png" alt="Space Coloring">
|
||||||
|
</div>
|
||||||
|
<div class="cat-info">
|
||||||
|
<h2>Space Coloring</h2>
|
||||||
|
<p class="cat-desc">Grab your crayons! Full-page line-art coloring scenes from deep space — gunships, mining dropships, and lone explorers among asteroid belts and ringed planets.</p>
|
||||||
|
<div class="cat-meta">
|
||||||
|
<span class="tag-violet">1 worksheet</span>
|
||||||
|
<span class="tag-orange">Coloring</span>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</a>
|
||||||
|
|
||||||
<a class="cat-card" href="/tasks/crystal-battery/">
|
<a class="cat-card" href="/tasks/crystal-battery/">
|
||||||
<div class="cat-image">
|
<div class="cat-image">
|
||||||
<img src="/assets/themes/sonic/heroes/sonic-shadow-push/sonic-push-01.png" alt="Crystal Battery">
|
<img src="/assets/themes/sonic/heroes/sonic-shadow-push/sonic-push-01.png" alt="Crystal Battery">
|
||||||
|
|
|
||||||
|
|
@ -0,0 +1,76 @@
|
||||||
|
# Space Coloring Task Type
|
||||||
|
|
||||||
|
**Theme:** nms (`assets/themes/nms/`)
|
||||||
|
|
||||||
|
Full-page line-art coloring worksheets for kids. Each page is a single A4 portrait scene from a No Man's Sky-inspired universe: a detailed spaceship surrounded by asteroids, planets, and floating space artifacts. Header and footer are kept minimal so the coloring image dominates.
|
||||||
|
|
||||||
|
## Layout
|
||||||
|
|
||||||
|
- **Page:** A4 (210mm x 297mm), portrait, white background
|
||||||
|
- **Header:** 16mm — small uppercase wordmark left, title centered, scene number right (`NN / NN`)
|
||||||
|
- **Main:** flex-1, image centered with `object-contain`, 8mm side padding, 3mm vertical padding
|
||||||
|
- **Footer:** 32mm — `footers/planet{1-9}.jpeg` with linear-gradient mask (transparent at top, solid at bottom), scene legend overlaid (italic, centered)
|
||||||
|
|
||||||
|
## Coloring Image Assets
|
||||||
|
|
||||||
|
- **Path:** `assets/themes/nms/coloring-pages/coloring{N}.png`
|
||||||
|
- **Raw originals:** `assets/themes/nms/coloring-pages/raw/`
|
||||||
|
- **Dimensions:** 864 x 1184 (ratio ~0.73). Fit cleanly inside a ~190mm x ~260mm area on A4.
|
||||||
|
- **Style:** clean black bold outlines, no shading, no gray fills, pure white background, kid-friendly cartoon detail.
|
||||||
|
|
||||||
|
## Image Generation
|
||||||
|
|
||||||
|
Each coloring image is generated via the gen-image skill (Banatie API). Per-scene prep folders live in `temp/scene{N}/` with:
|
||||||
|
- `prompt.md` — full prompt + legend + CLI command
|
||||||
|
- `ref-ship-*.jpeg` — spaceship reference (from `hero-images/`)
|
||||||
|
- `ref-asteroid*.png` — asteroid reference (from `items/asteroids/`)
|
||||||
|
|
||||||
|
### Composition rules (every scene)
|
||||||
|
|
||||||
|
- Main subject: one spaceship in the center foreground, lots of mechanical detail
|
||||||
|
- 2-3 large detailed asteroids in the foreground
|
||||||
|
- 5-10 smaller asteroids in the background
|
||||||
|
- A planet (full or partial) in one corner as background
|
||||||
|
- A few floating space artifacts (crystals, debris, alien orbs, satellite shards)
|
||||||
|
- Action context (firing, mining, scanning, hiding, exploring)
|
||||||
|
- 3D depth, like a video-game screenshot
|
||||||
|
- Clean bold outlines only — no shading, hatching, or gray fills
|
||||||
|
- White background
|
||||||
|
|
||||||
|
### Settings
|
||||||
|
|
||||||
|
- `--aspect-ratio 4:3` (portrait, fits A4)
|
||||||
|
- `--template minimalist`
|
||||||
|
- `--ref <ship>` + `--ref <asteroid>` (two refs, max)
|
||||||
|
|
||||||
|
## Scene Legends
|
||||||
|
|
||||||
|
Every page has a story legend in the footer (e.g. "Last Stand at Veridian Belt — a heavy gunship fires its twin cannons..."). The first phrase (scene title) is shown in `text-indigo-700` Fredoka, the rest in italic `text-indigo-950`. Keep legends to 1-2 short sentences.
|
||||||
|
|
||||||
|
## Color Palette
|
||||||
|
|
||||||
|
| Element | Class |
|
||||||
|
|---------|-------|
|
||||||
|
| Title | `text-indigo-950` |
|
||||||
|
| Wordmark | `text-indigo-300` |
|
||||||
|
| Page indicator | `text-indigo-400` |
|
||||||
|
| Legend body | `text-indigo-950` (italic) |
|
||||||
|
| Legend title | `text-indigo-700` (Fredoka) |
|
||||||
|
| Header divider | `border-indigo-100` |
|
||||||
|
|
||||||
|
## Scripts
|
||||||
|
|
||||||
|
- `scripts/generate.mjs` — copies template -> output, runs `postGenerate()`. No data layer (coloring pages have no editable parameters).
|
||||||
|
|
||||||
|
## Editor
|
||||||
|
|
||||||
|
None. Coloring pages have no editable data — nothing to move, scale, or rotate inside a printed line-art page.
|
||||||
|
|
||||||
|
## Adding a Page
|
||||||
|
|
||||||
|
1. Drop a new prep folder in `temp/scene{N}/` with `prompt.md` + ref images
|
||||||
|
2. Generate the line-art via gen-image skill into `assets/themes/nms/coloring-pages/coloring{N}.png`
|
||||||
|
3. Update `.md` with the new scene legend
|
||||||
|
4. Duplicate a page block in `.template.html`, swap the image path, footer planet, page indicator, and legend
|
||||||
|
5. Run `generate.mjs` and verify screenshot
|
||||||
|
6. Update `index.html` doc card (page count)
|
||||||
|
|
@ -0,0 +1,32 @@
|
||||||
|
# Space Coloring 1
|
||||||
|
|
||||||
|
**Theme:** nms
|
||||||
|
**Type:** space-coloring
|
||||||
|
**Pages:** 3
|
||||||
|
|
||||||
|
## Concept
|
||||||
|
|
||||||
|
Full-page line-art coloring worksheets. Each page is one A4 portrait scene from the No Man's Sky universe: a spaceship surrounded by asteroids, planets, and floating space artifacts. Minimal header (title) and minimal footer (planet strip + scene legend).
|
||||||
|
|
||||||
|
## Pages
|
||||||
|
|
||||||
|
### Page 1 — Last Stand at Veridian Belt
|
||||||
|
**Image:** `assets/themes/nms/coloring-pages/coloring1.png`
|
||||||
|
**Legend:** "Last Stand at Veridian Belt — a heavy gunship fires its twin cannons at incoming asteroids before they smash into the planet below."
|
||||||
|
**Footer asset:** `assets/themes/nms/footers/planet3.jpeg`
|
||||||
|
|
||||||
|
### Page 2 — Ore Hunter's Catch
|
||||||
|
**Image:** `assets/themes/nms/coloring-pages/coloring2.png`
|
||||||
|
**Legend:** "Ore Hunter's Catch — a rugged mining dropship reaches out with its grappling claw to crack open a giant asteroid rich with crystal ore."
|
||||||
|
**Footer asset:** `assets/themes/nms/footers/planet6.jpeg`
|
||||||
|
|
||||||
|
### Page 3 — The Whispering Cluster
|
||||||
|
**Image:** `assets/themes/nms/coloring-pages/coloring3.png`
|
||||||
|
**Legend:** "The Whispering Cluster — a sleek explorer sweeps its scanner across a spire-shaped asteroid field hiding the ruins of an ancient alien satellite."
|
||||||
|
**Footer asset:** `assets/themes/nms/footers/planet8.jpeg`
|
||||||
|
|
||||||
|
## Notes
|
||||||
|
|
||||||
|
- All images are 864x1184 (ratio ~0.73), fit A4 portrait cleanly inside a 190mm × ~260mm area.
|
||||||
|
- No `data.json` layer — the template is the final output.
|
||||||
|
- Header uses Fredoka font for a friendly title.
|
||||||
|
|
@ -0,0 +1,96 @@
|
||||||
|
<!DOCTYPE html>
|
||||||
|
<html lang="en">
|
||||||
|
<head>
|
||||||
|
<meta charset="UTF-8">
|
||||||
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||||
|
<script src="https://cdn.tailwindcss.com"></script>
|
||||||
|
<link rel="preconnect" href="https://fonts.googleapis.com">
|
||||||
|
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
|
||||||
|
<link href="https://fonts.googleapis.com/css2?family=Fredoka:wght@500;600;700&family=Nunito:wght@400;600;700&display=swap" rel="stylesheet">
|
||||||
|
<title>Space Coloring — Adventures of the Asteroid Belt</title>
|
||||||
|
<script>
|
||||||
|
tailwind.config = { theme: { extend: { fontFamily: { nunito: ['Nunito','sans-serif'], fredoka: ['Fredoka','sans-serif'] } } } }
|
||||||
|
</script>
|
||||||
|
<style>
|
||||||
|
@page { size: A4; margin: 0; }
|
||||||
|
.footer-mask {
|
||||||
|
mask-image: linear-gradient(to bottom, transparent 0%, black 70%);
|
||||||
|
-webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 70%);
|
||||||
|
}
|
||||||
|
.legend-pill {
|
||||||
|
background: rgba(255,255,255,0.92);
|
||||||
|
backdrop-filter: blur(2px);
|
||||||
|
box-shadow: 0 2px 8px rgba(49,46,129,0.18);
|
||||||
|
border-radius: 9999px;
|
||||||
|
padding: 2mm 6mm;
|
||||||
|
}
|
||||||
|
.title-stroke { letter-spacing: -0.5px; }
|
||||||
|
</style>
|
||||||
|
</head>
|
||||||
|
<body class="bg-gray-200 font-nunito">
|
||||||
|
|
||||||
|
<!-- PAGE 1 -->
|
||||||
|
<div class="w-[210mm] h-[297mm] relative overflow-hidden mx-auto bg-white flex flex-col" style="break-after: page;">
|
||||||
|
<header class="h-[16mm] flex items-center justify-between px-[10mm] shrink-0 border-b border-indigo-100">
|
||||||
|
<span class="text-[0.7rem] font-bold text-indigo-300 tracking-[0.25em] uppercase">No Man's Coloring</span>
|
||||||
|
<h1 class="font-fredoka font-semibold text-[1.35rem] text-indigo-950 title-stroke">Space Coloring — Asteroid Belt Adventures</h1>
|
||||||
|
<span class="text-[0.75rem] font-bold text-indigo-400">01 / 03</span>
|
||||||
|
</header>
|
||||||
|
<main class="flex-1 min-h-0 flex items-center justify-center px-[8mm] py-[3mm]">
|
||||||
|
<img src="/assets/themes/nms/coloring-pages/coloring1.png" alt="Last Stand at Veridian Belt" class="max-w-full max-h-full object-contain">
|
||||||
|
</main>
|
||||||
|
<footer class="h-[32mm] relative shrink-0">
|
||||||
|
<img src="/assets/themes/nms/footers/planet3.jpeg" class="absolute inset-0 w-full h-full object-cover object-center footer-mask" alt="">
|
||||||
|
<div class="relative z-10 h-full flex items-end justify-center pb-[5mm] px-[12mm]">
|
||||||
|
<p class="legend-pill text-center text-[0.82rem] italic font-semibold text-indigo-950 max-w-[175mm] leading-snug">
|
||||||
|
<span class="font-fredoka not-italic font-semibold text-indigo-700">Last Stand at Veridian Belt —</span>
|
||||||
|
a heavy gunship fires its twin cannons at incoming asteroids before they smash into the planet below.
|
||||||
|
</p>
|
||||||
|
</div>
|
||||||
|
</footer>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<!-- PAGE 2 -->
|
||||||
|
<div class="w-[210mm] h-[297mm] relative overflow-hidden mx-auto bg-white flex flex-col" style="break-after: page;">
|
||||||
|
<header class="h-[16mm] flex items-center justify-between px-[10mm] shrink-0 border-b border-indigo-100">
|
||||||
|
<span class="text-[0.7rem] font-bold text-indigo-300 tracking-[0.25em] uppercase">No Man's Coloring</span>
|
||||||
|
<h1 class="font-fredoka font-semibold text-[1.35rem] text-indigo-950 title-stroke">Space Coloring — Asteroid Belt Adventures</h1>
|
||||||
|
<span class="text-[0.75rem] font-bold text-indigo-400">02 / 03</span>
|
||||||
|
</header>
|
||||||
|
<main class="flex-1 min-h-0 flex items-center justify-center px-[8mm] py-[3mm]">
|
||||||
|
<img src="/assets/themes/nms/coloring-pages/coloring2.png" alt="Ore Hunter's Catch" class="max-w-full max-h-full object-contain">
|
||||||
|
</main>
|
||||||
|
<footer class="h-[32mm] relative shrink-0">
|
||||||
|
<img src="/assets/themes/nms/footers/planet6.jpeg" class="absolute inset-0 w-full h-full object-cover object-center footer-mask" alt="">
|
||||||
|
<div class="relative z-10 h-full flex items-end justify-center pb-[5mm] px-[12mm]">
|
||||||
|
<p class="legend-pill text-center text-[0.82rem] italic font-semibold text-indigo-950 max-w-[175mm] leading-snug">
|
||||||
|
<span class="font-fredoka not-italic font-semibold text-indigo-700">Ore Hunter's Catch —</span>
|
||||||
|
a rugged mining dropship reaches out with its grappling claw to crack open a giant asteroid rich with crystal ore.
|
||||||
|
</p>
|
||||||
|
</div>
|
||||||
|
</footer>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<!-- PAGE 3 -->
|
||||||
|
<div class="w-[210mm] h-[297mm] relative overflow-hidden mx-auto bg-white flex flex-col">
|
||||||
|
<header class="h-[16mm] flex items-center justify-between px-[10mm] shrink-0 border-b border-indigo-100">
|
||||||
|
<span class="text-[0.7rem] font-bold text-indigo-300 tracking-[0.25em] uppercase">No Man's Coloring</span>
|
||||||
|
<h1 class="font-fredoka font-semibold text-[1.35rem] text-indigo-950 title-stroke">Space Coloring — Asteroid Belt Adventures</h1>
|
||||||
|
<span class="text-[0.75rem] font-bold text-indigo-400">03 / 03</span>
|
||||||
|
</header>
|
||||||
|
<main class="flex-1 min-h-0 flex items-center justify-center px-[8mm] py-[3mm]">
|
||||||
|
<img src="/assets/themes/nms/coloring-pages/coloring3.png" alt="The Whispering Cluster" class="max-w-full max-h-full object-contain">
|
||||||
|
</main>
|
||||||
|
<footer class="h-[32mm] relative shrink-0">
|
||||||
|
<img src="/assets/themes/nms/footers/planet8.jpeg" class="absolute inset-0 w-full h-full object-cover object-center footer-mask" alt="">
|
||||||
|
<div class="relative z-10 h-full flex items-end justify-center pb-[5mm] px-[12mm]">
|
||||||
|
<p class="legend-pill text-center text-[0.82rem] italic font-semibold text-indigo-950 max-w-[175mm] leading-snug">
|
||||||
|
<span class="font-fredoka not-italic font-semibold text-indigo-700">The Whispering Cluster —</span>
|
||||||
|
a sleek explorer sweeps its scanner across a spire-shaped asteroid field hiding the ruins of an ancient alien satellite.
|
||||||
|
</p>
|
||||||
|
</div>
|
||||||
|
</footer>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
|
|
@ -0,0 +1,155 @@
|
||||||
|
<!DOCTYPE html>
|
||||||
|
<html lang="en">
|
||||||
|
<head>
|
||||||
|
<meta charset="UTF-8">
|
||||||
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||||
|
<title>Space Coloring — Space Math Adventures</title>
|
||||||
|
<link rel="preconnect" href="https://fonts.googleapis.com">
|
||||||
|
<link href="https://fonts.googleapis.com/css2?family=Fredoka:wght@400;500;600;700&family=Nunito:wght@400;600;700;800&display=swap" rel="stylesheet">
|
||||||
|
<style>
|
||||||
|
:root {
|
||||||
|
--bg-start: #eef0ff; --bg-mid: #fef3e2; --bg-end: #e8faf3;
|
||||||
|
--text-deep: #2d1b69; --text-body: #3d2d6b;
|
||||||
|
--accent-violet: #7c3aed; --accent-orange: #f97316; --accent-teal: #0d9488; --accent-pink: #ec4899;
|
||||||
|
}
|
||||||
|
* { margin: 0; padding: 0; box-sizing: border-box; }
|
||||||
|
body {
|
||||||
|
font-family: 'Nunito', sans-serif;
|
||||||
|
background: linear-gradient(170deg, var(--bg-start) 0%, var(--bg-mid) 50%, var(--bg-end) 100%);
|
||||||
|
color: var(--text-body); min-height: 100vh; overflow-x: hidden;
|
||||||
|
display: flex; flex-direction: column;
|
||||||
|
}
|
||||||
|
.page-content { flex: 1; }
|
||||||
|
.container { position: relative; z-index: 1; max-width: 920px; margin: 0 auto; padding: 0 24px; }
|
||||||
|
.back-link {
|
||||||
|
display: inline-flex; align-items: center; gap: 6px;
|
||||||
|
color: var(--accent-violet); text-decoration: none; font-size: 0.9rem; font-weight: 700;
|
||||||
|
padding-top: 40px; transition: color 0.15s;
|
||||||
|
}
|
||||||
|
.back-link:hover { color: var(--accent-pink); }
|
||||||
|
.page-header { display: flex; align-items: center; gap: 24px; padding: 20px 0 12px; }
|
||||||
|
.page-header img {
|
||||||
|
width: 110px; filter: drop-shadow(0 4px 12px rgba(124,58,237,0.2));
|
||||||
|
animation: headerBob 3s ease-in-out infinite;
|
||||||
|
}
|
||||||
|
@keyframes headerBob { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-6px)} }
|
||||||
|
.page-header h1 {
|
||||||
|
font-family: 'Fredoka', sans-serif; font-size: 2rem; font-weight: 700;
|
||||||
|
background: linear-gradient(135deg, var(--accent-violet), var(--accent-teal));
|
||||||
|
-webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
|
||||||
|
}
|
||||||
|
.header-desc {
|
||||||
|
color: var(--text-body); font-size: 0.95rem; line-height: 1.6; font-weight: 600;
|
||||||
|
padding-bottom: 28px; border-bottom: 2px solid rgba(124,58,237,0.12); margin-bottom: 28px;
|
||||||
|
}
|
||||||
|
.docs { display: flex; flex-direction: column; gap: 20px; padding-bottom: 40px; }
|
||||||
|
|
||||||
|
.doc-card {
|
||||||
|
display: flex;
|
||||||
|
background: linear-gradient(135deg, rgba(255,255,255,0.85), rgba(255,248,240,0.8));
|
||||||
|
border: 2px solid transparent; border-radius: 20px;
|
||||||
|
overflow: hidden; position: relative;
|
||||||
|
transition: transform 0.2s, box-shadow 0.2s;
|
||||||
|
backdrop-filter: blur(8px);
|
||||||
|
}
|
||||||
|
.doc-card::before {
|
||||||
|
content: ''; position: absolute; inset: -2px; border-radius: 22px;
|
||||||
|
background: linear-gradient(135deg, var(--accent-violet), var(--accent-teal));
|
||||||
|
z-index: -1; opacity: 0.25; transition: opacity 0.2s;
|
||||||
|
}
|
||||||
|
.doc-card:hover { transform: translateY(-3px); box-shadow: 0 12px 36px rgba(124,58,237,0.14); }
|
||||||
|
.doc-card:hover::before { opacity: 0.5; }
|
||||||
|
|
||||||
|
.doc-preview {
|
||||||
|
width: 170px; flex-shrink: 0; display: flex; align-items: flex-start; justify-content: center;
|
||||||
|
padding: 12px; background: linear-gradient(135deg, rgba(124,58,237,0.06), rgba(13,148,136,0.04));
|
||||||
|
}
|
||||||
|
.doc-preview img { width: 100%; border-radius: 8px; box-shadow: 0 2px 12px rgba(0,0,0,0.1); }
|
||||||
|
.doc-info { padding: 20px 24px; flex: 1; }
|
||||||
|
.doc-info h3 {
|
||||||
|
font-family: 'Fredoka', sans-serif; font-size: 1.2rem; font-weight: 600;
|
||||||
|
color: var(--text-deep); margin-bottom: 6px;
|
||||||
|
}
|
||||||
|
.doc-details { font-size: 0.83rem; color: var(--text-body); line-height: 1.6; margin-bottom: 14px; }
|
||||||
|
.tag {
|
||||||
|
display: inline-block; padding: 2px 10px; border-radius: 12px;
|
||||||
|
font-size: 0.75rem; font-weight: 700; margin-right: 4px; margin-bottom: 4px;
|
||||||
|
}
|
||||||
|
.tag-pages { background: rgba(124,58,237,0.1); color: var(--accent-violet); border: 1px solid rgba(124,58,237,0.2); }
|
||||||
|
.tag-diff { background: rgba(13,148,136,0.1); color: var(--accent-teal); border: 1px solid rgba(13,148,136,0.2); }
|
||||||
|
.doc-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
|
||||||
|
.doc-actions a {
|
||||||
|
font-size: 0.72rem; font-weight: 700; text-decoration: none;
|
||||||
|
padding: 4px 12px; border-radius: 8px; transition: all 0.15s;
|
||||||
|
display: inline-flex; align-items: center; gap: 4px;
|
||||||
|
}
|
||||||
|
.btn-preview {
|
||||||
|
color: var(--accent-violet); border: 2px solid rgba(124,58,237,0.25);
|
||||||
|
background: linear-gradient(135deg, rgba(124,58,237,0.06), rgba(124,58,237,0.02));
|
||||||
|
}
|
||||||
|
.btn-preview:hover { background: rgba(124,58,237,0.12); border-color: var(--accent-violet); }
|
||||||
|
.btn-pdf {
|
||||||
|
color: var(--accent-teal); border: 1.5px solid rgba(13,148,136,0.3);
|
||||||
|
background: linear-gradient(135deg, rgba(13,148,136,0.06), rgba(13,148,136,0.02));
|
||||||
|
}
|
||||||
|
.btn-pdf:hover { background: rgba(13,148,136,0.15); border-color: var(--accent-teal); }
|
||||||
|
.btn-pdf svg { width: 12px; height: 12px; }
|
||||||
|
|
||||||
|
.site-footer { position: relative; }
|
||||||
|
.planet-footer { height: 140px; overflow: hidden; }
|
||||||
|
.planet-footer img {
|
||||||
|
width: 100%; height: 100%; object-fit: cover;
|
||||||
|
mask-image: linear-gradient(to bottom, transparent 0%, black 50%);
|
||||||
|
-webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 50%);
|
||||||
|
}
|
||||||
|
|
||||||
|
@media (max-width: 640px) {
|
||||||
|
.doc-card { flex-direction: column; }
|
||||||
|
.doc-preview { width: 100%; max-height: 160px; }
|
||||||
|
.page-header img { width: 70px; }
|
||||||
|
.page-header h1 { font-size: 1.5rem; }
|
||||||
|
}
|
||||||
|
</style>
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
|
||||||
|
<div class="page-content">
|
||||||
|
<div class="container">
|
||||||
|
<a class="back-link" href="/tasks/index.html">← All Categories</a>
|
||||||
|
|
||||||
|
<div class="page-header">
|
||||||
|
<img src="/assets/themes/nms/coloring-pages/coloring1.png" alt="">
|
||||||
|
<h1>Space Coloring</h1>
|
||||||
|
</div>
|
||||||
|
<p class="header-desc">Full-page line-art coloring worksheets. Each page is a single scene from a No Man’s Sky-inspired universe — a detailed spaceship surrounded by asteroids, planets, and mysterious space artifacts. Grab your crayons!</p>
|
||||||
|
|
||||||
|
<div class="docs">
|
||||||
|
|
||||||
|
<div class="doc-card">
|
||||||
|
<div class="doc-preview"><img src="/tasks/space-coloring/temp/space-coloring-1-page-1.png" alt="Preview"></div>
|
||||||
|
<div class="doc-info">
|
||||||
|
<h3>Asteroid Belt Adventures</h3>
|
||||||
|
<div class="doc-details">
|
||||||
|
<span class="tag tag-pages">3 pages</span>
|
||||||
|
<span class="tag tag-diff">Coloring</span><br>
|
||||||
|
Three full-page line-art scenes: a gunship’s last stand, a mining dropship’s catch, and an explorer’s mysterious cluster.
|
||||||
|
</div>
|
||||||
|
<div class="doc-actions">
|
||||||
|
<a class="btn-preview" href="/tasks/space-coloring/docs/space-coloring-1.output.html">Preview</a>
|
||||||
|
<a class="btn-pdf" href="/output/pdf/space-coloring-1.pdf" download><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5"><path d="M21 15v4a2 2 0 01-2 2H5a2 2 0 01-2-2v-4"/><polyline points="7 10 12 15 17 10"/><line x1="12" y1="15" x2="12" y2="3"/></svg>PDF</a>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="site-footer">
|
||||||
|
<div class="planet-footer">
|
||||||
|
<img src="/assets/themes/nms/footers/planet3.jpeg" alt="">
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
|
|
@ -0,0 +1,38 @@
|
||||||
|
#!/usr/bin/env node
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Generate output HTML from template for space-coloring documents.
|
||||||
|
*
|
||||||
|
* Usage: node generate.mjs <docId>
|
||||||
|
* Example: node generate.mjs space-coloring-1
|
||||||
|
*
|
||||||
|
* Coloring pages have no editable data layer — the template IS the output.
|
||||||
|
* If a data.json exists in the future, it's currently ignored.
|
||||||
|
*/
|
||||||
|
|
||||||
|
import { readFileSync, writeFileSync, existsSync } from 'fs';
|
||||||
|
import { join, dirname } from 'path';
|
||||||
|
import { fileURLToPath } from 'url';
|
||||||
|
import { postGenerate } from '../../../src/scripts/post-generate.mjs';
|
||||||
|
|
||||||
|
const __dirname = dirname(fileURLToPath(import.meta.url));
|
||||||
|
const docsDir = join(__dirname, '..', 'docs');
|
||||||
|
|
||||||
|
const docId = process.argv[2];
|
||||||
|
if (!docId) {
|
||||||
|
console.error('Usage: node generate.mjs <docId>');
|
||||||
|
process.exit(1);
|
||||||
|
}
|
||||||
|
|
||||||
|
const templatePath = join(docsDir, `${docId}.template.html`);
|
||||||
|
const outputPath = join(docsDir, `${docId}.output.html`);
|
||||||
|
|
||||||
|
if (!existsSync(templatePath)) {
|
||||||
|
console.error(`Template not found: ${templatePath}`);
|
||||||
|
process.exit(1);
|
||||||
|
}
|
||||||
|
|
||||||
|
const html = readFileSync(templatePath, 'utf-8');
|
||||||
|
writeFileSync(outputPath, html);
|
||||||
|
console.log(`Generated: ${outputPath}`);
|
||||||
|
await postGenerate(outputPath);
|
||||||
Loading…
Reference in New Issue