-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
248 lines (233 loc) · 11.4 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
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/[email protected]/css/bulma.min.css">
<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.0.4/css/all.css">
<link rel="stylesheet" href="assets/sass/style.css">
<link rel="shortcut icon" href="assets/images/logo.png">
<title>Kalana Home</title>
</head>
<body>
<div id="upperMenu">
<nav class="navbar has-shadow">
<div class="container">
<div class="navbar-brand">
<a class="navbar-item" href="index.html">
<img class="pr-3 my-1" src="assets/images/logo.png" alt="" style="max-height: 35px;">
<h1 class="title is-size-4">Kalana</h1>
</a>
<span class="navbar-burger burger" data-target="navMenu">
<span></span>
<span></span>
<span></span>
</span>
</div>
<div id="navMenu" class="navbar-menu">
<div class="navbar-end">
<a href="index.html" class="navbar-item is-active">Home</a>
<div class="navbar-item has-dropdown is-hoverable">
<a class="navbar-item">Company</a>
<div class="navbar-dropdown">
<a href="company/about-us.html" class="navbar-item">
About Us
</a>
<a href="company/careers.html" class="navbar-item">
Careers
</a>
<a href="company/partners.html" class="navbar-item">
Partners
</a>
<a href="company/open-software.html" class="navbar-item">
Open Software
</a>
<a href="company/news.html" class="navbar-item">
News
</a>
<a href="company/products.html" class="navbar-item">
Products
</a>
<a href="company/client-101.html" class="navbar-item">
Client 101
</a>
</div>
</div>
<div class="navbar-item has-dropdown is-hoverable">
<a class="navbar-item">Services</a>
<div class="navbar-dropdown">
<a href="services/cloud-engineering.html" class="navbar-item">
Cloud Engineering
</a>
<a href="services/mobile-web-engineering.html" class="navbar-item">
Mobile & Web Engineering
</a>
<a href="services/devops.html" class="navbar-item">
Devops
</a>
<a href="services/quality-engineering.html" class="navbar-item">
Quality Engineering
</a>
</div>
</div>
<div class="navbar-item has-dropdown is-hoverable">
<a class="navbar-item">Digital Next</a>
<div class="navbar-dropdown">
<a href="digital-next/data-engineering.html" class="navbar-item">
Data Engineering
</a>
<a href="digital-next/iot-development.html" class="navbar-item">
IOT Development
</a>
<a href="digital-next/artificial-intelligence.html" class="navbar-item">
Artifical Intelligence
</a>
<a href="digital-next/data-analytics.html" class="navbar-item">
Data Analytics
</a>
</div>
</div>
<div class="navbar-item has-dropdown is-hoverable">
<a class="navbar-item">Solutions</a>
<div class="navbar-dropdown">
<a href="solutions/mvp.html" class="navbar-item">
MVP
</a>
<a href="solutions/api.html" class="navbar-item">
API
</a>
<a href="solutions/dataset.html" class="navbar-item">
Datasets
</a>
<a href="solutions/enterprise-applications.html" class="navbar-item">
Enterprise Applications
</a>
</div>
</div>
<div class="navbar-item has-dropdown is-hoverable">
<a class="navbar-item">Insights</a>
<div class="navbar-dropdown">
<a href="insights/industries.html" class="navbar-item">
Industries
</a>
<a href="insights/case-studies.html" class="navbar-item">
Case Studies
</a>
<a href="insights/press.html" class="navbar-item">
Press
</a>
<a href="insights/blog.html" class="navbar-item">
Blog
</a>
<a href="insights/white-papers.html" class="navbar-item">
White Papers
</a>
<a href="insights/connect.html" class="navbar-item">
Connect
</a>
</div>
</div>
<div class="navbar-item has-dropdown is-hoverable">
<a class="navbar-item">Others</a>
<div class="navbar-dropdown">
<a href="others/terms.html" class="navbar-item">
Terms
</a>
<a href="others/privacy.html" class="navbar-item">
Privacy
</a>
<a href="others/gdpr.html" class="navbar-item">
GDPR
</a>
<a href="../others/sitemap.html" class="navbar-item">
Sitemap
</a>
</div>
</div>
</div>
</div>
</div>
</nav>
</div>
<script src="home-globe/three.js"></script>
<script src="//unpkg.com/three-globe"></script>
<script src="home-globe/OrbitControls.js"></script>
<script type="text/javascript" src="assets/js/main.js"></script>
<script>
main(document.body);
async function main(node) {
var width = window.innerWidth;
var height = window.innerHeight-(document.getElementById("upperMenu"). offsetHeight);
const renderer = new THREE.WebGLRenderer({ antialias: true, alpha: true});
renderer.setPixelRatio(window.devicePixelRatio);
renderer.setSize(width, height);
node.appendChild(renderer.domElement);
renderer.alig
const scene = new THREE.Scene();
scene.background = new THREE.Color('#1e1e45');
const camera = new THREE.PerspectiveCamera();
camera.aspect = (width / height);
camera.updateProjectionMatrix();
const light0 = new THREE.PointLight('#ffffff', 1);
light0.position.set(-500, 400, -900);
camera.add(light0);
scene.add(new THREE.AmbientLight('#f8f8f8', 0.36));
const light2 = new THREE.PointLight('#fdfdfd', 0.5);
light2.position.set(-5000, 3000, 300);
camera.add(light2);
const light3 = new THREE.DirectionalLight('#fafafa', 0.29);
light3.position.set(-5000, -2000, 9000);
camera.add(light3);
camera.position.z = 400;
camera.position.x = 0;
camera.position.y = 0;
scene.add(camera);
const randomizeColor = () => ('#1a1da1');
const globe = new ThreeGlobe();
globe.showAtmosphere(true);
const countries = await fetch('./home-globe/countries.geojson').then(res => res.json());
globe.hexPolygonsData(countries.features)
.hexPolygonResolution(3)
.hexPolygonMargin(0.5)
.hexPolygonColor(() => '#ffffaa')
.hexPolygonAltitude(0.01);
globe.bumpImageUrl('./home-globe/earth-topology.png');
globe.globeMaterial().color = new THREE.Color('#2d3392');
globe.globeMaterial().opacity = 1;
globe.arcsData([{"startLat":41.23,"startLng":19.34,"endLat":19.74,"endLng":49.73,"color":"#9d2bba"},{"startLat":0,"startLng":0,"endLat":30,"endLng":30,"color":"#9d2bba"},{"startLat":51.43,"startLng":76.43,"endLat":38.43,"endLng":97.234,"color":"#9d2bba"}])
.arcColor('color')
.arcDashLength(0.4)
.arcDashGap(4)
.arcDashInitialGap(() => Math.random() * 5)
.arcDashAnimateTime(1000)
.arcStroke(1);
globe.labelsData([{"lat":40.46,"lng":-3.7,"color":"#f68080","fontSize":1,"text":"Spain","pointSize":1},{"lat":51.5,"lng":-0.12,"color":"#faea84","fontSize":1,"text":"London","pointSize":1},{"lat":40.66,"lng":-73.93,"color":"#dea2f5","fontSize":1,"text":"NY","pointSize":1},{"lat":35.68,"lng":139.69,"color":"#ccfc93","fontSize":1,"text":"Tokyo","pointSize":1},{"lat":26.82,"lng":30.8,"color":"#b4f5f1","fontSize":1,"text":"Egypt","pointSize":1},{"lat":18.76,"lng":46.86,"color":"#76ac72","fontSize":1,"text":"Madagascar","pointSize":1},{"lat":4.57,"lng":-74.29,"color":"#fafafa","fontSize":1,"text":"Colombia","pointSize":1},{"lat":-34.6,"lng":-58.37,"color":"#c58cf5","fontSize":1,"text":"Buenos Aires","pointSize":1},{"lat":56.13,"lng":-106.34,"color":"#9898ff","fontSize":1,"text":"Canada","pointSize":1},{"lat":59.93,"lng":30.3,"color":"#ff378e","fontSize":1,"text":"St. Petersburg","pointSize":1},{"lat":9,"lng":51,"color":"#f88e10","fontSize":1,"text":"Germany","pointSize":1},{"lat":35.86,"lng":104.19,"color":"#468a72","fontSize":1,"text":"China","pointSize":1}])
.labelText('text')
.labelSize('fontSize')
.labelDotRadius('pointSize')
.labelColor('color');
const controls = new THREE.OrbitControls(camera, renderer.domElement);
controls.enableDamping = true;
controls.dynamicDampingFactor = 0.01;
controls.enablePan = false;
controls.minDistance = 200;
controls.maxDistance = 500;
controls.rotateSpeed = 0.8;
controls.zoomSpeed = 1;
controls.autoRotate = true;
controls.minPolarAngle = Math.PI / 3.5;
controls.maxPolarAngle = Math.PI - Math.PI / 3;
scene.add(globe);
renderer.render(scene, camera);
const update = () => {
requestAnimationFrame(update);
controls.update();
renderer.render(scene, camera);
}
update();
return renderer;
}
</script>
</body>
</html>