-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcontact.html
549 lines (436 loc) · 20.3 KB
/
contact.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
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
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
<title>Contact Us | Mighty Crayon</title>
<meta name="description"
content="Mighty Crayon is a 501(c)(3) Non-Profit commited to helping children learn and grow through educative creative mediums.">
<link rel="icon" sizes="192x192" href="assets/img/icons/android-chrome-192x192.png">
<link rel="icon" sizes="512x512" href="assets/img/icons/android-chrome-512x512.png">
<link rel="apple-touch-icon" sizes="192x192" href="assets/img/icons/android-chrome-192x192.png">
<link rel="icon" type="image/png" sizes="16x16" href="assets/img/icons/favicon-16x16.png">
<link rel="icon" type="image/png" sizes="32x32" href="assets/img/icons/favicon-32x32.png">
<link rel="manifest" href="assets/img/icons/manifest.json">
<meta name="msapplication-TileColor" content="#ffffff">
<meta name="msapplication-TileImage" content="assets/img/icons/ms-icon-144x144.png">
<meta name="theme-color" content="#ffffff">
<link rel="canonical" href="index.html" />
<meta property="og:locale" content="en_US" />
<meta property="og:type" content="article" />
<meta property="og:title" content="Mighty Crayon | Contact" />
<meta property="og:description"
content="Mighty Crayon is a 501(c)(3) Non-Profit commited to helping children learn and grow through educative creative mediums." />
<meta property="og:url" content="index.html" />
<meta property="og:site_name" content="Mighty Crayon | Contact" />
<meta property="article:publisher" content="https://www.facebook.com/MightyCrayon/" />
<meta property="og:image" content="assets/img/general/piyush-banner.jpg" />
<link rel="stylesheet" href="assets/css/app.css">
</head>
<body oncontextmenu="return false" class=" ">
<div class="cursor" data-cursor>
<div class="inner">
<div class="circle"></div>
</div>
</div>
<div class="cursor-dot" data-cursor-dot></div>
<div id="loading-cover" class="loading-cover"></div>
<div id="loading" class="loading">
<div class="logo" title="Home">
<span class=""><span class="rev_item">
<img src="assets/img/icons/android-chrome-512x512.png" width="500" />
</span></span>
</div>
</div>
<div id="head" class="header">
<div class="header-wrap header-static">
<div data-stick-cursor>
<a href="index.html" class="logo" data-stick-cursor id="main-logo" title="">
<img src="assets/img/icons/android-chrome-512x512.png" />
</a>
</div>
<div class="right-nav hidescroll ">
<a href="contact.html" data-stick-cursor class="font-caps">Contact</a>
</div>
</div>
<div class="nav-menu hidescroll" data-stick-cursor id="nav">
<span class="line"></span>
<span class="line"></span>
<span class="font-caps text">Menu</span>
</div>
</div>
<div id="menu" class="menu hideOnLoad">
<div class="menu-content" id="menu-content">
<div class="nav-close hover-target" data-stick-cursor id="navClose">
<span class="line"></span>
</div>
<div class="menu-wrapper">
<div class="column">
<a href="index.html" class="logo navlink" data-stick-cursor title="">
<img src="assets/img/icons/android-chrome-512x512.png" />
</a>
<ol class="links">
<li>
<a href="index.html" class="navlink" data-stick-cursor>
<span class="q_split"><span class="rev_item">Home</span></span>
</a>
</li>
<li>
<a href="impact.html" class="navlink" data-stick-cursor>
<span class="q_split"><span class="rev_item">Our Impact</span></span>
</a>
</li>
<li>
<a href="sponsors.html" class="navlink" data-stick-cursor>
<span class="q_split"><span class="rev_item">Sponsors</span></span>
</a>
</li>
<li>
<a href="about.html" class="navlink" data-stick-cursor>
<span class="q_split"><span class="rev_item">About</span></span>
</a>
</li>
</ol>
</div>
<div class="nav_bottom">
<div class="col">
<div class="copyright hidescroll">
© <span class="year_copy">2023</span> Mighty Crayon. All rights reserved.<br>
</div>
</div>
<div class="col">
<div class="copyright hidescroll">
<a href="http://paypal.me/mightycrayon" data-stick-cursor>Donate</a><br>
<a href="sponsors.html" data-stick-cursor>Sponsors</a>
</div>
</div>
<div class="col">
<a href="mailto:[email protected]?subject=Contact Mighty Crayon"
data-stick-cursor>Email</a><br>
<a href="https://www.linkedin.com/company/mightycrayon/" class="navlink"
data-stick-cursor>LinkedIn</a>
</div>
</div>
</div>
</div>
</div>
<div id="dynamicLoad" class="dynamic_load">
<div class="progress">
<div class="bar" id="dynamicBar"></div>
</div>
</div>
<div id="barba-wrapper">
<div class="barba-container">
<canvas id="webgl"></canvas>
<div class="vignette-overlay"></div>
<div id="main" class="q_smooth">
<section class="section feature-list no-pb" id="section-header">
<div class="q-container container-inner">
<div class="columns">
<div class="column">
<h1><span class="q_split"><span class="rev_item">Mighty Crayon Contact</span></span>
</h1>
<ol class="article-group no-pt rev_show">
<li class="journal-thumbnail-container">
<h4>Email</h4>
<p><a href="mailto:[email protected]" class="navlink" data-stick-cursor>[email protected]</a></p>
</li>
<li class="journal-thumbnail-container">
<h4>If your a company</h4>
<p><a href="partner.html">Try this</p>
</li>
<li class="journal-thumbnail-container">
<h4>Other Details</h4>
<p>Email us if you need more details.</p>
</li>
</ol>
</div>
</div>
</div>
</section>
<section class="section platform">
<div class="q-container container-inner">
<div class="columns">
<div class="column">
<h6 class="font-caps">Contact & More</h6>
<ol class="links">
<li>
<a href="contact.html" target="_blank" rel="noreferrer noopener"
data-stick-cursor>
Contact Us
<div class="arrow"><svg viewBox="0 0 80 80" class="cl-t">
<polyline points="19.89 15.25 64.03 15.25 64.03 59.33"></polyline>
<line x1="64.03" y1="15.25" x2="14.03" y2="65.18"></line>
</svg></div>
</a>
</li>
<li>
<a href="https://www.facebook.com/MightyCrayon/" target="_blank"
rel="noreferrer noopener" data-stick-cursor>
Facebook
<div class="arrow"><svg viewBox="0 0 80 80" class="cl-t">
<polyline points="19.89 15.25 64.03 15.25 64.03 59.33"></polyline>
<line x1="64.03" y1="15.25" x2="14.03" y2="65.18"></line>
</svg></div>
</a>
</li>
<li>
<a href="https://www.linkedin.com/company/mightycrayon/" target="_blank"
rel="noreferrer noopener" data-stick-cursor>
LinkedIn
<div class="arrow"><svg viewBox="0 0 80 80" class="cl-t">
<polyline points="19.89 15.25 64.03 15.25 64.03 59.33"></polyline>
<line x1="64.03" y1="15.25" x2="14.03" y2="65.18"></line>
</svg></div>
</a>
</li>
<li>
<a href="https://www.paypal.com/paypalme/mightycrayon" target="_blank"
rel="noreferrer noopener" data-stick-cursor>
Donate
<div class="arrow"><svg viewBox="0 0 80 80" class="cl-t">
<polyline points="19.89 15.25 64.03 15.25 64.03 59.33"></polyline>
<line x1="64.03" y1="15.25" x2="14.03" y2="65.18"></line>
</svg></div>
</a>
</li>
</ol>
</div>
</div>
</div>
</section>
<footer id="footer">
<section class="section">
<div class="footer-wrap">
<a href="index.html" class="logo" data-stick-cursor id="main-logo" title="">
<img src="assets/img/icons/android-chrome-512x512.png" />
<p>© <span class="year_copy">2023</span> <a href="index.html" data-stick-cursor
title="">Mighty
Crayon</a>.
All Rights Reserved.<br>
<a href="terms.html" data-stick-cursor>Terms of Service</a> | <a
href="privacy.html" data-stick-cursor>Privacy Policy</a><br>
Website by Aarnav Bhat and Piyush Acharya
</p>
</div>
</section>
</footer>
</div>
<script type="x-shader/x-fragment" id="fragmentShader">
#define TWO_PI 6.2831853072
#define PI 3.14159265359
precision highp float;
uniform float globaltime;
uniform vec2 resolution;
uniform float aspect;
uniform float scroll;
uniform float velocity;
uniform sampler2D texture;
const float timescale = 0.1;
const float twist = 2.0;
vec2 rotate(vec2 v, float angle) {
float c = cos(angle);
float s = sin(angle);
return v * mat2(c, -s, s, c);
}
float nsin(float value) {
return sin(value * TWO_PI) * 0.5 + 0.5;
}
void main(void) {
float time = globaltime * timescale;
vec2 center = vec2(sin(TWO_PI * time * 0.2), cos(TWO_PI * time * 0.2)) * nsin(time * 0.3) * 0.5;
vec2 tx = (gl_FragCoord.xy / resolution.xy - 0.5 - center) * vec2(aspect, 1.0);
float len = 1.0 - length(tx);
float zoom = 0.0 + scroll - len * 2.0 * (1.0 - scroll) + len * velocity;
vec4 imgColor = texture2D(
texture,
rotate(
(tx + center) * vec2(1.0, -1.0) * zoom,
twist * TWO_PI * nsin(len + time) * scroll + time
) + 0.5
);
gl_FragColor = imgColor;
}
</script>
</div>
</div>
<script src="../unpkg.com/axios%400.27.2/dist/axios.min.js"></script>
<script src="assets/js/scripts.js"></script>
</body>
<script type="module">
const imgSize = [1250, 1097];
const vertex = `
attribute vec2 uv;
attribute vec2 position;
varying vec2 vUv;
void main() {
vUv = uv;
gl_Position = vec4(position, 0, 1);
}
`;
const fragment = `
precision highp float;
precision highp int;
uniform sampler2D tWater;
uniform sampler2D tFlow;
uniform float uTime;
varying vec2 vUv;
uniform vec4 res;
void main() {
// R and G values are velocity in the x and y direction
// B value is the velocity length
vec3 flow = texture2D(tFlow, vUv).rgb;
vec2 uv = .5 * gl_FragCoord.xy / res.xy ;
vec2 myUV = (uv - vec2(0.5))*res.zw + vec2(0.5);
myUV -= flow.xy * (0.15 * 0.7);
vec2 myUV2 = (uv - vec2(0.5))*res.zw + vec2(0.5);
myUV2 -= flow.xy * (0.125 * 0.7);
vec2 myUV3 = (uv - vec2(0.5))*res.zw + vec2(0.5);
myUV3 -= flow.xy * (0.10 * 0.7);
vec3 tex = texture2D(tWater, myUV).rgb;
vec3 tex2 = texture2D(tWater, myUV2).rgb;
vec3 tex3 = texture2D(tWater, myUV3).rgb;
gl_FragColor = vec4(tex.r, tex2.g, tex3.b, 1.0);
}
`;
{
const renderer = new ogl.Renderer({ dpr: 2 });
const gl = renderer.gl;
document.getElementById('menu-content').appendChild(gl.canvas);
//gl.canvas.classList.add('kenburns')
// Variable inputs to control flowmap
let aspect = 1;
const mouse = new ogl.Vec2(-1);
const velocity = new ogl.Vec2();
function resize() {
let a1, a2;
var imageAspect = imgSize[1] / imgSize[0];
if (window.innerHeight / window.innerWidth < imageAspect) {
a1 = 1;
a2 = window.innerHeight / window.innerWidth / imageAspect;
} else {
a1 = (window.innerWidth / window.innerHeight) * imageAspect;
a2 = 1;
}
mesh.program.uniforms.res.value = new ogl.Vec4(
window.innerWidth,
window.innerHeight,
a1,
a2
);
renderer.setSize(window.innerWidth, window.innerHeight);
aspect = window.innerWidth / window.innerHeight;
}
const flowmap = new ogl.Flowmap(gl, {
falloff: 1.0, // size of the stamp, percentage of the size
alpha: 0.3, // opacity of the stamp
dissipation: 0.94 // affects the speed that the stamp fades. Closer to 1 is slower
});
// Triangle that includes -1 to 1 range for 'position', and 0 to 1 range for 'uv'.
const geometry = new ogl.Geometry(gl, {
position: {
size: 2,
data: new Float32Array([-1, -1, 3, -1, -1, 3])
},
uv: { size: 2, data: new Float32Array([0, 0, 2, 0, 0, 2]) }
});
const texture = new ogl.Texture(gl, {
minFilter: gl.LINEAR,
magFilter: gl.LINEAR
});
const img = new Image();
img.onload = () => (texture.image = img);
img.crossOrigin = "Anonymous";
img.src = "assets/img/general/navbg2.jpg";
let a1, a2;
var imageAspect = imgSize[1] / imgSize[0];
if (window.innerHeight / window.innerWidth < imageAspect) {
a1 = 1;
a2 = window.innerHeight / window.innerWidth / imageAspect;
} else {
a1 = (window.innerWidth / window.innerHeight) * imageAspect;
a2 = 1;
}
const program = new ogl.Program(gl, {
vertex,
fragment,
uniforms: {
uTime: { value: 0 },
tWater: { value: texture },
res: {
value: new ogl.Vec4(window.innerWidth, window.innerHeight, a1, a2)
},
img: { value: new ogl.Vec2(imgSize[0], imgSize[1]) },
// Note that the uniform is applied without using an object and value property
// This is because the class alternates this texture between two render targets
// and updates the value property after each render.
tFlow: flowmap.uniform
}
});
const mesh = new ogl.Mesh(gl, { geometry, program });
window.addEventListener("resize", resize, false);
resize();
// Create handlers to get mouse position and velocity
const isTouchCapable = "ontouchstart" in window;
if (isTouchCapable) {
//window.addEventListener("touchstart", updateMouse, false);
//window.addEventListener("touchmove", updateMouse, { passive: false });
} else {
window.addEventListener("mousemove", updateMouse, false);
}
let lastTime;
const lastMouse = new ogl.Vec2();
function updateMouse(e) {
e.preventDefault();
if (e.changedTouches && e.changedTouches.length) {
e.x = e.changedTouches[0].pageX;
e.y = e.changedTouches[0].pageY;
}
if (e.x === undefined) {
e.x = e.pageX;
e.y = e.pageY;
}
// Get mouse value in 0 to 1 range, with y flipped
mouse.set(e.x / gl.renderer.width, 1.0 - e.y / gl.renderer.height);
// Calculate velocity
if (!lastTime) {
// First frame
lastTime = performance.now();
lastMouse.set(e.x, e.y);
}
const deltaX = e.x - lastMouse.x;
const deltaY = e.y - lastMouse.y;
lastMouse.set(e.x, e.y);
let time = performance.now();
// Avoid dividing by 0
let delta = Math.max(10.4, time - lastTime);
lastTime = time;
velocity.x = deltaX / delta;
velocity.y = deltaY / delta;
// Flag update to prevent hanging velocity values when not moving
velocity.needsUpdate = true;
}
requestAnimationFrame(update);
var menu = document.getElementById('menu')
function update(t) {
requestAnimationFrame(update);
if (menu.classList.contains('active')) {
// Reset velocity when mouse not moving
if (!velocity.needsUpdate) {
mouse.set(-1);
velocity.set(0);
}
velocity.needsUpdate = false;
// Update flowmap inputs
flowmap.aspect = aspect;
flowmap.mouse.copy(mouse);
// Ease velocity input, slower when fading out
flowmap.velocity.lerp(velocity, velocity.len ? 0.15 : 0.1);
flowmap.update();
program.uniforms.uTime.value = t * 0.01;
renderer.render({ scene: mesh });
}
}
}
</script>
</html>