From 90b35f9d0cb0fd31cc2572dd731a4c125571a3a9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20Kr=C3=BCger?= Date: Sun, 3 May 2026 18:56:59 +0200 Subject: [PATCH] =?UTF-8?q?Remove=20interior=20title=20page=20=E2=80=94=20?= =?UTF-8?q?cover=20replaces=20it?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The title page is redundant since the KDP cover (cover.pdf) already establishes title and author. Interior now opens directly on the copyright page, followed by the TOC and stories (99 pages total). Removed unused .page--title CSS from layout and typography. Co-Authored-By: Claude Sonnet 4.6 --- scripts/build.js | 4 ++-- styles/layout.css | 17 --------------- styles/typography.css | 49 ------------------------------------------- templates/book.html | 12 ----------- 4 files changed, 2 insertions(+), 80 deletions(-) diff --git a/scripts/build.js b/scripts/build.js index 6ecefd3..4d465ef 100644 --- a/scripts/build.js +++ b/scripts/build.js @@ -69,8 +69,8 @@ async function build() { const outPath = join(root, 'output', 'book.html'); await writeFile(outPath, html, 'utf-8'); - // title page + copyright + TOC + (4 scenes × 2 pages per story) + finale - const pageCount = 3 + stories.reduce((acc, s) => acc + s.scenes.length * 2, 0) + 1; + // copyright + TOC + (4 scenes × 2 pages per story) + finale + const pageCount = 2 + stories.reduce((acc, s) => acc + s.scenes.length * 2, 0) + 1; await writeFile( join(root, 'output', 'book-meta.json'), JSON.stringify({ pageCount, storyCount: stories.length, builtAt: new Date().toISOString() }, null, 2), diff --git a/styles/layout.css b/styles/layout.css index 749a0ff..84bd583 100644 --- a/styles/layout.css +++ b/styles/layout.css @@ -66,23 +66,6 @@ margin-top: auto; } -/* ── Title page ── */ -.page--title { - background: var(--midnight, #0d0d2b); - /* Radial glow toward center */ - background-image: radial-gradient(ellipse at 50% 45%, #1a1a4a 0%, #0d0d2b 65%); - display: flex; - align-items: center; - justify-content: center; - text-align: center; -} - -.title-content { - display: flex; - flex-direction: column; - align-items: center; -} - /* ── Imprint page ── */ .page--imprint { background: var(--cream, #faf8f2); diff --git a/styles/typography.css b/styles/typography.css index a30d52f..25c049a 100644 --- a/styles/typography.css +++ b/styles/typography.css @@ -65,55 +65,6 @@ body { print-color-adjust: exact; } -/* ── Title page ── */ -.title-eyebrow { - font-family: var(--font-display); - font-style: italic; - font-weight: 300; - font-size: 0.9rem; - letter-spacing: 0.22em; - text-transform: uppercase; - color: rgba(255, 255, 255, 0.5); - margin-bottom: 1.8rem; -} - -.title-main { - font-family: var(--font-display); - font-style: italic; - font-weight: 300; - font-size: 3.4rem; - line-height: 1.15; - color: #ffffff; - margin-bottom: 1.6rem; - letter-spacing: 0.01em; -} - -.title-author { - font-family: var(--font-display); - font-style: italic; - font-weight: 400; - font-size: 1rem; - color: rgba(255, 255, 255, 0.65); - letter-spacing: 0.12em; - margin-bottom: 0.5rem; -} - -.title-sub { - font-family: var(--font-display); - font-style: italic; - font-weight: 300; - font-size: 1rem; - color: rgba(255, 255, 255, 0.45); - letter-spacing: 0.08em; -} - -.title-rule { - width: 3rem; - height: 1px; - background: rgba(255, 255, 255, 0.25); - margin: 1.4rem auto; -} - /* ── Imprint page ── */ .imprint-content { font-family: var(--font-body); diff --git a/templates/book.html b/templates/book.html index d10fee8..9a5161e 100644 --- a/templates/book.html +++ b/templates/book.html @@ -9,18 +9,6 @@ - {# ── Title page ── #} -
-
-

Das Kaleidoskop
der Schlummerwelten

-
-

Zwölf magische Geschichten für die Nacht

- {% if frontMatter.author %} -

{{ frontMatter.author }}

- {% endif %} -
-
- {# ── Copyright / imprint page ── #}