-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtest.html
More file actions
223 lines (183 loc) · 5.94 KB
/
test.html
File metadata and controls
223 lines (183 loc) · 5.94 KB
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
<!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">
<title>Tyler Pham</title>
<meta name="description" content="I'm a pretty cool guy, cool guys usually have websites. Wikipedia are not cool people.">
<!-- <link rel="stylesheet" href="/_css/index.css">
--> <!-- <script src="/_site/assets/main.js"></script> -->
<link rel="canonical" href="http://localhost:4000/">
<link rel="alternate" type="application/rss+xml" title="Your awesome title" href="/feed.xml">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css">
<link href="//maxcdn.bootstrapcdn.com/font-awesome/4.2.0/css/font-awesome.min.css" rel="stylesheet">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.1.1/jquery.min.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js"></script>
<link rel="shortcut icon" type="image/x-icon" href="/favicon.ico?">
</head>
<!-- ======================= -->
<body>
<div class="name-card col-md-offset-1 container">
<!--
<div class="row">
<h1 class="col-xs-6">Tyler Pham: Adjective</h1>
</div> -->
<h1>Tyler Pham
<span
class="txt-rotate"
data-period="2000"
data-rotate='[
"[student] 😁",
"[programmer]",
"[software developer]",
"[tinkerer]",
"[nerd]",
"[photographer]",
"[thrill seeker]",
"[dragon boater]",
"[slackliner]",
"[dancer]",
"[single fa"
]'>
</span>
</h1>
<h4>Developer in development</h4>
<div class="row no-margin">
<a href="https://github.com/TylerPham" title="Github">
<i class="fa fa-github fa-2x fa-fw" aria-hidden="true"></i>
</a>
<a href="https://ca.linkedin.com/in/phamtyler" title="Linkedin">
<i class="fa fa-linkedin fa-2x fa-fw" aria-hidden="true"></i>
</a>
<a href="mailto:phamtyler94@gmail.com" title="Email">
<i class="fa fa-envelope fa-2x fa-fw" aria-hidden="true"></i>
</a>
<a href="Tyler_Pham_Resume_2017.pdf" title="Resume">
<!-- <i class="fa fa-file-pdf-o fa-2x fa-fw" aria-hidden="true"></i> -->
<i class="fa fa-file-pdf-o fa-2x fa-fw" aria-hidden="true"></i>
</a>
</div>
</div>
<div class="personal-blurb col-xs-offset-6 col-xs-5">
<!-- <h3 class="align-center">Since I'm not famous enough for a wikipedia page...yet</h3> -->
<h3 class="align-center">Since all cool guys have websites about them</h3>
<h6 class="align-center"><small>(and wikipedia won't accept my submission)</small></h6>
<p>Hi there I'm Tyler. A fourth year CS student studying at UofT. I love to hack, solve problems within a reasonable difficulty range, and sometimes I dabble with design. Welcome to my little slice of the net. This site is a work in progress so keep an eye out for the latest updates.
</p>
</div>
<!-- <div class="background-image">
<img src="http://i61.tinypic.com/2nvuxso.jpg" class="img-responsive">
</div>
-->
</body>
<!--
===============================
CUSTOM CSS HERE
TODO REFACTOR TO _CSS FOLDER
===============================
-->
<style>
/*prevents scrolling*/
/*body {*/
/*overflow: hidden;*/
/*need this when you use a background color*/
/*background-color:#acc2b0;*/
/*}*/
h1, h2, h3, h4, h5, h6, p {
font-family: "Open Sans", sans-serif !important;
color: #050709;
}
.background-image {
position:fixed;
bottom:0px;
padding-bottom: 0px;
}
/*.name-card {
display: flex;
justify-content: center;
flex-direction: column;
height: 500px;
}*/
.name-card {
margin-top: 10em;
/*display: flex;
justify-content: center;
flex-direction: column;
*/
/*height: 500px;*/
}
.personal-blurb{
margin-top: 10em;
}
.no-margin{
padding-left: 10px;
padding-right: 0px;
}
.fa-github, .fa-linkedin, .fa-envelope, .fa-file-pdf-o{
color: black;
}
html {
background: url(hills_transparent.png) no-repeat center center fixed;
-webkit-background-size: cover;
-moz-background-size: cover;
-o-background-size: cover;
background-size: cover;
}
</style>
<!--
===============================
CUSTOM JAVASCRIPT HERE
TODO REFACTOR TO _SCRIPTS FOLDER
===============================
-->
<script>
var TxtRotate = function(el, toRotate, period) {
this.toRotate = toRotate;
this.el = el;
this.loopNum = 0;
this.period = parseInt(period, 10) || 2000;
this.txt = '';
this.tick();
this.isDeleting = false;
};
TxtRotate.prototype.tick = function() {
var i = this.loopNum % this.toRotate.length;
var fullTxt = this.toRotate[i];
if (this.isDeleting) {
this.txt = fullTxt.substring(0, this.txt.length - 1);
} else {
this.txt = fullTxt.substring(0, this.txt.length + 1);
}
this.el.innerHTML = '<span class="wrap">'+this.txt+'</span>';
var that = this;
var delta = 300 - Math.random() * 100;
if (this.isDeleting) { delta /= 2; }
if (!this.isDeleting && this.txt === fullTxt) {
delta = this.period;
this.isDeleting = true;
} else if (this.isDeleting && this.txt === '') {
this.isDeleting = false;
this.loopNum++;
delta = 500;
}
setTimeout(function() {
that.tick();
}, delta);
};
window.onload = function() {
var elements = document.getElementsByClassName('txt-rotate');
for (var i=0; i<elements.length; i++) {
var toRotate = elements[i].getAttribute('data-rotate');
var period = elements[i].getAttribute('data-period');
if (toRotate) {
new TxtRotate(elements[i], JSON.parse(toRotate), period);
}
}
// INJECT CSS
// var css = document.createElement("style");
// css.type = "text/css";
// css.innerHTML = ".txt-rotate > .wrap { border-right: 0.08em solid #666 }";
// document.body.appendChild(css);
};
</script>