-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
105 lines (104 loc) · 3.53 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="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" />
<script src="https://unpkg.com/axios/dist/axios.min.js"></script>
<link rel="preconnect" href="https://fonts.googleapis.com" />
<link rel="preconnect" href="https://fonts.gstatic.com" />
<link
href="https://fonts.googleapis.com/css2?family=Bodoni+Moda&family=Prata&display=swap"
rel="stylesheet"
/>
<script
src="https://kit.fontawesome.com/bb887e8422.js"
crossorigin="anonymous"
></script>
<link
href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css"
rel="stylesheet"
integrity="sha384-eOJMYsd53ii+scO/bJGFsiCZc+5NDVN2yr8+0RDqr0Ql0h+rP48ckxlpbzKgwra6"
crossorigin="anonymous"
/>
<link rel="stylesheet" href="src/style.css" />
<title>Weather App</title>
</head>
<body>
<div class="container">
<header>
<!-- card for city input -->
<form id="search-form">
<div class="card card-search w-75">
<div class="card-body">
<h5 class="card-title">how's the weather in...</h5>
<div class="input-group mb-3">
<input
id="search-input"
type="text"
class="form-control"
placeholder="City Name"
aria-describedby="button-addon2"
/>
<button
class="btn btn-outline-info"
type="button"
id="button-addon2"
>
<i class="fas fa-search-location search-icon"></i>
</button>
<button
class="btn btn-outline-info"
id="current-location-button"
>
<i class="fas fa-location-arrow"></i>
</button>
</div>
</div>
</div>
</form>
</header>
<br />
<!-- card for weather information -->
<!-- <div class="row">
<div class="col-7"> -->
<div class="card card-city w-75">
<div class="card-body">
<h5 class="card-title city-name" id="cityName">
and the city is...
</h5>
<div id="timer"></div>
<div class="temperature" id="temperature">...</div>
<div class="units">
<a href="#" id="celsius-link">°C</a> |
<a href="#" id="farhenheit-link">°F</a>
</div>
<img
src="media/hithere.svg"
alt="cloud"
id="icon-weather"
/>
<p class="additional-information">
Weather Condition: <span id="weather-description">...</span>
<br />
Wind: <span id="wind-speed">...</span>km/h
<br />
Humidity: <span id="humidity-value">...</span>%
</p>
</div>
</div>
</div>
<!-- card for next days weather -->
<!-- <div class="col-5"> -->
<!-- <div class="card card-forecast" id="forecast"></div> -->
<!-- </div>
</div> -->
</div>
<p>
<a href="https://github.com/ivicta/vanilla-weather-app" style="margin-right: 150px;"
>Open source code by Victoria</a
>
</p>
<script src="src/app.js"></script>
</body>
</html>