-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
57 lines (52 loc) · 2.28 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
<!DOCTYPE html>
<html lang="pt-br">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Weather</title>
<link rel="stylesheet" href="css/index.css">
<!--E o Font Awesome para os ícones
Digito no google: cdn js > entro > procuro por > font awesome > clico > 1º item copio > colo aqui-->
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.2.0/css/all.min.css" integrity="sha512-xh6O/CkQoPOWDdYTDqeRdPCVd1SpvCA9XXcUnZS2FmJNp1coAFzvtCN9BmamE+4aHK8yyUHUSCcJHgXloTyT2A==" crossorigin="anonymous" referrerpolicy="no-referrer" />
</head>
<body>
<div class="container">
<div class="form">
<h3>Confira o clima de uma cidade:</h3>
<div class="form-input-container">
<input type="text" placeholder="Digite o nome da cidade" id="city-input" data-test="city-field">
<button id="search" data-test="search-button">
<!--Quando tabalho com o font awesome, preciso por sempre:-->
<i class="fa-solid fa-magnifying-glass"></i>
<!--Criou já o campo de search com a lupinha-->
</button>
</div>
</div>
<div id="weather-data" class="hide">
<h2>
<i class="fa-solid fa-location-dot"></i>
<span id="city" data-test="city-span-field"></span>
<img src="" alt="Bandeira da cidade" id="country">
</h2>
<!--Uso o ° para colocar o icone de graus-->
<p id="temperature"><span></span>°C</p>
<div id="description-container">
<p id="description"></p>
<img src="" alt="Condições tempo" id="weather-icon">
</div>
<div id="details-conteiner">
<p id="humidity">
<i class="fa-solid fa-droplet"></i>
<span></span>
</p>
<p id="wind">
<i class="fa-solid fa-wind"></i>
<span></span>
</p>
</div>
</div>
</div>
<script src="js/script.js"></script>
</body>
</html>