-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmeat.html
More file actions
145 lines (140 loc) · 3.53 KB
/
Copy pathmeat.html
File metadata and controls
145 lines (140 loc) · 3.53 KB
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
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Meat</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css">
<link rel="shortcut icon" href="{{ url_for('static', filename='favicon.ico') }}">
<body style="background-color:#66AC47;">
<style>
/* Header and footer */
/* This makes it so the header fits the whole page */
* {
margin: 0;
}
.pageHeader {
background-color: #007155;
height: 100px;
}
.pageFooter {
margin: 0;
position: fixed;
background-color: #007155;
height: 100px;
bottom: 0;
width: 100%;
z-index: 1;
}
.h1 {
text-align:center;
position: relative;
top: 0.5vw;
}
.h6 {
text-align:left;
position: relative;
top: 0.5vw;
left: 0.5vw;
}
.page {
min-height: 100%;
margin-bottom: 100px;
}
/* buttons for going home, back, and surprise */
.buttonHome {
position: fixed;
right: 10px;
bottom: 10px;
background-color: #A7D4EE;
border: none;
color: white;
padding: 15px 32px;
text-align: center;
text-decoration: none;
display: inline-block;
font-size: 16px;
margin: 0px 0px;
cursor: pointer;
border: 3px solid black;
z-index: 2;
}
.buttonBack {
position: fixed;
right: 200px;
bottom: 10px;
background-color: #A7D4EE;
border: none;
color: white;
padding: 15px 32px;
text-align: center;
text-decoration: none;
display: inline-block;
font-size: 16px;
margin: 0px 0px;
cursor: pointer;
border: 3px solid black;
z-index: 4;
}
.buttonSurprise {
position: fixed;
left: 10px;
top: 10px;
background-color: #A7D4EE;
border: none;
color: white;
padding: 15px 32px;
text-align: center;
text-decoration: none;
display: inline-block;
font-size: 16px;
margin: 0px 0px;
cursor: pointer;
border: 3px solid black;
z-index: 4;
}
</style>
</head>
<body>
<div class="pageHeader">
<h1 class="h1" style="color:black;font-weight:bold;font-size:80px;font-family:palatino;">{{Title}}</h1>
</div>
<!-- buttons to go home, go back, and surprise user with recipe-->
<a class="button buttonHome" href="{{ url_for('goHome') }}">Go Home</a>
<button class="button buttonBack" onclick="history.back()">Go Back</button>
<a class="button buttonSurprise" href="/surpriseMe/Meat">Surprise Me</a>
<div class="page">
<!-- header categories -->
<main role="main" class="container">
<table class="table table-hover">
<thread>
<tr>
<th>Recipe</th>
<th>Category</th>
<th>Time to Cook(mins)</th>
<th>Servings</th>
</tr>
</thread>
<tbody id ="recipe_tbody">
<!-- loop through each row and display attributes of recipes -->
{% for item in data %}
<tr>
<td> <a class="button" href="/recipe/{{item[2]}}">{{item[2]}}</a></td>
<td>{{item[1]}}</td>
<td>{{item[7]}}</td>
<td>{{item[9]}}</td>
</tr>
{% endfor %}
</tbody>
</table>
</main>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.7/umd/popper.min.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.3.1/js/bootstrap.min.js"></script>
</div>
<div class="pageFooter">
<h6 style="font-size:15px;color:white;font-family:georgia;">{{Name}} 2023 </h6>
<h6 style="font-size:15px;color:white;font-family:georgia;">CS121 - Computer Organization </h6>
</div>
</body>
</html>