Repository navigation
Expand file tree
/
Copy pathindex.html
More file actions
154 lines (71 loc) · 3.01 KB
/
Copy pathindex.html
File metadata and controls
154 lines (71 loc) · 3.01 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
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
<!DOCTYPE html>
<html lang="pt-BR">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>VinilManager</title>
<link rel="stylesheet" href="style.css">
</head>
<body>
<div class="container">
<header>
<h1>Gerenciador de Vinis</h1>
<span id="status-nuvem">Conectado à Nuvem</span>
</header>
<div class="dashboard">
<div class="card">
<h3>Faturamento Total</h3>
<p id="valor-faturamento">R$ 0,00</p>
</div>
<div class="card">
<h3>Custo Total (Gastos)</h3>
<p id="valor-custo" style="color: #ff4444;">R$ 0,00</p>
</div>
<div class="card">
<h3>Lucro Total</h3>
<p id="valor-lucro">R$ 0,00</p>
</div>
<div class="card">
<h3>Vendas Realizadas</h3>
<p id="qtd-vendas">0</p>
</div>
</div>
<div class="form-container">
<h2>Adicionar Novo Disco</h2>
<div class="busca-discogs">
<input type="text" id="input-discogs" placeholder="Buscar no Discogs (Ex: Abbey Road Beatles)">
<button id="btn-buscar-discogs" type="button">Buscar Dados</button>
</div>
<form id="form-disco">
<div class="input-group">
<input type="text" id="titulo" placeholder="Título do Álbum" required>
<input type="text" id="artista" placeholder="Artista/Banda" required>
</div>
<div class="input-group">
<input type="number" id="quantidade" placeholder="Qtd em Estoque" min="1" required>
<input type="number" id="preco-custo" placeholder="Preço Custo (R$)" step="0.01" min="0" required>
<input type="number" id="preco-venda" placeholder="Preço Venda (R$)" step="0.01" min="0" required>
</div>
<button type="submit" class="btn-adicionar" id="btn-salvar">Salvar no Estoque</button>
</form>
</div>
<h2>Meu Acervo</h2>
<table>
<thead>
<tr>
<th>Título</th>
<th>Artista</th>
<th>Estoque</th>
<th>Preço (Venda)</th>
<th>Ações</th>
</tr>
</thead>
<tbody id="tabela-estoque">
<tr><td colspan="5" class="empty-message">Carregando dados da nuvem...</td></tr>
</tbody>
</table>
</div>
<script type="module" src="app.js"></script>
<div id="toast" class="toast"></div>
</body>
</html>