-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
351 lines (313 loc) · 11.5 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
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<title>Ved Gautam</title>
<!-- load CSS -->
<link
rel="stylesheet"
href="https://fonts.googleapis.com/css?family=Open+Sans:300,400,600"
/>
<!-- Google web font "Open Sans" -->
<link rel="stylesheet" href="css/bootstrap.min.css" />
<!-- https://getbootstrap.com/ -->
<link rel="stylesheet" href="slick/slick.css" />
<link rel="stylesheet" href="slick/slick-theme.css" />
<link rel="stylesheet" href="css/magnific-popup.css" />
<link rel="stylesheet" href="css/tooplate-style.css" />
<!-- Templatemo style -->
</head>
<body>
<!-- Loader -->
<div id="loader-wrapper">
<div id="loader"></div>
<div class="loader-section section-left"></div>
<div class="loader-section section-right"></div>
</div>
<div class="tm-main-container">
<div class="tm-top-container">
<!-- Menu -->
<nav id="tmNav" class="tm-nav">
<a class="tm-navbar-menu" href="#">Menu</a>
<ul class="tm-nav-links">
<li class="tm-nav-item active">
<a href="#" data-linkid="0" data-align="right" class="tm-nav-link">Intro</a>
</li>
<li class="tm-nav-item">
<a href="#" data-linkid="1" data-align="right" class="tm-nav-link">About</a>
</li>
<li class="tm-nav-item">
<a
href="#"
data-linkid="2"
data-align="middle"
class="tm-nav-link">Work</a>
</li>
<li class="tm-nav-item">
<a href="#" data-linkid="3" data-align="left" class="tm-nav-link">Contact</a>
</li>
<li class="tm-nav-item">
<a
rel="nofollow" href="https://www.linkedin.com/in/ved-gautam-986500106/"
class="tm-nav-link external">External</a>
</li>
</ul>
</nav>
<!-- Site header -->
<header class="tm-site-header-box tm-bg-dark">
<h1 class="tm-site-title">Ved Gautam</h1>
<p class="mb-0 tm-site-subtitle">Data Engineer/Data Analyst</p>
</header>
</div>
<!-- tm-top-container -->
<div class="container-fluid">
<div class="row">
<div class="col-md-12">
<!-- Site content -->
<div class="tm-content">
<!-- Section 0 Introduction -->
<section class="tm-section tm-section-0">
<h2 class="tm-section-title mb-3 font-weight-bold">
Introduction
</h2>
<div class="tm-textbox tm-bg-dark">
<p>
Hi, I am Ved Gautam. I currently work as a Data Engineer for Spark Cognition's Ensemble Energy.
</p>
</div>
<a href="#" id="tm_about_link" data-linkid="1" class="tm-link">Read More</a>
</section>
<!-- Section 1 About Me -->
<section class="tm-section tm-section-1">
<div class="tm-textbox tm-textbox-2 tm-bg-dark">
<h2 class="tm-text-blue mb-4">About Me</h2>
<p class="mb-4">
An Engineer keen to help companies collect,
collate and analyze to exploit digital assets.
</p>
<p class="mb-4">
Practiced at cleansing and organizing data into new,
more functional formats to drive increased efficiency and enhanced returns on investment.
</p>
<a
href="#"
id="tm_work_link"
data-linkid="2"
class="tm-link m-0"
>Next</a
>
</div>
</section>
<!-- Section 2 Work (Gallery) -->
<section class="tm-section tm-section-2 mx-auto">
<div class="grid tm-gallery">
<figure class="effect-goliath tm-gallery-item">
<img src="img/01.jpg" alt="Image 1" class="" />
<figcaption>
<a href="https://www.sparkcognition.com/">View more</a>
</figcaption>
</figure>
<figure class="effect-goliath tm-gallery-item">
<img src="img/02.jpg" alt="Pretty Girl" class="" />
<figcaption>
<a href="https://www.ensemble.energy/">View more</a>
</figcaption>
</figure>
<figure class="effect-goliath tm-gallery-item">
<img src="img/03.jpg" alt="Red Flowers" class="" />
<figcaption>
<a href="https://www.yuni.ai/">View more</a>
</figcaption>
</figure>
</div>
</section>
<!-- Section 3 Contact -->
<section class="tm-section tm-section-3 tm-section-left">
<form action="" class="tm-contact-form" method="post">
<div class="form-group mb-4">
<input
type="text"
id="contact_name"
name="contact_name"
class="form-control"
placeholder="Name"
required
/>
</div>
<div class="form-group mb-4">
<input
type="email"
id="contact_email"
name="contact_email"
class="form-control"
placeholder="Email"
required
/>
</div>
<div class="form-group mb-4">
<textarea
rows="4"
id="contact_message"
name="contact_message"
class="form-control"
placeholder="Message"
required
></textarea>
</div>
<div class="form-group mb-0">
<button type="submit" class="btn tm-send-btn tm-fl-right">
Send
</button>
</div>
</form>
</section>
</div>
</div>
</div>
</div>
</div>
<script src="js/jquery-1.11.0.min.js"></script>
<script src="js/background.cycle.js"></script>
<script src="slick/slick.min.js"></script>
<script src="js/jquery.magnific-popup.min.js"></script>
<script>
let slickInitDone = false;
let previousImageId = 0,
currentImageId = 0;
let pageAlign = "right";
let bgCycle;
let links;
let eachNavLink;
window.onload = function() {
$("body").addClass("loaded");
};
function navLinkClick(e) {
if ($(e.target).hasClass("external")) {
return;
}
e.preventDefault();
if ($(e.target).data("align")) {
pageAlign = $(e.target).data("align");
}
// Change bg image
previousImageId = currentImageId;
currentImageId = $(e.target).data("linkid");
bgCycle.cycleToNextImage(previousImageId, currentImageId);
// Change menu item highlight
$(`.tm-nav-item:eq(${previousImageId})`).removeClass("active");
$(`.tm-nav-item:eq(${currentImageId})`).addClass("active");
// Change page content
$(`.tm-section-${previousImageId}`).fadeOut(function(e) {
$(`.tm-section-${currentImageId}`).fadeIn();
// Gallery
if (currentImageId === 2) {
setupSlider();
}
});
adjustFooter();
}
$(document).ready(function() {
// Set first page
$(".tm-section").fadeOut(0);
$(".tm-section-0").fadeIn();
// Set Background images
// https://www.jqueryscript.net/slideshow/Simple-jQuery-Background-Image-Slideshow-with-Fade-Transitions-Background-Cycle.html
bgCycle = $("body").backgroundCycle({
imageUrls: [
"img/photo-02.jpg",
"img/photo-03.jpg",
"img/photo-04.jpg",
"img/photo-05.jpg"
],
fadeSpeed: 2000,
duration: -1,
backgroundSize: SCALING_MODE_COVER
});
eachNavLink = $(".tm-nav-link");
links = $(".tm-nav-links");
// "Menu" open/close
if (links.hasClass("open")) {
links.fadeIn(0);
} else {
links.fadeOut(0);
}
$("#tm_about_link").on("click", navLinkClick);
$("#tm_work_link").on("click", navLinkClick);
// Each menu item click
eachNavLink.on("click", navLinkClick);
$(".tm-navbar-menu").click(function(e) {
if (links.hasClass("open")) {
links.fadeOut();
} else {
links.fadeIn();
}
links.toggleClass("open");
});
// window resize
$(window).resize(function() {
// If current page is Gallery page, set it up
if (currentImageId === 2) {
setupSlider();
}
// Adjust footer
adjustFooter();
});
adjustFooter();
}); // DOM is ready
function adjustFooter() {
const windowHeight = $(window).height();
const topHeight = $(".tm-top-container").height();
const middleHeight = $(".tm-content").height();
let contentHeight = topHeight + middleHeight;
if (pageAlign === "left") {
contentHeight += $(".tm-bottom-container").height();
}
if (contentHeight > windowHeight) {
$(".tm-bottom-container").addClass("tm-static");
} else {
$(".tm-bottom-container").removeClass("tm-static");
}
}
function setupSlider() {
let slidesToShow = 4;
let slidesToScroll = 2;
let windowWidth = $(window).width();
if (windowWidth < 480) {
slidesToShow = 1;
slidesToScroll = 1;
} else if (windowWidth < 768) {
slidesToShow = 2;
slidesToScroll = 1;
} else if (windowWidth < 992) {
slidesToShow = 3;
slidesToScroll = 2;
}
if (slickInitDone) {
$(".tm-gallery").slick("unslick");
}
slickInitDone = true;
$(".tm-gallery").slick({
dots: true,
customPaging: function(slider, i) {
var thumb = $(slider.$slides[i]).data();
return `<a>${i + 1}</a>`;
},
infinite: true,
prevArrow: false,
nextArrow: false,
slidesToShow: slidesToShow,
slidesToScroll: slidesToScroll
});
// Open big image when a gallery image is clicked.
$(".slick-list").magnificPopup({
delegate: "a",
type: "image",
gallery: {
enabled: true
}
});
}
</script>
</body>
</html>