-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathindex.html
110 lines (104 loc) · 4.75 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
<!DOCTYPE html>
<html lang="pt-br">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>dev.finance$</title>
<link rel="shortcut icon" href="./assets/favicon.ico" type="image/x-icon">
<link rel="preconnect" href="https://fonts.gstatic.com">
<link href="https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,400;0,700;1,100;1,400;1,700&display=swap" rel="stylesheet">
<link rel="stylesheet" href="./style.css">
</head>
<body class="">
<header>
<img src="assets/logo.svg" alt="Logo Dev Finances" id="logo">
</header>
<img class="change-mode" src="./assets/moon.svg" alt="Alterar para modo escuro">
<main class="container">
<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">
<h3>
<span>Total</span>
<img src="./assets/total.svg" alt="Imagem de total">
</h3>
<p id="totalDisplay">R$ 0,00</p>
</div>
</section>
<section id="transaction">
<h2 class="sr-only">Transações</h2>
<div class="options">
<div class="options-left">
<span class="button new" onclick="Modal.open()"><img src="./assets/plus-symbol.svg" alt="Adicionar nova transação"> Nova Transação</span>
<span class="button remove" onclick="Transaction.removeAll()"><img src="./assets/minus-symbol.svg" alt="Remover todas as transações"> Remover Transações</span>
</div>
<a class="button export" onclick="Export.exportTableToCSV()"><img src="./assets/download.svg" alt="Download das transações"> Exportar</a>
</div>
<table id="data-table">
<thead>
<tr>
<th onclick="Order.byDescription()">Descrição<img src="./assets/filter.svg" alt="Ordenar por descrição"></th>
<th onclick="Order.byAmount()">Valor<img src="./assets/filter.svg" alt="Ordenar por valor"></th>
<th onclick="Order.byDate()">Datas<img src="./assets/filter.svg" alt="Ordenar por datas"></th>
<th></th>
<th></th>
</tr>
</thead>
<tbody></tbody>
</table>
</section>
</main>
<div class="modal-overlay">
<div class="modal">
<div id="form">
<h2>Nova Transação</h2>
<form action="" onsubmit="Form.submit(event)">
<div class="input-group">
<label class="sr-only" for="description">Descrição</label>
<input type="text" name="description" id="description" placeholder="Descrição">
</div>
<div class="input-group">
<label class="sr-only" for="amount">Valor</label>
<input type="number" name="amount" id="amount" placeholder="0,00" step="0.01">
<small class="help">Use o sinal - (negativo) para despesas e , (vírgula) para casas decimais</small>
</div>
<div class="input-group">
<label class="sr-only" for="date">Data</label>
<input type="date" name="date" id="date">
</div>
<div class="input-group actions">
<div class="button cancel" onclick="Modal.close()">Cancelar</div>
<input type="submit" class="button save" value="Salvar">
</div>
</form>
</div>
</div>
</div>
<footer>
<p>dev.finance$</p>
<div class="links">
<a href="https://github.com/joaogabriel-sg">
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-github"><path d="M9 19c-5 1.5-5-2.5-7-3m14 6v-3.87a3.37 3.37 0 0 0-.94-2.61c3.14-.35 6.44-1.54 6.44-7A5.44 5.44 0 0 0 20 4.77 5.07 5.07 0 0 0 19.91 1S18.73.65 16 2.48a13.38 13.38 0 0 0-7 0C6.27.65 5.09 1 5.09 1A5.07 5.07 0 0 0 5 4.77a5.44 5.44 0 0 0-1.5 3.78c0 5.42 3.3 6.61 6.44 7A3.37 3.37 0 0 0 9 18.13V22"></path></svg>
</a>
<a href="https://www.linkedin.com/in/joaogabriel-sg/">
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-linkedin"><path d="M16 8a6 6 0 0 1 6 6v7h-4v-7a2 2 0 0 0-2-2 2 2 0 0 0-2 2v7h-4v-7a6 6 0 0 1 6-6z"></path><rect x="2" y="9" width="4" height="12"></rect><circle cx="4" cy="4" r="2"></circle></svg>
</a>
</div>
</footer>
<script src="./script.js"></script>
</body>
</html>