-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
372 lines (328 loc) · 11.2 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
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta content="width=device-width, initial-scale=1" name="viewport">
<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=IBM+Plex+Mono&family=Space+Grotesk:wght@700&display=swap"
rel="stylesheet">
<link rel="icon" href="src/media/favicon.ico">
<title>GaiaNet-AI</title>
<style>
a {
text-decoration: none;
outline: none;
-webkit-tap-highlight-color: transparent;
}
.link-button {
cursor: pointer;
color: black;
font-size: 1.8vw;
padding: 1vw 2vw;
background-color: rgba(255, 255, 255, 0.03);
border: 0.0625vw solid black;
transition: transform 0.3s ease;
}
.link-button:hover {
background-color: #F5F5F5;
transform: translate(-10px, -10px);
}
.link-button:active {
background-color: #F5F5F5;
transform: translate(-7px, -7px);
}
.button-back {
background-color: transparent;
border: 0.0625vw solid transparent;
}
.cursor {
display: inline-block;
width: 0.125vw;
height: 3.5vw;
margin-left: 0.5vw;
background-color: white;
animation: blink 1s infinite;
}
#typed-text {
color: black;
}
.input-line {
font-weight: 700;
width: 90%;
background-color: rgba(255, 255, 255, 0.5);
border: 0.0625vw solid #000000;
display: flex;
font-size: 3.5vw;
padding: 2.5vw 3.5vw;
}
.logo {
margin-left: 5.5vw;
margin-top: 4vw;
width: 22.5vw;
}
.text {
margin-right: 5.5vw;
width: 26.75vw;
margin-top: 4vw;
}
.button-padding {
flex: 1;
}
.black {
color: #D43327;
}
.red {
color: white;
}
.white {
color: #0F0F0F;
}
.column {
font-size: 0.8vw;
white-space: nowrap;
overflow: hidden;
text-align: center;
line-height: 2vw;
}
.row {
overflow: hidden;
width: 2vw;
}
@keyframes blink {
0%, 100% {
opacity: 1;
}
50% {
opacity: 0;
}
}
@media only screen and (max-width: 768px) {
.link-button {
background-color: #F5F5F5;
font-size: 4.8vw;
padding: 3vw 2vw;
transform: translate(-0.6vw, -0.6vw);
}
.link-button:hover {
transform: translate(-0.6vw, -0.6vw);
}
.link-button:active {
transform: translate(-0.2vw, -0.2vw);
}
.button-back {
background-color: #1E0706;
}
#typed-text {
line-height: 6.5vw;
margin-top: 2vw;
}
.input-line {
font-size: 6.5vw;
background-color: transparent;
border: 0;
display: block;
}
.logo {
margin-left: 8vw;
margin-top: 8vw;
width: 40vw;
}
.text {
margin-right: 8vw;
margin-top: 8vw;
width: 40vw;
}
.black {
color: #0F0F0F;
}
.red {
color: #D43327;
}
.white {
color: #DCDFE4;
}
.column {
line-height: 5vw;
}
.row {
width: 5vw;
}
.button-place {
flex-direction: column;
}
.button-padding {
flex: 0;
margin: 8vw 2vw;
}
.cursor {
margin-top: 2vw;
height: 6.5vw;
margin-left: 1vw;
background-color: black;
}
}
</style>
</head>
<body style='font-family: "Space Grotesk", sans-serif;background-image: url(src/media/background.svg);background-size: cover;background-repeat: no-repeat;background-position-y: center;background-position-x: center;margin: 0;padding: 0;position: relative;'>
<div style="width: 100vw;position: absolute;display: flex;">
<div class="column black" style="background-color: #0F0F0F;width: 50vw;">[ Decentralizing Generative AI Chatbot and
Agent ]
</div>
<div class="column white" style="background-color: #DCDFE4;width: 20vw;"><<<<<<<<<<</div>
<div class="column red" style="background-color: #D43327;width: 30vw;"><<<<<<<<<<<<<<<<</div>
</div>
<div style="position: absolute;right: 0;">
<div class="row red" style="background-color: #D43327;"></div>
<div class="row black" style="background-color: #0F0F0F;"></div>
</div>
<div style="position: absolute;left: 0;">
<div class="row black" style="background-color: #0F0F0F;"></div>
<div class="row red" style="background-color: #D43327;"></div>
</div>
<div style="width: 100vw;position: absolute;bottom: 0;display: flex;">
<div class="column red" style="background-color: #D43327;width: 30vw;"><<<<<<<<<<<<<<<<</div>
<div class="column white" style="background-color: #DCDFE4;width: 20vw;"><<<<<<<<<<</div>
<div class="column black" style="background-color: #0F0F0F;width: 50vw;">[ Decentralizing Generative AI Chatbot and
Agent ]
</div>
</div>
<div class="body" style="display: flex;justify-content: space-between;flex-direction: column;align-items: center;">
<div style="width: 100%;display: flex;justify-content: space-between;">
<img alt="logo" class="logo"
style="-webkit-user-drag: none;user-select: none;"
src="src/media/logo.svg"/>
<img alt="text" class="text"
style="-webkit-user-drag: none;user-select: none;"
src="src/media/text.svg"/>
</div>
<div style="width: 90%;display: flex;flex-direction: column;align-items: center;">
<div class="input-line">
<div style="color:#E23528;margin-right: 1.5vw;">Decentralizing</div>
<div style="display:flex;align-items: center;">
<div id="typed-text">Al Teaching Assistant</div>
<span class="cursor"></span>
</div>
</div>
</div>
<div class="button-place"
style='font-family: "IBM Plex Mono", monospace;margin-bottom: 4vw;width: 80%;display: flex;justify-content: space-between;'>
<div style="flex: 3;display: flex;justify-content: space-around;">
<a style="flex: 1;text-align: center;" target="_blank" href="https://github.com/GaiaNet-AI">
<div class="button-back">
<div class="link-button">
GitHub
</div>
</div>
</a>
<div class="button-padding"></div>
<a style="flex: 1;text-align: center;" target="_blank" href="https://huggingface.co/gaianet">
<div class="button-back">
<div class="link-button">
Huggingface
</div>
</div>
</a>
</div>
<div style="flex: 1;"></div>
<div style="flex: 3;display: flex;justify-content: space-around;">
<a style="flex: 1;text-align: center;" target="_blank" href="https://twitter.com/gaianet_ai">
<div class="button-back">
<div class="link-button">
Twitter
</div>
</div>
</a>
<div class="button-padding"></div>
<a class="button" style="flex: 1;text-align: center;" target="_blank"
href="https://forms.gle/eURPjcs6iHmnyRiv8">
<div class="button-back">
<div class="link-button">
Feedback
</div>
</div>
</a>
</div>
</div>
</div>
<script>
const setWindowHeight = () => {
const windowHeight = window.innerHeight;
document.querySelector('.body').style.height = windowHeight + "px";
document.querySelectorAll('.row').forEach(item => {
if (item.className.indexOf("red") !== -1) {
item.style.height = windowHeight * 0.7 + "px";
} else if (item.className.indexOf("black") !== 1) {
item.style.height = windowHeight * 0.3 + "px";
}
})
}
window.onresize = setWindowHeight;
setWindowHeight();
document.querySelectorAll('.link-button').forEach(item => {
item.addEventListener('mouseover', function () {
if (window.screen.width > 768 && item.parentNode) {
item.parentNode.style.backgroundColor = '#1E0706';
item.parentNode.style.border = '0.0625vw solid black';
}
});
})
document.querySelectorAll('.link-button').forEach(item => {
item.addEventListener('mouseout', function () {
if (window.screen.width > 768 && item.parentNode) {
item.parentNode.style.backgroundColor = 'transparent';
item.parentNode.style.border = '0.0625vw solid transparent';
}
});
})
const textPlace = document.getElementById("typed-text")
const text1 = "AI Trading Bot";
const text2 = "AI Community Mod";
const text3 = "AI Character";
const text4 = "AI Astronaut";
const text5 = "Al Teaching Assistant";
const speed = 120;
const wait = 500;
async function delay(ms) {
return new Promise(resolve => setTimeout(resolve, ms));
}
async function typeWriter(text, i) {
let index = i || 0;
if (index < text.length) {
textPlace.innerHTML += text[index];
index++;
await delay(speed);
await typeWriter(text, index);
}
}
async function delWriter(i) {
let index = i || textPlace.innerText.length;
if (index > 0) {
textPlace.innerText = textPlace.innerText.slice(0, -1);
index--;
await delay(speed);
await delWriter(i);
}
}
async function start() {
await delWriter();
await typeWriter(text1);
await delay(wait);
await delWriter();
await typeWriter(text2);
await delay(wait);
await delWriter();
await typeWriter(text3);
await delay(wait);
await delWriter();
await typeWriter(text4);
await delay(wait);
await delWriter();
await typeWriter(text5);
await delay(wait);
await start();
}
start()
</script>
</body>
</html>