-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
71 lines (61 loc) · 1.8 KB
/
Copy pathindex.html
File metadata and controls
71 lines (61 loc) · 1.8 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
<!DOCTYPE html>
<html lang="en">
<head>
<title>Christian Campbell</title>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="css/style.css">
<link href="https://fonts.googleapis.com/css2?family=Inter:wght@200;300;400&display=swap" rel="stylesheet">
</head>
<body>
<div class="splash-bg">
<header class="splash-header">
<h1>Christian A. Campbell</h1>
<p>Software Engineer · Denver, CO</p>
</header>
<nav class="card-grid" id="cardGrid">
<a href="about.html" class="card card-about">
<div class="card-bg"></div>
<div class="card-label">
<span></span>
<h2>About Me</h2>
</div>
</a>
<a href="resume.html" class="card card-resume">
<div class="card-bg"></div>
<div class="card-label">
<span></span>
<h2>Resume</h2>
</div>
</a>
<a href="notes.html" class="card card-notes">
<div class="card-bg"></div>
<div class="card-label">
<span></span>
<h2>Notes</h2>
</div>
</a>
<a href="projects.html" class="card card-projects">
<div class="card-bg"></div>
<div class="card-label">
<span></span>
<h2>Projects</h2>
</div>
</a>
</nav>
</div>
<script>
const grid = document.getElementById('cardGrid');
let raf;
document.addEventListener('mousemove', e => {
cancelAnimationFrame(raf);
raf = requestAnimationFrame(() => {
const ratio = e.clientX / window.innerWidth; // 0 → 1
const shift = (ratio - 0.5) * -120; // -60 → +60 px
grid.style.transform = `translateX(${shift}px)`;
});
});
</script>
<script data-goatcounter="https://chrisaveri.goatcounter.com/count" async src="//gc.zgo.at/count.js"></script>
</body>
</html>