Skip to content

Commit 7ac30a0

Browse files
committed
added css
1 parent 7408719 commit 7ac30a0

File tree

1 file changed

+98
-15
lines changed

1 file changed

+98
-15
lines changed

templates/index.html

+98-15
Original file line numberDiff line numberDiff line change
@@ -4,22 +4,105 @@
44
<meta charset="UTF-8">
55
<meta name="viewport" content="width=device-width, initial-scale=1.0">
66
<title>Bible Verse Similarity</title>
7+
<style>
8+
body {
9+
font-family: Arial, sans-serif;
10+
background-color: #f5f5f5;
11+
color: #333;
12+
margin: 0;
13+
padding: 20px;
14+
display: flex;
15+
justify-content: center;
16+
align-items: center;
17+
height: 100vh;
18+
}
19+
20+
h1 {
21+
color: #4CAF50;
22+
font-size: 2em;
23+
text-align: center;
24+
}
25+
26+
form {
27+
background-color: #fff;
28+
padding: 20px;
29+
border-radius: 8px;
30+
box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
31+
max-width: 400px;
32+
width: 100%;
33+
}
34+
35+
label {
36+
font-weight: bold;
37+
}
38+
39+
input[type="text"] {
40+
width: 100%;
41+
padding: 10px;
42+
margin-top: 8px;
43+
margin-bottom: 20px;
44+
border: 1px solid #ccc;
45+
border-radius: 4px;
46+
box-sizing: border-box;
47+
}
48+
49+
input[type="submit"] {
50+
background-color: #4CAF50;
51+
color: white;
52+
padding: 10px 15px;
53+
border: none;
54+
border-radius: 4px;
55+
cursor: pointer;
56+
font-size: 1em;
57+
width: 100%;
58+
}
59+
60+
input[type="submit"]:hover {
61+
background-color: #45a049;
62+
}
63+
64+
h2 {
65+
color: #333;
66+
font-size: 1.5em;
67+
margin-top: 20px;
68+
text-align: center;
69+
}
70+
71+
ul {
72+
list-style-type: none;
73+
padding: 0;
74+
}
75+
76+
li {
77+
background-color: #fff;
78+
margin-bottom: 15px;
79+
padding: 15px;
80+
border-radius: 8px;
81+
box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
82+
}
83+
84+
li strong {
85+
color: #4CAF50;
86+
}
87+
</style>
788
</head>
889
<body>
9-
<h1>Bible Verse Similarity</h1>
10-
<form method="POST">
11-
<label for="user_input">Enter a theme:</label><br>
12-
<input type="text" id="user_input" name="user_input" required><br><br>
13-
<input type="submit" value="Find Similar Verses">
14-
</form>
15-
16-
{% if results %}
17-
<h2>Results for "{{ user_input }}"</h2>
18-
<ul>
19-
{% for verse, similarity in results %}
20-
<li><strong>Verse:</strong> {{ verse }} <br> <strong>Similarity:</strong> {{ similarity }}</li>
21-
{% endfor %}
22-
</ul>
23-
{% endif %}
90+
<div>
91+
<h1>Bible Verse Similarity</h1>
92+
<form method="POST">
93+
<label for="user_input">Enter a theme:</label><br>
94+
<input type="text" id="user_input" name="user_input" required><br><br>
95+
<input type="submit" value="Find Similar Verses">
96+
</form>
97+
98+
{% if results %}
99+
<h2>Results for "{{ user_input }}"</h2>
100+
<ul>
101+
{% for verse, similarity in results %}
102+
<li><strong>Verse:</strong> {{ verse }} <br> <strong>Similarity:</strong> {{ similarity }}</li>
103+
{% endfor %}
104+
</ul>
105+
{% endif %}
106+
</div>
24107
</body>
25108
</html>

0 commit comments

Comments
 (0)