-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
191 lines (189 loc) · 6.47 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
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
191
<!DOCTYPE html>
<html lang="pt-BR">
<head>
<meta charset="UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Buscar CEP</title>
<link
href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css"
rel="stylesheet"
integrity="sha384-0evHe/X+R7YkIZDRvuzKMRqM+OrBnVFBL6DOitfPri4tjfHxaWutUpFmBp4vmVor"
crossorigin="anonymous"
/>
<link
rel="stylesheet"
href="https://cdn.jsdelivr.net/npm/[email protected]/font/bootstrap-icons.css"
/>
<link rel="stylesheet" href="./css/styles.css" />
</head>
<body id="checkout-page">
<div id="fade" class="hide">
<div id="loader" class="spinner-border text-info hide" role="status">
<span class="visually-hidden">Loading...</span>
</div>
<div id="message" class="hide">
<div class="alert alert-light" role="alert">
<h4>Mensagem:</h4>
<p>Texto da mensagem...</p>
<button id="close-message" type="button" class="btn btn-secondary">
Fechar
</button>
</div>
</div>
</div>
<div id="order-form-container" class="container px-md-0">
<div id="steps" class="mb-md-3 pb-md-3">
<div class="line"></div>
<div class="step">
<i class="bi bi-person active"></i>
<p class="d-none d-md-block">Criação de conta</p>
</div>
<div class="step">
<i class="bi bi-geo-alt"></i>
<p class="d-none d-md-block">Endereço</p>
</div>
<div class="step">
<i class="bi bi-credit-card"></i>
<p class="d-none d-md-block">Pagamento</p>
</div>
</div>
<div id="form-header">
<h2>Cadastre o seu endereço</h2>
<p>Preencha os campos para podermos enviar os seus produtos</p>
</div>
<form id="address-form">
<div class="row mb-3">
<div class="form-floating">
<input
type="text"
class="form-control shadow-none"
id="cep"
name="cep"
placeholder="Digite o seu CEP"
minlength="8"
maxlength="8"
required
/>
<label for="cep">Digite o seu CEP</label>
</div>
</div>
<div class="row mb-3">
<div class="form-floating col-12 col-sm-6 mb-3 mb-sm-0">
<input
type="text"
class="form-control shadow-none"
id="address"
name="address"
placeholder="Rua"
disabled
required
data-input
/>
<label for="address">Rua</label>
</div>
<div class="form-floating col-12 col-sm-6">
<input
type="text"
class="form-control shadow-none"
id="number"
name="number"
placeholder="Digite o número da sua residência"
disabled
required
data-input
/>
<label for="number">Digite o número da sua residência</label>
</div>
</div>
<div class="row mb-3">
<div class="form-floating col-12 col-sm-6 mb-3 mb-sm-0">
<input
type="text"
class="form-control shadow-none"
id="complement"
name="complement"
placeholder="Digite o complemento"
disabled
data-input
/>
<label for="complement">Digite o complemento</label>
</div>
<div class="form-floating col-12 col-sm-6">
<input
type="text"
class="form-control shadow-none"
id="neighborhood"
name="neighborhood"
placeholder="Bairro"
disabled
required
data-input
/>
<label for="neighborhood">Bairro</label>
</div>
</div>
<div class="row mb-3">
<div class="form-floating col-12 col-sm-6 mb-3 mb-sm-0">
<input
type="text"
class="form-control shadow-none"
id="city"
name="city"
placeholder="Cidade"
disabled
required
data-input
/>
<label for="city">Cidade</label>
</div>
<div class="form-floating col-12 col-sm-6">
<select
name="region"
id="region"
class="form-select shadow-none"
disabled
required
data-input
>
<option selected>Estado</option>
<option value="AC">Acre</option>
<option value="AL">Alagoas</option>
<option value="AP">Amapá</option>
<option value="AM">Amazonas</option>
<option value="BA">Bahia</option>
<option value="CE">Ceará</option>
<option value="DF">Distrito Federal</option>
<option value="ES">Espírito Santo</option>
<option value="GO">Goiás</option>
<option value="MA">Maranhão</option>
<option value="MT">Mato Grosso</option>
<option value="MS">Mato Grosso do Sul</option>
<option value="MG">Minas Gerais</option>
<option value="PA">Pará</option>
<option value="PB">Paraíba</option>
<option value="PR">Paraná</option>
<option value="PE">Pernambuco</option>
<option value="PI">Piauí</option>
<option value="RJ">Rio de Janeiro</option>
<option value="RN">Rio Grande do Norte</option>
<option value="RS">Rio Grande do Sul</option>
<option value="RO">Rondônia</option>
<option value="RR">Roraima</option>
<option value="SC">Santa Catarina</option>
<option value="SP">São Paulo</option>
<option value="SE">Sergipe</option>
<option value="TO">Tocantins</option>
</select>
</div>
</div>
<div class="d-flex justify-content-end">
<button id="save-btn" type="submit" class="btn btn-primary">
Cadastrar
</button>
</div>
</form>
</div>
<script src="./js/script.js"></script>
</body>
</html>