forked from xk08/CTD-Summer-Week-22-Front-End_II
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
224 lines (161 loc) · 7.41 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
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
<!doctype html>
<html lang="pt-br">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="description" content="">
<meta name="author" content="Mark Otto, Jacob Thornton, and Bootstrap contributors">
<meta name="generator" content="Hugo 0.88.1">
<title>CTD SummerWeek 2022</title>
<link rel="canonical" href="https://getbootstrap.com/docs/5.1/examples/navbar-static/">
<link rel="canonical" href="https://getbootstrap.com/docs/5.1/examples/checkout/">
<link rel="canonical" href="https://getbootstrap.com/docs/5.1/examples/carousel/">
<!-- REF os Estilos das páginas! -->
<!-- Bootstrap core CSS -->
<link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" rel="stylesheet"
integrity="sha384-1BmE4kWBq78iYhFldvKuhfTAU6auU8tT94WrHftjDbrCEXSU1oBoqyl2QvZ6jIW3" crossorigin="anonymous">
<!-- Custom styles for this template -->
<link href="styles/navbar-top.css" rel="stylesheet">
<link href="styles/form-validation.css" rel="stylesheet">
</head>
<body onload="exibeServicosLocais()">
<nav class="navbar navbar-expand-md navbar-dark bg-dark mb-4">
<div class="container-fluid">
<a class="navbar-brand" href="#">SummerWeek22</a>
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbarCollapse"
aria-controls="navbarCollapse" aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse" id="navbarCollapse">
<ul class="navbar-nav me-auto mb-2 mb-md-0">
<li class="nav-item">
<a class="nav-link active" aria-current="page" href="#">Cadastro</a>
</li>
<li class="nav-item">
<a class="nav-link" href="api.html">Comunidade</a>
</li>
</ul>
</div>
</div>
</nav>
<main class="container">
<div class="bg-light p-5 rounded">
<div class="py-5 text-center">
<h2>Cadastro de serviços digitais</h2>
<p class="lead">Aqui você pode cadastrar os serviços digitais que você possui assinatura atualmente.
Assim você pode ter um controle maior sobre seus gastos com este tipo de serviço.</p>
</div>
<div class="row g-5">
<!-- LISTA DE SERVIÇOS -->
<div class="col-md-5 col-lg-4 order-md-last">
<!-- Contagem de serviços -->
<h4 class="d-flex justify-content-between align-items-center mb-3">
<span class="text-primary">Meus serviços</span>
<span id="contador-servicos" class="badge bg-primary rounded-pill">0</span>
</h4>
<!-- Elemento pai -->
<ul class="lista-servicos list-group mb-3">
<!-- Elemento filho -->
<!-- <li class="list-group-item d-flex justify-content-between lh-sm">
<div>
<h6 class="my-0">Spotify</h6>
<small class="text-muted">Mensal</small>
<br>
<small class="text-muted">30/01/2022</small>
</div>
<div>
<small class="text-muted">ID#01</small>
<br>
<span class="text-muted">R$9,00</span>
<br>
<a href="#" class="remover card-link">Remover</a>
</div>
</li> -->
</ul>
<ul class="list-group mb-3">
<li class="list-group-item d-flex justify-content-between">
<span>Total</span>
<strong id="valorTotalHtml">R$0,00</strong>
</li>
</ul>
</div>
<div class="col-md-7 col-lg-8">
<h4 class="mb-3">Informações do serviço</h4>
<hr class="my-4">
<form id="formulario" class="needs-validation" novalidate>
<div class="row g-3">
<div class="col-sm-6">
<label for="nome" class="form-label">Nome</label>
<input id="nome" type="text" class="form-control" placeholder="Exemplo: Spotify" value="" required>
<div class="invalid-feedback">
O campo nome é obrigatório
</div>
</div>
<div class="col-sm-12">
<label for="descricao" class="form-label">Descrição <span class="text-muted">(Opcional)</span></label>
<textarea id="descricao" class="form-control"
placeholder="Exemplo: Serviço de música digital"></textarea>
</div>
<div class="col-sm-12">
<label for="linkSite" class="form-label">Link do serviço digital <span
class="text-muted">(Opcional)</span> </label>
<div class="input-group mb-3">
<span class="input-group-text" id="basic-addon3">https://</span>
<input id="linkSite" type="text" class="form-control" placeholder="www.open.spotify.com">
</div>
</div>
<div class="col-sm-6">
<label for="modalidadePagamento" class="form z-label">Modalidade de pagamento</label>
<select id="modalidadePagamento" class="form-select form-control" required>
<option value="">Escolha...</option>
<option>Mensal</option>
<option>Anual</option>
</select>
<div class="invalid-feedback">
Uma das opções deve ser selecionada
</div>
</div>
<div class="col-sm-6">
<label for="dataPagamento" class="form-label">Data para pagamento</label>
<input id="dataPagamento" type="date" class="form-control" required>
<div class="invalid-feedback">
A data para pagamento é obrigatória
</div>
</div>
<div class="col-sm-6">
<label for="valorPago" class="form-label">Valor do serviço</label>
<div class="input-group mb-3">
<span class="input-group-text">R$</span>
<input id="valorPago" type="number" class="form-control" min="0.01" step="0.01" placeholder="18,50"
required>
<div class="invalid-feedback">
O campo valor do serviço é obrigatório
</div>
</div>
</div>
</div>
<hr class="my-4">
<button id="salvaServico" class="btn btn-primary btn-lg" type="submit">Salvar serviço</button>
</form>
</div>
</div>
<footer class="my-5 pt-5 text-muted text-center text-small">
<p class="mb-1">© 2022 Digital House</p>
<ul class="list-inline">
<li class="list-inline-item"><a href="#">Privacy</a></li>
<li class="list-inline-item"><a href="#">Terms</a></li>
<li class="list-inline-item"><a href="#">Support</a></li>
</ul>
</footer>
</div>
</div>
</main>
</div>
<!-- REF - Os Scripts das páginas -->
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.bundle.min.js"
integrity="sha384-ka7Sk0Gln4gmtz2MlQnikT1wXgYsOg+OMhuP+IlRH9sENBO0LRn5q+8nbTov4+1p"
crossorigin="anonymous"></script>
<script src="scripts/form-validation.js"></script>
<script src="scripts/script.js"></script>
</body>
</html>