-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
64 lines (56 loc) · 2.23 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
<!DOCTYPE html>
<html lang="pt-br">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="style.css">
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Lato&family=Roboto:wght@300;500;700&display=swap"
rel="stylesheet">
<title>Calculadora de Gorgetas</title>
</head>
<body>
<div id="container">
<div>
<h1 class="title">Calculadora de gorgetas</h1>
</div>
<div>
<form class="tipsForm" action="" id="tipsForm">
<label for="bill">
<p>Quanto ficou a conta?</p>
</label>
<p>
R$ <input type="number" placeholder="100" name="bill" id="bill" class="formInput">
</p>
<label for="serviceQual">
<p>Como foi seu serviço?</p>
</label>
<p>
<select name="serviceQual" id="serviceQual" class="formSelect">
<option disable selected value="0">-- Escolha uma opção</option>
<option value="0.3">30% - Incrível</option>
<option value="0.2">20% - Bom</option>
<option value="0.15">15% - Aceitável</option>
<option value="0.1">10% - Ruim</option>
<option value="0.05">05% - Péssimo</option>
</select>
</p>
<label for="people">
<p>Quantas pessoas vão dividir a conta?</p>
</label>
<p>
<input type="number" placeholder="1" name="people" id="people" class="formInput">pessoa(s)
</p>
<button class="formSubmit" type="submit">Calcular!</button>
</form>
</div>
<div id="totalTip">
Gorgeta Total:
R$<span id="tip"> 0.00</span>
<span id="each">para cada pessoa</span>
</div>
</div>
<script src="script.js"></script>
</body>
</html>