-
Notifications
You must be signed in to change notification settings - Fork 0
/
recommend.html
87 lines (54 loc) · 2.24 KB
/
recommend.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Next Read</title>
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" integrity="sha384-BVYiiSIFeK1dGmJRAkycuHAHRg32OmUcww7on3RYdg4Va+PmSTsz/K68vbdEjh4u" crossorigin="anonymous">
<style>
/* Custom CSS for wider search bar */
.wide-search-bar {
width: 80%;
}
/* Custom CSS for orange submit button */
.orange-btn {
background-color: orange;
color: white;
}
</style>
</head>
<body style="background-color: #FFF6D2">
<nav class="navbar" style="background-color:#FF5733; align-items: center;">
<a href=# class="navbar-brand" style="color:#FFF6D2; font-size:30px; ">📚NextRead</a>
<ul class="nav navbar-nav">
<li><a href="/" style="color:black; font-size:20px; ">Home</a></li>
<li><a href="/recommend" style="color:black; font-size:20px; ">Recommend</a></li>
<li><a style="color:black; font-size:20px; ">Contact</a></li>
</ul>
</nav>
.
<div class="container">
<div class="row">
<div class="col-md-12">
<h1 style="text-align:center; color:#ffa600"><b>Pick 📚 NextRead</b> </h1>
</div>
<form action="/urnextreads" method="post">
<input name="user_input" type="text" class="form-control" placeholder="Search"><br>
<button type="submit" class="btn btn-primary mb-2 orange-btn">Submit</button>
</form>
{% if data %}
{% for i in data %}
<div class="col-md-3" style="margin-top:70px;">
<div class="card">
<div class="card-body">
<img class="card-img-top" src="{{i[2]}}">
<h4 style="margin-top:20px;"><b>{{i[0]}}</b></h4>
<h5>{{i[1]}}</h5>
</div>
</div>
</div>
{% endfor %}
{% endif %}
</div>
</div>
</body>
</html>