-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcontact.html
More file actions
557 lines (456 loc) · 24.1 KB
/
contact.html
File metadata and controls
557 lines (456 loc) · 24.1 KB
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
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<!-- <meta name="viewport" content="viewport-fit=cover, width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no"/> -->
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Mechetle - Contact</title>
<meta name="description" content="Hello, I'm Steven B-m Nguyen, an enthusiastic self-taught graphics, motion, web designer and web developer. I like to get things done with full effort.">
<meta name="author" content="Steven B-m Nguyen">
<link rel="canonical" href="https://mechetle.com/">
<script type="application/ld+json">
{
"@context": "http://schema.org",
"@type": "Organization",
"name": "Mechetle",
"url": "http://mechetle.com",
"sameAs": [
"https://www.youtube.com/mechetle",
"https://www.youtube.com/channel/UCC7AWezpqHe4_lTLJksuVaw",
"https://twitter.com/mechetle",
"https://www.instagram.com/mechetle",
"https://www.behance.net/steboney",
"https://www.facebook.com/OfficialMechetle",
"https://www.reddit.com/user/mechetle",
"https://steamcommunity.com/id/mechetle"
]
}
</script>
<!-- Open Graph Protocol meta -->
<meta property="og:locale" content="en_US">
<meta property="og:type" content="website">
<meta property="og:title" content="Mechetle">
<meta property="og:description"
content="Hello, I'm Steven, an enthusiastic self-taught graphics, motion, web designer and web developer. I like to get things done with full effort.">
<meta property="og:url" content="https://mechetle.com/">
<meta property="og:site_name" content="Mechetle">
<meta property="og:image" content="https://mechetle.com/img/ogimage-homepage.png">
<meta property="og:image:secure_url" content="https://mechetle.com/img/ogimage-homepage.png">
<meta property="og:image:width" content="1200">
<meta property="og:image:height" content="630">
<meta name="theme-color" content="#D81B60">
<!-- Twitter meta -->
<meta name="twitter:card" content="summary_large_image">
<meta name="twitter:description"
content="Steven B-M Nguyen. An enthusiastic and cheerful self-taught motion, graphic and web designer.">
<meta name="twitter:title" content="Mechetle">
<meta name="twitter:site" content="@mechetle">
<meta name="twitter:image" content="https://mechetle.com/img/ogimage-homepage.png">
<meta name="twitter:creator" content="@mechetle">
<!-- Icons -->
<link rel="apple-touch-icon" sizes="180x180" href="icons/apple-touch-icon.png">
<link rel="icon" type="image/png" sizes="32x32" href="icons/favicon-32x32.png">
<link rel="icon" type="image/png" sizes="16x16" href="icons/favicon-16x16.png">
<link rel="manifest" href="/icons/site.webmanifest">
<link rel="mask-icon" href="/icons/safari-pinned-tab.svg" color="#5bbad5">
<link rel="shortcut icon" href="/icons/favicon.ico">
<meta name="msapplication-TileColor" content="#ffffff">
<meta name="msapplication-config" content="icons/browserconfig.xml">
<meta name="theme-color" content="#ffffff">
<!-- Styles -->
<link rel="stylesheet" href="/css/foundation.css">
<link rel="stylesheet" href="/css/stylesheet.min.css">
<link
href="https://fonts.googleapis.com/css2?family=Jost:ital,wght@0,300;0,400;0,600;0,700;1,300;1,400;1,600;1,700&family=Sen:wght@700;800&family=Roboto+Mono:ital@0;1&display=swap"
rel="stylesheet">
<link rel="preload" as="script" href="https://kit.fontawesome.com/094d2c489e.js">
<script src="https://kit.fontawesome.com/094d2c489e.js" crossorigin="anonymous"></script>
</head>
<body id="contact" onload="init();">
<div class="nav-primary navigation nav-header-main">
<div class="grid-container fluid">
<div class="logo-space logo-anim-nav"><a href="/" alt="Home">
<img src="/img/mechetleweb-svglogo.svg" alt="Mechetle logo">
<h1 class="logo-text">MECHETLE</h1>
</a>
</div>
<div class="navigation-button-wrap">
<div class="nav-breaking-percau">
<div class="nav-break">
<div class="nav-hamburger"><span style="font-size: 0.5em; ">icon goes here</span></div>
<div class="nav-break-its-free-real-estate" itemscope itemtype="http://schema.org/SiteNavigationElement">
<ul class="links-1 nav-link-section">
<li><a href="/" class="nav-button">Home</a></li>
<li><a href="/about-me" class="nav-button">About Me</a></li>
<li><a href="#Portfolio" class="nav-button">Portfolio <i
class="fas fa-caret-down"></i></a>
<div class="fix-shadow"></div>
<div class="nav-megaDropdown-bg">
<div class="grid-container">
<div class="grid-x">
<div class="cell small-12 medium-9 large-7 navbar-dropdown-wrap">
<h4>Portfolio</h4>
<ul class="nav-dropdown">
<li><a href="#">Graphic design</a></li>
<li><a href="#">Motion Design</a></li>
<li><a href="#">Web development</a></li>
<li><a href="#">School Projects</a></li>
</ul>
</div>
<div class="cell medium-3 large-5 hide-for-small-only">
<div class="dropdown-image">
<!-- add background image css inline here-->
</div>
</div>
</div>
</div>
</div>
<div class="nav-megaDropdown-bg hover-area"></div>
</li>
</ul>
<ul class="links-2 nav-link-section">
<li><a href="#" class="nav-button disable-me">Lab room</a></li>
<li><a href="/contact" class="nav-button on">Contact</a></li>
</ul>
</div>
</div>
</div>
<a href="#" class="nav-button search-button"><i class="search-sym"></i></a>
</div>
</div>
<!--
<div class="fix-blink-temp"></div>
-->
</div>
<header>
<div class="border-top-naturalize"></div>
<div id="header-wrapper" class="grid-container full">
<div class="grid-x">
<div class="text-wrapper post cell large-6">
<div class="cell medium-3 post-details">
<h1 class="post">Contact</h1>
</div>
</div>
</div>
</div>
</header>
<main id="contact-contents">
<div class="grid-container">
<div class="grid-x grid-margin-x">
<!--
<form id="fs-frm" name="simple-contact-form" accept-charset="utf-8" action="https://formspree.io/f/mknpbkar" method="post">
<fieldset id="fs-frm-inputs">
<label for="full-name">Full Name</label>
<input type="text" name="name" id="full-name" placeholder="First and Last" required="">
<label for="email-address">Email Address</label>
<input type="email" name="_replyto" id="email-address" placeholder="email@domain.tld" required="">
<label for="message">Message</label>
<textarea rows="5" name="message" id="message" placeholder="Aenean lacinia bibendum nulla sed consectetur. Vivamus sagittis lacus vel augue laoreet rutrum faucibus dolor auctor. Donec ullamcorper nulla non metus auctor fringilla nullam quis risus." required=""></textarea>
<input type="hidden" name="_subject" id="email-subject" value="Contact Form Submission">
</fieldset>
<input type="submit" value="Submit">
</form> -->
<div class="large-9 cell" id="contact-letter">
<div id="mechs-details">
<p>
Steven B-m Nguyen<br>
Hey@mechetle.com<br>
Melbourne, VIC 3000<br><br>
</p>
</div>
<form action="" method="POST" id="contact-form">
<label for="time-zone">Sender's time-zone:</label>
<input type="text" name="time-zone" id="time-zone" readonly>
<input type="text" name="_gotcha" style="display:none">
<br>
<label for="email-address">Sender's Email:</label>
<input type="email" name="_replyto" id="email-address" placeholder="example@example.com" maxlength="64" width="12.1ch" required oninvalid="nortification('Uh oh, you forgot to enter your email in.','warning')">
<br><br>
<label for="subject">Subject:</label>
<input type="text" name="_subject" id="subject" placeholder="I just wanted to say hai" maxlength="125" style=width:60ch;>
<br>
<!--<label for="message" class="ph-label">[ Your message here ]</label>-->
<textarea name="message" id="message" placeholder="[ Say whatever you like to me. ]" required></textarea>
</form>
</div>
<div class="large-auto cell" id="contact-sidebar">
<div class="footer-widget small-order-2 large-order-1">
<h2>Social Media</h2>
<p>Here are socials, hit me up there! I'm usually more active on Twitter and Discord.</p>
<ul>
<li><a href="#discordtag" class="discordmodaltoggle" onclick="ToggleDiscordModal()"><i
class="fab fa-discord"></i>Discord</a></li>
<li><a href="https://www.instagram.com/mechetle/"><i
class="fab fa-instagram"></i>Instagram</a></li>
<li><a href="https://www.youtube.com/Mechetle"><i class="fab fa-youtube"></i>YouTube</a>
</li>
<li><a href="https://twitter.com/mechetle"><i class="fab fa-twitter"></i>Twitter</a></li>
</ul>
</div>
<button type="submit" form="contact-form" class="small-order-1 large-order-2" disabled>Send <i class="float-right fas fa-angle-right"></i></button>
</div>
</div>
</div>
</main>
<script>
window.addEventListener("DOMContentLoaded", function() {
const submitBtn = document.querySelector("button[type=submit]");
// If Javascript is enabled, enable form.
submitBtn.disabled = false;
// get the form elements
var form = document.getElementById("contact-form");
// Success and Error functions for after the form is submitted
function success() {
form.reset();
nortification("Contact form sent!","success");
getTimeZone();
submitBtn.disabled = false;
// hide packing animation
// play send animation
}
function error() {
nortification("Oops! There was a problem. 😦 ","error");
submitBtn.disabled = false;
}
// Get time zone:
const timeZoneEl = document.getElementById("time-zone");
function getTimeZone() {
timeZoneEl.value = Intl.DateTimeFormat().resolvedOptions().timeZone;
}
getTimeZone();
function reassureTimeZone() { // verifying if time-zone changed;
return Intl.DateTimeFormat().resolvedOptions().timeZone;
}
// Listen for submit
form.addEventListener("submit", function(ev) {
ev.preventDefault();
// play packing animation.
// assign form action:
// ^ to detect if submission is done in an enviroment where js is enabled.
form.setAttribute("action", "https://formspree.io/f/mknpbkar");
var data = new FormData(form);
// check if there is a time zone and if the time-zone inputed is actually a time zone and if it's the user's actual timezone.
if ( (timeZoneEl.value != "") && (timeZoneEl.value == reassureTimeZone()) ) {
submitBtn.disabled = true;
// execte ajax:
ajax(form.method, form.action, data, success, error);
} else {
nortification("🌌 No time zone detected<small style='display: inline'>[1]</small> / time traveler detected<small style='display: inline'>[2]</small> <br><small>[1] You might have wrote this form some how in 1 second or before the page loaded. please stop using BotOS, the form doesn't support that. 😭 <br><br>[2] Or for some sort of reason your time zone doesn't match with what's detected. This may be because the actual time zone changed unexpectedly. 🤷♀️ </small>", "error", 29000);
}
});
});
// helper function for sending an AJAX request
function ajax(method, url, data, success, error) {
var xhr = new XMLHttpRequest();
xhr.open(method, url);
xhr.setRequestHeader("Accept", "application/json");
xhr.onreadystatechange = function() {
if (xhr.readyState !== XMLHttpRequest.DONE) return;
if (xhr.status === 200) {
success(xhr.response, xhr.responseType);
} else {
error(xhr.status, xhr.response, xhr.responseType);
}
};
xhr.send(data);
}
// Auto size text area
var observe;
if (window.attachEvent) {
observe = function (element, event, handler) {
element.attachEvent('on'+event, handler);
};
}
else {
observe = function (element, event, handler) {
element.addEventListener(event, handler, false);
};
}
function areaText() {
var text = document.getElementById('message');
function resize () {
text.style.height = 'auto';
text.style.height = text.scrollHeight+'px';
}
/* 0-timeout to get the already changed text */
function delayedResize () {
window.setTimeout(resize, 0);
}
observe(text, 'change', resize);
observe(text, 'cut', delayedResize);
observe(text, 'paste', delayedResize);
observe(text, 'drop', delayedResize);
observe(text, 'keydown', delayedResize);
text.select();
text.focus();
resize();
}
areaText();
// document.getElementById("time-zone").value = Intl.DateTimeFormat().resolvedOptions().timeZone;
function stickifySubmit() {
const submitBtn = document.querySelector("button[type=submit]");
submitBtn.style.position = "sticky";
}
// inserts element after another specified element
function insertAfterV(newNode, referenceNode) {
referenceNode.parentNode.insertBefore(newNode, referenceNode.nextSibling);
}
const inputText = document.getElementsByTagName("input");
function inputSetup() {
// create "measurment placeholder / input box"
for (var i = 0; i < inputText.length; ++i) {
inputText[i].addEventListener("input", onInput);
inputText[i].addEventListener("blur", hoverOffWhenEmpty);
if(inputText[i].readOnly) {
} else {
var measureTemp = document.createElement("span");
measureTemp.className = "measure";
measureTemp.textContent = inputText[i].getAttribute("placeholder");
insertAfterV( measureTemp, inputText[i]);
inputText[i].style.width = measureTemp.offsetWidth + 'px';
}
}
}
inputSetup();
function onInput(){
console.log("trertert");
var spanElm = this.nextElementSibling;
spanElm.textContent = this.value; // the hidden span takes the value of the input;
this.style.width = spanElm.offsetWidth + 'px'; // apply width of the span to the input
// stickifySubmit(); redundant.
this.addEventListener('keydown', function(event) {
const key = event.key; // const {key} = event; ES6+
if (key === "Backspace" || key === "Delete") {
console.log("deleted a letter");
// this.style.transitionDuration = "0.4s";
this.style.transitionProperty = "width, border-bottom";
return false;
} else {
//this.style.transitionDuration = "0s";
this.style.transitionProperty = "border-bottom";
}
});
};
function hoverOffWhenEmpty() {
if (this.value.length == 0) {
const spanElm = this.nextElementSibling;
spanElm.textContent = this.getAttribute("placeholder");
this.style.width = spanElm.offsetWidth + 'px';
} else {
}
};
</script>
<section id="beta-section">
<div class="grid-container">
<div class="grid-x">
<div class="cell medium-6 large-3" id="beta-notify">
<h2>Lights are still being installed</h2>
<p>Some in-dev features are disabled because they are incomplete, or obviously still in development
and may not be working as intended.<br><br> <i>Enter beta mode to get a sneak peak on what I'm
working on!</i></p>
<button class="button" id="joinBeta" onclick="joinBeta()">Enter beta</button>
</div>
</div>
</section>
<footer>
<div class="grid-container">
<div class="grid-x">
<div class="cell medium-6 large-3 ftr-fst">
<div class="footer-widget other-pages">
<h5>Other Pages</h5>
<ul>
<li><a href="/faq">Frequently asked questions</a></li>
<li><a href="https://web.archive.org/web/20181127191854/https://mechetle.ml/">Archived
site</a></li>
<li><a href="/privacy-policy">Privacy Policy</a></li>
<li><a href="/order-progress">Order progress</a></li>
</ul>
</div>
<div class="show-for-medium">
<p class="footer-note">
Website by Mechetle.<br>
Steven B-M Nguyen<br>
© <span class="year"></span> Mechetle
</p>
</div>
</div>
<div class="cell medium-6 large-3">
<div class="footer-widget">
<button class="button small-button" id="leaveBeta" onclick="leaveBeta()">Leave Beta</button>
</div>
</div>
<div class="small-12 show-for-small-only">
<p class="footer-note">
Website by Mechetle.<br>
Steven B-M Nguyen<br>
© <span class="year"></span> Mechetle
<div id="last-modified"></div>
</p>
</div>
</div>
</div>
<div class="discordmodal m-modal">
<div class="discordmodalwrap">
<a href="#%" class="button discordmodaltoggle" title="close" onclick="ToggleDiscordModal()"><i class="fas fa-times"> </i></a>
<div class="modal-body">
<h4>Hey, here's my DiscordTag!</h4>
<p>
Add me if you want.
</p>
<code>
Mechetle<small>#9677</small>
</code>
</div>
</div>
<a class="modal-bg" onclick="ToggleDiscordModal()"></a>
</div>
</footer>
<div class="nortification-pullup">
<p id="nortification_details"></p>
</div>
<script src="/js/mechetle-core.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/bodymovin/5.7.3/lottie.min.js" integrity="sha512-35O/v2b9y+gtxy3HK+G3Ah60g1hGfrxv67nL6CJ/T56easDKE2TAukzxW+/WOLqyGE7cBg0FR2KhiTJYs+FKrw==" crossorigin="anonymous"></script>
<script src="/js/anime.min.js"></script>
<script src="/js/rellax.min.js"></script>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script>
<script src="/js/mechetle-core-animations.js"></script>
<script>
//// homepage animations:
///////
var rellax = new Rellax('.rellax', {
//center: true,
vertical: true,
horizontal: false
});
// Wrap every letter in logo-text with a span
var textWrapper = document.querySelector('.logo-text');
textWrapper.innerHTML = textWrapper.textContent.replace(/\S/g, "<span class='letter'>$&</span>");
$("#me-mechetle > .rellax").slice(2).contents().wrap("<span class='header-letter'></span>");
// loading in swave:
var swaveOne = bodymovin.loadAnimation({
container: document.getElementById('swave-1'),
path: '/img/homepage/swave-1.json',
renderer: 'svg',
loop: false,
autoplay: true,
})
var swaveTwo = bodymovin.loadAnimation({
container: document.getElementById('swave-2'),
path: '/img/homepage/swave-2.json',
renderer: 'svg',
loop: false,
autoplay: true,
})
// todo: iradicate jquery:
// when document ready execute:
$(document).ready(function () {
swaveOne.play();
swaveTwo.play();
});
</script>
<script>
setTimeout(nortification("This is not fully done yet.<br><small>This is still in the works.</small>", "warning", 19000), 10000);
</script>
</body>
</html>