From b8a3fb54c6d29754accdd914d4db9c6b0ca6b792 Mon Sep 17 00:00:00 2001 From: Botond Hende Date: Tue, 23 Dec 2025 22:04:40 +0100 Subject: buttons and extra metainfo on comic generation --- comic/assets/css/comic.css | 30 ++++++++++++++++++++++++++++++ comic/issues/1/meta.json | 3 ++- comic/templates/issue.html.j2 | 15 ++++++++++++++- modules/comic_generate.py | 11 +++++++++-- 4 files changed, 55 insertions(+), 4 deletions(-) diff --git a/comic/assets/css/comic.css b/comic/assets/css/comic.css index 9449cab..a828323 100644 --- a/comic/assets/css/comic.css +++ b/comic/assets/css/comic.css @@ -31,6 +31,36 @@ hr { color: #e9d3ff; } +ul.navigation { + margin-top: 0; + padding: 0; +} + +ul.navigation li { + display: inline; + padding-left: 0.2rem; + padding-right: 0.2rem; +} + +ul.navigation li a { + width: 4rem; + margin-left: auto; + margin-right: auto; + display: inline-block; + text-align: center; + background: #a665c6; + color: white; + border: 0.1rem solid white; + border-radius: 0.5rem; +} + +ul.navigation li a:hover { + background: white; + color: #a665c6; + border: 0.1rem solid #a665c6; + text-decoration: none; +} + img.banner { width: 100%; } diff --git a/comic/issues/1/meta.json b/comic/issues/1/meta.json index e3079db..416f3d9 100644 --- a/comic/issues/1/meta.json +++ b/comic/issues/1/meta.json @@ -1,5 +1,6 @@ { "title" : "The beginning", "publish_date" : "2025-11-28", - "description" : "I have like twenty comic ideas figured out but not the title of the series." + "description" : "I have like twenty comic ideas figured out but not the title of the series.", + "extra_attributes": "title=\"There are no tooltip texts in this series.\"" } diff --git a/comic/templates/issue.html.j2 b/comic/templates/issue.html.j2 index 70b4745..9320850 100644 --- a/comic/templates/issue.html.j2 +++ b/comic/templates/issue.html.j2 @@ -19,14 +19,27 @@

{{ issue.title() }}

- comic + + comic

{{ issue.description() }}

+