-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
105 lines (97 loc) · 3.48 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
<!DOCTYPE html>
<html lang="pt-br">
<head>
<!-- preconnect -->
<link rel="preconnect" href="https://fonts.googleapis.com" />
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
<!-- meta -->
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<!-- styles -->
<link rel="stylesheet" href="./style.css" />
<link
href="https://fonts.googleapis.com/css2?family=Roboto:wght@400;700&display=swap"
rel="stylesheet"
/>
<title>Calculadora de IMC</title>
<!-- scripts -->
<script src="./js/script.js" defer type="module"></script>
<!--type="module" é a forma nova de importar varios arquivos ao mesmo tempo se necessario-->
<!--<script src="./modal.js" defer></script>
Forma antiga - Antes do import - export-->
<!--defer(adiar) = Ou seja sempre colocarmos o link script no head temos que colocar este atributo pois ele serve para que antes de executar qualquer arquivo JS ele leia toda a página HTML primeiro, para não ocasionar erros na aplicação-->
</head>
<body>
<div class="alert-error">Digite somente números</div>
<div class="container">
<main class="card">
<form action="">
<h1 class="title">Cálculo de IMC</h1>
<div class="input-wrapper">
<!--wrapper(embrulho)-->
<label for="weight">Peso (kg)</label>
<!--o for liga o label ao input-->
<input id="weight" type="text" placeholder="60" />
</div>
<div class="input-wrapper">
<label for="height">Altura (cm)</label>
<!--o for liga o label ao input-->
<input id="height" type="text" placeholder="165" />
</div>
<button type="submit">
Calcular IMC
<img
src="./assets/arrow.svg"
alt="Icóne de uma seta apontando para a direita"
/>
</button>
</form>
</main>
</div>
<div class="modal-wrapper">
<!--Modal (algo que cobre)-->
<div class="modal card">
<h2 class="title">
<button class="close">
<img src="./assets/close.svg" alt="Botão de fechar o popup" />
</button>
<span>Seu IMC é de 28</span>
<table class="table-round-corner" cellspacing="0">
<thead>
<tr>
<th class="strongIMC">IMC</th>
<th id="especial" class="strongIMC">Classificação</th>
</tr>
</thead>
<tbody>
<tr>
<td class="strongIMC upper">Menor que 18.5</td>
<td class="normal upper">Magreza</td>
</tr>
<tr>
<td class="strongIMC">18.5 a 24.9</td>
<td class="normal">Normal</td>
</tr>
<tr>
<td class="strongIMC">25 a 29.9</td>
<td class="normal">Sobrepeso</td>
</tr>
<tr>
<td class="strongIMC">30 a 34.9</td>
<td class="normal">Obesidade grau I</td>
</tr>
<tr>
<td class="strongIMC">35 a 39.9</td>
<td class="normal">Obesidade grau II</td>
</tr>
<tr>
<td class="strongIMC">Maior que 40</td>
<td class="normal">Obesidade grau III</td>
</tr>
</tbody>
</table>
</h2>
</div>
</div>
</body>
</html>