-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathindex2.html
65 lines (62 loc) · 1.5 KB
/
index2.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Millennium Falcon</title>
<link rel="stylesheet" href="public/index.css">
<script async src="https://unpkg.com/[email protected]/dist/es-module-shims.js"></script>
<script type="importmap">
{
"imports": {
"three": "https://unpkg.com/[email protected]/build/three.module.js",
"three/addons/": "https://unpkg.com/[email protected]/examples/jsm/"
}
}
</script>
<style>
/* Add styles for body to hide overflow */
body {
margin: 0;
padding: 0;
overflow-x: hidden;
width: 100vw;
height: 100vh;
}
canvas {
border: 2px solid white;
background-color: #000;
}
#color-preview {
position: absolute;
bottom: 20px;
right: 20px;
width: 50px;
height: 50px;
border: 2px solid white;
}
/* Updated styles for webcam canvas */
canvas:first-of-type {
width: 320px !important;
height: 240px !important;
position: absolute;
bottom: 20px;
right: 20px;
z-index: 100;
background-color: transparent;
border: 3px solid #00FF00;
border-radius: 8px;
box-shadow: 0 0 10px rgba(0,0,0,0.5);
}
</style>
</head>
<body>
<div id="heading">
<h1>AUDI TT RS</h1>
<div class="border"></div>
</div>
<div id="progress-container">
<div id="progress">Engaging Hyperdrive...</div>
</div>
<script type="module" src="./main2.js"></script>
</body>
</html>