-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
78 lines (64 loc) · 1.85 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
<!DOCTYPE html>
<html>
<head>
<title>Weather-Check-Web</title>
<style>
body {
height: 100vh;
display: flex;
justify-content: center;
align-items: center;
background-image: url("clouds.jpg");
background-size: cover;
background-repeat: no-repeat;
}
.div1 {
position: absolute;
text-align: center;
width: 100%;
letter-spacing: 1px;
color: #30968a;
}
.div1 p {
font-size: 20px;
}
.box {
display: flex;
flex-wrap: wrap;
justify-content: flex-end;
position: fixed;
bottom: 0;
left: 100;
width: 100%;
text-align: center;
padding: 1px 0;
margin: 0 10px;
}
.img-size {
width: 40px;
height: 40px;
}
</style>
</head>
<body> <!--construct a field for displaying -->
<div
style="width: 400px; height: 500px; background-color: #e8f4cc; opacity: 0.8; padding: 10px; border: 2px solid #d0ddbf;">
</div>
</div>
<div class="div1"> <!--display collected info from openweather.com -->
<h1 style="font-size:36px;">Victoria Weather</h1>
<img id="weather-image" src="https://openweathermap.org/themes/openweathermap/assets/vendor/owm/img/widgets/02d.png"
alt="404">
<p>Description: <span id="weather-description"></span></p>
<p>Temperature: <span id="temperature"></span>℃</p>
<p>Humidity: <span id="humidity"></span>%</p>
<p>Wind speed: <span id="wind-speed"></span>m/s</p>
</div>
<div class="box"> <!--gitbuh at bottom left which link to shanhengchen's github -->
<a href="https://github.com/ShanhengChen?tab=repositories">
<img src="./GitHub-Mark.png" alt="GitHub Mark" class="img-size">
</a>
</div>
<script src="get_weather_api.js"></script>
</body>
</html>