-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathmenu.html
311 lines (307 loc) · 11.8 KB
/
menu.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
304
305
306
307
308
309
310
311
<!doctype html>
<html lang="en">
<head>
<!-- Required meta tags -->
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<link rel="shortcut icon" href="https://www.uma.pt/wp-content/themes/uma/images/servicos_imgs/logos_uma/logotipos_UMa_png-03.png" type="image/x-icon">
<!-- Bootstrap CSS -->
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap@4.5.3/dist/css/bootstrap.min.css" integrity="sha384-TX8t27EcRE3e/ihU7zmQxVncDAy5uIKz4rEkgIXeMed4M0jlfIDPvg6uqKI2xXr2" crossorigin="anonymous">
<link rel="stylesheet" href="style.css">
<!-- FontAwesome CSS -->
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css" integrity="sha384-wvfXpqpZZVQGK6TAh5PVlGOfQNHSoD2xbE+QkPxCAFlNEevoEH3Sl0sibVcOQVnN" crossorigin="anonymous">
<title>UMa Cantina - Menu</title>
<style>
.cor-principal {
color: crimson;
}
/*novos estilos para o menu*/
.preco {
font-weight: 700;
}
.obs {
width:12em;
word-wrap: break-word;
height: 5em;
overflow: hidden;
}
</style>
</head>
<body>
<header>
<div class="container p-0 bkg">
<nav class="navbar navbar-expand-sm navbar-light bg-light">
<a class="navbar-brand" href="index.html">
<h1>
<span class="cor-principal">UMa</span>Cantina
</h1>
</a>
<button class="navbar-toggler d-lg-none" type="button" data-toggle="collapse" data-target="#collapsibleNavId" aria-controls="collapsibleNavId"
aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse" id="collapsibleNavId">
<ul class="navbar-nav ml-auto">
<li class="nav-item">
<a class="nav-link" href="index.html">Home</a>
</li>
<li class="divider py-2 d-none d-md-block cor-principal">/</li>
<li class="nav-item active">
<a class="nav-link" href="menu.html">Menu <span class="sr-only">(current)</span></a>
</li>
<li class="divider py-2 d-none d-md-block cor-principal">/</li>
<li class="nav-item">
<a class="nav-link" href="umacantinaacerca.html">Acerca</a>
</li>
<li class="divider py-2 d-none d-md-block cor-principal">/</li>
<li class="nav-item">
<a href="contact.html" class="nav-link">Contacto</a>
</li>
<li class="nav-item">
<button type="button" class="btn btn-outline-danger" data-toggle="modal" data-target="#reservationModal">Reservas</button>
</li>
</ul>
</div>
</nav>
</div>
</header>
<section>
<div class="container">
<div class="col-lg-12">
<div class="row d-flex flex-wrap" id="cardapio"></div>
</div>
</div>
</section>
<!-- <div class="row">
<div class="col text-left">
<h3>Appetizers</h3>
</div>
</div>
<hr>
<div class="row">
<div class="col-xs-12 col-sm-12 col-md-4 col-lg-4 col-xl-4 mb-3">
<h4 class="text-danger">
Lorem, ipsum.
</h4>
<p>Lorem ipsum dolor sit amet consectetur adipisicing elit.</p>
<h5 class="text-warning">
2€
</h5>
</div>
<div class="col-xs-12 col-sm-12 col-md-4 col-lg-4 col-xl-4 mb-3">
<h4 class="text-danger">
Lorem.
</h4>
<p>Lorem ipsum dolor sit amet consectetur adipisicing elit. Fugiat, minus saepe nesciunt ipsa recusandae eius!</p>
<h5 class="text-warning">
2.99€
</h5>
</div>
<div class="col-xs-12 col-sm-12 col-md-4 col-lg-4 col-xl-4 mb-3">
<h4 class="text-danger">
Lorem ipsum dolor sit amet.
</h4>
<p>Lorem ipsum dolor sit amet consectetur adipisicing elit. Veritatis quisquam sunt repudiandae.</p>
<h5 class="text-warning">
5€
</h5>
</div>
<div class="col-xs-12 col-sm-12 col-md-4 col-lg-4 col-xl-4 mb-3">
<h4 class="text-danger">
Lorem ipsum dolor sit amet consectetur.
</h4>
<p>Lorem ipsum dolor, sit amet consectetur adipisicing elit. Animi, maiores!</p>
<h5 class="text-warning">
10€
</h5>
</div>
<div class="col-xs-12 col-sm-12 col-md-4 col-lg-4 col-xl-4 mb-3">
<h4 class="text-danger">
Lorem, ipsum dolor.
</h4>
<p>Lorem ipsum dolor sit amet consectetur adipisicing.</p>
<h5 class="text-warning">
1€
</h5>
</div>
<div class="col-xs-12 col-sm-12 col-md-4 col-lg-4 col-xl-4 mb-3">
<h4 class="text-danger">
Lorem ipsum dolor sit.
</h4>
<p>Lorem ipsum dolor sit amet consectetur, adipisicing elit. Harum?</p>
<h5 class="text-warning">
4€
</h5>
</div>
</div>
<div class="row">
<div class="col text-left">
<h3>Sandwiches <span style="font-size: 1rem; font-weight: 400;">Lorem ipsum dolor sit amet consectetur adipisicing elit. Vitae, eaque.</span></h3>
</div>
</div>
<hr>
<div class="row">
<div class="col-xs-12 col-sm-12 col-md-4 col-lg-4 col-xl-4 mb-3">
<h4 class="text-danger">
Lorem ipsum dolor sit.
</h4>
<p>Lorem ipsum dolor sit amet consectetur, adipisicing elit. Harum?</p>
<h5 class="text-warning">
6€
</h5>
</div>
<div class="col-xs-12 col-sm-12 col-md-4 col-lg-4 col-xl-4 mb-3">
<h4 class="text-danger">
Lorem ipsum dolor sit.
</h4>
<p>Lorem ipsum dolor sit amet consectetur, adipisicing elit. Harum?</p>
<h5 class="text-warning">
8€
</h5>
</div>
<div class="col-xs-12 col-sm-12 col-md-4 col-lg-4 col-xl-4 mb-3">
<h4 class="text-danger">
Lorem ipsum dolor sit.
</h4>
<p>Lorem ipsum dolor sit amet consectetur, adipisicing elit. Harum?</p>
<h5 class="text-warning">
4€
</h5>
</div>
</div>
<div class="row">
<div class="col text-left">
<h3>Burgers <span style="font-size: 1rem; font-weight: 400;">Lorem ipsum dolor sit amet consectetur adipisicing elit. Vitae, eaque.</span></h3>
</div>
</div>
<hr>
<div class="row">
<div class="col-xs-12 col-sm-12 col-md-4 col-lg-4 col-xl-4 mb-3">
<h4 class="text-danger">
Lorem ipsum dolor sit amet consectetur.
</h4>
<p>Lorem ipsum dolor sit amet consectetur, adipisicing elit. Harum?</p>
<h5 class="text-warning">
10€
</h5>
</div>
<div class="col-xs-12 col-sm-12 col-md-4 col-lg-4 col-xl-4 mb-3">
<h4 class="text-danger">
Lorem, ipsum.
</h4>
<p>Lorem ipsum dolor sit amet consectetur, adipisicing elit. Harum?</p>
<h5 class="text-warning">
12€
</h5>
</div>
<div class="col-xs-12 col-sm-12 col-md-4 col-lg-4 col-xl-4 mb-3">
<h4 class="text-danger">
Lorem ipsum dolor sit.
</h4>
<p>Lorem ipsum dolor sit amet consectetur, adipisicing elit. Harum?</p>
<h5 class="text-warning">
20€
</h5>
</div>
</div>
</div>
<footer>
<div class="container px-0">
<div class="col-lg-12 text-center">
<h3>UMA Cantina</h3>
<br>
<br>
<p>Rua de Santa Maria, nº 253 / Funchal / 291.123.123</p>
<p>Horário: De 2ª a 6ª e Sábado das 09:00 às 14:00</p>
<br>
<div class="social-media">
<a href="#">
<i class="fa fa-facebook"></i>
</a>
<a href="#">
<i class="fa fa-pinterest"></i>
</a>
<a href="#">
<i class="fa fa-instagram"></i>
</a>
</div>
<br>
<p></p>
</div> -->
<footer>
<div class="container px-0">
<div class="col-lg-12 text-center">
<h3>UMA Cantina</h3>
<br>
<br>
<p>Rua de Santa Maria, nº 253 / Funchal / 291.123.123</p>
<p>Horário: De 2ª a 6ª e Sábado das 09:00 às 14:00</p>
<br>
<div class="social-media">
<a href="#">
<i class="fa fa-facebook"></i>
</a>
<a href="#">
<i class="fa fa-pinterest"></i>
</a>
<a href="#">
<i class="fa fa-instagram"></i>
</a>
</div>
<br>
<p></p>
</div>
</div>
</footer>
<!-- Modal -->
<div class="modal fade" id="reservationModal" tabindex="-1" role="dialog" aria-labelledby="modelTitleId" aria-hidden="true">
<div class="modal-dialog" role="document">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title cor-principal">Reserva</h5>
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
<span aria-hidden="true">×</span>
</button>
</div>
<div class="modal-body">
<form>
<div class="form-group">
<label>Nome</label>
<input type="text" class="form-control" placeholder="Insira o nome do titular da reserva">
</div>
<div class="form-group">
<label>Data</label>
<input type="text" class="form-control" placeholder="Insira a data pretendida">
</div>
</form>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-secondary" data-dismiss="modal">Cancelar</button>
<button type="button" class="btn btn-danger">Reservar</button>
</div>
</div>
</div>
</div>
<script src="https://code.jquery.com/jquery-3.2.1.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/popper.js@1.16.1/dist/umd/popper.min.js" integrity="sha384-9/reFTGAW83EW2RDu2S0VKaIzap3H66lZH81PoYlFhbGU+6BZp6G7niu735Sk7lN" crossorigin="anonymous"></script>
<script src="https://cdn.jsdelivr.net/npm/bootstrap@4.5.3/dist/js/bootstrap.min.js" integrity="sha384-w1Q4orYjBQndcko6MimVbzY0tgp4pWB4lZ7lr30WKz0vr/aWKhXdBNmNb5D92v7s" crossorigin="anonymous"></script>
<script>
$(document).ready(() => {
$.getJSON('https://final-project-recording-817f4.firebaseio.com/cardapio/.json', (data) => {
var html = '';
console.log(data);
$.each(data, (entryIndex, entry) => {
html += '<div class="p-4">';
html += '<h3 class="cor-principal">' + entry.prato + '</h3>';
html += '<p class="obs">' + entry.obs + '</p>';
html += '<p class="cor-principal preco">';
html += entry.total;
html += ' euros</p>';
html += '</div>';
});
$('#cardapio').html(html);
});
});
</script>
</body>
</html>