From afc812661742a6830ac4686183ccd2d2e3df6386 Mon Sep 17 00:00:00 2001 From: Kenneth Reitz Date: Mon, 26 May 2025 13:34:37 -0400 Subject: [PATCH] Add categorized Bible book navigation with visual styling Add categorized Bible book navigation with visual styling AI: Add categorized Bible book navigation with visual styling --- kjvstudy_org/static/style.css | 62 +++++-- kjvstudy_org/templates/base.html | 294 +++++++++++++++++++++++++++++- kjvstudy_org/templates/index.html | 116 +++++++++++- 3 files changed, 452 insertions(+), 20 deletions(-) diff --git a/kjvstudy_org/static/style.css b/kjvstudy_org/static/style.css index ce1913e..8efbc6f 100644 --- a/kjvstudy_org/static/style.css +++ b/kjvstudy_org/static/style.css @@ -19,6 +19,18 @@ --font-serif: 'EB Garamond', 'Palatino Linotype', 'Book Antiqua', Palatino, serif; --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; --font-display: 'Lora', var(--font-serif); + + /* Bible Book Category Colors */ + --torah-color: #8B4513; + --historical-color: #CD853F; + --wisdom-color: #DAA520; + --major-prophets-color: #A0522D; + --minor-prophets-color: #A52A2A; + --gospels-color: #4169E1; + --acts-color: #6495ED; + --pauline-color: #1E90FF; + --general-epistles-color: #4682B4; + --apocalyptic-color: #191970; } * { @@ -218,23 +230,38 @@ body { /* Book Grid */ .book-grid { - display: grid; - grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); - gap: 1.5rem; - margin-top: 2rem; + display: grid; + grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); + gap: 1rem; + margin-top: 2rem; } .book-card { - background: var(--surface-color); - border-radius: var(--radius-lg); - padding: 1.5rem; - text-decoration: none; - color: inherit; - box-shadow: var(--shadow-sm); - border: 1px solid var(--border-light); - transition: all 0.3s ease; - position: relative; - overflow: hidden; + background: var(--surface-color); + border-radius: var(--radius-md); + padding: 1rem; + text-decoration: none; + box-shadow: var(--shadow-sm); + transition: transform 0.2s ease, box-shadow 0.2s ease; + border: 1px solid var(--border-light); + color: var(--text-primary); +} + +.book-card:hover { + transform: translateY(-2px); + box-shadow: var(--shadow-md); +} + +/* Testament Divider */ +.testament-divider { + border: none; + height: 3px; + background: linear-gradient(90deg, var(--torah-color) 0%, var(--gospels-color) 100%); + margin: 2rem 0; + opacity: 0.7; + border-radius: 1px; + box-shadow: var(--shadow-sm); + width: 100%; } .book-card::before { @@ -269,9 +296,12 @@ body { } .book-meta { - font-size: 0.875rem; + margin: 0.25rem 0 0 0; + font-size: 0.75rem; color: var(--text-secondary); - margin: 0.5rem 0 0; + font-style: italic; + text-transform: uppercase; + letter-spacing: 0.5px; } /* Chapter Grid */ diff --git a/kjvstudy_org/templates/base.html b/kjvstudy_org/templates/base.html index 65d8e1f..2b3eebf 100644 --- a/kjvstudy_org/templates/base.html +++ b/kjvstudy_org/templates/base.html @@ -48,6 +48,178 @@ + + @@ -90,12 +262,130 @@ {% if books %} -

Bible Books

+

Old Testament

+ + +

Torah/Pentateuch

+ {% set torah = ['Genesis', 'Exodus', 'Leviticus', 'Numbers', 'Deuteronomy'] %} {% for book in books %} + {% if book in torah %} + class="bible-book torah {% if book in request.url.path %}active{% endif %}"> {{ book }} + {% endif %} + {% endfor %} + + +

Historical Books

+ {% set historical = ['Joshua', 'Judges', 'Ruth', '1 Samuel', '2 Samuel', '1 Kings', '2 Kings', '1 Chronicles', '2 Chronicles', 'Ezra', 'Nehemiah', 'Esther'] %} + {% for book in books %} + {% if book in historical %} + + {{ book }} + + {% endif %} + {% endfor %} + + +

Wisdom Literature

+ {% set wisdom = ['Job', 'Psalms', 'Proverbs', 'Ecclesiastes', 'Song of Solomon'] %} + {% for book in books %} + {% if book in wisdom %} + + {{ book }} + + {% endif %} + {% endfor %} + + +

Major Prophets

+ {% set major_prophets = ['Isaiah', 'Jeremiah', 'Lamentations', 'Ezekiel', 'Daniel'] %} + {% for book in books %} + {% if book in major_prophets %} + + {{ book }} + + {% endif %} + {% endfor %} + + +

Minor Prophets

+ {% set minor_prophets = ['Hosea', 'Joel', 'Amos', 'Obadiah', 'Jonah', 'Micah', 'Nahum', 'Habakkuk', 'Zephaniah', 'Haggai', 'Zechariah', 'Malachi'] %} + {% for book in books %} + {% if book in minor_prophets %} + + {{ book }} + + {% endif %} + {% endfor %} + +
+ +

