-
Notifications
You must be signed in to change notification settings - Fork 0
/
weather.html
114 lines (113 loc) · 3.12 KB
/
weather.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
<style>
.card{
background: linear-gradient(135deg, #00feba, #5b548a);
width: 90%;
max-width: 470px;
text-align: center;
margin: 60px auto 0;
color: #fff;
border-radius: 20px;
padding: 20px 30px;
}
.search{
width: 100%;
display: flex;
align-items: center;
justify-content: space-between;
}
.search input{
flex: 1;
border: none;
outline: none;
border-radius: 30px;
font-size: 18px;
padding: 10px 20px;
margin-right: 14px;
background: #ebfffc;
height: 40px;
color: #555;
}
.search button{
border: none;
outline: none;
border-radius: 50%;
padding: 3px 5px;
width: 60px;
height: 60px;
cursor: pointer;
background-color: #ebfffc;
}
.search img{
width: 50px;
}
.weather{
margin-top: 20px;
margin-bottom: 15px;
}
.weather img{
width: 200px;
}
.weather h1{
font-size: 60px;
font-weight: 600;
}
.weather h2{
font-size: 35px;
font-weight: 600;
}
.details{
width: 100%;
display: flex;
align-items: center;
justify-content: space-evenly;
}
.col{
display: flex;
align-items: center;
text-align: left;
}
.col img{
width: 80px;
padding-right: 14px;
}
.details div p{
font-size: 19px;
}
</style>
</head>
<body>
<div class="card">
<div class="search">
<input type="text" placeholder="Search city">
<button><img src="https://www.thinkafrica.fi/wp-content/uploads/2019/04/search-icon.png"></button>
</div>
<div class="weather">
<img src="https://th.bing.com/th/id/R.54893576821fe547d718342c261e08e5?rik=YpFsgEaYSxvYQQ&riu=http%3a%2f%2fcdn.onlinewebfonts.com%2fsvg%2fimg_7021.png&ehk=coomteSxV4P7pw7DDv2HfOMh8Ru4G33MFx%2bj8Pm%2fIBE%3d&risl=&pid=ImgRaw&r=0">
<h1>22 °C</h1>
<h2>New York</h2>
<div class="details">
<div class="col">
<img src="https://cdn3.iconfinder.com/data/icons/disaster-and-weather-conditions/48/20-512.png">
<div>
<p class="wind">50%</p>
<p>Humidity</p>
</div>
</div>
<div class="col">
<img src="https://th.bing.com/th/id/R.d4e4acd0729e3d9fc1ee9ba24c99fd97?rik=9CwptvFcJ6d9LQ&riu=http%3a%2f%2fclipart-library.com%2fimages_k%2fwind-clipart-transparent%2fwind-clipart-transparent-13.png&ehk=loxXSB3NNeK7y6O62cwdzx5jtz9LBL9wtfLvWNbF7Mg%3d&risl=&pid=ImgRaw&r=0">
<div>
<p class="wind">15 km/h</p>
<p>Wind Speed</p>
</div>
</div>
</div>
</div>
</div>
</body>
</html>