forked from sethcottle/littlelink
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
74 lines (66 loc) · 2.57 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Dinip</title>
<meta name="author" content="Dinip">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link href="https://fonts.googleapis.com/css?family=Open+Sans:400,600,700,800&display=swap" rel="stylesheet">
<link rel="stylesheet" href="css/normalize.css">
<link rel="stylesheet" href="css/skeleton-dark.css">
<link rel="stylesheet" href="css/brands.css">
<link rel="icon" type="image/png" href="img/dinip_logo_64.png">
<script defer data-domain="dinispimpao.pt" src="https://info.dinispimpao.pt/js/script.js"></script>
</head>
<body>
<div class="container">
<div class="row">
<div class="column" style="margin-top: 10%">
<h1>Dinis Pimpão</h1>
<p>
<span class="age"></span>yo
<br>
Computer Science and Engineering Student
<br>
Backend Developer
<br>
Portugal <img src="icons/portuguese_flag.svg" class="icon" alt="Portuguese Flag">
</p>
<!-- Github -->
<a class="button button-github" href="https://github.com/Dinip/" target="_blank" rel="noopener"><img
class="icon" src="icons/github.svg" alt="GitHub Logo">GitHub</a>
<br>
<!-- LinkedIn -->
<a class="button button-linkedin" href="https://www.linkedin.com/in/dinispimpao" target="_blank"
rel="noopener"><img class="icon" src="icons/linkedin.svg" alt="LinkedIn Logo">LinkedIn</a>
<br>
<!-- Medium -->
<!-- <a class="button button-medium" href="#" target="_blank" rel="noopener"><img class="icon" src="icons/medium.svg" alt="Medium Logo">Medium</a>
<br> -->
<!-- Email -->
<a class="button button-default" href="mailto:me@dinispimpao.pt" target="_blank" rel="noopener"><img
class="icon" src="icons/email.svg" alt="Email Icon">me@dinispimpao.pt</a>
<br>
<br>
<br>
</div>
</div>
</div>
<script>
const ages = document.getElementsByClassName('age')
for (let i = 0; i < ages.length; i++) {
ages[i].textContent = getAge('2001-03-10')
}
function getAge (dateString) {
let today = new Date();
let birthDate = new Date(dateString);
let age = today.getFullYear() - birthDate.getFullYear();
let m = today.getMonth() - birthDate.getMonth();
if (m < 0 || (m === 0 && today.getDate() < birthDate.getDate())) {
age--;
}
return age;
}
</script>
</body>
</html>