-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcheckout.html
190 lines (187 loc) · 6.93 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>Magazine Hashtag</title>
<link rel="stylesheet" href="style.css" />
<link rel="stylesheet" href="reset.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-slate-400 shadow-xl px-8 py-2 justify-between sticky top-0 z-10"
>
<a href="/" target="_blank noopener noreferrer nofollow">
<img
class="h-12"
src="./assets/logo/hashtag.svg"
alt="Logo do magazine hashtag"
/>
</a>
</header>
<form class="flex flex-wrap w-100 px-5 py-10 gap-4">
<section
id="dados-pagamento"
class="w-1/3 bg-white rounded-lg py-5 wrap grow shrink basis-60"
>
<p class="mb-5 text-center font-bold">Seus Dados</p>
<div class="flex flex-col px-5 py-5">
<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 text-blue-800 focus:invalid:border-blue-700 focus:invalid:ring-blue-700 py-1"
placeholder="Emerson Pessoa"
required
/>
</div>
<div class="flex flex-col px-5 py-5">
<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 text-blue-800 focus:invalid:border-blue-700 focus:invalid:ring-blue-700 py-1"
placeholder="emson@gmail.com"
required
/>
</div>
<div class="flex flex-col px-5 py-5">
<label for="tel" class="font-bold text-sm mb-2">Telefone</label>
<input
type="tel"
id="tel"
class="rounded-sm px-2 border-2 border-slate-200 text-blue-800 focus:invalid:border-blue-700 focus:invalid:ring-blue-700 py-1"
placeholder="(99)9 9999-9999"
required
/>
</div>
</section>
<section
id="pagamento-entrega"
class="w-1/3 bg-white rounded-lg py-5 wrap grow shrink basis-60 justify-self-start"
>
<p class="mb-5 text-center font-bold">Pagamento e Entrega</p>
<div class="flex flex-col px-5 py-5">
<label for="numero-cartao" class="font-bold text-sm mb-2"
>Número do Cartão</label
>
<input
type="text"
id="numero-cartao"
class="rounded-sm px-2 border-2 border-slate-200 text-blue-800 focus:invalid:border-blue-700 focus:invalid:ring-blue-700 py-1"
placeholder="1111 1111 1111 1111"
required
/>
</div>
<!-- CVV -->
<div class="flex flex-wrap px-5 py-5">
<div class="flex flex-col wrap grow basis-60 px-2 py-5 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 text-blue-800 focus:invalid:border-blue-700 focus:invalid:ring-blue-700 py-1"
placeholder="222"
required
/>
</div>
<!-- DATA VALIDADE -->
<div class="flex flex-col wrap grow basis-52 px-2 py-5 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 text-blue-800 focus:invalid:border-blue-700 focus:invalid:ring-blue-700 py-1"
placeholder="10/24"
required
/>
</div>
</div>
<!-- Cep -->
<div class="flex flex-col px-5 py-5">
<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 text-blue-800 focus:invalid:border-blue-700 focus:invalid:ring-blue-700 py-1"
placeholder="99.999-99"
required
/>
</div>
<!-- Endereço -->
<div class="flex flex-col px-5 py-5">
<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 text-blue-800 focus:invalid:border-blue-700 focus:invalid:ring-blue-700 py-1"
placeholder="Rua da Felicidade"
required
/>
</div>
<!-- DADOS -->
<div class="flex flex-wrap px-5 py-5">
<!-- Número -->
<div class="flex flex-col wrap grow basis-52 px-2 py-5 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 text-blue-800 focus:invalid:border-blue-700 focus:invalid:ring-blue-700 py-1"
placeholder="444"
required
/>
</div>
<!-- COMPLEMENTO -->
<div class="flex flex-col wrap grow basis-52 px-2 py-5 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 text-blue-800 focus:invalid:border-blue-700 focus:invalid:ring-blue-700 py-1"
placeholder="Detalhe/Referência"
required
/>
</div>
</div>
</section>
<section
id="produtos-checkout"
class="w-1/3 bg-white rounded-lg py-5 wrap grow shrink basis-60 justify-self-start"
>
<section
id="container-produtos-checkout"
class="h-4/5 overflow-y-auto px-2"
>
<!-- conteúdo produtos -->
</section>
<section
id="celula-checkout"
class="flex flex-col px-2 h-1/5 justify-around"
>
<p class="bg-slate-200 text-green-800 p-2 rounded" id="preco-total">
Total: R$200
</p>
<button
class="bg-slate-900 text-slate-200 p-2 hover:bg-slate-700 duration:500 rounded"
type="submit"
>
Finalizar Compra
</button>
</section>
</section>
</form>
<script type="module" src="checkout.js"></script>
</body>
</html>