-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
107 lines (93 loc) · 3.34 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
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<title>REPL</title>
<link href='https://fonts.googleapis.com/css?family=Roboto Mono' rel='stylesheet'>
<link href='https://fonts.googleapis.com/css?family=Roboto' rel='stylesheet'>
<script src="https://cdnjs.cloudflare.com/ajax/libs/three.js/r99/three.min.js"></script>
<style>
body {
margin: 0; padding: 0;
}
canvas {
width: 100%; height: 100%;
}
.page {
width: 90vw; height: 70vh;
text-align: center;
padding-top: 30vh;
padding-left: 5vw;
font-size: 40px;
display: block;
font-family: 'Roboto'
}
#repl {
color: black !important;
}
#info a{
color: grey;
text-decoration: none;
}
#info {
position: fixed;
top: 10px;
font-size: 50px;
width: 100%;
text-align: center;
z-index: 999;
display:block;
font-family: 'Roboto Mono';
text-decoration: none;
}
</style>
</head>
<body>
<div id="info"> <a href="#" id="repl">REPL</a> [ <a href="#about">ABOUT</a> | <a href="#projects">PROJECTS</a> | <a href="https://github.com/repl-nl" target="blank">GITHUB</a> | <a href="#contact">CONTACT</a> ]</div>
<script>
const WIDTH = window.innerWidth;
const HEIGHT = window.innerHeight;
let mouseX = window.innerWidth / 2;
let mouseY = window.innerHeight / 2;
// window.addEventListener('scroll', function (e) {
// if () // make the header into a loading bar lol
// });
window.addEventListener('mousemove', function (e) {
mouseX = e.pageX;
mouseY = e.pageY;
});
const renderer = new THREE.WebGLRenderer({antialias:true});
renderer.setSize(WIDTH, HEIGHT);
renderer.setClearColor(0xE3E3E3, 1);
document.body.appendChild(renderer.domElement);
const scene = new THREE.Scene();
const camera = new THREE.PerspectiveCamera(70, WIDTH/HEIGHT);
camera.position.z = 50;
scene.add(camera);
const boxGeometry = new THREE.BoxGeometry(10, 10, 10);
const basicMaterial = new THREE.MeshBasicMaterial({color: `hsla(${Math.ceil(Math.random() * 360)},100%,58%,1)`, });
const cube = new THREE.Mesh(boxGeometry, basicMaterial);
scene.add(cube);
cube.rotation.set(Math.ceil(Math.random() * 5), Math.ceil(Math.random() * 5), 0);
let i = 0;
function render() {
requestAnimationFrame(render);
cube.rotation.set(-3 * mouseY / window.innerHeight, -3 * mouseX / window.innerWidth, 0 + 0.001*i++);
renderer.render(scene, camera);
}
render();
</script>
<article id="about" class="page">
REPL was founded in Tokyo japan in 2018 as an initiative for commercialization of emergent technologies. We have since released various projects.
</article>
<div id="projects" class="page">
the fastest generative AI platform... currently in pre-beta.
A subscription based service which will allow users to generate AI imagery faster than any other commercial service with a comfortable UI.
<a href="#contact">contact us</a> if you want to give it a spin
</div>
<div id="contact" class="page">
contact us at info@repl.sh
</div>
</body>
</html>