-
Notifications
You must be signed in to change notification settings - Fork 2
/
1.html
303 lines (269 loc) · 7.65 KB
/
1.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
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
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Food Information</title>
<link rel="stylesheet" href="./styles/header.css">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0/css/all.min.css">
<style>
#top{
height: 120px;
width: 75%;
margin: auto;
margin-bottom: 20px;
display: flex;
}
#tag h2{
margin-bottom: -50px;
}
#tag>p{
padding-left: 240px;
}
#im{
border: 4px solid rgb(7, 167, 7);
width: 60%;
display: flex;
}
#im img{
height: 100px;
width: 100px;
padding: 5px;
}
#im>div{
margin-left: 20px;
font-family: calibri;
}
/* ********* ---- Another Side Part ---------- ******** */
#ri{
background-color: #EDF1E9;
width: 300px;
padding: 20px;
margin-left: 20px;
}
#tag p{
margin-left: -240px;
margin-top: 60px;
}
i{
font-weight: bold;
font-family: calibri;
font-size: 21px;
display: block;
margin-bottom: 20px;
}
#btn{
background-color: blue;
color: white;
border: none;
height: 30px;
padding: 3px;
width: 50px;
cursor: pointer;
border-radius: 5px;
padding-top: 5px;
margin-top: -5px;
}
.btn{
margin-left: 230px;
margin-top: -25px;
width: 55px;
}
#ri>input{
height: 28px;
width: 220px;
}
/* ------------- bottom ----------------*/
.p{
font-family: arial;
font-size: 12px;
margin-left: 13%;
}
.p p+p{
margin-left: 16%;
margin-top: 20px;
}
.an{
margin-left: 12.4%;
background-color: #EDF1E9;
width: 46%;
padding-top: 10px;
padding-bottom: 10px;
padding-left: 200px;
}
.an a{
text-decoration: none;
font-family: calibri;
color: blue;
}
.an a:hover{
text-decoration: underline;
}
#information{
margin-left: 13%;
width: 47%;
margin-bottom: 50px;
margin-top: 30px;
}
#information a{
text-decoration: none;
}
h3,h2,th{
font-family: arial;
}
table, td,th {
border: 1px solid black;
border-collapse: collapse;
background-color: hsl(204, 100%, 99%);
}
td>h3{
font-size: 15px;
}
.highlight{
background-color: #BACFE6;
}
.nutrient{
background-color: #E6EEF6;
}
#img-logo{
margin-left: 600px;
/* margin-top: 100px; */
}
#img-logo>h4{
margin-left: 110px;
margin-bottom: 8px;
}
#img-logo>img{
margin-left: 20px;
}
</style>
</head>
<body>
<div id="header"></div>
<div id="top">
<div id="im">
<img src="https://img.freepik.com/free-vector/spoon-fork-knife-plate-3d-illustration_33099-205.jpg" alt="">
<div id="tag">
<h2>Foods</h2>
<p>Browse common foods and products from your favourite brands and restaurants.<p>
</div>
</div>
<!-- #region right search bar-->
<div id="ri">
<i>Food Search</i>
<input type="text" placeholder="Enter search" id="query">
<div class="btn">
<button id="btn" ><i class="fa-solid fa-magnifying-glass"></i></button>
</div>
</div>
</div>
<div class="p">
<p>Nutritional information for a variety of types and serving sizes of Baked Beans is shown below.</p>
<p>View Other Nutritional Values Using the Filter Below:</p>
</div>
<div class="an">
<a href="">Calories |</a>
<a href="1.html">Total Carbs |</a>
<a href="fat.html">Total Fats |</a>
<a href="">Protein</a>
</div>
<div id="information">
<table>
<thead>
<tr id="bg">
<th>
<div style="float:left;margin-top: 10px;">
<img src="https://a.ftscrt.com/static/images/box/recipesicon.gif" alt="" >
</div>
<div style="float:left;line-height: 10px;margin-top: 15px;font-size: 10px;margin-right: 10px;">
<h2>Popular types of Baked Beans</h2>
</div>
</th>
<!-- #region second head ***************-->
<th title="Net C(g)">Net C(g)</th>
<th title="Sugar(g)">Sugar(g)</th>
<th title="Fiber(g)">Fiber(g)</th>
<th title="Total Carbs(g)">Total Carbs(g)</th>
</tr>
<tr id="bg">
<td>
<h3>Baked Beans</h3>
</td>
</tr>
<tr>
<td>
<a href="#">1 cup</a>
</td>
<td class="nutrient">40.22</td>
<td class="nutrient">No</td>
<td class="nutrient">13.29</td>
<td class="highlight ">54.12</td>
</tr>
<tr>
<td>
<a href="#">100 g</a>
</td>
<td class="nutrient">15.89</td>
<td class="nutrient">No</td>
<td class="nutrient">5.5</td>
<td class="highlight ">21.39</td>
</tr>
<!-- #region 2nd **********************-->
<tr id="bg">
<td>
<h3>Vegetarian Baked Beans</h3>
</td>
</tr>
<tr>
<td>
<a href="#">1 cup</a>
</td>
<td class="nutrient">43.30</td>
<td class="nutrient">22.96</td>
<td class="nutrient">10.4</td>
<td class="highlight ">53.70</td>
</tr>
<tr>
<td>
<a href="#">100 g</a>
</td>
<td class="nutrient">17.04</td>
<td class="nutrient">9.04</td>
<td class="nutrient">4.1</td>
<td class="highlight ">21.14</td>
</tr>
<!-- #region 3rd ******************-->
<tr id="bg">
<td>
<h3>Baked Beans with Pork (Canned)</h3>
</td>
</tr>
<tr>
<td>
<a href="#">1 cup</a>
</td>
<td class="nutrient">13.65</td>
<td class="nutrient">No</td>
<td class="nutrient">13.9</td>
<td class="highlight ">50.55</td>
</tr>
<tr>
<td>
<a href="#">100 g</a>
</td>
<td class="nutrient">14.48</td>
<td class="nutrient">No</td>
<td class="nutrient">13.9</td>
<td class="highlight ">19.98</td>
</tr>
</thead>
</table>
</div>
</body>
</html>
<script type="module">
import { header } from "./components/header.js";
let headerDiv = document.querySelector("#header");
headerDiv.innerHTML = header();
</script>