-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
198 lines (160 loc) · 6.52 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
<!DOCTYPE html>
<html>
<head>
<title>Jinit Shah</title>
</head>
<meta charset="utf-8" />
<script src="https://code.jquery.com/jquery-3.5.1.min.js" integrity="sha256-9/aliU8dGd2tb6OSsuzixeV4y/faTqgFtohetphbbj0=" crossorigin="anonymous"></script>
<script type="text/javascript" src="https://stackpath.bootstrapcdn.com/bootstrap/4.5.0/js/bootstrap.min.js"></script>
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.5.0/css/bootstrap.min.css"></link>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">
<style>
body{
font-family: -apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,"Noto Sans",sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji";
opacity: 0;
transition: opacity .7s;
}
</style>
<body style="background-color: black">
<div class="container text-center text-white">
<nav class="navbar" style="display: none;border-bottom: 1px solid white;">
<a class="navbar-brand text-left" style="font-size: 1.4rem;">Jinit Shah</a>
<div class=" justify-content-end">
<a class="navbar-brand navAbout text-white" href="About.html" >About</a>
<a class="navbar-brand navProjects text-white" href="Projects.html" >Projects</a>
<a class="navbar-brand navInternships text-white" href="Internships.html">Internships</a>
<a class="navbar-brand navBlog text-white" href="Blog.html">Blog</a>
</div>
</nav>
<br><br>
<div class="display-3 mt-3 text-center text-white" id="Intro" ></div>
<div class="MainPage text-white">
<br><br>
<div class="row" id="rows">
<a class="col-lg-4 mb-5 text-center text-white display-4 About" href="About.html" style="display: none;" >About</a>
<a class="col-lg-4 mb-5 text-center text-white display-4 Projects" href="Projects.html" style="display: none;">Projects</a>
<a class="col-lg-4 mb-5 text-center text-white display-4 Internships" href="Internships.html" style="display: none;">Internships</a>
</div>
<div class="row mb-5" id="rows">
<a class="col-lg-4"></a>
<a class="col-lg-4 text-center text-white display-4 Blog" href="Blog.html" style="display: none;">Blog</a>
</div>
<div class="last_line display-4" style="display: none;">Click on any of the above to know more.</div>
</div>
</div>
<script src="https://cdn.jsdelivr.net/npm/typeit@7.0.4/dist/typeit.min.js"></script>
<script type="text/javascript">
var instance = new TypeIt("#Intro", {
strings: ["Hi, I'm Jinit!"],
speed: 65,
loop: false,
waitUntilVisible: true,
afterComplete: async (step, instance) => {
instance.destroy();
if($(document).width() >=992){
$('.About')[0].style['border-right'] = '1px solid white';
$('.Projects')[0].style['border-right'] = '1px solid white';
}
else{
$('.About')[0].style['border-left'] = '1px solid white';
$('.Projects')[0].style['border-right'] = '1px solid white';
$('.Internships')[0].style['border-left'] = '1px solid white';
$('.Blog')[0].style['border-right'] = '1px solid white';
}
$('.About').fadeIn();
$('.Projects').fadeIn();
$('.Internships').fadeIn();
$('.Blog').fadeIn();
$('.last_line').fadeIn();
}
}).pause(1000).delete().type("Welcome to my site!").pause(1000).go();
$('body').click(function(){
if(instance.is('started') && !instance.is('completed')){
instance.reset();
// $('.About')[0].style.display = 'block';
}
$('#Intro')[0].innerHTML = "Welcome to my site!";
if($(document).width() >=992){
$('.About')[0].style['border-right'] = '1px solid white';
$('.Projects')[0].style['border-right'] = '1px solid white';
}
else{
$('.About')[0].style['border-left'] = '1px solid white';
$('.Projects')[0].style['border-right'] = '1px solid white';
$('.Internships')[0].style['border-left'] = '1px solid white';
$('.Blog')[0].style['border-right'] = '1px solid white';
}
$('.About').fadeIn();
$('.Projects').fadeIn();
$('.Internships').fadeIn();
$('.Blog').fadeIn();
$('.last_line').fadeIn();
});
if($(document).width() <= 992){
$("#Intro").removeClass("display-3");
$("#Intro").addClass("display-1");
$('.About')[0].style['border-left'] = '3px solid white';
$('.Projects')[0].style['border-right'] = '3px solid white';
$('.Internships')[0].style['border-left'] = '3px solid white';
$('.Blog')[0].style['border-right'] = '3px solid white';
$(".col-lg-4").removeClass("display-4");
$(".col-lg-4").addClass("display-2");
$(".last_line").removeClass("display-4");
$(".last_line").addClass("display-2");
}
// var a = new TypeIt(".About", {
// strings: "About",
// speed: 65,
// loop: false,
// waitUntilVisible: true,
// afterComplete: async (step, instance) => {
// instance.destroy();
// $('.Projects')[0].style.display = 'block';
// if($(document).width() >=992)
// $('.About')[0].style['border-right'] = '1px solid white';
// }
// }).go();
// var p = new TypeIt(".Projects", {
// strings: "Projects",
// speed: 65,
// loop: false,
// waitUntilVisible: true,
// afterComplete: async (step, instance) => {
// instance.destroy();
// $('.Internships')[0].style.display = 'block';
// if($(document).width() >=992)
// $('.Projects')[0].style['border-right'] = '1px solid white';
// }
// }).go();
// var p = new TypeIt(".Internships", {
// strings: "Internships",
// speed: 65,
// loop: false,
// waitUntilVisible: true,
// afterComplete: async (step, instance) => {
// instance.destroy();
// $('.Blog')[0].style.display = 'block';
// }
// }).go();
// var b = new TypeIt(".Blog", {
// strings: "Blog",
// speed: 65,
// loop: false,
// waitUntilVisible: true,
// afterComplete: async (step, instance) => {
// instance.destroy();
// $('.last_line').fadeIn();
// }
// }).go();
window.transitionToPage = function(href) {
document.querySelector('body').style.opacity = 0
setTimeout(function() {
window.location.href = href
}, 700)
}
document.addEventListener('DOMContentLoaded', function(event) {
document.querySelector('body').style.opacity = 1
})
</script>
</body>
</html>