-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
102 lines (92 loc) · 3.73 KB
/
index.html
File metadata and controls
102 lines (92 loc) · 3.73 KB
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
<!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 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">
<link rel="shortcut icon" href="assets/favicon.ico" type="image/x-icon">
</head>
<body>
<header>
<div class="header-container">
<a class="theme-switcher button" onclick="switchTheme()">Alterar Tema</a>
<img src="assets/logo.svg" alt="Logo Dev Finances">
</div>
</header>
<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">
<h3>
<span>Total</span>
<svg class="svg" width="32" height="32" viewBox="0 0 32 32" fill="none" xmlns="http://www.w3.org/2000/svg">
<path class="svg" d="M16 1.33333V30.6667" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/>
<path class="svg" d="M22.6667 6.66667H12.6667C11.429 6.66667 10.242 7.15834 9.36684 8.03351C8.49167 8.90868 8 10.0957 8 11.3333C8 12.571 8.49167 13.758 9.36684 14.6332C10.242 15.5083 11.429 16 12.6667 16H19.3333C20.571 16 21.758 16.4917 22.6332 17.3668C23.5083 18.242 24 19.429 24 20.6667C24 21.9043 23.5083 23.0913 22.6332 23.9665C21.758 24.8417 20.571 25.3333 19.3333 25.3333H8" stroke="black" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/>
</svg>
</h3>
<p id="totalDisplay">R$ 0,00</p>
</div>
</section>
<section id="transaction">
<h2 class="sr-only">Transações</h2>
<a href="#" class="button new" onclick="modal.open()">+ Nova Transação</a>
<table id="data-table">
<thead>
<tr>
<th>Descrição</th>
<th>Valor</th>
<th>Data</th>
<th></th>
</tr>
</thead>
<tbody>
</tbody>
</table>
</section>
</main>
<div class="modal-overlay">
<div class="modal">
<div class="form">
<h2>Nova Transação</h2>
<form action="" onsubmit="form.submit(event)">
<div class="input-group">
<label for="description" class="sr-only">Descrição</label>
<input type="text" id="description" name="description" placeholder="Descrição" required>
</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" required>
<small class="help">Use o sinal - (negativo) para despesas e , (vírgula) para casas decimais.</small>
</div>
<div class="input-group">
<label for="date" class="sr-only">Data</label>
<input type="date" id="date" name="date" required>
</div>
<div class="input-group actions">
<a href="#" class="button cancel" onclick="modal.close()">Cancelar</a>
<button type="submit" class="button save">Salvar</button>
</div>
</form>
</div>
</div>
</div>
<footer><p>dev.finance$ - <a href="https://github.com/devMagno" target="_blank">Guilherme Magno</a></p></footer>
<script src="scripts.js"></script>
</body>
</html>