-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
51 lines (47 loc) · 1.74 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<link rel="stylesheet" type="text/css" href="/css/style.css" />
<link rel="icon" type="image/x-icon" href="/favicon.ico">
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta content="web.mcalec.dev" property="og:title" />
<meta content="testing embed description stuff" property="og:description" />
<meta content="https://web.mcalec.dev/" property="og:url" />
<meta content="https://cdn.mcalec.dev/image/jpeg/trees.jpeg" property="og:image" />
<meta content="#000" data-react-helmet="true" name="theme-color" />
<title>web.mcalec.dev</title>
<script defer src="https://cloud.umami.is/script.js" data-website-id="37488ff3-cb26-4748-8ebe-8c7cb712f602"></script>
</head>
<body>
<nav class="navbar transparent" id="navbar">
<div class="site-name">mcalec.dev</div>
<ul>
<li class="active"><a href="/">Home</a></li>
<li><a href="//old.mcalec.dev/about-me">About</a></li>
<li><a href="//old.mcalec.dev/legal">Legal</a></li>
<li><a href="//old.mcalec.dev/home" target="_blank">Old Site</a></li>
</ul>
</nav>
<div class="hero" id="home">
<div class="bgimage"></div>
<div class="bgtext"><h1>mcalec</h1></div>
</div>
<div class="content">
<h1>Main Content Section</h1>
<p>This is the main content of the page.</p>
</div>
<script defer>
const navbar = document.getElementById('navbar');
window.addEventListener('scroll', () => {
if (window.scrollY > 0) {
navbar.classList.remove('transparent');
navbar.classList.add('scrolled');
} else {
navbar.classList.add('transparent');
navbar.classList.remove('scrolled');
}
});
</script>
</body>
</html>