-
Notifications
You must be signed in to change notification settings - Fork 1
/
weather api.html
154 lines (126 loc) · 3.15 KB
/
weather api.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
137
138
139
140
141
142
143
144
145
146
147
<!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>
body{
margin: 0px;
}
.wapi{
font-family: 'Poppins', sans-serif;
color: white;
background-image: url('./weather\ background.jpeg');
background-size: cover;
align-items: center;
text-align: center;
padding: 5% 1% 3% 1%;
}
.ce{
margin-top: 4%;
display: grid;
gap: 2px;
grid-template-columns: 2fr 4fr;
}
.cityname{
font-size: 3rem;
font-weight: 300;
padding-bottom: 6%;
}
.citytemp{
font-size: 1.5rem;
}
.humws{
font-size: 1.5rem;
}
.textwapi{
font-size: 3rem;
font-weight: 600;
}
.wsrch{
padding: 12%;
border-right: 1px solid rgb(224, 230, 224);
display: flex;
flex-direction: column;
align-items: center;
}
.wsrch input{text-align: center;
font-size: 1.4rem;
height: 2rem;
width: 70%;
border-radius: 20px;
border: 0px solid white;
}
.wsrch button{
padding: 0px;
height: 2rem;
width: 40%;
border-radius: 20px;
border: 0px solid white;
margin-top: 4%;
font-size: 120%;
}
.wsrch button:hover{
background-color: rgb(174, 178, 182);
transform: scale(1.1);
}
.citydet{
display: flex;
flex-direction: column;
}
.humws{display: grid;
grid-template-columns: 1fr 1fr;}
.gh{display: flex;
width: 100%;
align-content: left;}
.gh a{
text-decoration: none;
color: white;
}
.gh a:hover{
color: rgb(9, 7, 7);
transform: scale(1.2);
}
</style>
</head>
<body>
<div class="wapi">
<div class="gh">
<a href="index.html">
go to home
</a>
</div>
<div class="textwapi">
creating API to show weather of a given place
</div>
<div class="ce">
<div class="wsrch">
<input type="text" placeholder="enter city name">
<button>search</button>
</div>
<div class="citydet">
<div class="cityname">--</div>
<div > temperature <br> <span class="citytemp">--</span > </div>
<div class="humws">
<div > humidity <br>
<span class="cityhum">
--
</span>
<br>
<img src="" alt="">
</div>
<div >
wind speed
<br>
<span class="cityws">
--
</span>
</div>
</div>
</div>
</div>
</div>
</body>
<script src="script.js"></script>
</html>