-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
81 lines (71 loc) · 2.21 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
<!doctype html>
<html>
<head>
<meta charset="UTF-8">
<title>Homepage</title>
<link href="personal.css" rel="stylesheet" type="text/css">
</head>
<body>
<div class="page-wrapper">
<header class="top-header">
<nav class="nav-bar">
<ul>
<li><a href="index.html">Home</a></li>
<li><a href="about.html">About</a></li>
<li><a href="resume.html">Resume</a></li>
<li><a href="projects.html">Projects</a></li>
</ul>
</nav>
<div class="top-banner">
<div id ="logo"><img src="Images/EN-cropped.png" width="200" height="50" alt=""/>
<h1>Hi, I'm Edwin <br /> I am a <span id="typewriter"></span
><span id="cursor">|</span></h1>
<script> function sleep(ms) {
return new Promise((resolve) => setTimeout(resolve, ms));
}
const phrases = ["Software Engineer", "Mobile App Developer", "Data Engineer"];
const el = document.getElementById("typewriter");
let sleepTime = 100;
let curPhraseIndex = 0;
const writeLoop = async () => {
while (true) {
let curWord = phrases[curPhraseIndex];
for (let i = 0; i < curWord.length; i++) {
el.innerText = curWord.substring(0, i + 1);
await sleep(sleepTime);
}
await sleep(sleepTime * 10);
for (let i = curWord.length; i > 0; i--) {
el.innerText = curWord.substring(0, i - 1);
await sleep(sleepTime);
}
await sleep(sleepTime * 5);
if (curPhraseIndex === phrases.length - 1) {
curPhraseIndex = 0;
} else {
curPhraseIndex++;
}
}
};
writeLoop();; </script>
</div></div>
</header>
<main class="main">
<div id ="headshot"><img src="Images/Headshot.jpg" width="400" height="200" alt=""/>
</div>
</main>
</main>
</div>
</body>
<footer class="footer-img">
<a href="https://www.linkedin.com/in/edwin-navas-952290166/" target="_blank">
<img src="Images/linkdin.png" width="80" height="66" alt=""/>
</a>
<a href="https://www.instagram.com/enavas.18" target="_blank">
<img src="Images/instagram.png" width="80" height="66" alt=""/>
</a>
<a href="https://github.com/eNav" target="_blank">
<img src="Images/github.png" width="80" height="66" alt=""/>
</a>
</footer>
</html>