New Testament

+ + +

Gospels

+ {% set gospels = ['Matthew', 'Mark', 'Luke', 'John'] %} + {% for book in books %} + {% if book in gospels %} + + {{ book }} + + {% endif %} + {% endfor %} + + +

Historical

+ {% set acts = ['Acts'] %} + {% for book in books %} + {% if book in acts %} + + {{ book }} + + {% endif %} + {% endfor %} + + +

Pauline Epistles

+ {% set pauline = ['Romans', '1 Corinthians', '2 Corinthians', 'Galatians', 'Ephesians', 'Philippians', 'Colossians', '1 Thessalonians', '2 Thessalonians', '1 Timothy', '2 Timothy', 'Titus', 'Philemon', 'Hebrews'] %} + {% for book in books %} + {% if book in pauline %} + + {{ book }} + + {% endif %} + {% endfor %} + + +

General Epistles

+ {% set general_epistles = ['James', '1 Peter', '2 Peter', '1 John', '2 John', '3 John', 'Jude'] %} + {% for book in books %} + {% if book in general_epistles %} + + {{ book }} + + {% endif %} + {% endfor %} + + +

Apocalyptic

+ {% set apocalyptic = ['Revelation'] %} + {% for book in books %} + {% if book in apocalyptic %} + + {{ book }} + + {% endif %} {% endfor %} {% endif %} diff --git a/kjvstudy_org/templates/index.html b/kjvstudy_org/templates/index.html index 20eee49..1cb3c24 100644 --- a/kjvstudy_org/templates/index.html +++ b/kjvstudy_org/templates/index.html @@ -15,12 +15,124 @@

+ +
+

Bible Book Categories

+
+ +
+

Old Testament

+
+ + Old Testament
+ {% set old_testament = ['Genesis', 'Exodus', 'Leviticus', 'Numbers', 'Deuteronomy', 'Joshua', 'Judges', 'Ruth', '1 Samuel', '2 Samuel', '1 Kings', '2 Kings', '1 Chronicles', '2 Chronicles', 'Ezra', 'Nehemiah', 'Esther', 'Job', 'Psalms', 'Proverbs', 'Ecclesiastes', 'Song of Solomon', 'Isaiah', 'Jeremiah', 'Lamentations', 'Ezekiel', 'Daniel', 'Hosea', 'Joel', 'Amos', 'Obadiah', 'Jonah', 'Micah', 'Nahum', 'Habakkuk', 'Zephaniah', 'Haggai', 'Zechariah', 'Malachi'] %} + + {% for book in books %} - + {% if book in ['Genesis', 'Exodus', 'Leviticus', 'Numbers', 'Deuteronomy'] %} +

{{ book }}

-

Authorized King James Version

+

Torah/Pentateuch

+ {% endif %} + {% endfor %} + + + {% for book in books %} + {% if book in ['Joshua', 'Judges', 'Ruth', '1 Samuel', '2 Samuel', '1 Kings', '2 Kings', '1 Chronicles', '2 Chronicles', 'Ezra', 'Nehemiah', 'Esther'] %} + +

{{ book }}

+

Historical

+
+ {% endif %} + {% endfor %} + + + {% for book in books %} + {% if book in ['Job', 'Psalms', 'Proverbs', 'Ecclesiastes', 'Song of Solomon'] %} + +

{{ book }}

+

Wisdom

+
+ {% endif %} + {% endfor %} + + + {% for book in books %} + {% if book in ['Isaiah', 'Jeremiah', 'Lamentations', 'Ezekiel', 'Daniel'] %} + +

{{ book }}

+

Major Prophet

+
+ {% endif %} + {% endfor %} + + + {% for book in books %} + {% if book in ['Hosea', 'Joel', 'Amos', 'Obadiah', 'Jonah', 'Micah', 'Nahum', 'Habakkuk', 'Zephaniah', 'Haggai', 'Zechariah', 'Malachi'] %} + +

{{ book }}

+

Minor Prophet

+
+ {% endif %} + {% endfor %} +
+ +
+ +

New Testament

+
+ + {% for book in books %} + {% if book in ['Matthew', 'Mark', 'Luke', 'John'] %} + +

{{ book }}

+

Gospel

+
+ {% endif %} + {% endfor %} + + + {% for book in books %} + {% if book == 'Acts' %} + +

{{ book }}

+

Historical

+
+ {% endif %} + {% endfor %} + + + {% for book in books %} + {% if book in ['Romans', '1 Corinthians', '2 Corinthians', 'Galatians', 'Ephesians', 'Philippians', 'Colossians', '1 Thessalonians', '2 Thessalonians', '1 Timothy', '2 Timothy', 'Titus', 'Philemon', 'Hebrews'] %} + +

{{ book }}

+

Pauline Epistle

+
+ {% endif %} + {% endfor %} + + + {% for book in books %} + {% if book in ['James', '1 Peter', '2 Peter', '1 John', '2 John', '3 John', 'Jude'] %} + +

{{ book }}

+

General Epistle

+
+ {% endif %} + {% endfor %} + + + {% for book in books %} + {% if book == 'Revelation' %} + +

{{ book }}

+

Apocalyptic

+
+ {% endif %} {% endfor %}