-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
80 lines (77 loc) · 3.16 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
<!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.1.3/dist/css/bootstrap.min.css" rel="stylesheet"
integrity="sha384-1BmE4kWBq78iYhFldvKuhfTAU6auU8tT94WrHftjDbrCEXSU1oBoqyl2QvZ6jIW3" crossorigin="anonymous">
<title>Weather App</title>
<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=Press+Start+2P&display=swap" rel="stylesheet">
<script src="https://cdn.jsdelivr.net/npm/axios/dist/axios.min.js"></script>
<link rel="stylesheet" href="style.css">
</head>
<body>
<div class="container">
<div class="weather-app">
<form action="" id="search-form">
<div class="row">
<div class="col-9">
<input type="search" class="form-control" id="city-input" placeholder="Enter a city">
</div>
<div class="col-3">
<input type="submit" value="Search" class="btn btn-primary">
</div>
</form>
</div>
<h1 id="city">New York</h1>
<ul>
<li>Last Updated:<span id="date"> </span></li>
<li id="description">
Rainy
</li>
</ul>
<div class="row">
<div class="col-6">
<div class="weather-temperature">
<img src="" alt="weather-icon" id="icon">
<br>
<div class="num" id="Temperature"> 12</div>
<span class="units"><a href="#" id="celsius-link" class="active">°C</a>|<a href="#" id="fahrenheit-link">°F</a></span>
</div>
</div>
<div class="col-6">
<ul>
<li>
<img src="pics/rainbow.png" alt="Precipitation" width="25px" height="25px" class="precipitation"> Pressure:<span id="pressure"> </span>
</li>
<li>
<img src="pics/humidity.png" alt="Humidity" width="25px" height="25px" class="humidity"> Humidity:<span id="Humidity"> </span> %
</li>
<li>
<img src="pics/tornado.png" alt="Wind" width="25px" height="25px" class="tornado" > Wind:<span id="wind"> </span> km/h
</li>
</ul>
</div>
<div class="weather-forecast" id="forecast">
<div class="row">
<div class="col-2">
<div class="weather-forecast-date">Thurs</div>
<img src="pics/broken clouds.png" alt="" width="25px" height="25px">
<div class="weather-forecast-temperature">
<span class="weather-forecast-temperature">12°</span><span class="weather-forecast-temperature">18°</span>
</div>
</div>
</div>
</div>
</div>
</div>
<div class="name"><img src="pics/notice.png" alt="Wind" width="25px" height="25px" class="notice"> <a href="https://github.com/Mahtab-Jeyhani/weather-app" target="_blank">open-source code </a>by Mahtab Jeyhani</div>
</div>
</div>
<br><img src="pics/smile.png" alt="Wind" width="25px" height="25px" class="smile" id="Smile">
<script src="app.js"></script>
</body>
</html>