-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcheckout.html
More file actions
67 lines (63 loc) · 2.3 KB
/
checkout.html
File metadata and controls
67 lines (63 loc) · 2.3 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
<!DOCTYPE html>
<html lang="pt">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Checkout - SmartZone</title>
<link rel="stylesheet" href="style.css">
</head>
<body>
<main class="checkout-page">
<div class="checkout-header">
<div>
<h1>Pagina de checkout</h1>
<p class="checkout-note">Confirme os seus dados e finalize a compra.</p>
</div>
<a href="index.html" class="checkout-back">Voltar para a loja</a>
</div>
<div class="checkout-grid">
<section class="checkout-card">
<h2>Dados do cliente</h2>
<form id="checkoutForm" class="checkout-form">
<input type="text" id="checkoutName" placeholder="Nome completo" required>
<input type="email" id="checkoutEmail" placeholder="Email" required>
<input type="text" id="checkoutPhone" placeholder="Telefone" required>
<input type="text" id="checkoutAddress" placeholder="Endereco de entrega" required>
<button type="submit">Finalizar compra</button>
</form>
<p id="checkoutMessage"></p>
<section id="invoiceCard" class="invoice-card hidden">
<h3>Fatura simples</h3>
<p id="invoiceNumber"></p>
<p id="invoiceClient"></p>
<p id="invoiceDate"></p>
<p id="invoiceTotal"></p>
</section>
</section>
<aside class="checkout-card">
<h2>Resumo do pedido</h2>
<ul id="checkoutItems" class="checkout-list"></ul>
<p id="checkoutEmpty" class="checkout-note">Nao existem produtos no carrinho.</p>
<div class="checkout-line">
<span>Itens</span>
<span id="checkoutCount">0</span>
</div>
<div class="checkout-line">
<span>Subtotal</span>
<span id="checkoutSubtotal">0 MT</span>
</div>
<div class="checkout-summary">
<span>Total</span>
<span id="checkoutTotal">0 MT</span>
</div>
</aside>
</div>
<section class="checkout-card history-card">
<h2>Historico de compras</h2>
<ul id="historyList" class="checkout-list"></ul>
<p id="historyEmpty" class="checkout-note">Ainda nao existem compras finalizadas.</p>
</section>
</main>
<script src="checkout.js"></script>
</body>
</html>