-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathindex.html
More file actions
918 lines (797 loc) · 38.7 KB
/
index.html
File metadata and controls
918 lines (797 loc) · 38.7 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
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>The Invent Framework</title>
<link rel="icon" href="favicon.svg">
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta http-equiv="X-UA-Compatible" content="ie=edge" />
<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=Fira+Sans:wght@700&display=swap" rel="stylesheet">
<style>
* { box-sizing: border-box; }
:root {
--text-color: #000000;
--bg-color: #ffffff;
--border-color: #e0e0e0;
--link-color: #1976D2;
--selection-bg: #EC407A;
--selection-fg: #ffffff;
font-size: 18px;
}
body.dark-mode {
--selection-fg: #000000;
}
body.dark-mode {
--text-color: #ffffff;
--bg-color: #000000;
--border-color: #333333;
--selection-fg: #000000;
}
* { box-sizing: border-box; }
body {
margin: 0;
padding: 0;
background-color: var(--bg-color);
color: var(--text-color);
position: relative;
font-family: system-ui, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
line-height: 1.3;
}
body::before,
body::after {
content: '';
position: fixed;
top: 0;
width: 400px;
height: 100vh;
z-index: -1;
pointer-events: none;
background-repeat: repeat-y;
opacity: 0.1;
}
body.dark-mode::before,
body.dark-mode::after {
filter: invert(100%);
}
body::before {
left: 0;
background-image: url('gradient-l.svg');
}
body::after {
right: 0;
background-image: url('gradient-r.svg');
}
::selection {
background-color: var(--selection-bg);
color: var(--selection-fg);
}
.content {
max-width: 1200px;
margin: 0 auto;
padding: 0 2rem;
position: relative;
z-index: 1;
line-height: 1.35;
}
nav {
display: flex;
justify-content: space-between;
align-items: center;
padding: 2rem 0;
border-bottom: 1px solid var(--border-color);
}
.theme-toggle {
background: none;
border: none;
cursor: pointer;
font-size: 1.5rem;
padding: 0.5rem;
display: flex;
align-items: center;
justify-content: center;
color: var(--text-color);
transition: opacity 0.2s;
}
.theme-toggle:hover {
opacity: 0.7;
}
.logo-container {
width: 100%;
height: 120px;
margin-bottom: 4rem;
position: relative;
z-index: 1;
}
.cubes-container {
width: 100%;
container-type: inline-size;
display: grid;
gap: 1.5rem;
padding: 1rem;
grid-template-columns: repeat(2, 1fr);
}
@media (min-width: 30rem) {
.cubes-container {
grid-template-columns: repeat(3, 1fr);
}
.cube[data-cube="3"],
.cube[data-cube="4"],
.cube[data-cube="5"] {
display: none;
}
}
@media (min-width: 44rem) {
.cubes-container {
grid-template-columns: repeat(4, 1fr);
}
.cube[data-cube="3"],
.cube[data-cube="4"],
.cube[data-cube="5"] {
display: block;
}
}
@media (min-width: 66rem) {
.cubes-container {
grid-template-columns: repeat(6, 1fr);
}
}
.scene {
width: 100%;
aspect-ratio: 1;
perspective: 300cqi;
container-type: size;
}
.cube {
width: 100%;
height: 100%;
position: relative;
transform-style: preserve-3d;
transform: translateZ(-50cqi);
transition: transform 1s;
}
.cube__face {
position: absolute;
width: 100%;
height: 100%;
display: flex;
align-items: center;
justify-content: center;
overflow: hidden;
}
.cube__face svg {
width: 85%;
height: 85%;
fill: black;
}
.cube__face--letter {
font-size: 100cqi;
font-weight: bold;
color: white;
font-family: 'Fira Sans', sans-serif;
}
.cube__face--front { transform: rotateY( 0deg) translateZ(50cqi); }
.cube__face--right { transform: rotateY( 90deg) translateZ(50cqi); }
.cube__face--back { transform: rotateY(180deg) translateZ(50cqi); }
.cube__face--left { transform: rotateY(-90deg) translateZ(50cqi); }
.cube__face--top { transform: rotateX( 90deg) translateZ(50cqi); }
.cube__face--bottom { transform: rotateX(-90deg) translateZ(50cqi); }
.cube.show-front { transform: translateZ(-50cqi) rotateY( 0deg); }
.cube.show-right { transform: translateZ(-50cqi) rotateY( -90deg); }
.cube.show-back { transform: translateZ(-50cqi) rotateY(-180deg); }
.cube.show-left { transform: translateZ(-50cqi) rotateY( 90deg); }
.cube.show-top { transform: translateZ(-50cqi) rotateX( -90deg); }
.cube.show-bottom { transform: translateZ(-50cqi) rotateX( 90deg); }
@media (prefers-reduced-motion: reduce) {
.cube {
transition: none;
}
}
.nav-right {
display: flex;
gap: 2rem;
}
main {
padding: 2rem 0;
text-align: center;
}
.hero {
padding: 4rem 0;
text-align: center;
}
h1 {
font-size: 3rem;
margin: 1.5rem 0 1rem;
}
h2 {
font-size: 2.5rem;
margin: 1.5rem 0 1rem;
}
h3 {
font-size: 2rem;
margin: 1.5rem 0 0.75rem;
}
h4 {
font-size: 1.5rem;
margin: 1.25rem 0 0.75rem;
}
h5 {
font-size: 1.25rem;
margin: 1rem 0 0.5rem;
}
h6 {
font-size: 1rem;
margin: 1rem 0 0.5rem;
}
.hero h1 {
margin-bottom: 2rem;
}
.socials {
padding-top: 2rem;
color: var(--text-color);
}
.social-icon {
text-decoration: none !important;
background-image: none !important;
display: inline-block;
margin: 0 0.5rem;
color: var(--text-color);
}
body.dark-mode .social-icon svg {
filter: invert(100%);
}
.poem {
display: inline-block;
text-align: left;
padding-top: 2rem;
max-width: 600px;
}
.author {
text-align: right;
margin: 2rem auto 0;
width: 100%;
max-width: 600px;
}
.footer {
font-size: 0.8em;
padding: 4rem 0 2rem;
border-top: 1px solid var(--border-color);
margin-top: 4rem;
text-align: center;
display: flex;
flex-direction: column;
align-items: center;
gap: 2rem;
}
a {
position: relative;
text-decoration: none;
color: inherit;
line-height: 1;
display: inline-block;
}
a::before {
content: '';
position: absolute;
bottom: -2px;
left: 0;
right: 0;
height: 2px;
background: var(--link-color);
transition: opacity 350ms;
z-index: -1;
}
a::after {
content: '';
position: absolute;
inset: 0;
background: linear-gradient(0deg, var(--link-color), var(--link-color)) no-repeat right bottom / 0 100%;
transition: background-size 350ms;
pointer-events: none;
z-index: -1;
}
a:where(:hover, :focus-visible)::before {
opacity: 0;
}
a:where(:hover, :focus-visible)::after {
background-size: 100% 100%;
background-position-x: left;
}
/* Use cube colors for link background based on nth-of-type globally - shuffled order */
a:nth-of-type(1) { --link-color: #42A5F5; }
a:nth-of-type(2) { --link-color: #EC407A; }
a:nth-of-type(3) { --link-color: #FFD700; }
a:nth-of-type(4) { --link-color: #BA68C8; }
a:nth-of-type(5) { --link-color: #FF8C00; }
a:nth-of-type(6) { --link-color: #4DD0E1; }
a:nth-of-type(7) { --link-color: #283593; }
a:nth-of-type(8) { --link-color: #9CCC65; }
a:nth-of-type(9) { --link-color: #D81B60; }
a:nth-of-type(10) { --link-color: #FFA500; }
a:nth-of-type(11) { --link-color: #66BB6A; }
a:nth-of-type(12) { --link-color: #FF5722; }
a:nth-of-type(13) { --link-color: #1976D2; }
a:nth-of-type(14) { --link-color: #C9B037; }
a:nth-of-type(n+15) { --link-color: #42A5F5; }
img {
border: none !important;
border-radius: unset !important;
}
.indent {
margin-left: 24px;
display: block;
}
.section {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 2rem;
align-items: center;
margin: 4rem 0;
padding: 2rem 0;
}
.section-text {
text-align: left;
}
.section-image img {
-ms-interpolation-mode: nearest-neighbor;
image-rendering: -webkit-optimize-contrast;
image-rendering: -moz-crisp-edges;
image-rendering: -o-pixelated;
image-rendering: pixelated;
max-width: 100%;
height: auto;
display: block;
}
@media (max-width: 768px) {
.section {
grid-template-columns: 1fr;
}
}
</style>
</head>
<body>
<div class="content">
<nav>
<div></div>
<button class="theme-toggle" id="themeToggle" aria-label="Toggle dark mode">
<span id="themeIcon">🌙</span>
</button>
</nav>
<div class="logo-container">
<div class="cubes-container">
<div class="scene">
<div class="cube letter-cube" data-cube="letter-0">
<div class="cube__face cube__face--front cube__face--letter">I</div>
<div class="cube__face cube__face--back cube__face--letter">I</div>
<div class="cube__face cube__face--right cube__face--letter">I</div>
<div class="cube__face cube__face--left cube__face--letter">I</div>
<div class="cube__face cube__face--top cube__face--letter">I</div>
<div class="cube__face cube__face--bottom cube__face--letter">I</div>
</div>
</div>
<div class="scene">
<div class="cube letter-cube" data-cube="letter-1">
<div class="cube__face cube__face--front cube__face--letter">N</div>
<div class="cube__face cube__face--back cube__face--letter">N</div>
<div class="cube__face cube__face--right cube__face--letter">N</div>
<div class="cube__face cube__face--left cube__face--letter">N</div>
<div class="cube__face cube__face--top cube__face--letter">N</div>
<div class="cube__face cube__face--bottom cube__face--letter">N</div>
</div>
</div>
<div class="scene">
<div class="cube letter-cube" data-cube="letter-2">
<div class="cube__face cube__face--front cube__face--letter">V</div>
<div class="cube__face cube__face--back cube__face--letter">V</div>
<div class="cube__face cube__face--right cube__face--letter">V</div>
<div class="cube__face cube__face--left cube__face--letter">V</div>
<div class="cube__face cube__face--top cube__face--letter">V</div>
<div class="cube__face cube__face--bottom cube__face--letter">V</div>
</div>
</div>
<div class="scene">
<div class="cube letter-cube" data-cube="letter-3">
<div class="cube__face cube__face--front cube__face--letter">E</div>
<div class="cube__face cube__face--back cube__face--letter">E</div>
<div class="cube__face cube__face--right cube__face--letter">E</div>
<div class="cube__face cube__face--left cube__face--letter">E</div>
<div class="cube__face cube__face--top cube__face--letter">E</div>
<div class="cube__face cube__face--bottom cube__face--letter">E</div>
</div>
</div>
<div class="scene">
<div class="cube letter-cube" data-cube="letter-4">
<div class="cube__face cube__face--front cube__face--letter">N</div>
<div class="cube__face cube__face--back cube__face--letter">N</div>
<div class="cube__face cube__face--right cube__face--letter">N</div>
<div class="cube__face cube__face--left cube__face--letter">N</div>
<div class="cube__face cube__face--top cube__face--letter">N</div>
<div class="cube__face cube__face--bottom cube__face--letter">N</div>
</div>
</div>
<div class="scene">
<div class="cube letter-cube" data-cube="letter-5">
<div class="cube__face cube__face--front cube__face--letter">T</div>
<div class="cube__face cube__face--back cube__face--letter">T</div>
<div class="cube__face cube__face--right cube__face--letter">T</div>
<div class="cube__face cube__face--left cube__face--letter">T</div>
<div class="cube__face cube__face--top cube__face--letter">T</div>
<div class="cube__face cube__face--bottom cube__face--letter">T</div>
</div>
</div>
<!-- Icon cubes -->
<div class="scene">
<div class="cube" data-cube="0">
<div class="cube__face cube__face--front"><svg viewBox="0 0 1200 1200"><use href="#rocket"></use></svg></div>
<div class="cube__face cube__face--back"><svg viewBox="0 0 1200 1200"><use href="#bicycle-repair"></use></svg></div>
<div class="cube__face cube__face--right"><svg viewBox="0 0 1200 1200"><use href="#dolphin"></use></svg></div>
<div class="cube__face cube__face--left"><svg viewBox="0 0 1200 1200"><use href="#seedling"></use></svg></div>
<div class="cube__face cube__face--top"><svg viewBox="0 0 1200 1200"><use href="#superhero"></use></svg></div>
<div class="cube__face cube__face--bottom"><svg viewBox="0 0 1200 1200"><use href="#peace-dove"></use></svg></div>
</div>
</div>
<div class="scene">
<div class="cube" data-cube="1">
<div class="cube__face cube__face--front"><svg viewBox="0 0 1200 1200"><use href="#seedling"></use></svg></div>
<div class="cube__face cube__face--back"><svg viewBox="0 0 1200 1200"><use href="#graduate"></use></svg></div>
<div class="cube__face cube__face--right"><svg viewBox="0 0 1200 1200"><use href="#bird"></use></svg></div>
<div class="cube__face cube__face--left"><svg viewBox="0 0 1200 1200"><use href="#muffin"></use></svg></div>
<div class="cube__face cube__face--top"><svg viewBox="0 0 1200 1200"><use href="#unicycle"></use></svg></div>
<div class="cube__face cube__face--bottom"><svg viewBox="0 0 1200 1200"><use href="#winner"></use></svg></div>
</div>
</div>
<div class="scene">
<div class="cube" data-cube="2">
<div class="cube__face cube__face--front"><svg viewBox="0 0 1200 1200"><use href="#key-to-happiness"></use></svg></div>
<div class="cube__face cube__face--back"><svg viewBox="0 0 1200 1200"><use href="#thumbs-up"></use></svg></div>
<div class="cube__face cube__face--right"><svg viewBox="0 0 1200 1200"><use href="#lightness"></use></svg></div>
<div class="cube__face cube__face--left"><svg viewBox="0 0 1200 1200"><use href="#firework-display"></use></svg></div>
<div class="cube__face cube__face--top"><svg viewBox="0 0 1200 1200"><use href="#hoverboard"></use></svg></div>
<div class="cube__face cube__face--bottom"><svg viewBox="0 0 1200 1200"><use href="#telescope"></use></svg></div>
</div>
</div>
<div class="scene">
<div class="cube" data-cube="3">
<div class="cube__face cube__face--front"><svg viewBox="0 0 1200 1200"><use href="#rocket"></use></svg></div>
<div class="cube__face cube__face--back"><svg viewBox="0 0 1200 1200"><use href="#world"></use></svg></div>
<div class="cube__face cube__face--right"><svg viewBox="0 0 1200 1200"><use href="#unicycle"></use></svg></div>
<div class="cube__face cube__face--left"><svg viewBox="0 0 1200 1200"><use href="#books"></use></svg></div>
<div class="cube__face cube__face--top"><svg viewBox="0 0 1200 1200"><use href="#dj"></use></svg></div>
<div class="cube__face cube__face--bottom"><svg viewBox="0 0 1200 1200"><use href="#strawberry"></use></svg></div>
</div>
</div>
<div class="scene">
<div class="cube" data-cube="4">
<div class="cube__face cube__face--front"><svg viewBox="0 0 1200 1200"><use href="#musicians"></use></svg></div>
<div class="cube__face cube__face--back"><svg viewBox="0 0 1200 1200"><use href="#ufo"></use></svg></div>
<div class="cube__face cube__face--right"><svg viewBox="0 0 1200 1200"><use href="#tools-hammer"></use></svg></div>
<div class="cube__face cube__face--left"><svg viewBox="0 0 1200 1200"><use href="#bridge"></use></svg></div>
<div class="cube__face cube__face--top"><svg viewBox="0 0 1200 1200"><use href="#electric-scooter"></use></svg></div>
<div class="cube__face cube__face--bottom"><svg viewBox="0 0 1200 1200"><use href="#ev-charger"></use></svg></div>
</div>
</div>
<div class="scene">
<div class="cube" data-cube="5">
<div class="cube__face cube__face--front"><svg viewBox="0 0 1200 1200"><use href="#microphone"></use></svg></div>
<div class="cube__face cube__face--back"><svg viewBox="0 0 1200 1200"><use href="#mail-truck"></use></svg></div>
<div class="cube__face cube__face--right"><svg viewBox="0 0 1200 1200"><use href="#awareness"></use></svg></div>
<div class="cube__face cube__face--left"><svg viewBox="0 0 1200 1200"><use href="#bicycle-repair"></use></svg></div>
<div class="cube__face cube__face--top"><svg viewBox="0 0 1200 1200"><use href="#robot"></use></svg></div>
<div class="cube__face cube__face--bottom"><svg viewBox="0 0 1200 1200"><use href="#springboard"></use></svg></div>
</div>
</div>
</div>
</div>
<main>
<div class="hero">
</div>
<div class="poem">
<p>Code runs our world.</p>
<p>Yet code isn't written for computers. </p>
<p>We write code because we are human beings
<span class="indent">imbued with ideas, imagination and feelings.</span>
Code expresses our thoughts made digital:
<span class="indent">a medium for our values, cultures and ways of life.</span></p>
<p>If you knew code, what would <em>you</em> create?</p>
<p>For those who venture into the world of code
<span class="indent">will be the ones creating our futures.</span></p>
<p>What will <em>your contribution</em> be..?</p>
<p>The only way to find out, <u>is to try</u>.</p>
</div>
<!--div class="author">
<p>Nicholas H.Tollervey</p>
</div>
<section class="section" style="display: block; margin: 4rem 0; padding: 2rem 0; text-align: left;">
<h2>HTML Sampler</h2>
<h3>Heading 3</h3>
<p>This is a paragraph with <a href="#">a link</a> embedded in it. Links should have an underline by default and fill with color on hover.</p>
<h4>Heading 4</h4>
<p>Another paragraph with <a href="#">another link</a> and <a href="#">yet another link</a> to test the nth-child color cycling.</p>
<h5>Heading 5</h5>
<ul>
<li>First list item with a <a href="#">link inside</a></li>
<li>Second list item</li>
<li>Third list item with <a href="#">multiple</a> <a href="#">links</a></li>
</ul>
<h6>Heading 6</h6>
<ol>
<li>Ordered first with a <a href="#">link</a></li>
<li>Ordered second</li>
<li>Ordered third with <a href="#">another link</a></li>
</ol>
<p>A paragraph with <strong>strong text</strong> and <em>emphasized text</em>, plus a <a href="#">link to test</a> alongside formatted content.</p>
</section>
<section class="section">
<div class="section-text">
<h2>Branded Images</h2>
<p>Everything is made from blocks. A block can be anything—text, patterns, photographs, icons, or any visual element. By combining blocks together, you can create infinitely varied compositions and designs. This modular approach means images, like everything else in the Invent ecosystem, can be built and combined as fundamental building blocks.</p>
</div>
<div class="section-image">
<img src="nicholas-halftone.png" alt="Nicholas Halftone">
</div>
</section-->
</main>
<footer class="footer">
<div class="socials">
<a href="https://mastodon.social/@inventframework" target="_blank" class="social-icon" title="Mastodon"><svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 216.4144 232.00976"><path fill="#000" d="M211.80734 139.0875c-3.18125 16.36625-28.4925 34.2775-57.5625 37.74875-15.15875 1.80875-30.08375 3.47125-45.99875 2.74125-26.0275-1.1925-46.565-6.2125-46.565-6.2125 0 2.53375.15625 4.94625.46875 7.2025 3.38375 25.68625 25.47 27.225 46.39125 27.9425 21.11625.7225 39.91875-5.20625 39.91875-5.20625l.8675 19.09s-14.77 7.93125-41.08125 9.39c-14.50875.7975-32.52375-.365-53.50625-5.91875C9.23234 213.82 1.40609 165.31125.20859 116.09125c-.365-14.61375-.14-28.39375-.14-39.91875 0-50.33 32.97625-65.0825 32.97625-65.0825C49.67234 3.45375 78.20359.2425 107.86484 0h.72875c29.66125.2425 58.21125 3.45375 74.8375 11.09 0 0 32.975 14.7525 32.975 65.0825 0 0 .41375 37.13375-4.59875 62.915"/><path fill="#fff" d="M177.50984 80.077v60.94125h-24.14375v-59.15c0-12.46875-5.24625-18.7975-15.74-18.7975-11.6025 0-17.4175 7.5075-17.4175 22.3525v32.37625H96.20734V85.42325c0-14.845-5.81625-22.3525-17.41875-22.3525-10.49375 0-15.74 6.32875-15.74 18.7975v59.15H38.90484V80.077c0-12.455 3.17125-22.3525 9.54125-29.675 6.56875-7.3225 15.17125-11.07625 25.85-11.07625 12.355 0 21.71125 4.74875 27.8975 14.2475l6.01375 10.08125 6.015-10.08125c6.185-9.49875 15.54125-14.2475 27.8975-14.2475 10.6775 0 19.28 3.75375 25.85 11.07625 6.36875 7.3225 9.54 17.22 9.54 29.675"/></svg></a>
<a href="http://www.youtube.com/@TheInventFramework" target="_blank" class="social-icon" title="YouTube"><svg xmlns="http://www.w3.org/2000/svg" x="0px" y="0px" width="32" height="32" viewBox="0 0 24 24"><path d="M21.582,6.186c-0.23-0.86-0.908-1.538-1.768-1.768C18.254,4,12,4,12,4S5.746,4,4.186,4.418 c-0.86,0.23-1.538,0.908-1.768,1.768C2,7.746,2,12,2,12s0,4.254,0.418,5.814c0.23,0.86,0.908,1.538,1.768,1.768 C5.746,20,12,20,12,20s6.254,0,7.814-0.418c0.861-0.23,1.538-0.908,1.768-1.768C22,16.254,22,12,22,12S22,7.746,21.582,6.186z M10,15.464V8.536L16,12L10,15.464z"></path></svg></a>
<a href="https://discord.gg/4sZywUaA4b" target="_blank" class="social-icon" title="discord"><svg xmlns="http://www.w3.org/2000/svg" x="0px" y="0px" width="32" height="32" viewBox="0 0 24 24"><path d="M19.952,5.672c-1.904-1.531-4.916-1.79-5.044-1.801c-0.201-0.017-0.392,0.097-0.474,0.281 c-0.006,0.012-0.072,0.163-0.145,0.398c1.259,0.212,2.806,0.64,4.206,1.509c0.224,0.139,0.293,0.434,0.154,0.659 c-0.09,0.146-0.247,0.226-0.407,0.226c-0.086,0-0.173-0.023-0.252-0.072C15.584,5.38,12.578,5.305,12,5.305S8.415,5.38,6.011,6.872 c-0.225,0.14-0.519,0.07-0.659-0.154c-0.14-0.225-0.07-0.519,0.154-0.659c1.4-0.868,2.946-1.297,4.206-1.509 c-0.074-0.236-0.14-0.386-0.145-0.398C9.484,3.968,9.294,3.852,9.092,3.872c-0.127,0.01-3.139,0.269-5.069,1.822 C3.015,6.625,1,12.073,1,16.783c0,0.083,0.022,0.165,0.063,0.237c1.391,2.443,5.185,3.083,6.05,3.111c0.005,0,0.01,0,0.015,0 c0.153,0,0.297-0.073,0.387-0.197l0.875-1.202c-2.359-0.61-3.564-1.645-3.634-1.706c-0.198-0.175-0.217-0.477-0.042-0.675 c0.175-0.198,0.476-0.217,0.674-0.043c0.029,0.026,2.248,1.909,6.612,1.909c4.372,0,6.591-1.891,6.613-1.91 c0.198-0.172,0.5-0.154,0.674,0.045c0.174,0.198,0.155,0.499-0.042,0.673c-0.07,0.062-1.275,1.096-3.634,1.706l0.875,1.202 c0.09,0.124,0.234,0.197,0.387,0.197c0.005,0,0.01,0,0.015,0c0.865-0.027,4.659-0.667,6.05-3.111 C22.978,16.947,23,16.866,23,16.783C23,12.073,20.985,6.625,19.952,5.672z M8.891,14.87c-0.924,0-1.674-0.857-1.674-1.913 s0.749-1.913,1.674-1.913s1.674,0.857,1.674,1.913S9.816,14.87,8.891,14.87z M15.109,14.87c-0.924,0-1.674-0.857-1.674-1.913 s0.749-1.913,1.674-1.913c0.924,0,1.674,0.857,1.674,1.913S16.033,14.87,15.109,14.87z"></path></svg></a>
<a href="https://github.com/invent-framework/invent" target="_blank" class="social-icon" title="GitHub"><svg xmlns="http://www.w3.org/2000/svg" x="0px" y="0px" width="32" height="32" viewBox="0 0 24 24"><path d="M 12 2 C 6.476563 2 2 6.476563 2 12 C 2 17.523438 6.476563 22 12 22 C 17.523438 22 22 17.523438 22 12 C 22 6.476563 17.523438 2 12 2 Z M 12 4 C 16.410156 4 20 7.589844 20 12 C 20 12.46875 19.953125 12.929688 19.875 13.375 C 19.628906 13.320313 19.265625 13.253906 18.84375 13.25 C 18.53125 13.246094 18.140625 13.296875 17.8125 13.34375 C 17.925781 12.996094 18 12.613281 18 12.21875 C 18 11.257813 17.53125 10.363281 16.78125 9.625 C 16.988281 8.855469 17.191406 7.535156 16.65625 7 C 15.074219 7 14.199219 8.128906 14.15625 8.1875 C 13.667969 8.070313 13.164063 8 12.625 8 C 11.933594 8 11.273438 8.125 10.65625 8.3125 L 10.84375 8.15625 C 10.84375 8.15625 9.964844 6.9375 8.34375 6.9375 C 7.777344 7.507813 8.035156 8.953125 8.25 9.6875 C 7.484375 10.417969 7 11.28125 7 12.21875 C 7 12.546875 7.078125 12.859375 7.15625 13.15625 C 6.878906 13.125 5.878906 13.03125 5.46875 13.03125 C 5.105469 13.03125 4.542969 13.117188 4.09375 13.21875 C 4.03125 12.820313 4 12.414063 4 12 C 4 7.589844 7.589844 4 12 4 Z M 5.46875 13.28125 C 5.863281 13.28125 7.0625 13.421875 7.21875 13.4375 C 7.238281 13.492188 7.257813 13.542969 7.28125 13.59375 C 6.851563 13.554688 6.019531 13.496094 5.46875 13.5625 C 5.101563 13.605469 4.632813 13.738281 4.21875 13.84375 C 4.1875 13.71875 4.148438 13.597656 4.125 13.46875 C 4.5625 13.375 5.136719 13.28125 5.46875 13.28125 Z M 18.84375 13.5 C 19.242188 13.503906 19.605469 13.570313 19.84375 13.625 C 19.832031 13.691406 19.796875 13.746094 19.78125 13.8125 C 19.527344 13.753906 19.109375 13.667969 18.625 13.65625 C 18.390625 13.652344 18.015625 13.664063 17.6875 13.6875 C 17.703125 13.65625 17.707031 13.625 17.71875 13.59375 C 18.058594 13.546875 18.492188 13.496094 18.84375 13.5 Z M 6.09375 13.78125 C 6.65625 13.785156 7.183594 13.824219 7.40625 13.84375 C 7.929688 14.820313 8.988281 15.542969 10.625 15.84375 C 10.222656 16.066406 9.863281 16.378906 9.59375 16.75 C 9.359375 16.769531 9.113281 16.78125 8.875 16.78125 C 8.179688 16.78125 7.746094 16.160156 7.375 15.625 C 7 15.089844 6.539063 15.03125 6.28125 15 C 6.019531 14.96875 5.929688 15.117188 6.0625 15.21875 C 6.824219 15.804688 7.097656 16.5 7.40625 17.125 C 7.683594 17.6875 8.265625 18 8.90625 18 L 9.03125 18 C 9.011719 18.109375 9 18.210938 9 18.3125 L 9 19.40625 C 6.691406 18.472656 4.933594 16.5 4.28125 14.0625 C 4.691406 13.960938 5.152344 13.855469 5.5 13.8125 C 5.660156 13.792969 5.863281 13.777344 6.09375 13.78125 Z M 18.625 13.90625 C 19.074219 13.917969 19.472656 14.003906 19.71875 14.0625 C 19.167969 16.132813 17.808594 17.855469 16 18.90625 L 16 18.3125 C 16 17.460938 15.328125 16.367188 14.375 15.84375 C 15.957031 15.554688 16.988281 14.863281 17.53125 13.9375 C 17.910156 13.910156 18.355469 13.898438 18.625 13.90625 Z M 12.5 18 C 12.773438 18 13 18.226563 13 18.5 L 13 19.9375 C 12.671875 19.980469 12.339844 20 12 20 L 12 18.5 C 12 18.226563 12.226563 18 12.5 18 Z M 10.5 19 C 10.773438 19 11 19.226563 11 19.5 L 11 19.9375 C 10.664063 19.894531 10.324219 19.832031 10 19.75 L 10 19.5 C 10 19.226563 10.226563 19 10.5 19 Z M 14.5 19 C 14.742188 19 14.953125 19.175781 15 19.40625 C 14.675781 19.539063 14.34375 19.660156 14 19.75 L 14 19.5 C 14 19.226563 14.226563 19 14.5 19 Z"></path></svg></a>
</div>
<div>
<a href="https://inventframework.org/">The Invent Website</a>
by
<a href="https://github.com/invent-framework/website" target="_blank">Invent contributors</a>
is licensed under
<a href="https://creativecommons.org/licenses/by-sa/4.0/?ref=chooser-v1" target="_blank">CC BY-SA 4.0</a>
</div>
</footer>
</div>
<script>
// Dark mode toggle
const themeToggle = document.getElementById('themeToggle');
const themeIcon = document.getElementById('themeIcon');
const htmlElement = document.documentElement;
// Check for saved theme preference or default to light mode
const currentTheme = localStorage.getItem('theme') || 'light';
if (currentTheme === 'dark') {
document.body.classList.add('dark-mode');
themeIcon.textContent = '☀️';
}
themeToggle.addEventListener('click', () => {
document.body.classList.toggle('dark-mode');
const isDarkMode = document.body.classList.contains('dark-mode');
localStorage.setItem('theme', isDarkMode ? 'dark' : 'light');
themeIcon.textContent = isDarkMode ? '☀️' : '🌙';
});
// Cube hover rotation effect with individual per-cube queue
const cubeStates = new WeakMap();
const animationDuration = 1000; // 1 second
function rotateCubeOnHover(cube) {
const showMatch = cube.className.match(/show-(\w+)/);
if (showMatch) {
const isLetterCube = cube.classList.contains('letter-cube');
rotateCube(cube, showMatch[1], isLetterCube);
}
}
function processCubeQueue(cube) {
if (!cubeStates.has(cube)) {
cubeStates.set(cube, { isAnimating: false, isQueued: false });
}
const state = cubeStates.get(cube);
if (state.isAnimating) {
return; // Already animating
}
if (state.isQueued) {
state.isQueued = false;
state.isAnimating = true;
rotateCubeOnHover(cube);
setTimeout(() => {
state.isAnimating = false;
processCubeQueue(cube);
}, animationDuration);
} else {
state.isAnimating = false;
}
}
document.addEventListener('mouseover', (e) => {
const cube = e.target.closest('.cube');
if (cube) {
const state = cubeStates.get(cube) || { isAnimating: false, isQueued: false };
cubeStates.set(cube, state);
// If not currently animating and not queued, start animation immediately
if (!state.isAnimating && !state.isQueued) {
state.isAnimating = true;
rotateCubeOnHover(cube);
setTimeout(() => {
state.isAnimating = false;
processCubeQueue(cube);
}, animationDuration);
}
// Otherwise queue it if not already queued
else if (!state.isQueued) {
state.isQueued = true;
}
}
});
const iconIds = [
'abundance', 'aid-to-elderly', 'alien', 'alternate-route',
'alzheimers-disease', 'exit', 'antenna', 'assembly-line',
'assistance-dog', 'asteroid', 'astronaut-happy', 'autogyro',
'autostop', 'awareness', 'banana-peel', 'barbeque',
'beach-ball', 'bed-jumping', 'bicycle-repair',
'big-fish-eats-small-fish', 'binoculars', 'bird',
'birthday-cake', 'blood', 'bone-fracture', 'books',
'boomerang', 'boot', 'brain-in-a-jar', 'brainwash',
'breaking-rule', 'breaking-the-glass-ceiling', 'bridge',
'buoy', 'button', 'caged', 'can-of-worms', 'car-light',
'cat', 'cellist', 'cell-phone', 'cheese', 'cherries',
'clock', 'coffee', 'comforting', 'computer', 'conductor',
'conference-call', 'cook', 'cooperation', 'cow',
'crank-radio', 'crash-test-dummy', 'crowd', 'cruise-ship',
'crystal-ball', 'customer-satisfaction', 'customer-support',
'cyborg', 'data-transfer', 'dice', 'dirigible',
'dirty-hands', 'disco', 'disguise', 'distracted', 'diver',
'diversity', 'dj', 'document', 'dog', 'dolphin',
'domino-effect', 'donkey', 'doorbell', 'drink-from-tap',
'drone', 'drummer', 'earthquake', 'edit', 'ejection-seat',
'elbow-pain', 'elderly', 'electric-bike',
'electric-scooter', 'elephant', 'embrace', 'ev-charger',
'falling', 'falling-objects', 'falling-piano-missed', 'fan',
'farmer', 'firework-display', 'first-aid', 'fisher',
'fist-bump', 'flight-attendant', 'follower', 'frog',
'fruit-picking', 'gas-mask', 'gift', 'give-and-receive',
'google-glass', 'government', 'graduate', 'haircut',
'hammer', 'hard-hat-worker', 'head-in-the-clouds', 'hello',
'help-mechanic', 'help-spanner', 'help-water',
'hetero-couple', 'high-five', 'hiker-female',
'honey-bee-nest', 'horse-and-cart', 'hospital', 'hoverboard',
'hunger', 'hydrant', 'idea-exchange',
'immersive-experience', 'information', 'intercom',
'intergalactic-couple', 'justice', 'kettle',
'key-to-happiness', 'king', 'knee-pain', 'laptop',
'leapfrog', 'liberating', 'lifting', 'lightness', 'luggage',
'mail-truck', 'marriage', 'measuring', 'medical-helicopter',
'meditation', 'metal-detector', 'microphone', 'microscope',
'mind-blowing', 'mirror', 'miss', 'mobile-phone',
'mood-gauge', 'mothering', 'motorized-wheelchair',
'moving-truck', 'muffin', 'musicians', 'navigation-app',
'notepad', 'okay', 'onewheel', 'open-minded', 'orange',
'paint-palette', 'parenthood', 'peace-dove', 'periscope',
'person-female', 'person-male', 'pets', 'pianist', 'pie',
'pipe', 'planting-tree', 'power', 'presentation', 'prodding',
'prosthetic-arm', 'prosthetic-leg', 'qr-code', 'radio',
'reading-book', 'reading-screen', 'recumbent-bicycle',
'reminder', 'remote-access', 'remote-control',
'renewable-energy', 'responsive-design', 'rice-bowl',
'robot', 'rocket', 'romeo-and-juliet', 'safe',
'sea-level-rise', 'seedling', 'segway', 'shelter', 'shower',
'sick', 'skull-and-crossbones', 'sliders', 'slingshot',
'slipping', 'smart-speaker', 'smartwatch', 'soccer-ball',
'solar-panel', 'speed-bump', 'springboard', 'statue',
'stature', 'strategizing', 'strategy',
'strategy-presentation', 'strawberry', 'street-vendor',
'stroller', 'submarine', 'superhero', 'surgical-mask',
'tablet', 'target', 'taxi', 'telephone', 'telescope',
'test-tube', 'thinking', 'thumbs-down', 'thumbs-up',
'tools-hammer', 'train-stop', 'traveler-backpacker', 'truck',
'tug-of-war', 'turn-around-car', 'turn-around-plane', 'ufo',
'umbrella', 'unicycle', 'unsustainable', 'uphill-climb',
'van', 'video-camera', 'vote-casting', 'voting-machine',
'waiter', 'walking-aid', 'water-filter', 'water-temperature',
'weight-lifting', 'wetland', 'wheelchair-aide',
'wheelchair-racer', 'whole', 'wifi-bus', 'wifi-connected',
'windmill-offshore', 'winner', 'womens-empowerment', 'world',
'writing', 'zipline', 'zoom', 'wildfire', 'gears', 'lips',
'service-truck', 'shipwreck'
];
const colors = [
'#FFD700', '#C9B037', '#FFA500', '#FF8C00', '#FF5722', '#9CCC65',
'#66BB6A', '#4DD0E1', '#42A5F5', '#1976D2', '#283593', '#BA68C8',
'#EC407A', '#D81B60'
];
const faces = ['front', 'right', 'back', 'left', 'top', 'bottom'];
function pickRandom(arr) {
return arr[Math.floor(Math.random() * arr.length)];
}
function shuffle(array) {
const arr = [...array];
for (let i = arr.length - 1; i > 0; i--) {
const j = Math.floor(Math.random() * (i + 1));
[arr[i], arr[j]] = [arr[j], arr[i]];
}
return arr;
}
function assignCubeColors(cubeEl) {
const shuffledColors = shuffle(colors);
faces.forEach((face, i) => {
const faceEl = cubeEl.querySelector(`.cube__face--${face}`);
if (faceEl) {
faceEl.style.backgroundColor = shuffledColors[i];
}
});
}
function rotateCube(cubeEl, currentFace, isLetterCube) {
const newFace = pickRandom(faces.filter(f => f !== currentFace));
if (!isLetterCube) {
const faceEl = cubeEl.querySelector(`.cube__face--${newFace}`);
const useEl = faceEl.querySelector('use');
if (useEl) {
const newIcon = pickRandom(iconIds);
useEl.setAttribute('href', `#${newIcon}`);
}
}
const baseClass = isLetterCube ? 'cube letter-cube' : 'cube';
cubeEl.className = `${baseClass} show-${newFace}`;
return newFace;
}
fetch('icons/icons-sprite.svg')
.then(r => r.text())
.then(svg => {
const div = document.createElement('div');
div.innerHTML = svg;
document.body.insertBefore(div.firstElementChild, document.body.firstChild);
const letterCubes = [];
const iconCubes = [];
document.querySelectorAll('.cube').forEach((cubeEl) => {
assignCubeColors(cubeEl);
const randomFace = pickRandom(faces);
const isLetterCube = cubeEl.classList.contains('letter-cube');
const baseClass = isLetterCube ? 'cube letter-cube' : 'cube';
cubeEl.className = `${baseClass} show-${randomFace}`;
const cubeData = { el: cubeEl, currentFace: randomFace, isLetterCube };
if (isLetterCube) {
letterCubes.push(cubeData);
} else {
iconCubes.push(cubeData);
}
});
const prefersReducedMotion = window.matchMedia('(prefers-reduced-motion: reduce)').matches;
if (!prefersReducedMotion) {
function isVisible(cubeData) {
return cubeData.el.offsetParent !== null;
}
function getColumnIndex(cubeData) {
const rect = cubeData.el.parentElement.getBoundingClientRect();
return Math.round(rect.left);
}
function pickDifferentColumns() {
const visibleLetters = letterCubes.filter(isVisible);
const visibleIcons = iconCubes.filter(isVisible);
if (visibleLetters.length === 0 || visibleIcons.length === 0) {
return null;
}
const letterCube = pickRandom(visibleLetters);
const letterCol = getColumnIndex(letterCube);
const differentColumnIcons = visibleIcons.filter(ic => {
return Math.abs(getColumnIndex(ic) - letterCol) > 10;
});
const iconCube = differentColumnIcons.length > 0
? pickRandom(differentColumnIcons)
: pickRandom(visibleIcons);
return [letterCube, iconCube];
}
setInterval(() => {
requestAnimationFrame(() => {
const result = pickDifferentColumns();
if (!result) return;
const [letterCube, iconCube] = result;
// Queue rotations using the same queuing system as hover
const queueCubeRotation = (cube, isLetter) => {
const state = cubeStates.get(cube.el) || { isAnimating: false, isQueued: false };
cubeStates.set(cube.el, state);
if (!state.isQueued) {
state.isQueued = true;
processCubeQueue(cube.el);
}
};
queueCubeRotation(letterCube, true);
queueCubeRotation(iconCube, false);
});
}, 1500);
}
});
</script>
</body>
</html>