-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
442 lines (412 loc) · 14.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
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
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Portfolio</title>
<link rel="stylesheet" href="style.css" />
<link
rel="stylesheet"
href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.2/css/all.min.css"
integrity="sha512-z3gLpd7yknf1YoNbCzqRKc4qyor8gaKU1qmn+CShxbuBusANI9QpRohGBreCFkKxLhei6S9CQXFEbbKuqLg0DA=="
crossorigin="anonymous"
referrerpolicy="no-referrer"
/>
</head>
<body>
<div id="loader">
<div>Loading...</div>
</div>
<div class="wrapper">
<div id="header">
<div class="container">
<nav id="navigation-bar">
<img src="images/logo.png" class="logo" />
<ul id="side-menu">
<li><a href="#header">Home </a></li>
<li><a href="#about">About </a></li>
<li><a href="#services">Services </a></li>
<li><a href="#portfolio">Portfolio </a></li>
<li><a href="#contact">Contact </a></li>
<i class="fas fa-times" onclick="closeMenu()"></i>
</ul>
<i class="fas fa-bars" onclick="openMenu()"></i>
</nav>
<div class="header-text">
<p>UI/UX Designer</p>
<h1>
Hi, I'm <span>Vishal</span><br />
Sharma from NIT Srinagar
</h1>
</div>
</div>
</div>
<!-- ----------about----------- -->
<div id="about">
<div class="container">
<div class="row" id="about-row">
<div class="about-col-1">
<img src="images/user.png" alt="" />
</div>
<div class="about-col-2">
<h1 class="sub-title">About Me</h1>
<p>
Lorem, ipsum dolor sit amet consectetur adipisicing elit.
Incidunt eos eaque molestiae ipsam dignissimos sunt delectus
possimus in consequuntur nostrum excepturi soluta eius adipisci,
numquam quisquam laborum commodi quod natus.
</p>
<div class="tab-titles">
<p class="tab-links active-link" onclick="opentab('skills')">
Skills
</p>
<p class="tab-links" onclick="opentab('experience')">
Experience
</p>
<p class="tab-links" onclick="opentab('education')">
Education
</p>
</div>
<div class="tab-contents active-tab" id="skills">
<ul>
<li><span>UI?UX</span><br />Designing Web/App interfaces</li>
<li><span>Web Development</span><br />Web app development</li>
<li>
<span>App Development</span><br />Building Android/ios apps
</li>
</ul>
</div>
<div class="tab-contents" id="experience">
<ul>
<li>
<span>2021 - current</span><br />UI/UX Design Training at ET
Institution
</li>
<li>
<span>2019 - 2021</span><br />Team lead at StarApp LLC.
</li>
<li>
<span>2017 - 2019</span><br />UI/UX Design Executive at Coin
Digital Ltd.
</li>
<li>
<span>2016 - 2017</span><br />Internship at ekart eCommerce.
</li>
</ul>
</div>
<div class="tab-contents" id="education">
<ul>
<li>
<span>2016</span><br />UI/UX Design Training at ET Institute
</li>
<li><span>2016</span><br />MBA from MIT Bangalore.</li>
<li><span>2016</span><br />BBA from ISM Bangalore.</li>
</ul>
</div>
</div>
</div>
</div>
</div>
<!-- ------------- services ---------------- -->
<div id="services">
<div class="container">
<h1 class="sub-title">My Services</h1>
<div class="services-list">
<div id="service1">
<i class="fas fa-code"></i>
<h1>Web Design</h1>
<p>
Lorem ipsum dolor, sit amet consectetur adipisicing elit. Modi
qui molestias voluptate, explicabo quo expedita commodi pariatur
culpa, accusantium distinctio accusamus iusto. Autem incidunt
modi, illo ab nostrum maxime tempora.
</p>
<a href="#">Learn more</a>
</div>
<div id="service2">
<i class="fas fa-crop-alt"></i>
<h1>UI/UX Design</h1>
<p>
Lorem ipsum dolor, sit amet consectetur adipisicing elit. Modi
qui molestias voluptate, explicabo quo expedita commodi pariatur
culpa, accusantium distinctio accusamus iusto. Autem incidunt
modi, illo ab nostrum maxime tempora.
</p>
<a href="#">Learn more</a>
</div>
<div id="service3">
<i class="fab fa-app-store"></i>
<h1>App Design</h1>
<p>
Lorem ipsum dolor, sit amet consectetur adipisicing elit. Modi
qui molestias voluptate, explicabo quo expedita commodi pariatur
culpa, accusantium distinctio accusamus iusto. Autem incidunt
modi, illo ab nostrum maxime tempora.
</p>
<a href="#">Learn more</a>
</div>
</div>
</div>
</div>
<div id="portfolio">
<div class="container">
<div class="sub-title">My Work</div>
<div class="work-list">
<div class="work" id="work1">
<img src="images/work-1.png" alt="" />
<div class="layer">
<h3>Social Media Application</h3>
<p>
The app connects you to the talented people around the
world.Download it from google play store.
</p>
<a href="#"
><i class="fa-solid fa-arrow-up-right-from-square"></i
></a>
</div>
</div>
<div class="work" id="work2">
<img src="images/work-2.png" alt="" />
<div class="layer">
<h3>Music App</h3>
<p>
The app connects you to the talented people around the
world.Download it from google play store.
</p>
<a href="#"
><i class="fa-solid fa-arrow-up-right-from-square"></i
></a>
</div>
</div>
<div class="work" id="work3">
<img src="images/work-3.png" alt="" />
<div class="layer">
<h3>Online Shopping App</h3>
<p>
The app connects you to the talented people around the
world.Download it from google play store.
</p>
<a href="#"
><i class="fa-solid fa-arrow-up-right-from-square"></i
></a>
</div>
</div>
</div>
<a href="#" class="btn">See more</a>
</div>
</div>
<!-- --------contact ------------- -->
<div id="contact">
<div class="container">
<div class="row">
<div class="contact-left">
<h1 class="sub-title">Contact Me</h1>
<p>
<i class="fas fa-paper-plane"></i>
<span id="email" onclick="copyToClipboard('email')"
>[email protected]</span
>
<span class="alert"> copied to clipboard! </span>
</p>
<p>
<i class="fas fa-phone-square-alt"></i>
<span id="phone" onclick="copyToClipboard('phone')"
>+91600574089</span
>
<span class="alert"> copied to clipboard! </span>
</p>
<div class="social-icons">
<a href="#"><i class="fab fa-facebook"></i></a>
<a href="#"><i class="fab fa-twitter-square"></i></a>
<a href="#"><i class="fab fa-instagram"></i></a>
<a href="#"><i class="fab fa-linkedin"></i></a>
</div>
<a href="images/my-cv.pdf" download class="btn btn2"
>Download CV</a
>
</div>
<div class="contact-right">
<form action="">
<input
type="text"
name="Name"
placeholder="Your Name"
required
/>
<input
type="email"
name="Email"
placeholder="Your Email"
required
/>
<textarea
name="Message"
rows="6"
placeholder="Your Message"
></textarea>
<button type="submit" class="btn btn2">Submit</button>
</form>
<span id="msg"></span>
</div>
</div>
</div>
<div class="copyright">
<p>Copyright ©️ Vishal. Made with ❤️ by Vishal Sharma</p>
</div>
</div>
</div>
<!-- Loader -->
<!-- Script for handling the loading state of website -->
<script>
document.onreadystatechange = function () {
if (document.readyState !== "complete") {
console.log("loading");
document.querySelector("#loader").style.display = "flex";
} else {
setTimeout(() => {
document.querySelector("#loader").style.display = "none";
}, 2000);
}
};
</script>
<script>
let tablinks = document.getElementsByClassName("tab-links");
let tabcontents = document.getElementsByClassName("tab-contents");
function opentab(tabname) {
for (tablink of tablinks) {
tablink.classList.remove("active-link");
}
for (tabcontent of tabcontents) {
tabcontent.classList.remove("active-tab");
}
console.log(event);
event.currentTarget.classList.add("active-link");
document.getElementById(tabname).classList.add("active-tab");
}
</script>
<!-- Script for handling the open and close of navigation menu in mobile screen -->
<script>
let sideMenu = document.getElementById("side-menu");
function openMenu() {
sideMenu.style.right = "0";
}
function closeMenu() {
sideMenu.style.right = "-200px";
}
</script>
<!-- Script for linking the contact form with the google sheets -->
<!-- This is under process i.e. it is not completed yet. -->
<script>
const msg = document.getElementById("msg");
</script>
<!-- Script for handling the position of navigation bar on scrolling -->
<script>
// keep track of previous scroll position
let prevScrollPos = window.pageYOffset;
window.addEventListener("scroll", function () {
// current scroll position
const currentScrollPos = window.pageYOffset;
if (prevScrollPos > currentScrollPos) {
// user has scrolled up
document.querySelector("#navigation-bar").classList.add("show");
} else {
// user has scrolled down
document.querySelector("#navigation-bar").classList.remove("show");
}
// update previous scroll position
prevScrollPos = currentScrollPos;
});
</script>
<!-- Script for copying the contact details to clipboard -->
<script>
function copyToClipboard(id) {
// Get the text field
let copyText = document.getElementById(id);
// Select the text field
// copyText.select();
// copyText.setSelectionRange(0, 99999); // For mobile devices
// Copy the text inside the text field
navigator.clipboard.writeText(copyText.innerText);
// Alert the copied text
const copyAlert = document.querySelector(`#${id} ~ .alert`);
copyAlert.classList.add("show");
setTimeout(() => {
copyAlert.classList.remove("show");
}, 1200);
}
</script>
<script src="anime.js"></script>
<script>
setTimeout(() => {
let tl4 = anime.timeline({
easing: "linear",
});
tl4.add({
targets: "#header",
opacity: 0,
duration: 0,
});
tl4.add({
targets: "#header",
opacity: 1,
duration: 1000,
});
var tl = anime.timeline({
easing: "easeOutExpo",
});
// Add children
tl.add({
targets: ".header-text p",
translateY: 100,
opacity: 0,
duration: 0,
}).add({
targets: ".header-text p",
translateY: 0,
opacity: 1,
duration: 1000,
delay: 400,
});
let tl3 = anime.timeline({
easing: "easeOutExpo",
});
tl3.add({
targets: ".header-text h1",
translateY: 100,
opacity: 0,
duration: 0,
});
tl3.add({
targets: ".header-text h1",
translateY: 0,
opacity: 1,
delay: 500,
duration: 1000,
});
let tl2 = anime.timeline({
easing: "easeOutExpo",
});
tl2
.add({
targets: "#side-menu > li",
translateY: 20,
duration: 0,
opacity: 0,
})
.add({
targets: "#side-menu > li",
translateY: 0,
duration: 500,
delay: function (el, i, l) {
return 1000 + i * 100;
},
opacity: 1,
});
}, 2000);
</script>
<!-- Embedding gsap into the code -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/gsap/3.12.2/gsap.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/gsap/3.12.2/ScrollTrigger.min.js"></script>
<script src="script.js"></script>
</body>
</html>