-
Notifications
You must be signed in to change notification settings - Fork 0
/
checkout.html
190 lines (182 loc) · 5.78 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
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
<!DOCTYPE html>
<html lang="pt-br">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Document</title>
<link rel="stylesheet" href="src/tailwind.css" />
<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="bg-emerald-950 flex justify-between text-white p-4 px-6 sticky top-0 shadow-lg shadow-stone-800 z-40"
>
<div class="flex">
<a target="_blank" href="https://github.com/AlexSimao">
<img
src="./assets/logo/img-amp.svg"
alt="imagem Aleatória"
class="h-10"
/>
</a>
<a href="./"
><img
src="./assets/logo/hashtag.svg"
alt="Logo da Hashtag"
class="h-10"
/></a>
</div>
</header>
<form class="flex max-md:flex-col max-md:items-center px-5 gap-4 py-7 grow">
<section
id="dados-usuario"
class="w-1/3 max-md:w-full bg-stone-300 rounded-xl py-4"
>
<p class="text-center mb-4 font-bold">Seus Dados</p>
<div class="flex flex-col px-10 py-3">
<label for="nome" class="text-sm font-bold">Nome: </label>
<input
id="nome"
type="text"
class="rounded-lg px-2"
placeholder="Ex: João Santos"
required
/>
</div>
<div class="flex flex-col px-10 py-3">
<label for="email" class="text-sm font-bold">Email: </label>
<input
id="email"
type="email"
class="rounded-lg px-2"
placeholder="Ex: joao_santos123@exemple.com"
required
/>
</div>
<div class="flex flex-col px-10 py-3">
<label for="telefone" class="text-sm font-bold">Telefone: </label>
<input
id="telefone"
type="text"
class="rounded-lg px-2"
placeholder="Ex: (11)912345678"
required
/>
</div>
</section>
<section
id="pagamento-entrega"
class="w-1/3 max-md:w-full bg-stone-300 rounded-xl py-4"
>
<p class="text-center mb-4 font-bold">Pagamentos e Entrega</p>
<div class="flex flex-col px-10 py-3">
<label for="numero-cartao" class="text-sm font-bold"
>Numero do Cartão:
</label>
<input
id="numero-cartao"
type="text"
class="rounded-lg px-2"
placeholder="Ex: xxxx xxxx xxxx xxxx"
required
/>
</div>
<div class="flex px-10 py-3 gap-2">
<div class="flex flex-col pr-2 w-1/2">
<label for="cvv" class="text-sm font-bold">CVV: </label>
<input
id="cvv"
type="number"
class="rounded-lg px-2"
placeholder="Ex: 111"
required
/>
</div>
<div class="flex flex-col pr-2 w-1/2">
<label for="validade" class="text-sm font-bold"
>Data de Validade:
</label>
<input
id="validade"
type="text"
class="rounded-lg px-2"
placeholder="mm/aa"
required
/>
</div>
</div>
<hr />
<div class="flex flex-col px-10 py-3">
<label for="cep" class="text-sm font-bold">CEP: </label>
<input
id="cep"
type="text"
class="rounded-lg px-2"
placeholder="Ex: 01234-123"
required
/>
</div>
<div class="flex px-10 py-3 gap-2">
<div class="flex flex-col w-3/4">
<label for="rua" class="text-sm font-bold">Nome da Rua: </label>
<input
id="rua"
type="text"
class="rounded-lg px-2"
placeholder="Ex: Rua Nelson Fernandes"
required
/>
</div>
<div class="flex flex-col w-1/4">
<label for="endereco" class="text-sm font-bold">N°: </label>
<input
id="endereco"
type="text"
class="rounded-lg px-2"
placeholder="Ex: 123"
required
/>
</div>
</div>
<div class="flex flex-col px-10 py-3">
<label for="complemeto" class="text-sm font-bold">Complemeto: </label>
<input
id="complemeto"
type="text"
class="rounded-lg px-2"
placeholder="Ex: Casa amarela"
/>
</div>
</section>
<section
id="produtos-checkout"
class="w-1/3 max-md:w-full bg-stone-300 rounded-xl pt-4 px-4"
>
<section
id="container-produtos-checkout"
class="h-96 overflow-y-auto flex flex-col gap-3 items-center"
>
<!-- Criado por Javascript -->
</section>
<section id="celula-checkout" class="flex flex-col justify-center h-24">
<p id="preco-total">Total: <span>R$ 0</span></p>
<button
id="btn-finalizar-compra"
class="text-black font-bold p-1 bg-white active:bg-slate-600 hover:text-white hover:bg-black"
type="submit"
>
Finalizar Compra
</button>
</section>
</section>
</form>
<script src="./checkout.js" type="module"></script>
</body>
</html>