-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
175 lines (159 loc) · 4.72 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Juan José Arboleda</title>
<style>
html {
margin: 0;
padding: 0;
font-family: 'Source Sans Pro', 'Helvetica Neue', Helvetica, Arial;
font-size: calc(10px + 0.5vw);
color: black;
}
body {
margin: 8px;
margin-bottom: 0px;
}
h1,
h2 {
font-size: 2em;
}
p {
font-size: 1.6em;
}
a {
text-decoration: none;
color: black;
cursor: pointer;
}
.content {
width: 100%;
position: relative;
box-sizing: border-box;
overflow: hidden;
display: flex;
flex-flow: column;
}
section {
width: 60rem;
position: relative;
box-sizing: border-box;
margin: 80px auto;
margin-bottom: 0;
}
.doodle {
display: flex;
flex: 1 1 100%;
justify-content: flex-end;
}
img {
cursor: pointer;
height: 200px;
}
@media only screen and (max-width: 600px) {
body {
margin-bottom: unset;
}
section {
width: unset;
}
.doodle {
display: none;
}
}
</style>
</head>
<body>
<div class="content">
<section>
<h1>¡Hola!</h1>
<h2>My name is Juan Arboleda</h2>
<p>
I am a software engineer. An OSS enthusiast. </br>
I'm a <a href="https://chromium-review.googlesource.com/q/owner:[email protected]" target="_blank">
V8 JavaScript engine contributor
</a>,
<a href="https://github.com/nodejs/node#collaborators" target="_blank">Node.js collaborator</a>, and
<a href="https://github.com/nodejs/node#release-keys" target="_blank">Node.js releaser</a>.
</p>
<p>
I make more contributions to different OSS projects like Google's V8 JavaScript engine and Libuv. You can
visit my <a href="https://github.com/juanarbol" target="_blank">GitHub profile</a>,
read a blog post in my <a href="https://blog.juanarbol.co" target="_blank">blog</a>,
see my <a href="https://www.linkedin.com/in/juanarbol" target="_blank">LinkedIn profile</a>, and
<a href="https://twitter.com/soyjuanarbol" target="_blank">Twitter</a> or
<a href="CV.pdf" target="_blank">download my CV</a>.
</p>
<p>
I’m currently working with React, Node.js as back-end and Node.js core engineering with JavaScript, C,
and C++.
</p>
<p>
Away from programming, I enjoy playing the piano, doodling, reading, and
using my hands with tech-unrelated stuff (like eating).
</p>
</section>
<section class="doodle">
<img src="doodle.png" alt="Juan in a Doodle" />
</section>
</div>
<script>
const colors = ['#FCD708', '#8BF5AB', '#E06218', '#2E29C7'];
const links = document.querySelectorAll('a');
const doodle = document.querySelector('img')
function painting () {
links.forEach((link) => {
// Grab only the first two colors
const randomColor = colors[Math.floor(Math.random() * 2)];
link.style.background = `linear-gradient(to bottom, transparent 60%, ${randomColor} 60% 70%)`;
link.addEventListener('mouseover', () => {
link.style.background = `linear-gradient(to bottom, transparent 0%, ${randomColor} 0% 100%)`;
blinkDoodle();
});
link.addEventListener('mouseout', () => {
link.style.background = `linear-gradient(to bottom, transparent 60%, ${randomColor} 60% 70%)`;
});
});
const randomColor = colors[Math.floor(Math.random() * colors.length)];
doodle.style.background = randomColor;
doodle.addEventListener('click', painting);
}
doodle.addEventListener('mouseover', blinkDoodle);
doodle.addEventListener('mouseout', blinkDoodle);
doodle.addEventListener('click', blinkDoodle);
let blinkTimeout = null;
function blinkDoodle () {
clearTimeout(blinkTimeout);
doodle.src = 'doodle-no-eyes.png';
setTimeout(() => doodle.src = 'doodle.png', 100);
}
painting();
</script>
<script>
// This will handle route changes and possible redirections
function redirectToBlogIfNeeded () {
const pathname = window.location.pathname;
if (pathname === '/blog')
window.location.href = 'https://blog.juanarbol.co';
}
window.onhashchange = function () {
redirectToBlogIfNeeded();
}
window.onpopstate = function () {
redirectToBlogIfNeeded();
}
addEventListener('pageshow', () => {
redirectToBlogIfNeeded();
})
</script>
<script async src="https://www.googletagmanager.com/gtag/js?id=UA-107131564-1"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments)};
gtag('js', new Date());
gtag('config', 'UA-107131564-1');
</script>
</html>