-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
198 lines (188 loc) · 6.58 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>
<body>
<head>
<title>Shreyas Mohan</title>
<link rel="shortcut icon" type="image/png" href="img/favicon.png">
<style>
body {background-color: black;}
.myButton {
background-color: transparent;
border: 2px solid #41FF00;
color: white;
font-family: "Courier New", serif;
padding: 15px 32px;
text-align: center;
text-decoration: none;
display: inline-block;
font-size: 16px;
position: absolute;
top: 91%;
left: 40%;
text-align: center;
}
.typing {
color: #41FF00;
position: absolute;
top: 40%;
left: 10%;
right: 10%;
text-align: center;
font-size: 200%;
overflow-y: visible;
font-family: "Courier New", serif;
}
.typing2 {
color: #41FF00;
position: absolute;
top: 20%;
left: 10%;
right: 10%;
text-align: center;
font-size: 200%;
overflow-y: visible;
font-family: "Courier New", serif;
}
@keyframes blink {
0% {opacity: 1}
50% {opacity: 0}
100% {opacity: 1}
}
.blinking {
animation-name: blink;
animation-timing-function: step-start;
animation-iteration-count: infinite;
animation-duration: 1s;
}
.bottomleft {
color: white;
position: absolute;
bottom: 0px;
left: 16px;
font-size: 200%;
font-family: "Courier New", serif;
}
.bottomright {
color: white;
position: absolute;
bottom: 5px;
right: 16px;
font-size: 200%;
font-family: "Courier New", serif;
}
.bottomright l a:hover {
opacity: 0.5
}
/* #myDIV {
width: 100%;
background-color: black;
font-family: "Courier New", serif;
position: absolute;
top: 40%;
left: 0%;
text-align: center;
font-size: 200%;
color: white;
} */
</style>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">
</head>
<p id="typewriter" class="typing"></p>
<h1 class="bottomleft">Shreyas Mohan</h1>
<input class="myButton" type="button" value="I'm in a Hurry" id="btn" onclick="myFunction()">
<div id="myDIV" class="typing2" style="display: none">
Hi, my name is Shreyas Mohan. I study computer Engineering at U of I.
On campus, I do a lot of cool stuff... I am a product manager for
Hack4Impact, a consultant for OTCR, and I help organize R|P and
HackIllinois. My love is systems, but I also dabble in Web Dev
and Data Science. I am always looking for ways to learn through
internships, research, and projects. Check out the links below
to learn more. Shoot me an email if you'd like to chat about anything
from Kernels, to React.js, to Basketball. I'd love to get in touch!
</div>
<script>
function myFunction() {
var x = document.getElementById("myDIV");
var y = document.getElementById("typewriter");
var z = document.getElementById("btn");
if (x.style.display === "none") {
x.style.display = "block";
y.style.display = "none";
z.value = "I have time"
} else {
x.style.display = "none";
y.style.display = "block";
z.value = "I'm in a hurry"
}
}
</script>
<script>
const typingHeaderText = [
'Hey,',
'My name is Shreyas Mohan.',
'I study Computer Engineering at U of I',
'On campus, I do a lot of cool stuff...',
'I am a product manager for Hack4Impact,',
'I am a consultant for OTCR,',
'and I help organize RP and HackIllinois.',
'My love is systems...',
'But I also dabble in Web Dev and Data Science',
'I am always looking for ways to learn',
'through internships, research, and projects',
'Check out the links below to learn more.',
'Shoot me an email if youd like to chat about',
'anything from',
'Kernels',
'to React.js',
'to Basketball',
'Id love to get in touch!'
];
let typingProperties = {
iterNumber : 0,
currentText : '',
isDeleting : false,
holdTime : 1000,
textCycle : typingHeaderText,
// Class name for where you want to insert the text
htmlLocation : document.querySelector('.typing'),
type : cycleText,
};
window.onload = typingProperties.type();
function cycleText() {
let i = this.iterNumber % this.textCycle.length;
let fullText = this.textCycle[i];
if (this.isDeleting) {
this.currentText = fullText.substring(0, this.currentText.length - 1);
} else {
this.currentText = fullText.substring(0, this.currentText.length + 1);
}
this.htmlLocation.innerHTML = `<span>[email protected]:~$ ${this.currentText}</span><span id="cursor">|</span>`;
let typingTime = 210 - 200 * Math.random();
if (this.isDeleting) {
typingTime = ( fullText.length - this.currentText.length < 15 ) ? (this.currentText.length / fullText.length) * 100 : 30;
}
if (!this.isDeleting && this.currentText === fullText) {
typingTime = this.holdTime;
this.isDeleting = true;
document.getElementById('cursor').classList.add('blinking');
} else if (this.isDeleting && this.currentText === '') {
this.isDeleting = false;
this.iterNumber++;
typingTime = 1000;
document.getElementById('cursor').classList.add('blinking');
}
let typingProperties = this;
setTimeout( () => typingProperties.type(), typingTime);
}
</script>
<div class="bottomright">
<div class="overlay">
<l><a href="Resume_2018.pdf" class="fa fa-file" style="font-size:48px;color:white;"></a></l>
<l><a href="https://github.com/shreyshrey1" class="fa fa-github" style="font-size:48px;color:white;"></a></l>
<l><a href="https://www.linkedin.com/in/shreyas-mohan-242115148/" class="fa fa-linkedin" style="font-size:48px;color:white;"></a></l>
<l><a href="https://www.facebook.com/shreyas.mohan.39" class="fa fa-facebook" style="font-size:48px;color:white;"></a></l>
<l><a href="mailto:[email protected]" class="fa fa-envelope" style="font-size:48px;color:white;"></a></l>
</div>
</div>
</body>
</html>