-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
452 lines (355 loc) · 16.9 KB
/
Copy pathindex.html
File metadata and controls
452 lines (355 loc) · 16.9 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
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
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<!-- LINKS -->
<link rel="stylesheet" type="text/css" href="https://cdn.jsdelivr.net/npm/toastify-js/src/toastify.min.css" />
<link rel="shortcut icon" type="imagex/png" href="./assets/hamburguer.png">
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;700&display=swap" rel="stylesheet" />
<!-- META TAG ORIGIN -->
<meta property="og:type" content="website" />
<meta property="og:title" content="Dev Burguer - A melhor hambuergueria do país!">
<meta property="og:image" content="https://cardapio-gules.vercel.app/assets/hamb-1.png">
<meta property="og:description" content="O melhor hamburguer caseiro do país.">
<meta property="og:site_name" content="DevBurger">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0-beta3/css/all.min.css" integrity="sha512-Fo3rlrZj/k7ujTnHg4CGR2D7kSs0v4LLanw2qksYuRlEzO+tcaEPQogQ0KaoGN26/zrn20ImR1DfuLWnOo7aBA==" crossorigin="anonymous" referrerpolicy="no-referrer" />
<link rel="stylesheet" href="./styles/output.css">
<title>Dev Burguer</title>
</head>
<body>
<!-- <h1 class="text-5xl">Primeiro Projeto</h1> -->
<!-- Usar comentários para estudar e anotar cada parte do código -->
<!-- Início do Header -->
<header class="w-full h-[420px] bg-zinc-900 bg-home bg-cover bg-center">
<div class="w-full h-full flex flex-col justify-center items-center">
<img
src="./assets/hamb-1.png"
alt="Logo DevBurger"
class="w-32 h-32 rounded-full shadow-lg hover:scale-110 duration-200"
/>
<h1 class="text-4xl mt-4 mb-2 font-bold text-white">Dev Burguer</h1>
<span class="text-white font-medium">Rua Dev 89, Campo Grande - MS</span>
<div class="bg-green-600 px-4 py-1 rounded-lg mt-4" id="date-span">
<span class="text-white font-medium">Seg a Dom - 18:00 às 22:00</span>
</div>
</div>
</header>
<!-- Final do Header -->
<h2 class="text-2xl md:text-3xl font-bold text-center mt-9 mb-6">
Conheça nosso menu
</h2>
<!-- Início do Menu -->
<div id="menu">
<!-- Main: grid de elementos dentro, nesta página, será os elementos dos produtos. Uma grid de dois produtos um ao lado do outro, um com um embaixo do outro, esse tipo de coisa -->
<main class="grid grid-cols-1 md:grid-cols-2 gap-7 md:gap-10 mx-auto max-w-7xl px-2 mb-16">
<!-- Início Produto Item -->
<!-- Imagem do Produto -->
<div class="flex gap-2">
<img
src="./assets/hamb-1.png"
alt="Hamburguer smash"
class="w-28 h-28 rounded-md hover:scale-110 hover:-rotate-2 duration-300"
/>
<!-- Título do Produto -->
<div>
<p class="font-bold">Hamburguer Smash</p>
<p class="text-sm">Pão levinho de fermentação natural de trigo, burguer 160g, queijo prato e maionese à moda da casa.</p>
<!-- Preço e Botão -->
<div class="flex items-center gap-2 justify-between mt-3">
<p class="font-bold text-lg">R$18.90</p>
<button
class="bg-gray-900 px-5 rounded add-to-cart-btn"
data-name="Hamburguer Smash"
data-price="18.90"
>
<i class="fa fa-cart-plus text-lg text-white"></i>
</button>
</div>
</div>
</div>
<!-- Fim Produto Item -->
<!-- Início Produto Item -->
<!-- Imagem do Produto -->
<div class="flex gap-2">
<img
src="./assets/hamb-2.png"
alt="Hamburguer duplo"
class="w-28 h-28 rounded-md hover:scale-110 hover:-rotate-2 duration-300"
/>
<!-- Título do Produto -->
<div>
<p class="font-bold">Hamburguer Duplo</p>
<p class="text-sm">Pão levinho de fermentação natural de trigo, burguer 160g, queijo prato e maionese à moda da casa.</p>
<!-- Preço e Botão -->
<div class="flex items-center gap-2 justify-between mt-3">
<p class="font-bold text-lg">R$32.90</p>
<button
class="bg-gray-900 px-5 rounded add-to-cart-btn"
data-name="Hamburguer Duplo"
data-price="32.90"
>
<i class="fa fa-cart-plus text-lg text-white"></i>
</button>
</div>
</div>
</div>
<!-- Fim Produto Item -->
<!-- Início Produto Item -->
<!-- Imagem do Produto -->
<div class="flex gap-2">
<img
src="./assets/hamb-3.png"
alt="Hamburguer salad"
class="w-28 h-28 rounded-md hover:scale-110 hover:-rotate-2 duration-300"
/>
<!-- Título do Produto -->
<div>
<p class="font-bold">Hamburguer Salad</p>
<p class="text-sm">Pão levinho de fermentação natural de trigo, burguer 160g, queijo prato e maionese à moda da casa.</p>
<!-- Preço e Botão -->
<div class="flex items-center gap-2 justify-between mt-3">
<p class="font-bold text-lg">R$35.90</p>
<button
class="bg-gray-900 px-5 rounded add-to-cart-btn"
data-name="Hamburguer Salad"
data-price="35.90"
>
<i class="fa fa-cart-plus text-lg text-white"></i>
</button>
</div>
</div>
</div>
<!-- Fim Produto Item -->
<!-- Início Produto Item -->
<!-- Imagem do Produto -->
<div class="flex gap-2">
<img
src="./assets/hamb-4.png"
alt="Hamburguer da casa"
class="w-28 h-28 rounded-md hover:scale-110 hover:-rotate-2 duration-300"
/>
<!-- Título do Produto -->
<div>
<p class="font-bold">Hamburguer da Casa</p>
<p class="text-sm">Pão levinho de fermentação natural de trigo, burguer 160g, queijo prato e maionese à moda da casa.</p>
<!-- Preço e Botão -->
<div class="flex items-center gap-2 justify-between mt-3">
<p class="font-bold text-lg">R$30.00</p>
<button
class="bg-gray-900 px-5 rounded add-to-cart-btn"
data-name="Hamburguer da Casa"
data-price="30.00"
>
<i class="fa fa-cart-plus text-lg text-white"></i>
</button>
</div>
</div>
</div>
<!-- Fim Produto Item -->
<!-- Início Produto Item -->
<!-- Imagem do Produto -->
<div class="flex gap-2">
<img
src="./assets/hamb-5.png"
alt="Hamburguer 4 queijos"
class="w-28 h-28 rounded-md hover:scale-110 hover:-rotate-2 duration-300"
/>
<!-- Título do Produto -->
<div>
<p class="font-bold">Hamburguer 4 Queijos</p>
<p class="text-sm">Pão levinho de fermentação natural de trigo, burguer 160g, queijo prato e maionese à moda da casa.</p>
<!-- Preço e Botão -->
<div class="flex items-center gap-2 justify-between mt-3">
<p class="font-bold text-lg">R$33.50</p>
<button
class="bg-gray-900 px-5 rounded add-to-cart-btn"
data-name="Hamburguer 4 queijos"
data-price="33.50"
>
<i class="fa fa-cart-plus text-lg text-white"></i>
</button>
</div>
</div>
</div>
<!-- Fim Produto Item -->
<!-- Início Produto Item -->
<!-- Imagem do Produto -->
<div class="flex gap-2">
<img
src="./assets/hamb-6.png"
alt="Hamburguer Especial com Fritas"
class="w-28 h-28 rounded-md hover:scale-110 hover:-rotate-2 duration-300"
/>
<!-- Título do Produto -->
<div>
<p class="font-bold">Hamburguer Especial com Fritas</p>
<p class="text-sm">Pão levinho de fermentação natural de trigo, burguer 160g, queijo prato e maionese à moda da casa.</p>
<!-- Preço e Botão -->
<div class="flex items-center gap-2 justify-between mt-3">
<p class="font-bold text-lg">R$45.90</p>
<button
class="bg-gray-900 px-5 rounded add-to-cart-btn"
data-name="Hamburguer Especial com Fritas"
data-price="45.90"
>
<i class="fa fa-cart-plus text-lg text-white"></i>
</button>
</div>
</div>
</div>
<!-- Fim Produto Item -->
<!-- Início Produto Item -->
<!-- Imagem do Produto -->
<div class="flex gap-2">
<img
src="./assets/hamb-7.png"
alt="Hamburguer Chicken Nuggets"
class="w-28 h-28 rounded-md hover:scale-110 hover:-rotate-2 duration-300"
/>
<!-- Título do Produto -->
<div>
<p class="font-bold">Hamburguer Chicken Nuggets</p>
<p class="text-sm">Pão levinho de fermentação natural de trigo, burguer 160g, queijo prato e maionese à moda da casa.</p>
<!-- Preço e Botão -->
<div class="flex items-center gap-2 justify-between mt-3">
<p class="font-bold text-lg">R$29.80</p>
<button
class="bg-gray-900 px-5 rounded add-to-cart-btn"
data-name="Hamburguer Chicken Nuggets"
data-price="29.80"
>
<i class="fa fa-cart-plus text-lg text-white"></i>
</button>
</div>
</div>
</div>
<!-- Fim Produto Item -->
<!-- Início Produto Item -->
<!-- Imagem do Produto -->
<div class="flex gap-2">
<img
src="./assets/hamb-8.png"
alt="Hamburguer Vegano"
class="w-28 h-28 rounded-md hover:scale-110 hover:-rotate-2 duration-300"
/>
<!-- Título do Produto -->
<div>
<p class="font-bold">Hamburguer Vegano</p>
<p class="text-sm">Pão levinho de fermentação natural de trigo, burguer 160g, queijo prato e maionese à moda da casa.</p>
<!-- Preço e Botão -->
<div class="flex items-center gap-2 justify-between mt-3">
<p class="font-bold text-lg">R$31.40</p>
<button
class="bg-gray-900 px-5 rounded add-to-cart-btn"
data-name="Hamburguer Vegano"
data-price="31.40"
>
<i class="fa fa-cart-plus text-lg text-white"></i>
</button>
</div>
</div>
</div>
<!-- Fim Produto Item -->
</main>
<div class="mx-auto max-w-7xl px-2 my-2">
<h2 class="font-bold text-3xl">Bebidas</h2>
</div>
<!-- Início do Grid Bebidas -->
<div class="grid grid-cols-1 md:grid-cols-2 gap-7 md:gap-10 mx-auto max-w-7xl px-2 mb-16" id="menu">
<!-- Início Bebida Item -->
<!-- Imagem do Produto -->
<div class="flex gap-2 w-full">
<img
src="./assets/refri-1.png"
alt="Coca-cola lata"
class="w-28 h-28 rounded-md hover:scale-110 hover:-rotate-2 duration-300"
/>
<!-- Título do Produto -->
<div class="w-full">
<p class="font-bold">Coca-cola Lata</p>
<!-- <p class="text-sm">Pão levinho de fermentação natural de trigo, burguer 160g, queijo prato e maionese à moda da casa.</p> -->
<!-- Preço e Botão -->
<div class="flex items-center gap-2 justify-between mt-3">
<p class="font-bold text-lg">R$6.00</p>
<button
class="bg-gray-900 px-5 rounded add-to-cart-btn"
data-name="Coca lata"
data-price="6"
>
<i class="fa fa-cart-plus text-lg text-white"></i>
</button>
</div>
</div>
</div>
<!-- Fim Bebida Item -->
<!-- Início Bebida Item -->
<!-- Imagem do Produto -->
<div class="flex gap-2 w-full">
<img
src="./assets/refri-2.png"
alt="Guaraná lata"
class="w-28 h-28 rounded-md hover:scale-110 hover:-rotate-2 duration-300"
/>
<!-- Título do Produto -->
<div class="w-full">
<p class="font-bold">Guaraná Lata</p>
<!-- <p class="text-sm">Pão levinho de fermentação natural de trigo, burguer 160g, queijo prato e maionese à moda da casa.</p> -->
<!-- Preço e Botão -->
<div class="flex items-center gap-2 justify-between mt-3">
<p class="font-bold text-lg">R$6.00</p>
<button
class="bg-gray-900 px-5 rounded add-to-cart-btn"
data-name="Guarana lata"
data-price="6"
>
<i class="fa fa-cart-plus text-lg text-white"></i>
</button>
</div>
</div>
</div>
<!-- Fim Bebida Item -->
</div>
<!-- Fim do Grid Bebidas -->
</div>
<!-- Fim do Menu -->
<!-- Início do Footer -->
<!-- Modal Cart -->
<div class="bg-black/60 w-full h-full fixed top-0 left-0 z-[99] items-center justify-center hidden" id="cart-modal">
<div class="bg-white p-5 rounded-md min-w-[90%] md:min-w-[600px]">
<h2 class="text-center font-bold text-2xl mb-2">Seu carrinho</h2>
<!-- Items do Carrinho -->
<div id="cart-items" class="flex justify-between mb-2 flex-col"></div>
<p class="font-bold">Total: <span id="cart-total">0.00</span></p>
<p class="font-bold mt-4">Endereço de entrega:</p>
<input
type="text"
placeholder="Digite seu endereço completo..."
id="address"
class="w-full border-2 p-1 rounded my-1"
/>
<p class="text-red-500 hidden" id="address-warn">Digite seu endereço completo!</p>
<div class="flex items-center justify-between mt-5 w-full">
<button id="close-modal-btn">Fechar</button>
<button id="checkout-btn" class="bg-green-500 text-white px-4 py-1 rounded">Finalizar pedido</button>
</div>
</div>
</div>
<!-- Fim Modal Cart -->
<!-- Button Card Footer -->
<footer class="w-full bg-red-500 py-3 fixed bottom-0 z-40 flex items-center justify-center">
<button class="flex items-center gap-2 text-white font-bold" id="cart-btn">
(<span id="cart-count">0</span>)
Veja meu carrinho
<i class="fa fa-cart-plus text-lg text-white"></i>
</button>
</footer>
<!-- Fim Button Card Footer -->
<!-- Fim do Footer -->
<!-- Script JS e Toastify JS -->
<script type="text/javascript" src="https://cdn.jsdelivr.net/npm/toastify-js"></script>
<script src="script.js"></script>
</body>
</html>