Spaces:
Paused
Paused
Create book.html
Browse files- templates/book.html +39 -0
templates/book.html
ADDED
|
@@ -0,0 +1,39 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
|
| 2 |
+
<!-- templates/book.html -->
|
| 3 |
+
<!DOCTYPE html>
|
| 4 |
+
<html lang="en">
|
| 5 |
+
<head>
|
| 6 |
+
<meta charset="UTF-8">
|
| 7 |
+
<title>The Book of {{ book_name }} - Bible App</title>
|
| 8 |
+
<style>
|
| 9 |
+
body { font-family: sans-serif; margin: 2em; background-color: #f4f4f9; color: #333; }
|
| 10 |
+
.container { max-width: 800px; margin: auto; background: #fff; padding: 2em; border-radius: 8px; box-shadow: 0 2px 4px rgba(0,0,0,0.1); }
|
| 11 |
+
h1, h2 { color: #4a4a4a; }
|
| 12 |
+
p { line-height: 1.6; }
|
| 13 |
+
.verse-num { font-weight: bold; color: #5c67f2; vertical-align: super; font-size: 0.8em; margin-left: 4px; }
|
| 14 |
+
.nav-links { margin-bottom: 2em; font-size: 1.1em; }
|
| 15 |
+
a { color: #5c67f2; text-decoration: none; }
|
| 16 |
+
a:hover { text-decoration: underline; }
|
| 17 |
+
.chapter-heading { margin-top: 2em; border-bottom: 1px solid #e1e1e8; padding-bottom: 0.5em;}
|
| 18 |
+
</style>
|
| 19 |
+
</head>
|
| 20 |
+
<body>
|
| 21 |
+
<div class="container">
|
| 22 |
+
<div class="nav-links">
|
| 23 |
+
<a href="/">← Back to Search</a>
|
| 24 |
+
</div>
|
| 25 |
+
|
| 26 |
+
<h1>The Book of {{ book_name }}</h1>
|
| 27 |
+
<hr>
|
| 28 |
+
|
| 29 |
+
{% for chapter_num in chapters.keys()|sort %}
|
| 30 |
+
<h2 class="chapter-heading">Chapter {{ chapter_num }}</h2>
|
| 31 |
+
<p>
|
| 32 |
+
{% for verse in chapters[chapter_num] %}
|
| 33 |
+
<span class="verse-num">{{ verse.verse }}</span> {{ verse.text }}
|
| 34 |
+
{% endfor %}
|
| 35 |
+
</p>
|
| 36 |
+
{% endfor %}
|
| 37 |
+
</div>
|
| 38 |
+
</body>
|
| 39 |
+
</html>
|