broadfield-dev commited on
Commit
134533e
·
verified ·
1 Parent(s): 061fe70

Create templates/index.html

Browse files
Files changed (1) hide show
  1. templates/index.html +31 -0
templates/index.html ADDED
@@ -0,0 +1,31 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <!DOCTYPE html>
2
+ <html lang="en">
3
+ <head>
4
+ <meta charset="UTF-8">
5
+ <title>Bible Search App</title>
6
+ <style>
7
+ body { font-family: sans-serif; margin: 2em; }
8
+ .result { border: 1px solid #ccc; padding: 1em; margin-bottom: 1em; border-radius: 5px; }
9
+ .reference { font-weight: bold; }
10
+ </style>
11
+ </head>
12
+ <body>
13
+ <h1>Bible Search</h1>
14
+ <form action="/search" method="post">
15
+ <input type="text" name="query" size="50" placeholder="e.g., love is patient, love is kind">
16
+ <input type="submit" value="Search">
17
+ </form>
18
+
19
+ {% if query %}
20
+ <h2>Results for: "{{ query }}"</h2>
21
+ {% endif %}
22
+
23
+ {% for result in results %}
24
+ <div class="result">
25
+ <p class="reference">{{ result.reference }} ({{result.version}})</p>
26
+ <p>{{ result.text }}</p>
27
+ <small>Score: {{ "%.4f"|format(result.score) }}</small>
28
+ </div>
29
+ {% endfor %}
30
+ </body>
31
+ </html>