-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
91 lines (79 loc) · 3.69 KB
/
index.html
File metadata and controls
91 lines (79 loc) · 3.69 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
<!DOCTYPE html>
<html lang="en" class="dark light">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Home</title>
<meta property="og:title" content="Home">
<link href="css/8ZTS7OeDZkoj.css" rel="stylesheet">
<link rel="alternate" type="application/atom+xml" title="" href="https://olivia.mobi/atom.xml">
<link rel="stylesheet" type="text/css" href="css/GvBcx8tWVjbu.css">
<link id="darkModeStyle" rel="stylesheet" type="text/css" href="css/KZsDOy9UCdro.css">
<script src="js/vEw5wg93GTFR.js"></script>
<script>setTheme(getSavedTheme());</script>
<link rel="stylesheet" type="text/css" media="screen" href="css/H7GNq5ipg3nE.css">
</head>
<body>
<div class="content">
<header>
<div class="main">
<a href="https://olivia.mobi"></a>
<div class="socials"></div>
</div>
<nav>
<a href="https://olivia.mobi" style="margin-left: 0.5em">home</a>
|<a id="dark-mode-toggle" onclick="toggleTheme(); event.preventDefault();" href="#">
<img src="images/RdmLAb5fbWdE.svg" id="sun-icon" style="filter: invert(1);" alt="Light">
<img src="images/Y6yTvZYByb8r.svg" id="moon-icon" alt="Dark">
</a>
<script>updateItemToggleTheme()</script>
</nav>
</header>
<main>
<article>
<section class="body">
<div class="page-header">
Hi, I'm <span class="p-name">Olivia Gonsher</span><span class="primary-color">!</span>
</div>
<p>
I'm a software engineer from
<span class="p-locality">Kansas City</span>, <span class="p-region">Missouri</span>, <span class="p-country-name">USA 🌍</span>.
</p>
<p>
My pronouns are she/her/hers.
</p>
<p>
I am <span id="age"></span> years old and a student at Pembroke Hill School. I enjoy coding in HTML and sometimes Python.
</p>
<p>
Some things I am interested in include the Rabbit R1, building computers, and deep-diving everything tech-related.
</p>
<h3>Contacts</h3>
Email: <a class="u-email" rel="me" href="mailto:olivia@olivia.mobi">olivia (at) olivia (dot) mobi</a> <br>
<h3>My Projects</h3>
<iframe frameborder="0" src="https://itch.io/embed/4399458?bg_color=121212&fg_color=ffffff&link_color=6c42fc" width="100%" style="max-width: 552px;" height="167">
<a href="https://aninsecurecarrot.itch.io/sproutbar">Sproutbar by aninsecurecarrot</a>
</iframe>
<br><br>
<br><br>
</section>
</article>
</main>
</div>
<script>
function calculateAge(birthDate) {
const today = new Date();
const birth = new Date(birthDate);
let age = today.getFullYear() - birth.getFullYear();
const monthDiff = today.getMonth() - birth.getMonth();
if (monthDiff < 0 || (monthDiff === 0 && today.getDate() < birth.getDate())) {
age--;
}
return age;
}
// June 22, 2010
document.getElementById('age').innerText = calculateAge('2010-06-22');
</script>
</body>
</html>