-
Notifications
You must be signed in to change notification settings - Fork 9
/
index.html
293 lines (246 loc) · 12.2 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
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
<!DOCTYPE html>
<html lang="pt-BR">
<head>
<meta charset="utf-8">
<meta name="language" content="pt-BR">
<title>Dev.Finance$</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0"/>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<meta http-equiv="content-language" content="pt-BR">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<link rel="shortcut icon" href="./assets/favicon.png" type="image/x-icon">
<link rel="stylesheet" href="./styles/main.css">
<link rel="stylesheet" href="./styles/responsivity.css">
<link rel="stylesheet" href="./styles/index.css">
<link rel="stylesheet" href="./styles/modal.css">
<link rel="stylesheet" href="./styles/form-modal.css">
<link rel="stylesheet" href="./styles/menu-float-button.css">
<link rel="stylesheet" href="./styles/scrollbar.css">
<link rel="stylesheet" href="./styles/toggle-switch.css">
<link rel="stylesheet" href="./styles/switch-month.css">
<link rel="stylesheet" href="./styles/toast.css">
<link rel="stylesheet" href="./styles/animations.css">
<link rel="preconnect" href="https://fonts.gstatic.com">
<link href="https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,400;0,500;0,700;1,100;1,400;1,700&display=swap" rel="stylesheet">
</head>
<body>
<header>
<img src="./assets/logo.svg" alt="logo dev.finance$"/>
</header>
<main class="container">
<section id="container-calendar-and-opening-balance">
<h2 class="sr-only">Saldo inicial</h2>
<div onclick="OpeningBalanceModal.open()" class="mini-card opening-balance">
<h3>
<img src="./assets/money.svg" alt="Imagem de carteira">
<span>Saldo inicial</span>
</h3>
<p id="openingBalanceDisplay">R$ 0,00</p>
</div>
<h2 class="sr-only">Calendário</h2>
<h3 id="year-calendar"></h3>
<div id="switch-month">
<button id="switch-previous-month-button" onclick="Calendar.switchMonth('previous')" class="switch-month-button" title="Voltar para o mês anterior">
<img src="./assets/arrow.svg" alt=""/>
</button>
<p id="previous-month"></p>
<p id="current-month"></p>
<p id="next-month"></p>
<button id="switch-next-month-button" onclick="Calendar.switchMonth('next')" class="switch-month-button" title="Passar para o próximo mês">
<img src="./assets/arrow.svg" alt=""/>
</button>
</div>
</section>
<section id="balance">
<h2 class="sr-only">Balanço</h2>
<div class="card">
<h3>
<span>Entradas</span>
<img src="./assets/income.svg" alt="Imagem de entradas">
</h3>
<p id="incomeDisplay">R$ 0,00</p>
</div>
<div class="card">
<h3>
<span>Saídas</span>
<img src="./assets/expense.svg" alt="Imagem de saídas">
</h3>
<p id="expenseDisplay">R$ 0,00</p>
</div>
<div class="card total-month">
<h3>
<span>Resultado do mês</span>
<img src="./assets/total.svg" alt="Imagem de total">
</h3>
<p id="totalMonthDisplay">R$ 0,00</p>
</div>
<div class="card total-balance">
<h3>
<span>Saldo total</span>
<img src="./assets/wallet.svg" alt="Imagem de carteira">
</h3>
<p id="totalBalanceDisplay">R$ 0,00</p>
</div>
</section>
<section id="transaction">
<h2 class="sr-only">Transações</h2>
<!-- Substituído pelo FloatButton -->
<!-- <a href="#" onclick="Modal.open()" class="button new">+ Nova Transação</a> -->
<table id="data-table">
<thead>
<tr>
<th>Descrição</th>
<th>Categoria</th>
<th>Valor</th>
<th>Data</th>
<th></th>
</tr>
</thead>
<tbody>
</tbody>
</table>
</section>
</main>
<div id="create-transaction-modal" class="modal-overlay">
<div class="modal">
<div id="form">
<h2>Nova Transação</h2>
<form onsubmit="Form.submit(event)">
<div class="input-container">
<div class="input-group">
<select id="category" name="category"></select>
</div>
<div class="input-group">
<label for="description" class="sr-only">Descrição</label>
<input type="text" id="description" name="description" placeholder="Descrição">
</div>
</div>
<div class="input-group">
<label for="amount" class="sr-only">Valor</label>
<input type="number" id="amount" name="amount" placeholder="0,00" step="0.01">
</div>
<small class="help-for-modal">Use o sinal - (negativo) para despesas e , (vírgula) para casas decimais</small>
<div class="input-group">
<label for="date" class="sr-only">Data</label>
<input type="date" id="date" name="date">
</div>
<div class="input-group switch">
<div class="switch-group">
<div class="toggle">
<input type="checkbox" id="deposit" name="deposit" checked="true">
</div>
<label for="deposit">Deposito</label>
</div>
<small class="help-for-modal">Se habilitado, o valor será contabilizado no sistema. Se desabilidado, este lançamento aguardará o deposito, (ativação deste item)</small>
</div>
<div class="input-group actions">
<a onclick="CreateTransactionModal.close()" class="button cancel">Cancelar</a>
<button type="submit">Salvar</button>
</div>
</form>
</div>
</div>
</div>
<div id="update-transaction-modal" class="modal-overlay">
<div class="modal">
<div id="form">
<h2>Atualizar Transação</h2>
<form id="update-transaction-form" aria-modal-index="" onsubmit="UpdateTransactionForm.submit(event)">
<div class="input-container">
<div class="input-group">
<select id="update-category" name="update-category"></select>
</div>
<div class="input-group">
<label for="update-description" class="sr-only">Descrição</label>
<input type="text" id="update-description" name="update-description" placeholder="Descrição">
</div>
</div>
<div class="input-group">
<label for="update-amount" class="sr-only">Valor</label>
<input type="number" id="update-amount" name="update-amount" placeholder="0,00" step="0.01">
</div>
<small class="help-for-modal">Use o sinal - (negativo) para despesas e , (vírgula) para casas decimais</small>
<div class="input-group">
<label for="update-date" class="sr-only">Data</label>
<input type="date" id="update-date" name="update-date">
</div>
<div class="input-group switch">
<div class="switch-group">
<div class="toggle">
<input type="checkbox" id="update-deposit" name="update-deposit" checked="true">
</div>
<label for="update-deposit">Deposito</label>
</div>
<small class="help-for-modal">Se habilitado, o valor será contabilizado no sistema. Se desabilidado, este lançamento aguardará o deposito, (ativação deste item)</small>
</div>
<div class="input-group actions">
<a onclick="UpdateTransactionModal.close()" class="button cancel">Cancelar</a>
<button type="submit">Salvar</button>
</div>
</form>
</div>
</div>
</div>
<div id="opening-balance-modal" class="modal-overlay">
<div class="modal">
<div id="form">
<h2>Alterar saldo inicial</h2>
<form onsubmit="OpeningBalanceForm.submit(event)">
<br>
<div class="input-group">
<label for="opening-balance-amount" class="sr-only">Valor</label>
<input type="number" id="opening-balance-amount" name="opening-balance-amount" placeholder="0,00" step="0.01">
</div>
<small class="help-for-modal">Use o sinal - (negativo) para despesas e , (vírgula) para casas decimais</small>
<br><br>
<div class="input-group actions">
<a onclick="OpeningBalanceModal.close()" class="button cancel">Cancelar</a>
<button type="submit">Salvar</button>
</div>
</form>
</div>
</div>
</div>
<div id="category-modal" class="modal-overlay">
<div class="modal">
<div id="form-create-category">
<h2>Criar Nova Categoria</h2>
<form onsubmit="CreateCategoryForm.submit(event)">
<div class="input-group">
<label for="create-category" class="sr-only">Categoria</label>
<input type="text" id="create-category" name="create-category" placeholder="Categoria">
</div>
<button type="submit">Salvar</button>
</form>
</div>
<div id="form-delete-category">
<h2>Deletar Categoria</h2>
<div class="category-group"></div>
<form onsubmit="DeleteCategoryForm.submit(event)">
<div class="input-group">
<label for="delete-category" class="sr-only">Categoria</label>
<input type="text" id="delete-category" name="delete-category" placeholder="Categoria">
</div>
<button type="submit">Deletar</button>
</form>
</div>
<button onclick="CategoryModal.close()" class="exit-x">X</button>
</div>
</div>
<div id="toast">
<div class="img"><h1>×</h1></div>
<div class="description">Por favor, preencha todos os campos!</div>
</div>
<button onclick="MenuButton.toggle()" class="menu-button">
<img src="./assets/menu.svg" alt="Menu" width="32px">
</button>
<button onclick="CreateTransactionModal.open()" title="Adicionar nova transação" class="add-transaction-button menu-options">
<img src="./assets/transfer.svg" alt="Adicionar transação" width="16px">
</button>
<button onclick="CategoryModal.open()" title="Adicionar nova categoria" class="add-category-button menu-options">
<img src="./assets/category.svg" alt="Adicionar categoria" width="16px">
</button>
<footer><small>© 2021 - dev.finance$</small></footer>
<script src="./scripts/index.js" type="text/javascript"></script>
</body>
</html>