-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
975 lines (888 loc) · 41.3 KB
/
index.html
File metadata and controls
975 lines (888 loc) · 41.3 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
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Open-Simples</title>
<!-- Open Graph / Facebook -->
<meta property="og:type" content="website">
<meta property="og:url" content="https://open-simples.github.io/">
<meta property="og:title" content="Open-Simples: Building Blocks for Creative Tech">
<meta property="og:description" content="An open-source library of building blocks for makers and creative technologists">
<meta property="og:image" content="og.png">
<meta property="og:site_name" content="Open-Simples">
<!-- Twitter -->
<meta property="twitter:card" content="summary_large_image">
<meta property="twitter:url" content="https://open-simples.github.io/">
<meta property="twitter:title" content="Open-Simples: Building Blocks for Creative Tech">
<meta property="twitter:description" content="An open-source library of building blocks for makers and creative technologists">
<meta property="twitter:image" content="og.png">
<link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Inter:wght@400;500;700&display=swap">
<style>
body {
font-family: 'Inter', sans-serif;
line-height: 1.5;
margin: 0;
background-color: #fff;
color: #222;
font-size: 1rem; /* 16px base */
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
}
header, main, footer > .footer-content {
max-width: 42rem;
margin-left: auto;
margin-right: auto;
background-color: transparent; /* Ensure main/header bg is transparent */
}
header {
padding: 2rem; /* Vertical padding only */
/* max-width, horizontal margins/padding moved to combined rule */
}
main {
padding-top: 0.1rem; /* Prevent margin collapse with h2 */
padding-bottom: 2rem;
/* max-width, horizontal margins/padding moved to combined rule */
}
main h2 {
/* Remove horizontal margin */
text-align: left;
padding: 2.5rem 0 1rem 0;
/* Keep top/bottom margin and border */
}
#tag-filters {
/* Remove horizontal margin */
padding: 0 0 1.5rem 0;
/* Keep bottom margin and border */
}
footer {
/* Full width background */
background-color: #f4f4f4;
padding: 2rem; /* Vertical padding on outer container */
/* Remove max-width, horizontal margins/padding */
border-top: 1px solid #eee; /* Keep top border */
color: #555;
text-align: left;
font-size: 0.875rem;
}
footer > .footer-content {
/* max-width, margin auto, horizontal padding handled by combined rule */
/* Inherits text styles from footer */
}
footer p {
/* Remove rule setting padding on footer element itself */
font-size: 0.875rem; /* 14px */
line-height: 1.5;
}
h1 {
font-size: 2.25rem; /* ~36px */
margin-bottom: 0.5rem;
font-weight: 700;
color: #111;
}
h2 {
font-size: 1.75rem; /* ~28px */
color: #333;
margin-top: 2.5rem; /* More space above section titles */
margin-bottom: 1rem;
font-weight: 700;
border-bottom: 1px solid #eee; /* Subtle underline for section titles */
padding-bottom: 0.5rem;
}
h3 {
font-size: 1.25rem; /* 20px */
font-weight: 700;
color: #111;
margin-bottom: 0.25rem;
}
h4 {
font-size: 1rem; /* 16px */
font-weight: 700;
color: #333;
margin-bottom: 0.5rem;
}
p {
margin-bottom: 1rem;
}
.header-buttons {
display: flex;
align-items: center;
gap: 0.75rem; /* 12px */
margin-top: 1rem; /* Add some space above buttons */
}
.github-button {
display: inline-flex; /* Align icon and text */
align-items: center;
gap: 0.5rem; /* Space between icon and text */
background-color: #161b22; /* GitHub dark color */
color: #fff;
padding: 0.4rem 0.8rem; /* Adjust padding for size */
border-radius: 6px; /* Match sponsor button radius */
font-size: 0.875rem; /* 14px */
font-weight: 500;
line-height: 1.3; /* Ensure consistent height */
text-decoration: none;
transition: background-color 0.2s ease;
}
.github-button:hover {
background-color: #30363d !important; /* Ensure its specific hover is prioritized */
color: #fff !important;
text-decoration: none !important;
}
.github-button svg {
vertical-align: middle; /* Helps alignment */
/* fill is set to currentColor, which is white */
}
/* --- General Link Styling --- */
a {
color: #007aff; /* Blue link color like rsms.me */
text-decoration: none; /* No underline by default */
/* Add properties for hover effect */
padding: 0.1em 0.3em; /* Small padding for background */
margin: -0.1em -0.3em; /* Counteract padding for layout */
border-radius: 4px; /* Rounded corners for background */
background-color: transparent;
transition: background-color 0.15s ease-out, color 0.15s ease-out;
}
a:hover {
background-color: #e6f2ff; /* Light blue background on hover */
color: #0056b3; /* Darker blue text on hover */
text-decoration: none; /* Ensure no underline on hover */
}
/* --- Repo Card Link Exception --- */
.repo-card h3 a {
/* Reset general link styles */
color: #111; /* Repo title color */
padding: 0;
margin: 0;
border-radius: 0;
background-color: transparent;
}
.repo-card h3 a:hover {
color: #007aff; /* Original hover color */
background-color: transparent; /* Ensure no background on hover */
text-decoration: none; /* Or underline if preferred */
}
/* --- Tag Filter & Other Button Styling (Ensure they don't get link hover) --- */
#tag-filters {
padding-left: 2rem;
padding-right: 2rem;
}
#tag-filters button:hover,
#tag-filters button.clear-button:hover {
/* These already have specific hover styles, ensure they are kept */
/* If needed, add background-color: *specific value* !important; */
}
#tag-filters button {
margin: 0 0.5rem 0.5rem 0; /* spacing */
padding: 0.375rem 0.75rem; /* 6px 12px */
border: 1px solid #ddd;
background-color: #fff;
color: #333;
border-radius: 0.25rem; /* 4px, subtle rounding */
cursor: pointer;
transition: background-color 0.2s ease, border-color 0.2s ease;
font-size: 0.875rem; /* 14px */
font-family: 'Inter', sans-serif;
}
#tag-filters button:hover {
background-color: #f0f0f0;
border-color: #ccc;
color: #000;
}
#tag-filters button.active {
background-color: #007aff;
color: white;
border-color: #007aff;
}
#tag-filters button.clear-button {
background: none;
color: #007aff; /* Match link color */
padding: 0;
margin-left: 0.5rem;
text-decoration: underline;
border: none;
font-size: 0.875rem; /* 14px */
font-weight: 400;
}
#tag-filters button.clear-button:hover {
background: none;
font-weight: 400;
color: #0056b3; /* Darker blue on hover */
text-decoration: underline;
}
#repos-container {
display: grid;
grid-template-columns: 1fr; /* Single column for a cleaner list */
gap: 1rem; /* 24px */
margin-top: 0;
padding-left: 1rem;
padding-right: 1rem;
}
.repo-card {
border: none;
margin: 0 1rem 2rem 1rem; /* Add bottom margin for spacing */
background-color: transparent;
transition: background-color 0.3s ease; /* Keep hover transition */
overflow: visible;
border-radius: 1rem; /* 8px */
}
.repo-card h3 {
margin-top: 0;
font-size: 1.125rem; /* 18px */
margin-bottom: 0.25rem;
}
.repo-card h3 a {
color: #111; /* Repo title color */
}
.repo-card h3 a:hover {
color: #007aff;
}
.repo-card p {
font-size: 1rem;
margin-bottom: 0.5rem;
color: #444; /* Slightly lighter than body text */
line-height: 1.6;
}
.repo-tags, .repo-stats {
font-size: 0.8125rem; /* 13px */
color: #666;
margin-bottom: 0.5rem;
}
.repo-tags span, .repo-stats span {
display: inline-block;
background-color: transparent;
color: #666;
padding: 0;
margin-right: 0.75rem; /* Space between tags/stats */
border-radius: 0;
}
.repo-tags span:not(:last-child):after {
content: '·';
margin-left: 0.75rem;
color: #ccc;
}
.repo-stats span:not(:last-child):after {
content: '·';
margin-left: 0.75rem;
color: #ccc;
}
/* --- Footer Contact Button --- */
#copy-email-button {
background: none;
border: none;
padding: 0.1em 0.3em; /* Match link padding */
margin: 0; /* Adjust if needed, maybe match link negative margin */
color: #007aff; /* Match link color */
/* text-decoration: underline; Remove underline */
text-decoration: none;
cursor: pointer;
font-family: inherit;
font-size: inherit;
font-weight: 400; /* Match regular text */
line-height: inherit;
display: inline; /* Flow with text */
border-radius: 4px; /* Match link border-radius */
transition: background-color 0.15s ease-out, color 0.15s ease-out; /* Match link transition */
}
#copy-email-button:hover {
/* Apply the same hover effect as general links */
background-color: #e6f2ff; /* Light blue background on hover */
color: #0056b3; /* Darker blue text on hover */
text-decoration: none; /* Ensure no underline on hover */
}
/* --- Vibe Coding Text Hover --- */
#vibe-coding-trigger {
cursor: default; /* Or 'help' */
/* Remove styling properties related to background hover */
/* padding: 0.1em 0.3em; */
/* margin: -0.1em -0.3em; */
/* border-radius: 4px; */
/* background-color: transparent; */
/* transition: background-color 0.15s ease-out, color 0.15s ease-out; */
/* Optional: Indicate interactability */
border-bottom: 1px dashed #ccc; /* Keep dashed underline */
}
#vibe-coding-trigger:hover {
/* Remove background and color change */
/* background-color: #e6f2ff; */
/* color: #0056b3; */
/* Hover state now only triggers JS text swap */
}
/* Mobile-specific styling for vibe-coding-trigger */
@media (max-width: 42rem) {
#vibe-coding-trigger {
cursor: pointer;
position: relative;
}
}
/* -------------------------- */
/* --- Revealing Word Span Styling --- */
.revealing-word {
opacity: 0;
filter: blur(4px);
transition: opacity 0.4s ease-out, filter 0.3s ease-out;
display: inline-block; /* Needed for filter/transform transitions */
vertical-align: bottom; /* Align baseline */
}
.revealing-word.word-visible {
opacity: 1;
filter: blur(0px);
}
/* --- Contributors Section Styling --- */
.content-section {
/* Use the same max-width and centering as header/main */
max-width: 42rem;
margin-left: auto;
margin-right: auto;
padding-left: 2rem;
padding-right: 2rem;
margin-bottom: 2rem; /* Space before footer */
}
.content-section h2 {
/* Style like other h2 headings */
font-size: 1.75rem;
color: #333;
margin-top: 2.5rem;
margin-bottom: 1rem;
font-weight: 700;
border-bottom: 1px solid #eee;
padding-bottom: 0.5rem;
}
.contributors-list {
font-size: 0.9375rem; /* 15px */
color: #444;
line-height: 1.6;
}
.contributors-list a {
/* Override general link color */
color: inherit;
/* Keep general link padding/margin/radius/transition for hover effect */
padding: 0.1em 0.3em;
margin: -0.1em -0.3em;
border-radius: 4px;
background-color: transparent;
transition: background-color 0.15s ease-out, color 0.15s ease-out;
text-decoration: none; /* Ensure no underline */
margin-right: 0.25em; /* Spacing for dot */
margin-left: 0.25em; /* Spacing for dot */
}
.contributors-list a:hover {
color: inherit; /* Ensure text color doesn't change */
background-color: #f0f0f0; /* Light grey background */
text-decoration: none; /* Ensure no underline */
}
.contributors-list a:first-child {
margin-left: 0;
}
/* --------------------------------- */
/* --- Logo Carousel Styling --- */
.logo-carousel-container {
width: 100%;
overflow: hidden;
margin-top: 1.5rem; /* Space below the h2 of this section */
}
.logo-carousel-track {
display: flex;
/* CSS animation removed, JS will handle it */
}
.logo-carousel-track img {
height: 80px; /* Adjust default logo height as needed */
width: auto; /* Maintain aspect ratio */
margin: 0; /* Ensures 0px gap between image elements */
padding: 0; /* Ensures 0px padding around image content */
flex-shrink: 0; /* Prevent logos from shrinking */
}
/* CSS animation keyframes removed */
/* --- End Logo Carousel Styling --- */
.logo-carousel-title {
font-size: 1rem; /* Smaller than default h2, e.g., 18px */
color: #666; /* Grey color */
text-align: center;
border-bottom: none; /* Remove underline from default h2 style */
margin-top: 2rem; /* Adjust top margin as needed */
margin-bottom: 1rem; /* Space before the carousel */
font-weight: 500; /* Lighter than default h2 */
padding-bottom: 0; /* Remove padding from default h2 style */
}
/* --- Footer Disclaimer Styling --- */
.disclaimer {
font-size: 0.75rem; /* Smaller text */
color: #777; /* Lighter grey color */
margin-top: 1rem; /* Space above disclaimer */
line-height: 1.4; /* Adjust line height for smaller font */
}
/* Mobile Breakpoint */
@media (max-width: 42rem) {
header, main, footer > .footer-content {
padding-left: 2rem;
padding-right: 2rem;
}
footer > .footer-content {
padding-left: 0;
padding-right: 0;
}
main h2 {
padding: 1.5rem 0 0.75rem 0;
}
#tag-filters {
padding-left: 0;
padding-right: 0;
}
#repos-container {
padding-left: 0;
padding-right: 0;
}
.repo-card {
margin: 0 0.0 1.5rem 0;
}
.content-section {
padding-left: 2rem;
padding-right: 2rem;
}
}
</style>
</head>
<body>
<header>
<h1>Open-Simples</h1>
<p>Open-Simples (OS) is an open-source library of building blocks for students, hobbyists, artists and creative technologists,
simplifying the technical backbone of the project.</p>
<p id="vibe-coding-paragraph">
<span id="vibe-coding-trigger"
data-original-text="OS can be also used for 'vibe' coding."
data-hover-text=" Debugging complex setups (like web + Arduino) in 'vibe coding' can be tricky. OS provides simple, tested building blocks, making it easier to use AI effectively and ensure your project works.">
OS can be also used for 'vibe' coding.
</span>
</p>
<p>
OS began during <a href="https://github.com/chanulee" target="_blank" rel="noopener noreferrer">Chanwoo</a>'s masters studies at the <a href="https://www.imperial.ac.uk/design-engineering/" target="_blank" rel="noopener noreferrer">Imperial College London</a> and <a href="https://www.rca.ac.uk/" target="_blank" rel="noopener noreferrer">Royal College of Art</a>.
</p>
<div class="header-buttons">
<a href="https://github.com/open-simples" target="_blank" rel="noopener noreferrer" class="github-button">
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 496 512" width="16" height="16" fill="currentColor"><!--!Font Awesome Free 6.7.2 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free Copyright 2025 Fonticons, Inc.--><path d="M165.9 397.4c0 2-2.3 3.6-5.2 3.6-3.3 .3-5.6-1.3-5.6-3.6 0-2 2.3-3.6 5.2-3.6 3-.3 5.6 1.3 5.6 3.6zm-31.1-4.5c-.7 2 1.3 4.3 4.3 4.9 2.6 1 5.6 0 6.2-2s-1.3-4.3-4.3-5.2c-2.6-.7-5.5 .3-6.2 2.3zm44.2-1.7c-2.9 .7-4.9 2.6-4.6 4.9 .3 2 2.9 3.3 5.9 2.6 2.9-.7 4.9-2.6 4.6-4.6-.3-1.9-3-3.2-5.9-2.9zM244.8 8C106.1 8 0 113.3 0 252c0 110.9 69.8 205.8 169.5 239.2 12.8 2.3 17.3-5.6 17.3-12.1 0-6.2-.3-40.4-.3-61.4 0 0-70 15-84.7-29.8 0 0-11.4-29.1-27.8-36.6 0 0-22.9-15.7 1.6-15.4 0 0 24.9 2 38.6 25.8 21.9 38.6 58.6 27.5 72.9 20.9 2.3-16 8.8-27.1 16-33.7-55.9-6.2-112.3-14.3-112.3-110.5 0-27.5 7.6-41.3 23.6-58.9-2.6-6.5-11.1-33.3 2.6-67.9 20.9-6.5 69 27 69 27 20-5.6 41.5-8.5 62.8-8.5s42.8 2.9 62.8 8.5c0 0 48.1-33.6 69-27 13.7 34.7 5.2 61.4 2.6 67.9 16 17.7 25.8 31.5 25.8 58.9 0 96.5-58.9 104.2-114.8 110.5 9.2 7.9 17 22.9 17 46.4 0 33.7-.3 75.4-.3 83.6 0 6.5 4.6 14.4 17.3 12.1C428.2 457.8 496 362.9 496 252 496 113.3 383.5 8 244.8 8zM97.2 352.9c-1.3 1-1 3.3 .7 5.2 1.6 1.6 3.9 2.3 5.2 1 1.3-1 1-3.3-.7-5.2-1.6-1.6-3.9-2.3-5.2-1zm-10.8-8.1c-.7 1.3 .3 2.9 2.3 3.9 1.6 1 3.6 .7 4.3-.7 .7-1.3-.3-2.9-2.3-3.9-2-.6-3.6-.3-4.3 .7zm32.4 35.6c-1.6 1.3-1 4.3 1.3 6.2 2.3 2.3 5.2 2.6 6.5 1 1.3-1.3 .7-4.3-1.3-6.2-2.2-2.3-5.2-2.6-6.5-1zm-11.4-14.7c-1.6 1-1.6 3.6 0 5.9 1.6 2.3 4.3 3.3 5.6 2.3 1.6-1.3 1.6-3.9 0-6.2-1.4-2.3-4-3.3-5.6-2z"/></svg>
<span>GitHub</span>
</a>
<iframe src="https://github.com/sponsors/chanulee/button" title="Sponsor Open-Simples" height="32" width="114" style="border: 0; border-radius: 6px;"></iframe>
</div>
</header>
<main>
<div class="logo-carousel-container">
<h2 class="logo-carousel-title">Made & Used by people at</h2>
<div class="logo-carousel-track">
<!-- First set of logos - Replace with your actual SVG paths -->
<img src="logos/logo1.svg" alt="Company 1 Logo">
<img src="logos/logo2.svg" alt="Company 2 Logo">
<img src="logos/logo3.svg" alt="Company 3 Logo">
<img src="logos/logo4.svg" alt="Company 4 Logo">
<img src="logos/logo5.svg" alt="Company 5 Logo">
<img src="logos/logo6.svg" alt="Company 6 Logo">
<!-- Second set of logos (for seamless loop) - Replace with your actual SVG paths -->
<img src="logos/logo1.svg" alt="Company 1 Logo">
<img src="logos/logo2.svg" alt="Company 2 Logo">
<img src="logos/logo3.svg" alt="Company 3 Logo">
<img src="logos/logo4.svg" alt="Company 4 Logo">
<img src="logos/logo5.svg" alt="Company 5 Logo">
<img src="logos/logo6.svg" alt="Company 6 Logo">
</div>
</div>
<h2>Repos</h2>
<div id="tag-filters">
<!-- Tag filters will be generated here -->
</div>
<div id="repos-container">
<!-- Repository cards will be generated here -->
</div>
<a href="https://github.com/orgs/open-simples/projects/1" target="_blank" rel="noopener noreferrer" class="github-button">
<span>Add your project</span>
</a>
</main>
<section id="contributors" class="content-section">
<h2>Contributors</h2>
<p class="contributors-list">
<!-- CONTRIBUTORS START -->
<a href="https://github.com/chanulee" target="_blank" rel="noopener noreferrer">chanulee</a> · <a href="https://github.com/elonWrong" target="_blank" rel="noopener noreferrer">elonWrong</a>
<!-- CONTRIBUTORS END -->
</p>
</section>
<footer>
<div class="footer-content">
<div>
<h4>Contact</h4>
<p>
Feel free to reach out to say hi, grab a virtual coffee, or discuss ideas:<br>
<button id="copy-email-button" type="button" data-email="chanwoo.lee@imperial.ac.uk">chanwoo.lee@imperial.ac.uk (Copy)</button> ·
<a href="https://github.com/chanulee" target="_blank" rel="noopener noreferrer">GitHub</a> ·
<a href="https://x.com/chnwlee" target="_blank" rel="noopener noreferrer">X (Twitter)</a> ·
<a href="https://instagram.com/chnwlee" target="_blank" rel="noopener noreferrer">Instagram</a>
</p>
</div>
<p>© 2024 Open-Simples</p>
<p class="disclaimer">
This site showcases personal, open-source projects provided 'as is'—explore and enjoy, but check the specific licenses before using! The contributors list is automatically updated daily via GitHub Actions.
</p>
</div>
</footer>
<script>
const reposContainer = document.getElementById('repos-container');
const tagFiltersContainer = document.getElementById('tag-filters');
const GITHUB_USER = 'open-simples';
let allReposData = []; // To store fetched repo data
let allTags = new Set(); // To store all unique tags
let activeTags = new Set(); // To store currently selected tags
// --- Add-on Repos from personal account ---
const addonRepos = [
{ user: 'chanulee', repo: 'coreOllama' },
{ user: 'chanulee', repo: 'VisionOSC' },
{ user: 'chanulee', repo: 'simpleThesis-typst' },
// Add more { user: 'username', repo: 'reponame' } objects here
];
// -----------------------------------------
// --- Repos to Hide ---
const hiddenRepos = [
{ user: 'open-simples', repo: '.github' },
{ user: 'open-simples', repo: 'open-simples.github.io' },
// Add more { user: 'username', repo: 'reponame' } objects here
];
// ----------------------
async function fetchRepos() {
reposContainer.innerHTML = '<p>Loading repositories...</p>'; // Add loading indicator
tagFiltersContainer.innerHTML = ''; // Clear filters while loading
try {
// Fetch repos from open-simples organization
const orgReposPromise = fetch(`https://api.github.com/users/${GITHUB_USER}/repos?sort=updated&per_page=100`)
.then(response => {
if (!response.ok) {
throw new Error(`GitHub API error (org): ${response.status}`);
}
return response.json();
});
// Fetch specific add-on repos
const addonRepoPromises = addonRepos.map(info =>
fetch(`https://api.github.com/repos/${info.user}/${info.repo}`)
.then(response => {
if (!response.ok) {
// Don't throw, just log and return null so Promise.all doesn't fail completely
console.warn(`GitHub API error (repo ${info.user}/${info.repo}): ${response.status}`);
return null;
}
return response.json();
})
);
// Wait for all fetches to complete
const [orgRepos, specificReposRaw] = await Promise.all([
orgReposPromise,
Promise.all(addonRepoPromises)
]);
// Filter out any null results from failed add-on fetches
const specificRepos = specificReposRaw.filter(repo => repo !== null);
// Combine repos
const combinedRepos = [...orgRepos, ...specificRepos];
// Filter out hidden repos
const filteredRepos = combinedRepos.filter(repo => {
// Check if the repo matches any entry in hiddenRepos
return !hiddenRepos.some(hidden =>
repo.owner.login.toLowerCase() === hidden.user.toLowerCase() &&
repo.name.toLowerCase() === hidden.repo.toLowerCase()
);
});
// Remove potential duplicates from the filtered list
const uniqueRepoIds = new Set();
const uniqueFilteredRepos = filteredRepos.filter(repo => {
if (!uniqueRepoIds.has(repo.id)) {
uniqueRepoIds.add(repo.id);
return true;
}
return false;
});
// Set the final data and sort
allReposData = uniqueFilteredRepos;
allReposData.sort((a, b) => new Date(b.updated_at) - new Date(a.updated_at));
displayRepos(allReposData);
generateTagFilters(); // Filters generated based on the final combined list
} catch (error) {
console.error('Error fetching repos:', error);
reposContainer.innerHTML = '<p>Failed to load repositories. Check the console for details.</p>';
}
}
function displayRepos(repos) {
reposContainer.innerHTML = ''; // Clear existing content
if (repos.length === 0) {
reposContainer.innerHTML = '<p>No repositories found or filtered out.</p>';
return;
}
repos.forEach(repo => {
const card = document.createElement('div');
card.className = 'repo-card';
// Store tags in a data attribute for filtering
card.dataset.tags = JSON.stringify(repo.topics || []);
// Add repo details to card
card.innerHTML = `
<h3><a href="${repo.html_url}" target="_blank" rel="noopener noreferrer">${repo.name}</a></h3>
<p>${repo.description || 'No description provided.'}</p>
<div class="repo-tags">
${(repo.topics || []).map(tag => `<span>${tag}</span>`).join('')}
</div>
<div class="repo-stats">
<span>⭐ ${repo.stargazers_count}</span>
<span> Forks: ${repo.forks_count}</span>
</div>
`;
reposContainer.appendChild(card);
// Collect all tags
(repo.topics || []).forEach(tag => allTags.add(tag));
});
}
function generateTagFilters() {
allTags.clear(); // Ensure tags are recalculated if fetchRepos is called again
allReposData.forEach(repo => {
(repo.topics || []).forEach(tag => allTags.add(tag));
});
tagFiltersContainer.innerHTML = ''; // Clear existing filters
// Add button for each tag
Array.from(allTags).sort().forEach(tag => { // Sort tags alphabetically
const button = document.createElement('button');
button.textContent = tag;
button.dataset.tag = tag; // Store tag in data attribute
button.onclick = () => toggleTag(tag);
tagFiltersContainer.appendChild(button);
});
// Add 'Clear All' button AFTER tags
const clearButton = document.createElement('button');
clearButton.textContent = 'Clear All';
clearButton.classList.add('clear-button'); // Add specific class
clearButton.onclick = () => {
activeTags.clear();
updateRepoDisplayAndFilters();
};
tagFiltersContainer.appendChild(clearButton);
updateFilterButtonsState(); // Set initial state
}
function toggleTag(tag) {
if (activeTags.has(tag)) {
activeTags.delete(tag);
} else {
activeTags.add(tag);
}
updateRepoDisplayAndFilters();
}
function updateRepoDisplayAndFilters() {
const filteredRepos = activeTags.size === 0
? allReposData // Show all if no tags are active
: allReposData.filter(repo => {
const repoTags = repo.topics || [];
// Show repo if it includes at least one of the active tags
return Array.from(activeTags).some(activeTag => repoTags.includes(activeTag));
});
displayRepos(filteredRepos); // Display the filtered repos
updateFilterButtonsState(); // Update button appearance
}
function updateFilterButtonsState() {
const buttons = tagFiltersContainer.querySelectorAll('button[data-tag]');
buttons.forEach(button => {
if (activeTags.has(button.dataset.tag)) {
button.classList.add('active');
} else {
button.classList.remove('active');
}
});
}
// Fetch repos when the page loads
document.addEventListener('DOMContentLoaded', fetchRepos);
// --- Email Copy Button Functionality ---
const emailButton = document.getElementById('copy-email-button');
if (emailButton) {
const originalText = emailButton.textContent; // Read the initial text from the button itself
const emailToCopy = emailButton.dataset.email;
emailButton.addEventListener('click', () => {
if (!navigator.clipboard) {
// Clipboard API not available (e.g., insecure context)
alert('Clipboard functionality not available.');
return;
}
navigator.clipboard.writeText(emailToCopy).then(() => {
// Success!
emailButton.textContent = 'email copied!'; // Change text on success
emailButton.disabled = true; // Briefly disable to prevent spamming
// Revert back after a short delay
setTimeout(() => {
emailButton.textContent = originalText; // Revert to the initial text
emailButton.disabled = false;
}, 1500); // 1.5 seconds
}).catch(err => {
// Error
console.error('Failed to copy email: ', err);
alert('Failed to copy email.');
});
});
}
// --- Vibe Coding Text Hover/Touch Functionality ---
const vibeParagraph = document.getElementById('vibe-coding-paragraph');
const vibeSpan = document.getElementById('vibe-coding-trigger'); // The container span
let intervalId = null;
const wordRevealSpeed = 100; // Milliseconds between STARTING each word reveal
let isMobile = window.matchMedia('(max-width: 42rem)').matches;
if (vibeParagraph && vibeSpan) {
const originalText = vibeSpan.dataset.originalText;
const hoverText = vibeSpan.dataset.hoverText.trim();
const words = hoverText.split(/\s+/);
// Store the original content (might just be text) to reset easily
vibeSpan.dataset.originalContent = vibeSpan.innerHTML;
function startAnimation() {
if (intervalId) {
clearInterval(intervalId);
intervalId = null;
}
// Reset to only the original text
vibeSpan.textContent = originalText;
let wordIndex = 0;
if (words.length > 0 && words[0] !== '') {
// Add a space after the original text before appending words
vibeSpan.innerHTML += ' ';
intervalId = setInterval(() => {
if (wordIndex < words.length) {
// Create a span for the word
const wordSpan = document.createElement('span');
wordSpan.textContent = words[wordIndex]; // Just the word now
wordSpan.classList.add('revealing-word');
// Append a space text node first
vibeSpan.appendChild(document.createTextNode(' '));
// Then append the hidden word span
vibeSpan.appendChild(wordSpan);
// Trigger the transition shortly after appending
requestAnimationFrame(() => {
requestAnimationFrame(() => { // Double RAF for robustness
wordSpan.classList.add('word-visible');
});
});
wordIndex++;
} else {
clearInterval(intervalId);
intervalId = null;
}
}, wordRevealSpeed);
}
}
function resetAnimation() {
if (intervalId) {
clearInterval(intervalId);
intervalId = null;
}
// Restore original content using the stored value
vibeSpan.innerHTML = vibeSpan.dataset.originalContent;
}
// Handle hover events for desktop
if (!isMobile) {
vibeParagraph.addEventListener('mouseenter', startAnimation);
vibeParagraph.addEventListener('mouseleave', resetAnimation);
}
// Handle touch/click events for mobile
vibeParagraph.addEventListener('click', (e) => {
if (isMobile) {
e.preventDefault();
if (intervalId) {
resetAnimation();
} else {
startAnimation();
}
}
});
// Update mobile state on resize
window.addEventListener('resize', () => {
isMobile = window.matchMedia('(max-width: 42rem)').matches;
// Remove all event listeners
vibeParagraph.removeEventListener('mouseenter', startAnimation);
vibeParagraph.removeEventListener('mouseleave', resetAnimation);
// Re-add appropriate event listeners based on new state
if (!isMobile) {
vibeParagraph.addEventListener('mouseenter', startAnimation);
vibeParagraph.addEventListener('mouseleave', resetAnimation);
}
});
}
// --- Logo Carousel JS Animation ---
document.addEventListener('DOMContentLoaded', () => {
const track = document.querySelector('.logo-carousel-track');
if (!track) {
console.warn("Logo carousel track not found.");
return;
}
const logos = Array.from(track.children);
if (logos.length === 0) {
console.warn("No logos found in carousel track.");
return;
}
// Ensure we have an even number for duplication, otherwise this logic won't work well.
// The HTML should already have duplicates.
const originalLogosCount = logos.length / 2;
let scrollAmount = 0;
const scrollSpeed = 0.5; // Pixels per frame. Adjust for speed.
let animationFrameId = null;
let scrollWidth = 0;
function calculateScrollWidth() {
let width = 0;
for (let i = 0; i < originalLogosCount; i++) {
if(logos[i]) width += logos[i].offsetWidth;
}
return width;
}
function startAnimationSequence() {
scrollWidth = calculateScrollWidth();
if (scrollWidth > 0 && !animationFrameId) {
animateLogos();
} else if (scrollWidth === 0) {
console.warn("Logo carousel scroll width is 0. Animation will not start until images load or have width.");
}
}
// Initial calculation and animation start attempt
// We need to make sure images (especially SVGs) are loaded to get correct offsetWidth
let imagesToLoad = logos.filter(logo => logo.tagName === 'IMG' && !logo.complete).length;
if (imagesToLoad === 0) { // All images already loaded (e.g. cached or not IMG tags)
startAnimationSequence();
} else {
logos.forEach(logo => {
if (logo.tagName === 'IMG' && !logo.complete) {
logo.onload = logo.onerror = () => {
imagesToLoad--;
if (imagesToLoad === 0) {
startAnimationSequence();
}
};
}
});
}
function animateLogos() {
if (scrollWidth <= 0) { // Safety check
animationFrameId = null; // Stop animation if width is invalid
return;
}
scrollAmount -= scrollSpeed;
// When the first set of logos has scrolled completely out of view
if (Math.abs(scrollAmount) >= scrollWidth) {
scrollAmount += scrollWidth; // Reset position
}
track.style.transform = `translateX(${scrollAmount}px)`
animationFrameId = requestAnimationFrame(animateLogos);
}
/* // Optional: Pause on hover - REMOVED
track.addEventListener(\'mouseenter\', () => {\n if (animationFrameId) {\n cancelAnimationFrame(animationFrameId);\n animationFrameId = null;\n }\n });\n
track.addEventListener(\'mouseleave\', () => {\n if (!animationFrameId && scrollWidth > 0) { // Only restart if not already running and width is valid\n animateLogos();\n }\n });
*/
let resizeTimeout;
window.addEventListener('resize', () => {
if (animationFrameId) {
cancelAnimationFrame(animationFrameId);
animationFrameId = null;
}
track.style.transform = `translateX(0px)`; // Reset visually before recalc
scrollAmount = 0;
clearTimeout(resizeTimeout);
resizeTimeout = setTimeout(() => {
startAnimationSequence(); // Recalculate and restart animation
}, 250); // Debounce resize handling
});
});
// --- End Logo Carousel JS Animation ---
</script>
</body>
</html>