-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcheckout.html
174 lines (174 loc) · 5.75 KB
/
checkout.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Shop Vida</title>
<link rel="stylesheet" href="./style.css" />
<link
rel="stylesheet"
href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.2/css/all.min.css"
integrity="sha512-z3gLpd7yknf1YoNbCzqRKc4qyor8gaKU1qmn+CShxbuBusANI9QpRohGBreCFkKxLhei6S9CQXFEbbKuqLg0DA=="
crossorigin="anonymous"
referrerpolicy="no-referrer"
/>
</head>
<body class="bg-stone-200 flex flex-col h-screen">
<header
class="flex text-xl bg-slate-950 shadow-xl shadow-slate-400 px-8 py-4 justify-between sticky top-0 z-10"
>
<a href="./">
<img
class="h-12"
src="./assets/logo/logo.png"
alt="Logo do Magazine Hashtag."
/>
</a>
</header>
<form class="flex w-100 px-5 gap-4 py-10 grow">
<section id="dados-usuario" class="w-1/3 bg-white rounded-lg py-5">
<p class="mb-5 text-center font-bold">Seus Dados</p>
<div class="flex flex-col px-10 py-3">
<label for="nome" class="font-bold text-sm mb-2">Nome</label>
<input
type="text"
id="nome"
class="rounded-sm px-2 border-2 border-slate-200 py-1"
placeholder="Joao Pinheiro"
required
/>
</div>
<div class="flex flex-col px-10 py-3">
<label for="email" class="font-bold text-sm mb-2">Email</label>
<input
type="email"
id="email"
class="rounded-sm px-2 border-2 border-slate-200 py-1"
placeholder="joao.pinheiro@hashtag.com"
required
/>
</div>
<div class="flex flex-col px-10 py-3">
<label for="nome" class="font-bold text-sm mb-2"
>Telefone de Contato</label
>
<input
type="tel"
id="nome"
class="rounded-sm px-2 border-2 border-slate-200 py-1"
placeholder="(21) 99888-7766"
required
/>
</div>
</section>
<section id="pagamento-entrega" class="w-1/3 bg-white rounded-lg py-5">
<p class="mb-5 text-center font-bold">Pagamento e Entrega</p>
<div class="flex flex-col px-10 py-3">
<label for="numero-cartao" class="font-bold text-sm mb-2"
>Numero do Cartão</label
>
<input
type="text"
id="numero-cartao"
class="rounded-sm px-2 border-2 border-slate-200 py-1"
placeholder="1111 1111 1111 1111"
required
/>
</div>
<div class="flex">
<div class="flex flex-col px-10 py-3 w-1/2">
<label for="cvv" class="font-bold text-sm mb-2">CVV</label>
<input
type="text"
id="cvv"
class="rounded-sm px-2 border-2 border-slate-200 py-1"
placeholder="222"
required
/>
</div>
<div class="flex flex-col px-10 py-3 w-1/2">
<label for="data-expiracao" class="font-bold text-sm mb-2"
>Data de Validade</label
>
<input
type="text"
id="data-expiracao"
class="rounded-sm px-2 border-2 border-slate-200 py-1"
placeholder="10/24"
required
/>
</div>
</div>
<div class="flex flex-col px-10 py-3">
<label for="cep" class="font-bold text-sm mb-2">CEP</label>
<input
type="text"
id="cep"
class="rounded-sm px-2 border-2 border-slate-200 py-1"
placeholder="11122-333"
required
/>
</div>
<div class="flex flex-col px-10 py-3">
<label for="endereco" class="font-bold text-sm mb-2">Endereço</label>
<input
type="text"
id="endereco"
class="rounded-sm px-2 border-2 border-slate-200 py-1"
placeholder="Rua que sobe e desce"
required
/>
</div>
<div class="flex">
<div class="flex flex-col px-10 py-3 w-1/2">
<label for="numero" class="font-bold text-sm mb-2">Número</label>
<input
type="text"
id="numero"
class="rounded-sm px-2 border-2 border-slate-200 py-1"
placeholder="444"
required
/>
</div>
<div class="flex flex-col px-10 py-3 w-1/2">
<label for="complemento" class="font-bold text-sm mb-2"
>Complemento</label
>
<input
type="text"
id="complemento"
class="rounded-sm px-2 border-2 border-slate-200 py-1"
placeholder="555"
required
/>
</div>
</div>
</section>
<section id="produtos-checkout" class="w-1/3 bg-white rounded-lg py-5">
<section
id="container-produtos-checkout"
class="h-4/5 overflow-y-auto px-2 flex flex-col items-center"
></section>
<section
id="celula-checkout"
class="flex flex-col px-2 h-1/5 justify-around"
>
<p
id="preco-total"
class="bg-slate-200 text-green-800 rounded-lg pl-5"
>
Total: $200
</p>
<button
class="bg-slate-900 text-slate-200 p-1 hover:bg-slate-800"
type="submit"
id="finalizar-compra-checkout"
>
Finalizar Compra
</button>
</section>
</section>
</form>
<script src="./checkout.js" type="module"></script>
</body>
</html>