-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
75 lines (70 loc) · 2.92 KB
/
index.html
File metadata and controls
75 lines (70 loc) · 2.92 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>⛵️ Vaev | the *kool* browser engine</title>
<link rel="stylesheet" href="style.css">
<meta name="viewport" content="width=device-width, initial-scale=1" />
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&display=swap" rel="stylesheet">
</head>
<body onload="ready()">
<div id="texture"></div>
<div id="wind-layer">
</div>
<div class='wave -one'>
<div class="wave-anchor" id="anchor-one">
<img class="blob" onpointerenter="triggerJump(event)" id="blob" src="koolBlob.png" alt="here is Bob, Bob the kool blob" style="--bsize: 4rem;
--top: 2rem;">
<img class="board" src="surf.svg" alt="here take some surf board" style="--bsize: 4rem; transform: scaleY(-1) rotate(6deg)">
</div>
<div class="wave-anchor" id="anchor-two">
<img class="blob" id="blob2" onpointerenter="triggerJump(event)" src="koolBlob.png" alt="here is Bob, Bob the kool blob" style="
--top: 3rem;
--bsize: 5rem;">
<img class="board" src="surf.svg" alt="here take some surf board" style="--bsize: 5rem; transform: scaleY(-1) rotate(6deg)">
</div>
</div>
<div class="right-fixed">
<h1>VAEV</h1>
</div>
<div class="center-menu">
<a href="project.html"><div class="action">Project</div></a>
<a href="documentation.html"><div class="action">Documentation</div></a>
<a href="us.html"><div class="action">Team</div></a>
</div>
<div class="left-fixed">
website crafted with <3 by <a href="https://carbonlab.dev">Lou !</a>
</div>
<div class="center">
<h2>the <span>*KOOL*</span> browser engine</h2>
</div>
<div id="surf"></div>
<script>
function makeParticles(layer) {
const N = 32
const HEIGHT = window.innerHeight
let particles = [];
for (let i = 0; i < N; i += 1) {
particles.push(document.createElement('div'))
particles[i].className = "wind-particle"
particles[i].style.top = (Math.random() * HEIGHT*1.2).toString() + "px"
particles[i].style.animation = `falling ${Math.random()*5+1}s linear ${Math.random()*1}s infinite`
layer.appendChild(particles[i])
}
}
function ready() {
const layer = document.getElementById('wind-layer');
makeParticles(layer);
}
function triggerJump(event){
const blob = event.currentTarget
blob.style.animation = 'backflip 0.5s ease'
setTimeout(() => {
blob.style.animation = ''
}, 500)
}
</script>
</body>
</html>