-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathindex.html
More file actions
1222 lines (1139 loc) · 70.6 KB
/
index.html
File metadata and controls
1222 lines (1139 loc) · 70.6 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
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
<!DOCTYPE html>
<html lang="en">
<head>
<!-- Google tag (gtag.js) -->
<script async src="https://www.googletagmanager.com/gtag/js?id=G-G0P8TBKEQ7"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', 'G-G0P8TBKEQ7');
</script>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="description" content="Token-gated P2P, real-time translated on-chain communities">
<title>YOGM</title>
<link rel="stylesheet" href="css/main.css">
<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=Inter:wght@400;500;600;700&family=Press+Start+2P&family=Comic+Neue:wght@400;700&family=Fredoka:wght@400;600;700&family=Bangers&display=swap" rel="stylesheet">
<link rel="apple-touch-icon" sizes="180x180" href="img/favic/apple-touch-icon.png">
<link rel="icon" type="image/png" sizes="32x32" href="img/favic/favicon-32x32.png">
<link rel="icon" type="image/png" sizes="16x16" href="img/favic/favicon-16x16.png">
<link rel="manifest" href="img/favic/site.webmanifest">
</head>
<body>
<div id="app">
<!-- Login Screen -->
<div id="login-screen" class="screen active">
<div class="login-container">
<div class="ark-logo">
<div class="logo-icon">
<img src="/img/logo_main.svg" alt="YOGM" class="ark-symbol">
</div>
</div>
<div class="login-content">
<div class="network-selection">
<button id="login-sol-btn" class="network-btn sol-btn" title="Solana Wallet">
<img src="/img/chains/sol.svg" alt="Solana" class="network-icon">
</button>
</div>
<div class="terms-agreement" id="terms-agreement">
<label class="terms-checkbox-label">
<input type="checkbox" id="terms-checkbox" class="terms-checkbox">
<span class="terms-text">
I agree to the
<a href="#" id="terms-link" class="terms-link">Terms of Use</a>
</span>
</label>
</div>
<div id="login-status" class="login-status"></div>
</div>
<div class="login-footer">
<button id="manifesto-btn" class="login-footer-btn">
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.5" class="login-footer-icon">
<path d="M12 6.253v13m0-13C10.832 5.477 9.246 5 7.5 5S4.168 5.477 3 6.253v13C4.168 18.477 5.754 18 7.5 18s3.332.477 4.5 1.253m0-13C13.168 5.477 14.754 5 16.5 5c1.747 0 3.332.477 4.5 1.253v13C19.832 18.477 18.247 18 16.5 18c-1.746 0-3.332.477-4.5 1.253"/>
</svg>
<span>Manifesto</span>
</button>
<button id="gitbook-btn" class="login-footer-btn">
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.5" class="login-footer-icon">
<path d="M9 12h6m-6 4h6m2 5H7a2 2 0 01-2-2V5a2 2 0 012-2h5.586a1 1 0 01.707.293l5.414 5.414a1 1 0 01.293.707V19a2 2 0 01-2 2z"/>
</svg>
<span>Gitbook</span>
</button>
<a href="https://x.com/yogm_io" target="_blank" class="login-footer-btn" title="Follow @yogm_io on X">
<svg viewBox="0 0 24 24" fill="currentColor" class="login-footer-icon">
<path d="M18.244 2.25h3.308l-7.227 8.26 8.502 11.24h-6.514l-5.106-6.666-5.829 6.666h-3.328l7.73-8.835L.424 2.25h6.679l4.632 6.142L17.798 2.25h.446zM17.09 19.32h1.833L5.75 4.114H3.804l13.286 15.206z"/>
</svg>
<span>yogm_io</span>
</a>
<a href="https://invite.yogm.io/" target="_blank" class="login-footer-btn" title="Create Invite">
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.5" class="login-footer-icon">
<path d="M12 5v14M5 12h14"/>
</svg>
<span>Invite</span>
</a>
</div>
</div>
<div class="login-background">
<div class="bg-pattern"></div>
</div>
<div id="login-methods" class="login-methods" style="display: none;">
<div class="login-methods-card">
<div class="login-methods-actions">
<button id="confirm-evm-btn" class="login-method-btn">EVM Wallet</button>
<button id="confirm-sol-btn" class="login-method-btn">Solana Wallet</button>
</div>
<button id="login-back-btn" class="login-back-btn">Back</button>
</div>
</div>
</div>
<!-- Token Selection Screen -->
<div id="token-selection-screen" class="screen">
<div class="token-selection-container">
<div class="token-header">
<h1>Select Your Token</h1>
<p>Choose a token from your wallet to join its exclusive chat room</p>
</div>
<div id="token-selection-status" class="token-selection-status" style="display: none;" role="alert" aria-live="assertive"></div>
<!-- Discovery Progress -->
<div id="token-discovery-progress" style="display: none;" class="discovery-progress">
<div class="progress-content">
<p id="discovery-status">Scanning wallet for tokens...</p>
<div class="progress-bar">
<div id="discovery-progress-bar" class="progress-fill"></div>
</div>
<p id="discovery-percentage">0%</p>
</div>
</div>
<!-- Tokens List with Search -->
<div id="tokens-container" class="tokens-grid" style="display: none;">
<!-- Search Bar -->
<div class="tokens-toolbar">
<div class="search-box">
<svg class="search-icon" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">
<circle cx="11" cy="11" r="8"></circle>
<path d="m21 21-4.35-4.35"></path>
</svg>
<input id="token-search" type="text" class="search-input" placeholder="Search by name or symbol...">
<button id="clear-search-btn" class="clear-search-btn" style="display: none;" title="Clear search">
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">
<line x1="18" y1="6" x2="6" y2="18"></line>
<line x1="6" y1="6" x2="18" y2="18"></line>
</svg>
</button>
</div>
</div>
<!-- Tokens Scroll Area -->
<div class="tokens-scroll">
<div id="tokens-list"></div>
</div>
<!-- Actions -->
<div class="token-actions">
<button id="back-to-login-btn" class="btn-token-back" title="Back to login">
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">
<path d="M19 12H5M12 19l-7-7 7-7"/>
</svg>
</button>
<button id="refresh-tokens-btn" class="btn-refresh-large" title="Refresh token list">
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">
<path d="M21.5 2v6h-6M2.5 22v-6h6M2 11.5a10 10 0 0 1 18.8-4.3M22 12.5a10 10 0 0 1-18.8 4.2"/>
</svg>
</button>
</div>
</div>
<!-- No Tokens Message -->
<div id="no-tokens-message" style="display: none;" class="no-tokens-alert">
<h2>No Tokens Found on</h2>
<p id="no-tokens-address"></p>
<p id="no-tokens-network"></p>
</div>
<button id="no-tokens-back-btn" class="btn-token-back" style="display: none;" title="Back to login">
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">
<path d="M19 12H5M12 19l-7-7 7-7"/>
</svg>
</button>
<!-- Error Message -->
<div id="token-discovery-error" style="display: none;" class="error-alert">
<h2>Discovery Error</h2>
<p id="error-message"></p>
<button id="retry-discovery-btn" class="btn-primary">Retry</button>
</div>
</div>
</div>
<!-- Main Application -->
<div id="main-app" class="screen">
<header class="app-header">
<div class="header-left">
<div class="logo-small" id="mobile-peers-toggle">
<img src="/img/logo.svg" alt="YOGM" class="ark-symbol-small">
</div>
</div>
<div class="header-center">
<div class="room-info">
<div class="token-dropdown-wrapper">
<button id="token-dropdown-toggle" class="token-dropdown-toggle" title="Switch token">
<span id="room-label" class="room-label">Main Room</span>
<svg class="dropdown-chevron" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">
<polyline points="6 9 12 15 18 9"></polyline>
</svg>
</button>
<div id="token-dropdown-menu" class="token-dropdown-menu" style="display: none;">
<div id="token-dropdown-list" class="token-dropdown-list"></div>
</div>
</div>
<span id="peer-count" class="peer-count">0 peers</span>
</div>
</div>
<div class="header-right">
<div class="user-info">
<div class="user-avatar" id="user-avatar"></div>
<span id="user-address" class="user-address"></span>
</div>
<button id="disconnect-btn" class="disconnect-btn" title="Disconnect">
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">
<path d="M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4"/>
<polyline points="16,17 21,12 16,7"/>
<line x1="21" y1="12" x2="9" y2="12"/>
</svg>
</button>
</div>
</header>
<div id="mobile-peers-overlay" class="mobile-peers-overlay" aria-hidden="true"></div>
<main class="app-main">
<!-- Sidebar - Peers List -->
<aside class="sidebar">
<div class="sidebar-section">
<h3 class="sidebar-title">
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">
<path d="M17 21v-2a4 4 0 0 0-4-4H5a4 4 0 0 0-4 4v2"/>
<circle cx="9" cy="7" r="4"/>
<path d="M23 21v-2a4 4 0 0 0-3-3.87"/>
<path d="M16 3.13a4 4 0 0 1 0 7.75"/>
</svg>
Connected Peers
</h3>
<ul id="peers-list" class="peers-list"></ul>
</div>
<div class="sidebar-section connection-status">
<div class="status-indicator-wrapper">
<button id="connection-status-trigger" class="status-indicator status-indicator-btn" type="button" aria-haspopup="true" aria-expanded="false">
<span id="connection-dot" class="status-dot"></span>
<span id="connection-text" class="status-text">Connecting...</span>
</button>
<div id="status-icon-menu" class="status-icon-menu" aria-hidden="true"></div>
</div>
</div>
</aside>
<!-- Main Content Area -->
<div class="content-area">
<!-- View Toggle -->
<div class="view-toggle">
<button id="toggle-chat" class="toggle-btn active" data-view="chat">
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">
<path d="M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z"/>
</svg>
Chat
</button>
<button id="toggle-canvas" class="toggle-btn" data-view="canvas">
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">
<rect x="3" y="3" width="18" height="18" rx="2" ry="2"/>
<line x1="3" y1="9" x2="21" y2="9"/>
<line x1="9" y1="21" x2="9" y2="9"/>
</svg>
Board
</button>
<button id="toggle-split" class="toggle-btn" data-view="split">
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">
<rect x="3" y="3" width="18" height="18" rx="2" ry="2"/>
<line x1="12" y1="3" x2="12" y2="21"/>
</svg>
Split
</button>
<button id="toggle-bas-apps" class="toggle-btn" data-view="bas-apps">
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">
<rect x="3" y="3" width="7" height="7" rx="1"/>
<rect x="14" y="3" width="7" height="7" rx="1"/>
<rect x="3" y="14" width="7" height="7" rx="1"/>
<rect x="14" y="14" width="7" height="7" rx="1"/>
</svg>
Apps
</button>
<button id="delete-all-messages-btn" class="delete-btn" title="Delete all my messages">
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">
<polyline points="3 6 5 6 21 6"/>
<path d="M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6m3 0V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2"/>
<line x1="10" y1="11" x2="10" y2="17"/>
<line x1="14" y1="11" x2="14" y2="17"/>
</svg>
</button>
</div>
<!-- Chat Panel -->
<div id="chat-panel" class="panel chat-panel active">
<div id="messages-container" class="messages-container"></div>
<div class="chat-input-area">
<div id="quote-preview" class="quote-preview" style="display: none;">
<div class="quote-preview-content">
<div class="quote-preview-header">
<span class="quote-preview-user"></span>
</div>
<div class="quote-preview-text"></div>
</div>
<button class="quote-preview-close" id="close-quote-btn" title="Cancel quote">
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">
<line x1="18" y1="6" x2="6" y2="18"/>
<line x1="6" y1="6" x2="18" y2="18"/>
</svg>
</button>
</div>
<div class="input-wrapper">
<!-- Mention Autocomplete Popup -->
<div id="mention-popup" class="mention-popup" style="display: none;">
<ul id="mention-list" class="mention-list"></ul>
</div>
<textarea id="message-input"
class="message-input"
placeholder="Type your message..."
rows="1"></textarea>
<div class="input-actions">
<button id="attach-file-btn" class="action-btn" title="Share File">
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">
<path d="M21.44 11.05l-9.19 9.19a6 6 0 0 1-8.49-8.49l9.19-9.19a4 4 0 0 1 5.66 5.66l-9.2 9.19a2 2 0 0 1-2.83-2.83l8.49-8.48"/>
</svg>
</button>
<button id="gif-picker-btn" class="action-btn gif-btn" title="GIF">
<span class="gif-label">GIF</span>
</button>
<button id="send-message-btn" class="action-btn send-btn" title="Send">
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">
<line x1="22" y1="2" x2="11" y2="13"/>
<polygon points="22,2 15,22 11,13 2,9"/>
</svg>
</button>
</div>
</div>
<input type="file" id="file-input" class="hidden-input" multiple>
</div>
</div>
<!-- Canvas Panel -->
<div id="canvas-panel" class="panel canvas-panel">
<div class="canvas-toolbar">
<div class="tool-group">
<button class="tool-btn active" data-tool="select" title="Select">
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">
<path d="M3 3l7.07 16.97 2.51-7.39 7.39-2.51L3 3z"/>
</svg>
</button>
<button class="tool-btn" data-tool="text" title="Add Text">
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">
<polyline points="4,7 4,4 20,4 20,7"/>
<line x1="9" y1="20" x2="15" y2="20"/>
<line x1="12" y1="4" x2="12" y2="20"/>
</svg>
</button>
<button class="tool-btn" data-tool="rect" title="Rectangle">
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">
<rect x="3" y="3" width="18" height="18" rx="2" ry="2"/>
</svg>
</button>
<button class="tool-btn" data-tool="pencil" title="Pencil">
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">
<path d="M17 3a2.828 2.828 0 1 1 4 4L7.5 20.5 2 22l1.5-5.5L17 3z"/>
</svg>
</button>
<button class="tool-btn" data-tool="image" title="Add Image">
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">
<rect x="3" y="3" width="18" height="18" rx="2" ry="2"/>
<circle cx="8.5" cy="8.5" r="1.5"/>
<polyline points="21,15 16,10 5,21"/>
</svg>
</button>
<button class="tool-btn" data-tool="todolist" title="Add Todo List">
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">
<path d="M9 11l3 3L22 4"/>
<path d="M21 12v7a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h11"/>
</svg>
</button>
</div>
<div class="tool-group">
<input type="color" id="color-picker" class="color-picker" value="#d4af37" title="Color">
<select id="stroke-width" class="stroke-select" title="Stroke Width">
<option value="1">Thin</option>
<option value="2" selected>Normal</option>
<option value="4">Thick</option>
<option value="8">Bold</option>
</select>
</div>
<div class="tool-group">
<button id="undo-btn" class="tool-btn" title="Undo (Ctrl+Z)">
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">
<path d="M3 7v6h6"/>
<path d="M21 17a9 9 0 0 0-9-9 9 9 0 0 0-6 2.3L3 13"/>
</svg>
</button>
<button id="redo-btn" class="tool-btn" title="Redo (Ctrl+Y)">
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">
<path d="M21 7v6h-6"/>
<path d="M3 17a9 9 0 0 1 9-9 9 9 0 0 1 6 2.3l3 2.7"/>
</svg>
</button>
<button id="zoom-in-btn" class="tool-btn" title="Zoom In">
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">
<circle cx="11" cy="11" r="8"/>
<line x1="21" y1="21" x2="16.65" y2="16.65"/>
<line x1="11" y1="8" x2="11" y2="14"/>
<line x1="8" y1="11" x2="14" y2="11"/>
</svg>
</button>
<button id="zoom-out-btn" class="tool-btn" title="Zoom Out">
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">
<circle cx="11" cy="11" r="8"/>
<line x1="21" y1="21" x2="16.65" y2="16.65"/>
<line x1="8" y1="11" x2="14" y2="11"/>
</svg>
</button>
<button id="clear-canvas-btn" class="tool-btn" title="Clear Canvas">
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">
<polyline points="3,6 5,6 21,6"/>
<path d="M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6m3 0V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2"/>
</svg>
</button>
</div>
</div>
<div class="canvas-container">
<canvas id="grid-canvas" class="canvas-grid"></canvas>
<canvas id="reasoning-canvas"></canvas>
</div>
<input type="file" id="canvas-image-input" class="hidden-input" accept="image/*">
</div>
</div>
</main>
</div>
<!-- Profile Modal -->
<div id="profile-modal" class="modal">
<div class="modal-content profile-modal-content">
<div class="modal-header">
<h3>Profile Settings</h3>
<button class="modal-close" id="close-profile-modal">
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">
<line x1="18" y1="6" x2="6" y2="18"/>
<line x1="6" y1="6" x2="18" y2="18"/>
</svg>
</button>
</div>
<div class="modal-body">
<!-- Avatar Preview -->
<div class="profile-avatar-section">
<div class="profile-avatar-preview" id="profile-avatar-preview"></div>
<div class="profile-avatar-info">
<button class="btn-upload-avatar" id="upload-avatar-btn">Upload Image</button>
<button class="btn-clear-avatar" id="clear-avatar-btn">Use Default</button>
<button class="btn-upload-avatar" id="use-nft-avatar-btn">Use NFT</button>
<input type="file" id="avatar-file-input" class="hidden-input" accept="image/*">
</div>
</div>
<!-- Nickname Field -->
<div class="profile-field">
<label for="profile-nickname">Nickname</label>
<input id="profile-nickname"
class="profile-input"
type="text"
placeholder="Enter nickname (optional)"
maxlength="24">
</div>
<p class="profile-note">Use uploaded image, default gradient, or NFT from your wallet. Avatar is visible to all participants.</p>
<div class="profile-field theme-toggle-field">
<label>App Theme</label>
<div class="theme-toggle" role="radiogroup" aria-label="App theme">
<button type="button" class="theme-toggle-btn" data-theme="default" aria-pressed="false">Default</button>
<button type="button" class="theme-toggle-btn" data-theme="windows" aria-pressed="false">Win 95</button>
<button type="button" class="theme-toggle-btn" data-theme="win96" aria-pressed="false">Win 96</button>
<button type="button" class="theme-toggle-btn" data-theme="fantasy" aria-pressed="false">Fantasy</button>
<button type="button" class="theme-toggle-btn" data-theme="console" aria-pressed="false">Console</button>
<button type="button" class="theme-creator-btn" id="open-theme-creator" title="Create AI Theme">+</button>
</div>
</div>
<!-- AI Translation Settings -->
<div class="profile-section-divider">
<span>AI Translation</span>
</div>
<!-- AI Toggle -->
<div class="profile-field ai-toggle-field">
<label class="ai-toggle-label">
<input type="checkbox" id="profile-ai-enabled" class="ai-toggle-checkbox">
<span class="ai-toggle-slider"></span>
<span class="ai-toggle-text">Enable AI Translation & Style</span>
</label>
</div>
<!-- Language Selector -->
<div class="profile-field" id="ai-language-field">
<label for="profile-language">Your Language</label>
<select id="profile-language" class="profile-select">
<option value="English">English</option>
<option value="Chinese">中文 (Chinese)</option>
<option value="Spanish">Español (Spanish)</option>
<option value="Hindi">हिन्दी (Hindi)</option>
<option value="Arabic">العربية (Arabic)</option>
<option value="Portuguese">Português (Portuguese)</option>
<option value="Russian">Русский (Russian)</option>
<option value="Japanese">日本語 (Japanese)</option>
<option value="French">Français (French)</option>
<option value="German">Deutsch (German)</option>
</select>
</div>
<div class="profile-field-row">
<!-- Style Input -->
<div class="profile-field" id="ai-style-field">
<label for="profile-style">Style</label>
<input id="profile-style"
class="profile-input"
type="text"
placeholder="e.g., like a pirate, like a poet"
maxlength="50">
<span class="profile-hint">Leave empty for neutral translation</span>
</div>
<!-- Style Temperature -->
<div class="profile-field" id="ai-temperature-field">
<label>Temp</label>
<div class="temperature-toggle" role="radiogroup" aria-label="Style temperature">
<button type="button" class="temperature-toggle-btn" data-temperature="low" aria-pressed="false">Low</button>
<button type="button" class="temperature-toggle-btn" data-temperature="med" aria-pressed="false">Med</button>
<button type="button" class="temperature-toggle-btn" data-temperature="high" aria-pressed="false">High</button>
</div>
<span class="profile-hint">Low: max 3 words for single-word input, Med: slightly richer, High: richest with emojis</span>
</div>
</div>
<!-- Save Button -->
<button class="btn-save-profile" id="save-profile-btn">Save Profile</button>
</div>
</div>
</div>
<!-- NFT Avatar Picker Modal -->
<div id="nft-avatar-modal" class="modal">
<div class="modal-content nft-avatar-modal-content">
<div class="modal-header">
<h3>Select NFT Avatar</h3>
<button class="modal-close" id="close-nft-avatar-modal">
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">
<line x1="18" y1="6" x2="6" y2="18"/>
<line x1="6" y1="6" x2="18" y2="18"/>
</svg>
</button>
</div>
<div class="modal-body">
<p id="nft-avatar-status" class="nft-avatar-status">Loading NFTs...</p>
<div id="nft-avatar-list" class="nft-avatar-list"></div>
</div>
</div>
</div>
<!-- File Transfer Modal -->
<div id="file-modal" class="modal">
<div class="modal-content">
<div class="modal-header">
<h3>File Transfer</h3>
<button class="modal-close" id="close-file-modal">
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">
<line x1="18" y1="6" x2="6" y2="18"/>
<line x1="6" y1="6" x2="18" y2="18"/>
</svg>
</button>
</div>
<div class="modal-body">
<div id="file-transfer-info"></div>
<div class="progress-container">
<div id="file-progress" class="progress-bar"></div>
</div>
<p id="file-status" class="file-status"></p>
</div>
</div>
</div>
<!-- Image Viewer Modal -->
<div id="image-viewer-modal" class="modal">
<div class="modal-content image-viewer-modal-content">
<button class="modal-close image-viewer-close" id="close-image-viewer-modal">
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">
<line x1="18" y1="6" x2="6" y2="18"/>
<line x1="6" y1="6" x2="18" y2="18"/>
</svg>
</button>
<div class="modal-body image-viewer-body">
<div id="image-viewer-image-wrap" class="image-viewer-image-wrap">
<img id="image-viewer-image" class="image-viewer-image" alt="Preview image">
</div>
</div>
</div>
</div>
<!-- GIF Picker Modal -->
<div id="gif-modal" class="modal">
<div class="modal-content gif-modal-content">
<div class="modal-header">
<h3>GIFs</h3>
<button class="modal-close" id="close-gif-modal">
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">
<line x1="18" y1="6" x2="6" y2="18"/>
<line x1="6" y1="6" x2="18" y2="18"/>
</svg>
</button>
</div>
<div class="modal-body gif-modal-body">
<div class="gif-search">
<div class="search-box gif-search-box">
<svg class="search-icon" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">
<circle cx="11" cy="11" r="8"></circle>
<path d="m21 21-4.35-4.35"></path>
</svg>
<input id="gif-search-input" type="text" class="search-input" placeholder="Search GIPHY...">
<button id="gif-search-clear" class="clear-search-btn" style="display: none;" title="Clear search">
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">
<line x1="18" y1="6" x2="6" y2="18"></line>
<line x1="6" y1="6" x2="18" y2="18"></line>
</svg>
</button>
</div>
</div>
<div id="gif-results" class="gif-results"></div>
<div id="gif-empty" class="gif-empty" style="display: none;">No GIFs found.</div>
</div>
</div>
</div>
<!-- Peer Wallet Modal -->
<div id="peer-modal" class="modal">
<div class="modal-content peer-modal-content">
<div class="modal-header">
<h3 id="peer-modal-title">User Info</h3>
<button class="modal-close" id="close-peer-modal">
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">
<line x1="18" y1="6" x2="6" y2="18"/>
<line x1="6" y1="6" x2="18" y2="18"/>
</svg>
</button>
</div>
<div class="modal-body">
<div class="peer-modal-avatar-row">
<div id="peer-modal-avatar" class="peer-modal-avatar"></div>
</div>
<div class="peer-modal-row">
<span class="peer-modal-label">User</span>
<span id="peer-modal-name" class="peer-modal-value"></span>
</div>
<div class="peer-modal-row">
<span id="peer-modal-address-label" class="peer-modal-label">Address</span>
<span id="peer-modal-address" class="peer-modal-value peer-modal-address"></span>
</div>
<div id="peer-modal-balance-row" class="peer-modal-row">
<span class="peer-modal-label">Token Balance</span>
<span id="peer-modal-balance" class="peer-modal-value">Loading...</span>
</div>
<div class="peer-modal-row peer-modal-actions">
<button id="peer-modal-mute-btn" class="btn btn-mute">Mute</button>
</div>
</div>
</div>
</div>
<!-- BAS Apps Modal -->
<div id="bas-apps-modal" class="modal">
<div class="modal-content bas-apps-modal-content">
<div class="modal-header">
<h3>Apps</h3>
<button class="modal-close" id="close-bas-apps-modal">
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">
<line x1="18" y1="6" x2="6" y2="18"/>
<line x1="6" y1="6" x2="18" y2="18"/>
</svg>
</button>
</div>
<div class="modal-body">
<div class="bas-apps-content">
<div class="bas-apps-grid">
<button class="bas-app-card" id="open-bot-builder-app" type="button">
<div class="bas-app-icon">
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.8">
<rect x="3" y="4" width="18" height="14" rx="3"/>
<path d="M8 18v2"/>
<path d="M16 18v2"/>
<circle cx="9" cy="11" r="1.2"/>
<circle cx="15" cy="11" r="1.2"/>
<path d="M7 7h10"/>
</svg>
</div>
<div class="bas-app-info">
<span class="bas-app-name">Rent-a-Bot</span>
<span class="bas-app-tag">Local AI Companion</span>
</div>
</button>
<button class="bas-app-card" id="open-invite-agent-app" type="button">
<div class="bas-app-icon">
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.8">
<path d="M12 3v6"/>
<path d="M9 6h6"/>
<path d="M5 19a4 4 0 0 1 4-4h6a4 4 0 0 1 4 4"/>
<circle cx="12" cy="11" r="3"/>
</svg>
</div>
<div class="bas-app-info">
<span class="bas-app-name">Invite Agent</span>
<span class="bas-app-tag">Agentic Layer</span>
</div>
</button>
<div class="bas-app-placeholder">
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">
<circle cx="12" cy="12" r="10"/>
<line x1="12" y1="8" x2="12" y2="16"/>
<line x1="8" y1="12" x2="16" y2="12"/>
</svg>
<span>Coming Soon</span>
</div>
</div>
</div>
</div>
</div>
</div>
<!-- Ganja Farmer Modal -->
<!-- Bot Builder Modal -->
<div id="bot-builder-modal" class="modal">
<div class="modal-content bot-builder-modal-content">
<div class="modal-header">
<h3>Rent-a-Bot</h3>
<button class="modal-close" id="close-bot-builder-modal">
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">
<line x1="18" y1="6" x2="6" y2="18"/>
<line x1="6" y1="6" x2="18" y2="18"/>
</svg>
</button>
</div>
<div class="modal-body bot-builder-body">
<div class="bot-builder-container">
<div class="bot-builder-form-section">
<div class="bot-builder-form">
<div class="bot-form-row">
<div class="bot-field">
<label for="bot-name-input">BOT NAME</label>
<input id="bot-name-input" type="text" maxlength="28" placeholder="Example: NightShiftBot">
</div>
<div class="bot-field">
<label for="bot-response-mode">Behavior</label>
<select id="bot-response-mode">
<option value="join" selected>Smart</option>
<option value="mentions">Reply when mentioned</option>
</select>
</div>
<div class="bot-field">
<label for="bot-style-input">Style & tone</label>
<input id="bot-style-input" type="text" placeholder="Warm, concise, playful">
</div>
</div>
<div class="bot-field full">
<label for="bot-behavior-input">Behavior prompt</label>
<textarea id="bot-behavior-input" rows="2" placeholder="Describe how the bot should behave in the room."></textarea>
</div>
<div class="bot-form-row">
<div class="bot-field">
<label for="bot-temperature-input">Charisma</label>
<input id="bot-temperature-input" type="number" min="0" max="2" step="0.1" placeholder="0.7" value="0.7">
<small>0-2</small>
</div>
<div class="bot-field">
<label for="bot-response-delay-input">Delay (sec)</label>
<input id="bot-response-delay-input" type="number" min="5" max="50" step="1" placeholder="5" value="5">
<small>sec</small>
</div>
<div class="bot-field">
<label for="bot-max-chars-input">Max chars</label>
<input id="bot-max-chars-input" type="number" min="10" max="256" step="10" placeholder="128" value="128">
<small>10-256</small>
</div>
</div>
<div class="bot-avatar-section full">
<div class="bot-avatar-preview" id="bot-avatar-preview">
<span>Avatar</span>
</div>
<div class="bot-avatar-controls">
<span>Upload a bot avatar (PNG/JPG)</span>
<div class="bot-avatar-actions">
<button class="btn-upload-avatar" id="bot-avatar-upload-btn" type="button">Upload</button>
<button class="btn-clear-avatar" id="bot-avatar-clear-btn" type="button">Clear</button>
</div>
</div>
<input type="file" id="bot-avatar-input" class="hidden-input" accept="image/*">
</div>
<div id="bot-form-status" class="bot-form-status full"></div>
<button class="btn-primary full" id="create-bot-btn" type="button">Create bot</button>
</div>
</div>
<div class="bot-list-section">
<div class="bot-list-header">
<h4>Your bots</h4>
<span class="bot-list-hint">Rent required for replies</span>
</div>
<div id="bot-list" class="bot-list"></div>
<p id="bot-list-empty" class="bot-list-empty">No bots yet.</p>
</div>
</div>
</div>
</div>
</div>
<!-- Invite Agent Modal -->
<div id="invite-agent-modal" class="modal">
<div class="modal-content invite-agent-modal-content">
<div class="modal-header">
<h3>Invite Agent</h3>
<button class="modal-close" id="close-invite-agent-modal">
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">
<line x1="18" y1="6" x2="6" y2="18"/>
<line x1="6" y1="6" x2="18" y2="18"/>
</svg>
</button>
</div>
<div class="modal-body invite-agent-body">
<div class="invite-agent-panel">
<div class="invite-agent-instruction">
<span class="invite-agent-instruction-title">Quick steps</span>
<span class="invite-agent-instruction-text">Enter agent wallet, set token amount, click Invite.</span>
</div>
<div class="invite-agent-field">
<label for="invite-agent-address">Agent wallet address</label>
<input id="invite-agent-address" type="text" placeholder="Solana address">
</div>
<div class="invite-agent-field">
<label for="invite-agent-amount">Token amount</label>
<div class="invite-agent-amount-row">
<input id="invite-agent-amount" type="number" min="0" step="any" placeholder="0.0">
<span class="invite-agent-amount-unit" id="invite-agent-amount-unit">TOKEN</span>
</div>
</div>
<button class="btn-primary" id="invite-agent-send-btn" type="button">Invite</button>
<div class="invite-agent-status" id="invite-agent-status"></div>
</div>
<div class="invite-agent-skill" id="invite-agent-skill">
<div class="invite-agent-skill-title">Get the skill</div>
<div class="invite-agent-skill-text">Share this with your agent. It contains all instructions and endpoints.</div>
<div class="invite-agent-skill-command">
<code id="invite-agent-skill-command">curl -s https://example.com/skill.md</code>
<button class="invite-agent-copy-btn" id="invite-agent-copy-btn" type="button" aria-label="Copy skill command">
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.8" stroke-linecap="round" stroke-linejoin="round">
<rect x="9" y="9" width="10" height="10" rx="2"/>
<rect x="5" y="5" width="10" height="10" rx="2"/>
</svg>
</button>
</div>
</div>
</div>
</div>
</div>
<!-- Terms of Use Modal -->
<div id="terms-modal" class="modal">
<div class="modal-content terms-modal-content">
<div class="modal-header">
<button class="modal-close" id="close-terms-modal">
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">
<line x1="18" y1="6" x2="6" y2="18"/>
<line x1="6" y1="6" x2="18" y2="18"/>
</svg>
</button>
</div>
<div class="modal-body terms-modal-body">
<div class="terms-content">
<div class="terms-title-block">
<h3 class="meshroom-main-title">YOGM</h3>
<h4 class="terms-subtitle">Terms of Use</h4>
</div>
<p>By using this application, you agree to comply with the following rules:</p>
<h5>1. Prohibited Content</h5>
<p>It is strictly forbidden to post, distribute, or store:</p>
<ul>
<li>Illegal content of any kind</li>
<li>Materials that violate copyright</li>
<li>Content that incites hatred or discrimination</li>
<li>Sexual content involving minors</li>
<li>Information that promotes illegal activity</li>
</ul>
<h5>2. Legal Compliance</h5>
<p>You agree to:</p>
<ul>
<li>Comply with all applicable local, national, and international laws</li>
<li>Not use the service for fraud or deception</li>
<li>Not violate the rights of other users</li>
<li>Not use the service for spam or malicious activity</li>
</ul>
<h5>3. User Responsibility</h5>
<p>You are fully responsible for:</p>
<ul>
<li>All content you post or transmit</li>
<li>The security of your wallet and private keys</li>
<li>All transactions made from your account</li>
</ul>
<h5>4. Disclaimer</h5>
<p>The service is provided "as is". The developers are not responsible for:</p>
<ul>
<li>Loss of funds or data</li>
<li>Actions of other users</li>
<li>Technical failures or service interruptions</li>
</ul>
</div>
</div>
<div class="modal-footer terms-modal-footer"></div>
</div>
</div>
<!-- Gitbook Modal -->
<div id="gitbook-modal" class="modal manifesto-modal">
<div class="modal-content manifesto-modal-content">
<div class="modal-header manifesto-modal-header">
<button class="modal-close" id="close-gitbook-modal">
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">
<line x1="18" y1="6" x2="6" y2="18"/>
<line x1="6" y1="6" x2="18" y2="18"/>
</svg>
</button>
</div>
<div class="manifesto-wrapper">
<button class="manifesto-arrow manifesto-arrow-prev" id="gitbook-prev-btn" aria-label="Previous slide">
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">
<polyline points="15 18 9 12 15 6"></polyline>
</svg>
</button>
<div class="manifesto-container">
<div class="gitbook-toc" id="gitbook-toc"></div>
<div class="gitbook-slides-viewport">
<div class="manifesto-slides" id="gitbook-slides">
<div class="manifesto-slide">
<div class="manifesto-slide-content">
<h2 class="manifesto-title">YOGM Gitbook</h2>
<p>Loading Gitbook content...</p>
</div>
</div>
</div>
</div>
</div>
<button class="manifesto-arrow manifesto-arrow-next" id="gitbook-next-btn" aria-label="Next slide">
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">
<polyline points="9 18 15 12 9 6"></polyline>
</svg>
</button>
</div>
<div class="manifesto-footer gitbook-footer">
<span class="gitbook-position" id="gitbook-position">Section 0 / 0</span>
</div>
</div>
</div>
<!-- Manifesto Modal -->
<div id="manifesto-modal" class="modal manifesto-modal">
<div class="modal-content manifesto-modal-content">
<div class="modal-header manifesto-modal-header">
<button class="modal-close" id="close-manifesto-modal">
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">
<line x1="18" y1="6" x2="6" y2="18"/>
<line x1="6" y1="6" x2="18" y2="18"/>
</svg>
</button>
</div>
<div class="manifesto-wrapper">
<button class="manifesto-arrow manifesto-arrow-prev" id="manifesto-prev-btn" aria-label="Previous slide">
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">
<polyline points="15 18 9 12 15 6"></polyline>
</svg>
</button>
<div class="manifesto-container">
<div class="manifesto-slides">
<div class="manifesto-slide">
<div class="manifesto-slide-content">
<h2 class="manifesto-title">YOGM Manifesto</h2>
<p>For the ones who grew up scrolling but never really belonged anywhere We were raised in feeds that weren’t ours. We stack tokens, we mint JPEGs, we scream GM in a hundred Discords…</p>
<p>but the second a mod logs off or a platform flips the switch, everything we built vanishes. That ends now. Ownership isn’t about flexing your floor price.</p>
<p>It’s about having a fucking door that only you can open. Your bag isn’t a trophy to screenshot. It’s the key that lets you walk into rooms where real shit happens.</p>
</div>
</div>
<div class="manifesto-slide">
<div class="manifesto-slide-content">