-
Notifications
You must be signed in to change notification settings - Fork 2
/
index.html
230 lines (195 loc) · 7.1 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
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
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
<!DOCTYPE html>
<html lang="en" data-theme="light">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Prakriti</title>
<!-- get google icons https://fonts.google.com -->
<link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:opsz,wght,FILL,GRAD@24,400,0,0" />
<!-- link javascript file -->
<script src="javascript/main.js" defer></script>
<link rel="stylesheet" href="css/stylesheet.css" />
<script src="https://kit.fontawesome.com/7c13eadab8.js" crossorigin="anonymous"></script>
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@fortawesome/fontawesome-free@6.2.1/css/fontawesome.min.css" integrity="sha384-QYIZto+st3yW+o8+5OHfT6S482Zsvz2WfOzpFSXMF9zqeLcFV0/wlZpMtyFcZALm" crossorigin="anonymous">
</head>
<body>
<nav>
<div class="logo"> <a href="index.html"> <img src="images/prakriti.png" height= "60"> </a> </div>
<div class="cat" id="cat">
<i class="fa fa-times" onclick="hidemenu()"></i>
<ul class="nav-items">
<a href="#home">Home</a>
<a href="weather.html">Weather</a>
<a href="blog.html">Blog</a>
<a href="health.html">Health</a>
<a href="consultation.html">Consultation</a>
</ul>
<span class="material-symbols-outlined theme-button">
light_mode
</span>
</div>
<i class="fa fa-bars" onclick="showmenu()"></i>
</nav>
<section class="main" id="home">
<div class="main-container">
<div class="main-column-left">
<h1>Your Personalised Weather App</h1>
<p>
All environmental details at your fingertips.
</p>
<a href="#down"><button class="btn">Get Started</button></a>
</div>
<div class="main-column-right">
<!-- Styles -->
<style>
#chartdiv {
width: 100%;
height: 500px;
max-width: 100%;
}
</style>
<!-- Resources -->
<script src="https://cdn.amcharts.com/lib/5/index.js"></script>
<script src="https://cdn.amcharts.com/lib/5/map.js"></script>
<script src="https://cdn.amcharts.com/lib/5/geodata/worldLow.js"></script>
<script src="https://cdn.amcharts.com/lib/5/themes/Animated.js"></script>
<!-- Chart code -->
<script>
am5.ready(function() {
// Create root element
// https://www.amcharts.com/docs/v5/getting-started/#Root_element
var root = am5.Root.new("chartdiv");
// Set themes
// https://www.amcharts.com/docs/v5/concepts/themes/
root.setThemes([
am5themes_Animated.new(root)
]);
// Create the map chart
// https://www.amcharts.com/docs/v5/charts/map-chart/
var chart = root.container.children.push(am5map.MapChart.new(root, {
panX: "rotateX",
panY: "rotateY",
projection: am5map.geoOrthographic(),
paddingBottom: 20,
paddingTop: 20,
paddingLeft: 20,
paddingRight: 20
}));
// Create main polygon series for countries
// https://www.amcharts.com/docs/v5/charts/map-chart/map-polygon-series/
var polygonSeries = chart.series.push(am5map.MapPolygonSeries.new(root, {
geoJSON: am5geodata_worldLow
}));
polygonSeries.mapPolygons.template.setAll({
tooltipText: "{name}",
toggleKey: "active",
interactive: true
});
polygonSeries.mapPolygons.template.states.create("hover", {
fill: root.interfaceColors.get("primaryButtonHover")
});
// Create series for background fill
// https://www.amcharts.com/docs/v5/charts/map-chart/map-polygon-series/#Background_polygon
var backgroundSeries = chart.series.push(am5map.MapPolygonSeries.new(root, {}));
backgroundSeries.mapPolygons.template.setAll({
fill: root.interfaceColors.get("alternativeBackground"),
fillOpacity: 0.1,
strokeOpacity: 0
});
backgroundSeries.data.push({
geometry: am5map.getGeoRectangle(90, 180, -90, -180)
});
// Create graticule series
// https://www.amcharts.com/docs/v5/charts/map-chart/graticule-series/
var graticuleSeries = chart.series.push(am5map.GraticuleSeries.new(root, {}));
graticuleSeries.mapLines.template.setAll({ strokeOpacity: 0.1, stroke: root.interfaceColors.get("alternativeBackground") })
// Rotate animation
chart.animate({
key: "rotationX",
from: 0,
to: 360,
duration: 30000,
loops: Infinity
});
// Make stuff animate on load
chart.appear(1000, 100);
}); // end am5.ready()
</script>
<!-- HTML -->
<div id="chartdiv"></div>
</div>
</div>
</section>
<section class="sec" id="down">
<hr class="footerhr">
<h1>About Your Environment</h1>
<div class="sec-container">
<div class="left">
<h1>Environmental Monitoring</h1>
<p>
Environment plays an important role in healthy living. Environmental monitoring keeps track of all human activities which may damage the environment.
</p>
<a href="weather.html"><button class="btn">About Your Environment</button></a>
</div>
<div class="right">
<h1>Effects On You</h1>
<p>
Air and water pollutants are known for their adverse effects on human health and other ecosystems. Know more about how it effects you.
</p>
<a href="health.html"><button class="btn">About The Effects On You</button></a>
</div>
</div>
</section>
<section class="more">
<hr class="footerhr">
<h2>Explore More Options</h1>
<div class="sec-con">
<div class="leftcol">
<img src="images/hands.jpg">
<div class="layer">
<a href="#home">
<h3>Events</h3>
</a>
</div>
</div>
<div class="midcol">
<img src="images/blog.jpg">
<div class="layer">
<a href="blog.html">
<h3>Blog</h3>
</a>
</div>
</div>
<div class="rightcol">
<img src="images/banana.jpg">
<div class="layer">
<a href="consultation.html">
<h3>Consultation</h3>
</a>
</div>
</div>
</div>
</section>
<section class="footer">
<hr class="footerhr">
<h3>About Us</h3>
<p>An app that provides information on air and water quality thus aiding in environment monitoring. </p>
<div class="icons">
<a href="https://www.facebook.com"><i class="fa fa-facebook"></i></a>
<a href="https://www.twitter.com"><i class="fa fa-twitter"></i></a>
<a href="https://www.instagram.com"><i class="fa fa-instagram"></i></a>
<a href="https://www.linkedin.com"><i class="fa fa-linkedin"></i></a>
</div>
<p>© Copyright 2023, Made In India</p>
</section>
<script>
var cat = document.getElementById("cat");
function showmenu(){
cat.style.right = "0";
}
function hidemenu(){
cat.style.right = "-60%";
}
</script>
</body>
</html>