-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
416 lines (345 loc) · 9.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
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
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
<!DOCTYPE html>
<html lang="en">
<head>
<script>
(function () {
var webSdkScript = document.createElement("script");
webSdkScript.src =
"https://unpkg.com/@grafana/faro-web-sdk@^1.0.0/dist/bundle/faro-web-sdk.iife.js";
webSdkScript.onload = () => {
window.GrafanaFaroWebSdk.initializeFaro({
url: "https://faro-collector-prod-gb-south-0.grafana.net/collect/45fe61400c661df8ff6032424d9e8eb8",
app: {
name: "Mars M",
version: "1.0.0",
environment: "production",
},
});
// Load instrumentations at the onLoad event of the web-SDK and after the above configuration.
// This is important because we need to ensure that the Web-SDK has been loaded and initialized before we add further instruments!
var webTracingScript = document.createElement("script");
webTracingScript.src =
"https://unpkg.com/@grafana/faro-web-tracing@^1.0.0/dist/bundle/faro-web-tracing.iife.js";
// Initialize, configure (if necessary) and add the the new instrumentation to the already loaded and configured Web-SDK.
webTracingScript.onload = () => {
window.GrafanaFaroWebSdk.faro.instrumentations.add(
new window.GrafanaFaroWebTracing.TracingInstrumentation()
);
};
// Append the Web Tracing script script tag to the HTML page
document.head.appendChild(webTracingScript);
};
// Append the Web-SDK script script tag to the HTML page
document.head.appendChild(webSdkScript);
})();
</script>
<link rel="icon" href="Images/smol-logo.png">
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>HomePage</title>
<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=Oswald:wght@200;300;400;600;700&display=swap" rel="stylesheet">
<script src="https://kit.fontawesome.com/a165257d25.js" crossorigin="anonymous"></script>
</head>
<body>
<script>var TxtType = function(el, toRotate, period) {
this.toRotate = toRotate;
this.el = el;
this.loopNum = 0;
this.period = parseInt(period, 10) || 2000;
this.txt = '';
this.tick();
this.isDeleting = false;
};
TxtType.prototype.tick = function() {
var i = this.loopNum % this.toRotate.length;
var fullTxt = this.toRotate[i];
if (this.isDeleting) {
this.txt = fullTxt.substring(0, this.txt.length - 1);
} else {
this.txt = fullTxt.substring(0, this.txt.length + 1);
}
this.el.innerHTML = '<span class="wrap">'+this.txt+'</span>';
var that = this;
var delta = 200 - Math.random() * 100;
if (this.isDeleting) { delta /= 2; }
if (!this.isDeleting && this.txt === fullTxt) {
delta = this.period;
this.isDeleting = true;
} else if (this.isDeleting && this.txt === '') {
this.isDeleting = false;
this.loopNum++;
delta = 500;
}
setTimeout(function() {
that.tick();
}, delta);
};
window.onload = function() {
var elements = document.getElementsByClassName('typewrite');
for (var i=0; i<elements.length; i++) {
var toRotate = elements[i].getAttribute('data-type');
var period = elements[i].getAttribute('data-period');
if (toRotate) {
new TxtType(elements[i], JSON.parse(toRotate), period);
}
}
// INJECT CSS
var css = document.createElement("style");
css.type = "text/css";
css.innerHTML = ".typewrite > .wrap { border-right: 0.08em solid #fff}";
document.body.appendChild(css);
};</script>
<section class="header">
<nav>
<a href="index.html"><img src="Images/smol-logo.png"></a>
<div class="nav-links" id="navLinks">
<i class="fa-solid fa-arrow-right-to-bracket" onclick="hideMenu()" style="color:white"></i>
<ul>
<li><a href="index.html">Home</a></li>
<li><a href="Mission.html">Mission</a></li>
<li><a href="contact.html">Contact</a></li>
<li><a href="About.html">About</a></li>
</ul>
</div>
<i class="fa-solid fa-rocket" onclick="showMenu()" style="color:rgb(110, 36, 36)"></i>
</nav>
<div class="content">
<small>Welcome to</small>
<h1>
<a href="" class="typewrite" data-period="2000" data-type='[ "Mars Migration", "A future Sci-Fi classic", "The Future" ]'>
<span class="wrap"></span>
</a>
</h1>
<a href="StatusR.html" class="Btn">My Journey</a>
<div class="gap"></div>
<a href="Purchase.html" class="Btn">Buy my book (Out Now!)</a>
</div>
<!------\JS effect credit https://codepen.io/hi-im-si/pen/ALgzqo---->
<section class="F"></section>
</div>
<div class="met">
<img src="Meteor.png.png">
<img src="Meteor.png.png">
<img src="Meteor.png.png">
<img src="Meteor.png.png">
<img src="Meteor.png.png">
<img src="Meteor.png.png">
<img src="Meteor.png.png">
</div>
<!--------JavaScript for toggle-------->
<script>
var navLinks = document.getElementById("navLinks");
function showMenu(){
navLinks.style.right = "0";
}
function hideMenu(){
navLinks.style.right = "-200px";
}
</script>
</body>
<style>
*{
margin: 0;
padding: 0;
font-family: 'Oswald', sans-serif;
}
.header{
min-height: 100vh;
width: 100%;
background-image: url(Images/homepage.jpg);
background-position: center;
background-size: cover;
position: relative;
overflow: hidden;
}
.typewrite{
color: white;
text-decoration: none;
}
.logo{
width: 70px;
cursor: pointer;
}
.navbar{
width: 85%;
height: 15%;
margin: auto;
display: flex;
align-items: center;
justify-content: space-between;
}
.Btn{
color: rgb(238, 234, 233);
padding: 10px 25px;
background: transparent;
border: 1px solid #fff;
border-radius: 40px;
outline: none;
cursor: pointer;
text-decoration: none;
position: relative;
display: inline-flex;
}
.gap{
height: 5px;
}
.Btn:hover{
border: 1px solid rgb(255, 1, 1);
background-color: #792620;
transition: 1s;
}
.content{
color: rgb(255, 255, 255);
position: absolute;
top: 50%;
left: 8%;
transform: translateY(-50%) ;
z-index: 2;
}
small{
padding: 20px;
font-size: 25px;
}
.content h1{
font-size: 60px;
margin: 10px 0 30px;
line-height: 60px;
padding: 30px;
}
nav{
display: flex;
padding: 2% 6%;
justify-content: space-between;
align-items: center;
}
nav img{
size: 70px;
}
.nav-links{
flex: 1;
text-align: right;
}
.nav-links ul li{
list-style: none;
display: inline-block;
padding: 8px 12px;
position: relative;
}
.nav-links ul li a{
color: white;
text-decoration: none;
font-size: 13px;
}
.nav-links ul li::after{
content: '';
width: 0%;
height: 2px;
background: #f44336;
display: block;
margin: auto;
transition: 0.5s;
}
.nav-links ul li:hover::after{
width: 100%;
}
.met img{
width: 30px;
animation: meteor 7s linear infinite;
}
.met{
width: 100%;
display: flex;
align-items: center;
justify-content: space-around;
position: absolute;
top: -70px;
}
nav .fa-solid{
display: none;
}
@keyframes meteor{
0%{
transform: translateX(0);
opacity: 0;
}
50%{
opacity: 1;
}
70%{
opacity: 1;
}
100%{
transform: translateY(+80vh);
opacity: 0;
}
}
.met img:nth-child(1){
animation-delay: 2s;
width: 25px;
}
.met img:nth-child(2){
animation-delay: 1s;
width: 35px;
}
.met img:nth-child(3){
animation-delay: 3s;
width: 20px;
}
.met img:nth-child(4){
animation-delay: 4.5s;
width: 50px;
}
.met img:nth-child(5){
animation-delay: 3s;
width: 25px;
}
.met img:nth-child(6){
animation-delay: 6s;
width: 22px;
}
.met img:nth-child(7){
animation-delay: 7s;
width: 20px;
}
@media(max-width: 700px){
.content h1{
font-size: 35px;
line-height: 30px;
}
nav .fa-solid{
display: block;
margin: top;
font-size: 22px;
cursor: pointer;
padding: 10px;
}
.nav-links ul {
padding: 30px;
}
small{
font-size: 20px;
}
.nav-links ul li{
display: block;
}
.nav-links{
position: absolute;
width: 200px;
top: 0;
right: -200px;
text-align: left;
z-index: 2;
transition: 1s;
background: rgba( 255, 0, 0, 0.3 );
box-shadow: 0 8px 32px 0 rgba( 31, 38, 135, 0.37 );
backdrop-filter: blur( 10px );
-webkit-backdrop-filter: blur( 10px );
border-radius: 10px;
border: 1px solid rgba( 255, 255, 255, 0.18 );
}
}
</style>
</html>