-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
117 lines (114 loc) · 4.07 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
106
107
108
109
110
111
112
113
114
115
116
117
<!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>Weather App</title>
<link
href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css"
rel="stylesheet"
integrity="sha384-1BmE4kWBq78iYhFldvKuhfTAU6auU8tT94WrHftjDbrCEXSU1oBoqyl2QvZ6jIW3"
crossorigin="anonymous"
/>
<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=Comfortaa:wght@300;400;500;600;700&display=swap"
rel="stylesheet"
/>
<link rel="stylesheet" href="src/styles.css" />
<script
src="https://kit.fontawesome.com/cd7e2bae9f.js"
crossorigin="anonymous"
></script>
<script src="https://cdn.jsdelivr.net/npm/axios/dist/axios.min.js"></script>
</head>
<body>
<div class="container">
<div class="background">
<div class="card h-100">
<img
class="card-img"
id="background"
src="images/background-karolina-grabowska-4194849.jpg"
alt="Water drops"
/>
<div class="card-img-overlay">
<div class="row">
<form class="search" id="search">
<input
type="text"
class="form-control"
placeholder="Search city..."
autocomplete="off"
autofocus="on"
id="search-city-input"
/>
</form>
<button
type="button"
class="btn btn-light"
id="current-city-button"
>
Current Location
</button>
</div>
<div class="row">
<div class="col-4">
<div class="card h-100">
<div class="card-body current-city">
<img src=""
alt=""
class="weather-icon"
id="weather-icon">
<div class="weather-description" id="weather-description">Snow</div>
<span id="current-city"> <strong>La Habana</strong></span
><br /><span id="temperature">17</span>
<a href="#" id="celsius" class="active">ºC</a> |
<a href="#" id="fahrenheit">ºF</a>
<div class="date-time">
Last update: <span id="date-time">Tuesday, 00:31
</div>
</div>
</div>
</div>
<div class="col-4">
<div class="card h-100 card-body weather-details">
<ul>
<li>
<strong>Feels like </strong
><span id="feels-like"></span>
</li>
<li>
<strong>Humidity:</strong> <span id="humidity"></span>%
</li>
<li>
<strong>Wind speed:</strong>
<span id="wind-speed"></span> km/h
</li>
<li>
<strong>Sunrise:</strong> <span id="sunrise"></span>
</li>
<li><strong>Sunset:</strong> <span id="sunset"></span></li>
</ul>
</div>
</div>
<div class="col-4">
<div class="card h-100 card-body align-items-left justify-content-center d-flex forecast" id="forecast" >
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<script src="src/script.js"></script>
<p class="author">
<a href="https://github.com/MRodriguezRod/weather-app" target="_blank"
>Open-source code</a
>
by María Rodríguez
</p>
</body>
</html>