-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
98 lines (85 loc) · 2.86 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
<!DOCTYPE html>
<html lang="en">
<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>Clima Agora!</title>
<link rel="shortcut icon" href="./img/favicon.png" type="image/x-icon">
<link rel="stylesheet" href="./src/style.css" />
<!--Google Fonts-->
<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=Ubuntu:ital,wght@0,300;0,400;0,500;0,700;1,300;1,400;1,500;1,700&display=swap"
rel="stylesheet"
/>
<!--Font Awesome-->
<link
rel="stylesheet"
href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.2.1/css/all.min.css"
integrity="sha512-MV7K8+y+gLIBoVD59lQIYicR65iaqukzvf/nwasF0nqhPay5w/9lJmVM2hMDcnK1OnMGCdVK+iQrJ7lzPJQd1w=="
crossorigin="anonymous"
referrerpolicy="no-referrer"
/>
<script src="./src/script.js" defer></script>
</head>
<body>
<div class="container">
<div class="form">
<h3>Procure o clima da sua cidade:</h3>
<div class="form-input-container">
<input
type="text"
placeholder="Digite o nome da cidade"
id="city-input"
/>
<button id="search">
<i class="fa-solid fa-magnifying-glass"></i>
</button>
</div>
</div>
<div id="weather-data" class="hide">
<h2>
<i class="fa-solid fa-location-dot"></i>
<span id="city"></span>
</h2>
<p id="temperature"><span></span>°C</p>
<div id="description-container">
<p id="description"></p>
<img
src="http://openweathermap.org/img/wn/01d.png"
alt="Condições Climáticas"
id="weather-icon"
/>
</div>
<div id="details-container">
<p id="humidity">
<i class="fa-solid fa-droplet"></i>
<span></span>
</p>
<div id="wind">
<p>
<i class="fa-solid fa-wind"></i>
<span></span>
</p>
</div>
</div>
</div>
<div id="error-message" class="hide">
<p>Não foi possível encontrar o clima de uma cidade com este nome.</p>
</div>
<div id="loader" class="hide">
<i class="fa-solid fa-spinner fa-2x"></i>
</div>
<div id="suggestions" class="hide">
<button id="manhattan" >Manhattan</button>
<button id="tokyo">Tokyo</button>
<button id="vitoria">Vitória</button>
<button id="curitiba">Curitba</button>
<button id="osaka">Osaka</button>
<button id="brasilia">Brasília</button>
</div>
</div>
</body>
</html>