-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
76 lines (72 loc) · 2.16 KB
/
index.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-giJF6kkoqNQ00vy+HMDP7azOuL0xtbfIcaT9wjKHr8RbDVddVHyTfAAsrekwKmP1" crossorigin="anonymous">
<title>Carrito de compras</title>
</head>
<body>
<div class="container">
<h1>Carrito</h1>
<hr>
<div class="row" id="cards"></div>
</div>
<template id="template-card">
<div class="col-12 mb-2 col-md-4">
<div class="card">
<img src="" alt="" class="card-img-top">
<div class="card-body">
<h5>Titulo</h5>
<p>precio</p>
<button class="btn btn-dark">Comprar</button>
</div>
</div>
</div>
</template>
<table class="table">
<thead>
<tr>
<th scope="col">#</th>
<th scope="col">Item</th>
<th scope="col">Cantidad</th>
<th scope="col">Acción</th>
<th scope="col">Total</th>
</tr>
</thead>
<tbody id="items"></tbody>
<tfoot>
<tr id="footer">
<th scope="row" colspan="5"> vacío - comience a comprar!</th>
</tr>
</tfoot>
</table>
<template id="template-footer">
<th scope="row" colspan="2">Total productos</th>
<td>10</td>
<td>
<button class="btn btn-danger btn-sm" id="vaciar-carrito">
vaciar todo
</button>
</td>
<td class="font-weight-bold">$ <span>5000</span></td>
</template>
<template id="template-carrito">
<tr>
<th scope="row">id</th>
<td>Café</td>
<td>1</td>
<td>
<button class="btn btn-info btn-sm" id="">
+
</button>
<button class="btn btn-danger btn-sm" id="">
-
</button>
</td>
<td>$ <span>500</span></td>
</tr>
</template>
<script src="app.js"></script>
</body>
</html>