-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
136 lines (116 loc) · 3.95 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
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
<!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>Document</title>
<link
href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css"
rel="stylesheet"
integrity="sha384-1BmE4kWBq78iYhFldvKuhfTAU6auU8tT94WrHftjDbrCEXSU1oBoqyl2QvZ6jIW3"
crossorigin="anonymous"
/>
<link rel="stylesheet" href="src/styles.css" />
<script
src="https://kit.fontawesome.com/a1b4469fe7.js"
crossorigin="anonymous"
></script>
<script src="https://unpkg.com/axios/dist/axios.min.js"></script>
</head>
<body>
<div class="container">
<div class="weather-app">
<form id="search-form">
<div class="row">
<div class ="col-9">
<input
type="text"
class ="form-control"
placeholder="Search for a city"
autocomplete="off"
autofocus= "on"
id = "search-text-input"
/>
</div>
<div class="col-3">
<input type="submit" value="Search" class="button" />
</div>
</div>
</form>
<br />
<button class="button position-button" id="position-button">
Current Location
</button>
<br />
<h1 id="searching-city">Saskatoon</h1>
<h3 id="date">Monday, 8th November</h3>
<h3 id="hour"> 10:41 pm</h3>
<br/>
<div class = "row">
<div class="col">
<div class= "float-left weather-temperature">
<img
src ="https://openweathermap.org/img/wn/@2x.png"
alt = "clear"
id = "weather-icon"
class ="float-left"
/>
<span class = "temperature" id="temperature">
19
</span>
<span class = "units">
<a href="#" id = "celsius-link" class="active">°C</a> |
<a href="#" id = "farenheit-link">°F</a>
</span>
</div>
</div>
<div class="col-md-auto">
<ul class="weather-info">
<li id ="feels-like">
Feels like -11 C | F
</li>
<li id = "conditions">
clear
</li>
<li id = "wind">
wind: 80 km/h
</li>
<li id = "humidity">
Humidity: 20%
</li>
</ul>
</div>
</div>
<hr />
<div clas = "weather-forecast" id="forecast">
<div class="row">
<div class="col-2" >
<div class="weather-forecast-date">
Thu
<img
src ="https://openweathermap.org/img/wn/[email protected]"
alt = ""
width ="50"
/>
<div class= "weather-forecast-temperature">
<span class = "weather-forecast-temperature-max">
18° </span>
<span class = "weather-forecast-temperature-min">
12°</span>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<address id="footer-info">
This project was coded by <a href="mailto:[email protected]">Fernanda Gabriela</a> and is open-sourced on <a href="https://github.com/fernandagabrielabraga/Weather-app.git">GitHub</a> and hosted on <a href="https://app.netlify.com/">Netlify</a>.
</address>
</body>
<script src="src/index.js"></script>
</html>