-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
85 lines (85 loc) · 2.01 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Robot Bobby Earth</title>
<style>
:root{
--customColor: #0090de;
}
* {
padding: 0;
margin: 0;
box-sizing: border-box;
}
#header{
position: absolute;
width: 100vw;
width: 100dvw;
height: 100vh;
height: 100dvh;
display: flex;
justify-content: center;
padding-top: 1rem;
pointer-events: none;
}
.shade {
font-size: 70px;
font-weight: 600;
color: #fdfdfe;
text-shadow: 0px 0px 5px var(--customColor),
0px 0px 10px var(--customColor),
0px 0px 10px var(--customColor),
0px 0px 20px var(--customColor);
}
.h1{
font-size: 1rem;
@media (width > 300px){
font-size: calc(1rem + 0.5vw);
}
@media (width > 600px){
font-size: calc(1rem + 1.5vw);
}
text-align: center;
}
canvas{
cursor: grab;
&:active{
cursor: grabbing;
}
}
/* dat.gui */
.dg.a{
float: none;
position: absolute;
top: 1rem;
right: 5px;
@media (width < 600px){
top: 5rem;
}
}
.close-button{
background: var(--customColor) !important;
}
.dg.main.a * {
transition: height .7s ease-in-out !important;
}
</style>
<script type="importmap">
{
"imports": {
"three": "https://cdn.jsdelivr.net/npm/three@0.161/build/three.module.js",
"jsm/": "https://cdn.jsdelivr.net/npm/three@0.161/examples/jsm/"
}
}
</script>
<script defer type="module" src="index.js"></script>
<script defer type="module" src="gui.js"></script>
</head>
<body>
<header id="header">
<h1 class="shade h1">Hello world!</h1>
</header>
</body>
</html>