-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtable.html
More file actions
120 lines (114 loc) · 5.73 KB
/
table.html
File metadata and controls
120 lines (114 loc) · 5.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
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
<!DOCTYPE html>
<html lang="pt-br">
<head>
<meta charset="UTF-8">
<title>Gerenciamento de combustível</title>
<link rel="stylesheet" href="css/table.css">
<link href="https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&display=swap" rel="stylesheet">
</head>
<body>
<header>
<nav class="top-bar" aria-label="Navegação principal">
<a href="home.html" class="home-icon" aria-label="Página inicial"></a>
</nav>
</header>
<main>
<section class="container">
<header>
<h1>Gerenciamento de combustível</h1>
<p class="subtitle">Armazene e analise o consumo de seu veículo</p>
</header>
<section class="section-title">
<span>Adições recentes</span>
<button class="add-week" id="toggle-add-semana" type="button">+ Add Semana</button>
</section>
<section id="add-semana-form" class="add-semana-form" style="display: none;">
<form class="form-box" autocomplete="off">
<div class="form-row">
<label for="custo">Custo (R$)</label>
<input type="number" id="custo" name="custo" placeholder="100,00" required />
</div>
<div class="form-row">
<label for="km">Quilometragem Atual (km)</label>
<input type="number" id="km" name="km" placeholder="10000" required />
</div>
<div class="form-row">
<label for="litros">Litros Abastecidos</label>
<input type="number" id="litros" name="litros" placeholder="50" required />
</div>
<div class="form-actions">
<button type="submit" class="adicionar">Adicionar Semana</button>
</div>
</form>
</section>
<section class="table-wrapper">
<table class="table" aria-label="Tabela de registros de combustível">
<thead>
<tr class="table-row table-header">
<th class="cell">Semana</th>
<th class="cell">Custo</th>
<th class="cell">Eficiência</th>
<th class="cell details">Detalhes</th>
</tr>
</thead>
<tbody>
<tr class="table-row expandable">
<td class="cell">Sem. 1</td>
<td class="cell">R$ 100,00</td>
<td class="cell">10 km/L</td>
<td class="cell details"><span class="arrow"></span></td>
</tr>
<tr class="expand-row">
<td class="expand-cell" colspan="4">
<div class="expand-info">
<span>Kms. Inicial<br><strong>11000 Km</strong></span>
<span>Kms. Final<br><strong>Não inserida</strong></span>
<span>Qtd. Abastecida<br><strong>45 L</strong></span>
</div>
</td>
</tr>
<tr class="table-row expandable">
<td class="cell">Sem. 2</td>
<td class="cell">R$ 150,00</td>
<td class="cell">9.1 km/L</td>
<td class="cell details"><span class="arrow"></span></td>
</tr>
<tr class="expand-row">
<td class="expand-cell" colspan="4">
<div class="expand-info">
<span>Kms. Inicial<br><strong>11000 Km</strong></span>
<span>Kms. Final<br><strong>Não inserida</strong></span>
<span>Qtd. Abastecida<br><strong>45 L</strong></span>
</div>
</td>
</tr>
<tr class="table-row expandable">
<td class="cell">Sem. 3</td>
<td class="cell">R$ 90,00</td>
<td class="cell orange">Em andamento</td>
<td class="cell details"><span class="arrow"></span></td>
</tr>
<tr class="expand-row">
<td class="expand-cell" colspan="4">
<div class="expand-info">
<span>Kms. Inicial<br><strong>11000 Km</strong></span>
<span>Kms. Final<br><strong>Não inserida</strong></span>
<span>Qtd. Abastecida<br><strong>45 L</strong></span>
</div>
<div class="add-final-km">
<label>Adicionar Quilometragem Final</label>
<div class="input-row">
<input type="text" placeholder="Quilometragem">
<button>Finalizar</button>
</div>
</div>
</td>
</tr>
</tbody>
</table>
</section>
</section>
</main>
<script src="js/table.js"></script>
</body>
</html>