-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
53 lines (53 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
<!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">
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.0.0-beta2/dist/css/bootstrap.min.css" rel="stylesheet"
integrity="sha384-BmbxuPwQa2lc/FVzBcNJ7UAyJxM6wuqIj61tLrc4wSX0szH/Ev+nYRRuWlolflfl" crossorigin="anonymous">
<script src="https://kit.fontawesome.com/515640d61a.js" crossorigin="anonymous"></script>
<script src="https://unpkg.com/axios/dist/axios.min.js"></script>
<title>WeatherApp</title>
<link rel="stylesheet" href="src/styles.css">
</head>
<body>
<div class="container">
<form id="search-form">
<input type="text" class="form-control" autocomplete="off" autofocus="on" id="search-city-input"
placeholder="Type a City" style="width: 25%;" />
<button type="submit" class="btn btn-warning">
<i class="fas fa-search"></i>
</button>
<button type="button" class="btn btn-warning"> <i class="fas fa-map-marker-alt" id="user-location"></i>
</button>
</form>
<h2>
<div id="cercle">
<div class="info">
<div id="city"></div>
<span id="degree"></span>
<span class="units"><a href="#" id="celsius" class="active">°C |</a><a href="#" id="fahrenheit">°F</a>
</span>
<br />
<span id="weather-condition"></span>
<br />
<span> <img id="icon"> </span>
<br />
<span id="date"></span>
<p>Humidity: <span id="humidity"></span>%</p>
<p>Wind: <span id="wind"></span> km/h </p>
</div>
</div>
</h2>
<div id="forecast"></div>
</div>
<br />
<small>
<a class="openSource" href="https://github.com/sarahpetit54/WeatherAppProject" target="_blank">Open-source code</a>
<span>by</span> <a class="openSource" href="https://www.linkedin.com/in/sarah-petit-b7549263/" target="_blank"> Sarah Petit </a>
</small>
</div>
<script src="src/index.js"></script>
</body>
</html>