-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
116 lines (107 loc) · 4.66 KB
/
Copy pathindex.html
File metadata and controls
116 lines (107 loc) · 4.66 KB
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>What is the Weather?</title>
<!-- CSS -->
<link rel="stylesheet" href="style.css" />
</head>
<body>
<div class="card">
<div class="search-bar">
<input type="text" placeholder="SEARCH" id="city" />
<button title="Search Place" id="getWeather">
<img
src="https://img.icons8.com/material-rounded/24/000000/search.png"
alt="Search Icon"
/>
</button>
</div>
<div class="temperature">
<img
src="https://img.icons8.com/fluency/48/000000/partly-cloudy-day.png"
alt="Weather Icon"
/>
<h1 title="Temperature" id="temperature">?</h1>
</div>
<div class="location" id="location">Search a Place</div>
<div class="details">
<div>
<svg
xmlns="http://www.w3.org/2000/svg"
width="2rem"
height="2rem"
fill="currentColor"
class="bi bi-moisture"
viewBox="0 0 16 16"
>
<path
d="M13.5 0a.5.5 0 0 0 0 1H15v2.75h-.5a.5.5 0 0 0 0 1h.5V7.5h-1.5a.5.5 0 0 0 0 1H15v2.75h-.5a.5.5 0 0 0 0 1h.5V15h-1.5a.5.5 0 0 0 0 1h2a.5.5 0 0 0 .5-.5V.5a.5.5 0 0 0-.5-.5zM7 1.5l.364-.343a.5.5 0 0 0-.728 0l-.002.002-.006.007-.022.023-.08.088a29 29 0 0 0-1.274 1.517c-.769.983-1.714 2.325-2.385 3.727C2.368 7.564 2 8.682 2 9.733 2 12.614 4.212 15 7 15s5-2.386 5-5.267c0-1.05-.368-2.169-.867-3.212-.671-1.402-1.616-2.744-2.385-3.727a29 29 0 0 0-1.354-1.605l-.022-.023-.006-.007-.002-.001zm0 0-.364-.343zm-.016.766L7 2.247l.016.019c.24.274.572.667.944 1.144.611.781 1.32 1.776 1.901 2.827H4.14c.58-1.051 1.29-2.046 1.9-2.827.373-.477.706-.87.945-1.144zM3 9.733c0-.755.244-1.612.638-2.496h6.724c.395.884.638 1.741.638 2.496C11 12.117 9.182 14 7 14s-4-1.883-4-4.267"
/>
</svg>
<p id="humidity">?</p>
</div>
<div>
<svg
xmlns="http://www.w3.org/2000/svg"
width="2rem"
height="2rem"
fill="currentColor"
class="bi bi-wind"
viewBox="0 0 16 16"
>
<path
d="M12.5 2A2.5 2.5 0 0 0 10 4.5a.5.5 0 0 1-1 0A3.5 3.5 0 1 1 12.5 8H.5a.5.5 0 0 1 0-1h12a2.5 2.5 0 0 0 0-5m-7 1a1 1 0 0 0-1 1 .5.5 0 0 1-1 0 2 2 0 1 1 2 2h-5a.5.5 0 0 1 0-1h5a1 1 0 0 0 0-2M0 9.5A.5.5 0 0 1 .5 9h10.042a3 3 0 1 1-3 3 .5.5 0 0 1 1 0 2 2 0 1 0 2-2H.5a.5.5 0 0 1-.5-.5"
/>
</svg>
<p id="windspeed">?</p>
</div>
</div>
<div class="details">
<div>
<h4 style="margin-bottom: 0px">Weather Condition</h4>
<svg
xmlns="http://www.w3.org/2000/svg"
width="2rem"
height="2rem"
fill="currentColor"
class="bi bi-cloud-fog2-fill"
viewBox="0 0 16 16"
>
<path
d="M8.5 3a5 5 0 0 1 4.905 4.027A3 3 0 0 1 13 13h-1.5a.5.5 0 0 0 0-1H1.05a3.5 3.5 0 0 1-.713-1H9.5a.5.5 0 0 0 0-1H.035a3.5 3.5 0 0 1 0-1H7.5a.5.5 0 0 0 0-1H.337a3.5 3.5 0 0 1 3.57-1.977A5 5 0 0 1 8.5 3"
/>
</svg>
<p id="condition">?</p>
</div>
</div>
<div class="details">
<div>
<h4 style="margin-bottom: 0.5rem">Latest Update</h4>
<svg
xmlns="http://www.w3.org/2000/svg"
width="2rem"
height="2rem"
fill="currentColor"
class="bi bi-clock-history"
viewBox="0 0 16 16"
>
<path
d="M8.515 1.019A7 7 0 0 0 8 1V0a8 8 0 0 1 .589.022zm2.004.45a7 7 0 0 0-.985-.299l.219-.976q.576.129 1.126.342zm1.37.71a7 7 0 0 0-.439-.27l.493-.87a8 8 0 0 1 .979.654l-.615.789a7 7 0 0 0-.418-.302zm1.834 1.79a7 7 0 0 0-.653-.796l.724-.69q.406.429.747.91zm.744 1.352a7 7 0 0 0-.214-.468l.893-.45a8 8 0 0 1 .45 1.088l-.95.313a7 7 0 0 0-.179-.483m.53 2.507a7 7 0 0 0-.1-1.025l.985-.17q.1.58.116 1.17zm-.131 1.538q.05-.254.081-.51l.993.123a8 8 0 0 1-.23 1.155l-.964-.267q.069-.247.12-.501m-.952 2.379q.276-.436.486-.908l.914.405q-.24.54-.555 1.038zm-.964 1.205q.183-.183.35-.378l.758.653a8 8 0 0 1-.401.432z"
/>
<path
d="M8 1a7 7 0 1 0 4.95 11.95l.707.707A8.001 8.001 0 1 1 8 0z"
/>
<path
d="M7.5 3a.5.5 0 0 1 .5.5v5.21l3.248 1.856a.5.5 0 0 1-.496.868l-3.5-2A.5.5 0 0 1 7 9V3.5a.5.5 0 0 1 .5-.5"
/>
</svg>
<p id="latest">?</p>
</div>
</div>
</div>
<!-- JScript -->
<script src="script.js"></script>
</body>
</html>