-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
171 lines (146 loc) · 4.33 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
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Character Configurator</title>
<meta name="apple-mobile-web-app-title" content="KBLLR">
<meta name="description" content="Configurator Player">
<meta name="viewport" id="viewport" content="width=device-width,initial-scale=1.0">
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-status-bar-style" content="black-translucent">
<meta property="og:title" content="Customise your character to visit kbllr Portfolio">
<meta property="og:type" content="website">
<meta property="og:url" content="https://www.kbllr.graphics">
<meta property="og:image" content="favicon.svg">
<meta property="og:description" content="Select your character, customise it and get ready to explore the artwork from KBLLR">
<style>
@import url("https://rsms.me/inter/inter.css");
html {
height: 100%;
width: 100%;
margin: 0;
padding: 0;
background: color(srgb-linear 0.76815 0.92158 1 / 0.5);
-webkit-text-size-adjust: 100%;
font-family: "Inter", sans-serif;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
text-rendering: optimizeLegibility;
font-kerning: auto;
background: color(srgb-linear 0.00516 0.00516 0.00516);
}
body {
height: 100%;
width: 100%;
overflow: scroll;
scroll-behavior: smooth;
display: flex;
justify-content: center;
align-items: center;
margin: 0;
padding: 0;
font-family: "Pirulen";
font-size: 100%;
line-height: 1.2;
}
canvas.webgl {
position: fixed;
top: 0;
left: 0;
z-index: 0;
width: 100vw;
height: 100vh;
}
#logo {
position: fixed;
z-index: 1000;
pointer-events: none;
left: 6%;
bottom: 3%;
max-width: 20%;
background: color(srgb-linear 0 0 0);
mix-blend-mode: difference;
}
.pane {
position: fixed;
width: 24%;
top: 2%;
right: 2%;
}
.overlay {
display: flex;
z-index: 999;
flex-direction: row;
justify-content: center;
width: 100vw;
height: 100vh;
position: fixed;
top: 0;
left: 0;
pointer-events: none;
opacity: 0;
}
#menuPanel {
position: absolute;
z-index: 1000;
background-color: rgba(255, 255, 255, 0.5);
top: 0px;
left: 0px;
width: 100%;
height: 100%;
}
#startButton {
height: 50px;
width: 200px;
margin: -25px -100px;
position: relative;
top: 50%;
left: 50%;
font-size: 32px;
}
#tvLines {
background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAAECAYAAABP2FU6AAABS2lUWHRYTUw6Y29tLmFkb2JlLnhtcAAAAAAAPD94cGFja2V0IGJlZ2luPSLvu78iIGlkPSJXNU0wTXBDZWhpSHpyZVN6TlRjemtjOWQiPz4KPHg6eG1wbWV0YSB4bWxuczp4PSJhZG9iZTpuczptZXRhLyIgeDp4bXB0az0iQWRvYmUgWE1QIENvcmUgNS42LWMxNDAgNzkuMTYwNDUxLCAyMDE3LzA1LzA2LTAxOjA4OjIxICAgICAgICAiPgogPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4KICA8cmRmOkRlc2NyaXB0aW9uIHJkZjphYm91dD0iIi8+CiA8L3JkZjpSREY+CjwveDp4bXBtZXRhPgo8P3hwYWNrZXQgZW5kPSJyIj8+LUNEtwAAABBJREFUCJljYGBg8GViQAEABQIAUMdse+oAAAAASUVORK5CYII=");
mix-blend-mode: normal;
pointer-events: none;
/* display: none; */
}
.credits {
position: fixed;
z-index: 1000;
bottom: 3%;
right: 6%;
font-size: 0.8em;
color: rgb(4, 4, 4);
text-decoration: none;
font-family: Pirulen Regular ;
}
</style>
</head>
<body>
<!-- Canvas Web GL ------------>
<canvas class="webgl" id="canvas"></canvas>
<!-- UI: LOGO ------------>
<img title="logo" src="./img/logo.png" id="logo" data-link>
<!-- UI: Credits ------------>
<div class="credits">
The Allies:
<a href="https://instagram.com/kbllr.graphics" target="_blank">
by David Kbllr
</a> for
<a href="https://kbllr.graphics" target="_blank">kbllr.graphics</a>
<div>
<!-- UI: TWEAKPANE ------------>
<div class="pane" id="p--chActions">
<!-- OVERLAY ------------------>
<div class="overlay" id="tvLines"></div>
<!-- START FIRST PERSON VIEW ------------------>
<div id="menuPanel">
<div id="startButton">
<button id="stButton">Click to Start</button>
<button id="swButton">Switch to Orbit Controls</button>
</div>
</div>
<script type="module" src="app.js"></script>
<script type="module" src="server.js"></script>
</body>
</html>