-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
128 lines (107 loc) · 4.46 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Darick Pascua (Ricardo Pascua Jr)</title>
<link rel="apple-touch-icon" sizes="180x180" href="/apple-touch-icon.png">
<link rel="icon" type="image/png" sizes="32x32" href="/favicon-32x32.png">
<link rel="icon" type="image/png" sizes="16x16" href="/favicon-16x16.png">
<link rel="manifest" href="/site.webmanifest">
<link rel="mask-icon" href="/safari-pinned-tab.svg" color="#5bbad5">
<meta name="msapplication-TileColor" content="#da532c">
<meta name="theme-color" content="#ffffff">
<meta name="author" content="Ricardo Pascua Jr">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="description" content="Overengineer"/>
<meta property="og:title" content="Darick Pascua"/>
<meta property="og:type" content="website"/>
<meta property="og:url" content="https://darickpascua.com/"/>
<meta property="og:image" content="https://darickpascua.com/avatar.jpg"/>
<meta property="og:description" content="Overengineer"/>
<style>
@media screen and (max-width: 600px) {
html {
font-size: 14px;
}
}
body {
font-family: 'Berkeley Mono';
padding: 6vh 5vw;
}
.dark {
background: #181724;
color: #E0DEF4;
}
.cursor {
display: inline-block;
width: 0.5em;
background-color: #000;
animation: blink 1s infinite steps(1);
}
.dark a:link { color: lightskyblue; }
.dark a:visited { color: #C4A7E7; }
.dark a:hover { color: #ffffff; }
.dark a:active { color: #ff4040; text-decoration:none; font-weight:normal; }
.dark .cursor { background-color: #E0DEF4 }
@keyframes blink {
50% {
background-color: transparent;
}
}
@font-face {
font-family: 'Berkeley Mono';
src: url('BerkeleyMono-Regular.woff') format('woff');
font-weight: 300;
font-style: normal;
}
h3 { font-size: 2rem }
p { max-width: 32em; font-size: 1em }
</style>
</head>
<body>
<h3 id="console">
Hello World!<br>I'm Darick Pascua.
</h3>
<p>I am a software developer with a passion for coding, specializing in PHP, Go and Node.js.</p>
<p>Throughout my career, I've had the opportunity to work with distinguished private organizations such as Belo Medical Group and Smart Communications; and a diverse range of government agencies, including DOTr-MRT3, DOTr-MARINA, DOST-PAGASA, the Philippine Coastguard, Philippine Navy, Philippine Marine Corps and Philippine Military Academy.</p>
<p>In my free time, I enjoy mentoring aspiring developers, helping them navigate the exciting world of coding.</p>
<p>When I'm not coding, you can find me cruising the streets on my bike during nighttime rides or cherishing precious moments with my amazing wife and our adorable little one.</p>
<p>Follow me on <a href="https://github.com/rdpascua">Github</a>! You can also write me at <a href="mailto:[email protected]">[email protected]</a></p>
<script>
const text = 'Hello World!\nI\'m Darick Pascua.';
const terminalElement = document.getElementById('console');
const cursorElement = document.createElement('span');
cursorElement.className = 'cursor';
cursorElement.textContent = '\u00A0';
let index = 0;
let clicks = 0;
const typingSpeed = 100
const body = document.body
body.addEventListener('click', function() {
if (clicks > 3) {
body.classList.toggle('dark')
clicks = 0
}
clicks++
})
function type() {
if (!index) {
terminalElement.innerHTML = "";
}
if (index < text.length) {
const char = text.charAt(index);
if (char === '\n') {
terminalElement.appendChild(document.createElement('br'));
} else {
terminalElement.appendChild(document.createTextNode(char));
}
index++;
setTimeout(type, typingSpeed);
} else {
terminalElement.appendChild(cursorElement);
}
}
type();
</script>
</body>
</html>