-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathmenu-switcher-demo.html
More file actions
1358 lines (1196 loc) · 40.3 KB
/
menu-switcher-demo.html
File metadata and controls
1358 lines (1196 loc) · 40.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
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="ko">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>좌측 메뉴 스위처 데모</title>
<style>
:root {
color-scheme: light;
--page-bg: #f3eee5;
--page-ink: #17202a;
--page-muted: #586575;
--page-card: rgba(255, 255, 255, 0.84);
--page-card-strong: rgba(255, 255, 255, 0.96);
--page-border: rgba(15, 23, 42, 0.08);
--page-shadow: 0 24px 60px rgba(32, 35, 39, 0.14);
--page-shadow-soft: 0 14px 32px rgba(32, 35, 39, 0.09);
--hero-highlight: rgba(15, 23, 42, 0.04);
--sidebar-start: #152338;
--sidebar-end: #0f172a;
--sidebar-ink: #eef6ff;
--sidebar-muted: #9cb1c7;
--sidebar-surface: rgba(255, 255, 255, 0.07);
--sidebar-soft: rgba(92, 194, 255, 0.14);
--sidebar-border: rgba(255, 255, 255, 0.11);
--button-idle: rgba(255, 255, 255, 0.07);
--button-active: #5cc2ff;
--button-active-ink: #0d2234;
--link-hover: rgba(92, 194, 255, 0.14);
--link-active: linear-gradient(135deg, #8ad7ff 0%, #5cc2ff 100%);
--link-active-ink: #092235;
--accent: #5cc2ff;
--accent-soft: rgba(92, 194, 255, 0.16);
--accent-line: rgba(92, 194, 255, 0.28);
--chip-bg: rgba(15, 23, 42, 0.08);
--chip-ink: #233244;
--dot-color: #5cc2ff;
}
body[data-mode="basic"] {
--sidebar-start: #152338;
--sidebar-end: #0f172a;
--sidebar-ink: #eef6ff;
--sidebar-muted: #9cb1c7;
--sidebar-surface: rgba(255, 255, 255, 0.07);
--sidebar-soft: rgba(92, 194, 255, 0.14);
--sidebar-border: rgba(255, 255, 255, 0.11);
--button-idle: rgba(255, 255, 255, 0.07);
--button-active: #5cc2ff;
--button-active-ink: #0d2234;
--link-hover: rgba(92, 194, 255, 0.14);
--link-active: linear-gradient(135deg, #8ad7ff 0%, #5cc2ff 100%);
--link-active-ink: #092235;
--accent: #5cc2ff;
--accent-soft: rgba(92, 194, 255, 0.16);
--accent-line: rgba(92, 194, 255, 0.28);
--dot-color: #5cc2ff;
}
body[data-mode="advanced"] {
--sidebar-start: #18231b;
--sidebar-end: #101713;
--sidebar-ink: #f8f2e7;
--sidebar-muted: #c3c9b8;
--sidebar-surface: rgba(255, 247, 230, 0.07);
--sidebar-soft: rgba(245, 158, 11, 0.16);
--sidebar-border: rgba(255, 243, 214, 0.1);
--button-idle: rgba(255, 245, 223, 0.06);
--button-active: #f59e0b;
--button-active-ink: #281600;
--link-hover: rgba(245, 158, 11, 0.14);
--link-active: linear-gradient(135deg, #ffc44f 0%, #f59e0b 100%);
--link-active-ink: #2f1a00;
--accent: #f59e0b;
--accent-soft: rgba(245, 158, 11, 0.16);
--accent-line: rgba(245, 158, 11, 0.28);
--dot-color: #f59e0b;
}
* {
box-sizing: border-box;
}
html,
body {
min-height: 100%;
}
body {
margin: 0;
font-family: "SUIT Variable", "Pretendard", "Noto Sans KR", "Apple SD Gothic Neo", sans-serif;
background:
radial-gradient(circle at top left, rgba(255, 255, 255, 0.95), transparent 32%),
radial-gradient(circle at right 12% top 18%, rgba(255, 255, 255, 0.55), transparent 22%),
linear-gradient(180deg, #f7f3ec 0%, var(--page-bg) 100%);
color: var(--page-ink);
}
body::before,
body::after {
content: "";
position: fixed;
width: 360px;
height: 360px;
border-radius: 50%;
pointer-events: none;
filter: blur(24px);
opacity: 0.34;
z-index: 0;
}
body::before {
top: -120px;
right: -120px;
background: rgba(255, 255, 255, 0.68);
}
body::after {
bottom: -160px;
left: -100px;
background: rgba(228, 219, 201, 0.65);
}
.page-shell {
position: relative;
z-index: 1;
display: grid;
grid-template-columns: 360px minmax(0, 1fr);
gap: 24px;
padding: 24px;
min-height: 100vh;
}
.sidebar {
display: grid;
grid-template-rows: auto auto auto minmax(0, 1fr) auto;
min-height: calc(100vh - 48px);
background: linear-gradient(180deg, var(--sidebar-start) 0%, var(--sidebar-end) 100%);
color: var(--sidebar-ink);
border: 1px solid var(--sidebar-border);
border-radius: 28px;
box-shadow: var(--page-shadow);
overflow: hidden;
position: sticky;
top: 24px;
isolation: isolate;
}
.sidebar::before,
.sidebar::after {
content: "";
position: absolute;
border-radius: 999px;
pointer-events: none;
opacity: 0.9;
}
.sidebar::before {
width: 180px;
height: 180px;
top: -90px;
right: -50px;
background: var(--accent-soft);
filter: blur(6px);
}
.sidebar::after {
width: 240px;
height: 240px;
bottom: -140px;
left: -120px;
background: rgba(255, 255, 255, 0.06);
}
.sidebar-header,
.mode-card,
.menu-panel,
.selection-card {
position: relative;
z-index: 1;
transition: opacity 180ms ease, transform 180ms ease;
}
.sidebar.is-swapping .mode-card,
.sidebar.is-swapping .menu-panel,
.sidebar.is-swapping .selection-card {
opacity: 0.25;
transform: translateX(10px);
}
.sidebar-header {
padding: 24px 22px 18px;
border-bottom: 1px solid var(--sidebar-border);
}
.sidebar-label {
display: inline-flex;
align-items: center;
gap: 8px;
margin: 0 0 10px;
font-size: 0.78rem;
letter-spacing: 0.08em;
text-transform: uppercase;
color: var(--sidebar-muted);
}
.sidebar-label::before {
content: "";
width: 8px;
height: 8px;
border-radius: 999px;
background: var(--dot-color);
box-shadow: 0 0 0 8px var(--accent-soft);
}
.sidebar-title {
margin: 0;
font-size: 1.55rem;
line-height: 1.15;
font-weight: 800;
letter-spacing: -0.04em;
}
.mode-switcher {
display: grid;
grid-template-columns: repeat(2, minmax(0, 1fr));
gap: 8px;
padding: 18px 22px 0;
}
.mode-button {
appearance: none;
border: 0;
border-radius: 16px;
background: var(--button-idle);
color: var(--sidebar-ink);
padding: 12px 10px;
font: inherit;
font-weight: 700;
cursor: pointer;
transition: transform 180ms ease, background 180ms ease, color 180ms ease, box-shadow 180ms ease;
-webkit-backdrop-filter: blur(12px);
backdrop-filter: blur(12px);
}
.mode-button:hover {
transform: translateY(-1px);
}
.mode-button:focus-visible,
.menu-link:focus-visible,
.menu-expander:focus-visible {
outline: 2px solid var(--accent);
outline-offset: 2px;
}
.mode-button.active {
background: var(--button-active);
color: var(--button-active-ink);
box-shadow: 0 10px 24px rgba(15, 23, 42, 0.18);
}
.mode-card {
margin: 16px 22px 0;
padding: 18px;
border-radius: 22px;
background: var(--sidebar-surface);
border: 1px solid var(--sidebar-border);
-webkit-backdrop-filter: blur(12px);
backdrop-filter: blur(12px);
}
.mode-chip {
display: inline-flex;
align-items: center;
gap: 8px;
padding: 7px 11px;
border-radius: 999px;
background: var(--sidebar-soft);
color: var(--sidebar-ink);
font-size: 0.82rem;
font-weight: 700;
}
.mode-card h2 {
margin: 14px 0 0;
font-size: 1.2rem;
line-height: 1.3;
letter-spacing: -0.03em;
}
.mode-tags {
display: flex;
flex-wrap: wrap;
gap: 8px;
margin-top: 12px;
}
.mode-tag {
padding: 7px 10px;
border-radius: 999px;
background: rgba(255, 255, 255, 0.08);
border: 1px solid var(--sidebar-border);
font-size: 0.78rem;
color: var(--sidebar-ink);
}
.menu-area {
min-height: 0;
overflow: auto;
padding: 16px 18px 18px;
}
.menu-panel {
display: grid;
gap: 12px;
}
.menu-section {
padding: 14px;
border-radius: 22px;
background: var(--sidebar-surface);
border: 1px solid var(--sidebar-border);
-webkit-backdrop-filter: blur(12px);
backdrop-filter: blur(12px);
}
.section-head {
display: flex;
justify-content: space-between;
align-items: flex-start;
gap: 10px;
margin-bottom: 8px;
}
.section-title {
margin: 0;
font-size: 0.98rem;
font-weight: 800;
letter-spacing: -0.02em;
}
.section-count {
padding-top: 2px;
font-size: 0.78rem;
color: var(--sidebar-muted);
white-space: nowrap;
}
.menu-list {
display: grid;
gap: 8px;
}
.menu-node {
display: grid;
gap: 8px;
}
.menu-item-row {
display: grid;
grid-template-columns: 28px minmax(0, 1fr);
gap: 8px;
align-items: start;
}
.menu-expander,
.menu-expander-spacer {
width: 28px;
min-height: 28px;
border-radius: 12px;
flex: 0 0 auto;
}
.menu-expander {
appearance: none;
display: inline-flex;
align-items: center;
justify-content: center;
margin-top: 10px;
padding: 0;
border: 0;
background: transparent;
color: var(--sidebar-muted);
cursor: pointer;
transition: background 180ms ease, color 180ms ease;
}
.menu-expander:hover {
background: var(--link-hover);
color: var(--sidebar-ink);
}
.menu-expander-spacer {
display: block;
}
.menu-expander-icon {
display: inline-flex;
align-items: center;
justify-content: center;
width: 14px;
height: 14px;
}
.menu-expander-icon::before {
content: ">";
display: block;
font-size: 0.84rem;
font-weight: 800;
line-height: 1;
transform-origin: center;
transition: transform 180ms ease;
}
.menu-node.is-open > .menu-item-row .menu-expander-icon::before {
transform: rotate(90deg);
}
.menu-link {
appearance: none;
width: 100%;
text-align: left;
border: 0;
border-radius: 18px;
padding: 11px 14px;
background: transparent;
color: inherit;
cursor: pointer;
transition: background 180ms ease, transform 180ms ease, box-shadow 180ms ease, color 180ms ease;
}
.menu-link:hover {
transform: translateX(3px);
background: var(--link-hover);
}
.menu-link.active {
background: var(--link-active);
color: var(--link-active-ink);
box-shadow: 0 14px 26px rgba(15, 23, 42, 0.18);
}
.menu-link.active-branch:not(.active) {
background: var(--accent-soft);
color: var(--sidebar-ink);
}
.menu-meta {
display: flex;
align-items: center;
gap: 8px;
margin-bottom: 4px;
font-size: 0.76rem;
text-transform: uppercase;
letter-spacing: 0.08em;
opacity: 0.85;
}
.menu-code {
font-weight: 800;
}
.menu-badge {
display: inline-flex;
align-items: center;
padding: 4px 8px;
border-radius: 999px;
background: rgba(255, 255, 255, 0.14);
font-size: 0.7rem;
letter-spacing: 0.04em;
text-transform: none;
}
.menu-link:not(.active) .menu-badge {
background: var(--chip-bg);
color: var(--chip-ink);
}
.menu-title {
display: block;
font-size: 0.96rem;
font-weight: 700;
line-height: 1.35;
letter-spacing: -0.01em;
}
.menu-children {
display: none;
gap: 8px;
margin-left: 14px;
padding-left: 18px;
border-left: 1px solid var(--accent-line);
}
.menu-node.is-open > .menu-children {
display: grid;
}
.menu-node.has-active-branch > .menu-item-row .menu-expander {
color: var(--accent);
}
.menu-item-row.depth-1 .menu-link {
border-radius: 16px;
padding: 10px 13px;
}
.selection-card {
margin: 0 22px 22px;
padding: 16px 18px;
border-radius: 22px;
background: var(--sidebar-surface);
border: 1px solid var(--sidebar-border);
-webkit-backdrop-filter: blur(12px);
backdrop-filter: blur(12px);
}
.selection-label {
display: block;
margin-bottom: 6px;
font-size: 0.78rem;
text-transform: uppercase;
letter-spacing: 0.08em;
color: var(--sidebar-muted);
}
.selection-title {
margin: 0;
font-size: 1rem;
line-height: 1.35;
letter-spacing: -0.02em;
}
.selection-path {
display: inline-flex;
align-items: center;
gap: 8px;
margin-top: 10px;
padding: 7px 10px;
border-radius: 999px;
background: var(--sidebar-soft);
color: var(--sidebar-ink);
font-size: 0.78rem;
}
.content-area {
display: grid;
align-content: start;
gap: 18px;
min-width: 0;
}
.hero-card,
.content-card,
.idea-card {
background: var(--page-card);
border: 1px solid var(--page-border);
border-radius: 28px;
box-shadow: var(--page-shadow-soft);
-webkit-backdrop-filter: blur(12px);
backdrop-filter: blur(12px);
}
.hero-card {
padding: 28px;
background:
linear-gradient(135deg, rgba(255, 255, 255, 0.96) 0%, rgba(255, 255, 255, 0.82) 100%),
linear-gradient(135deg, rgba(0, 0, 0, 0.02), rgba(0, 0, 0, 0));
}
.eyebrow {
display: inline-flex;
align-items: center;
gap: 10px;
margin: 0 0 14px;
padding: 8px 12px;
border-radius: 999px;
background: var(--hero-highlight);
color: var(--page-ink);
font-size: 0.82rem;
font-weight: 700;
letter-spacing: 0.04em;
text-transform: uppercase;
}
.eyebrow::before {
content: "";
width: 10px;
height: 10px;
border-radius: 999px;
background: var(--accent);
box-shadow: 0 0 0 8px var(--accent-soft);
}
.hero-card h1 {
margin: 0;
font-size: clamp(2rem, 4.8vw, 3.45rem);
line-height: 0.98;
letter-spacing: -0.06em;
}
.hero-card p {
max-width: 760px;
margin: 16px 0 0;
font-size: 1.02rem;
line-height: 1.7;
color: var(--page-muted);
}
.hero-grid {
display: grid;
grid-template-columns: repeat(2, minmax(0, 1fr));
gap: 12px;
margin-top: 22px;
}
.hero-metric {
padding: 16px;
border-radius: 20px;
border: 1px solid var(--page-border);
background: var(--page-card-strong);
}
.hero-metric strong {
display: block;
font-size: 1.05rem;
letter-spacing: -0.02em;
}
.hero-metric span {
display: block;
margin-top: 6px;
font-size: 0.9rem;
color: var(--page-muted);
line-height: 1.5;
}
.content-card {
padding: 0;
overflow: hidden;
}
.browser-bar {
display: flex;
align-items: center;
justify-content: space-between;
gap: 12px;
padding: 14px 18px;
border-bottom: 1px solid var(--page-border);
background: rgba(255, 255, 255, 0.86);
}
.browser-dots {
display: flex;
gap: 8px;
}
.browser-dots span {
width: 10px;
height: 10px;
border-radius: 999px;
background: #d4d9df;
}
.browser-url {
flex: 1;
min-width: 0;
padding: 10px 14px;
border-radius: 999px;
background: #f4f6f8;
color: #677283;
font-size: 0.88rem;
text-align: center;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.browser-chip {
padding: 8px 12px;
border-radius: 999px;
background: var(--accent-soft);
color: var(--page-ink);
font-size: 0.82rem;
font-weight: 700;
}
.content-body {
display: grid;
gap: 20px;
padding: 26px;
background: linear-gradient(180deg, rgba(255, 255, 255, 0.94) 0%, rgba(252, 250, 246, 0.96) 100%);
}
.content-note {
display: inline-flex;
align-items: center;
gap: 8px;
width: fit-content;
padding: 8px 12px;
border-radius: 999px;
background: rgba(15, 23, 42, 0.05);
color: var(--page-ink);
font-size: 0.84rem;
font-weight: 700;
}
.content-note::before {
content: "";
width: 8px;
height: 8px;
border-radius: 999px;
background: var(--accent);
}
.content-title {
margin: 0;
font-size: 2rem;
line-height: 1.1;
letter-spacing: -0.05em;
}
.content-copy {
margin: 0;
max-width: 760px;
color: var(--page-muted);
font-size: 1rem;
line-height: 1.75;
}
.pill-row {
display: flex;
flex-wrap: wrap;
gap: 10px;
}
.pill {
display: inline-flex;
align-items: center;
gap: 8px;
padding: 9px 12px;
border-radius: 999px;
background: var(--page-card-strong);
border: 1px solid var(--page-border);
color: var(--page-ink);
font-size: 0.86rem;
}
.pill::before {
content: "";
width: 8px;
height: 8px;
border-radius: 999px;
background: var(--accent);
}
.insight-grid {
display: grid;
grid-template-columns: repeat(2, minmax(0, 1fr));
gap: 12px;
}
.insight-card {
padding: 18px;
border-radius: 22px;
border: 1px solid var(--page-border);
background: var(--page-card-strong);
}
.insight-card h3 {
margin: 0;
font-size: 1rem;
letter-spacing: -0.02em;
}
.insight-card p {
margin: 10px 0 0;
color: var(--page-muted);
line-height: 1.55;
font-size: 0.92rem;
}
.idea-grid {
display: grid;
grid-template-columns: repeat(3, minmax(0, 1fr));
gap: 14px;
}
.idea-card {
padding: 22px;
}
.idea-card h3 {
margin: 0;
font-size: 1.1rem;
letter-spacing: -0.03em;
}
.idea-card p {
margin: 12px 0 0;
color: var(--page-muted);
line-height: 1.65;
font-size: 0.94rem;
}
.idea-card strong {
color: var(--page-ink);
}
@media (max-width: 1180px) {
.page-shell {
grid-template-columns: 1fr;
}
.sidebar {
position: relative;
top: 0;
min-height: 0;
}
}
@media (max-width: 900px) {
.hero-grid,
.insight-grid,
.idea-grid {
grid-template-columns: 1fr;
}
}
@media (max-width: 720px) {
.page-shell {
padding: 14px;
gap: 14px;
}
.sidebar-header,
.mode-switcher,
.mode-card,
.selection-card {
margin-left: 0;
margin-right: 0;
}
.sidebar-header,
.mode-switcher,
.menu-area,
.selection-card,
.hero-card,
.content-body {
padding-left: 16px;
padding-right: 16px;
}
.hero-card {
padding-top: 22px;
padding-bottom: 22px;
}
.browser-bar {
flex-wrap: wrap;
}
.browser-url {
order: 3;
width: 100%;
}
}
@media (prefers-reduced-motion: reduce) {
*,
*::before,
*::after {
transition-duration: 1ms !important;
animation-duration: 1ms !important;
scroll-behavior: auto !important;
}
}
</style>
</head>
<body data-mode="basic">
<div class="page-shell">
<aside class="sidebar" aria-label="좌측 메뉴 데모">
<header class="sidebar-header">
<p class="sidebar-label">Sidebar Only Switch</p>
<h1 class="sidebar-title">코스 탐색 모드</h1>
</header>
<div class="mode-switcher" aria-label="메뉴 모드 선택">
<button class="mode-button active" type="button" aria-pressed="true" data-mode="basic">기본</button>
<button class="mode-button" type="button" aria-pressed="false" data-mode="advanced">심화</button>
</div>
<section class="mode-card" aria-live="polite">
<span class="mode-chip" id="modeChip">기본 과정 · 1일차</span>
<h2 id="modeTitle">M00부터 M17까지 기본 과정</h2>
<div class="mode-tags" id="modeTags"></div>
</section>
<div class="menu-area">
<div class="menu-panel" id="menuPanel"></div>
</div>
<section class="selection-card">
<span class="selection-label">선택된 메뉴 미리보기</span>
<h2 class="selection-title" id="selectionTitle">M14. 도구 - 멀티에이전트</h2>
<span class="selection-path" id="selectionPath">기본 / 도구 - 멀티에이전트 / 법무 에이전트 만들기</span>
</section>
</aside>
<main class="content-area">
<section class="hero-card">
<p class="eyebrow">Two-tab Demo</p>
<h1>기본 / 심화 좌측 메뉴 전환 데모</h1>
<p>이 데모는 레이아웃 전체를 바꾸지 않고, 사이드바 메뉴만 <strong>기본</strong>과 <strong>심화</strong> 두 탭으로 나눕니다. 기본은 M00부터 M17까지, 심화는 S01부터 S02까지 보여주고, 접힘은 모듈 아래 실습 콘텐츠에만 한 단계 적용합니다.</p>
<div class="hero-grid">
<div class="hero-metric">
<strong>기본 모드</strong>
<span>M00부터 M17까지를 현재 데모의 네이비 테마로 보여주는 기본 과정 메뉴.</span>
</div>
<div class="hero-metric">
<strong>심화 모드</strong>
<span>S01부터 S02까지를 현재 데모의 갈색 테마로 보여주는 심화 과정 메뉴.</span>
</div>
</div>
</section>
<section class="content-card">
<div class="browser-bar">
<div class="browser-dots" aria-hidden="true">
<span></span>
<span></span>
<span></span>
</div>
<div class="browser-url">https://microsoft.github.io/easycopilotlab</div>
<div class="browser-chip" id="liveModeText">현재 메뉴 관점: 기본</div>
</div>
<div class="content-body">
<span class="content-note">모듈 하위 실습만 접히는 구조입니다</span>
<h2 class="content-title">M14 아래 M14-1, M14-2처럼 한 단계만 접힙니다</h2>
<p class="content-copy">부모 모듈은 항상 보이고, 그 아래에 있는 실습 콘텐츠만 펼치고 접습니다. 예를 들어 M14를 열면 M14-1과 M14-2가 보이는 식으로, 현재 사이트의 모듈 구조를 단순하게 유지하면서도 하위 실습만 정리할 수 있습니다.</p>
<div class="pill-row">
<span class="pill">기본 / 심화 2탭만 사용</span>
<span class="pill">모듈 하위 실습만 1단계 접힘</span>
<span class="pill">기본은 네이비, 심화는 갈색 테마</span>
</div>
<div class="insight-grid">
<article class="insight-card">
<h3>기본 과정</h3>
<p>M00부터 M17까지 전체 흐름을 한 메뉴 안에서 보고, 실습이 있는 모듈만 펼쳐서 들어갈 수 있습니다.</p>
</article>
<article class="insight-card">
<h3>심화 과정</h3>
<p>S01과 S02만 간단하게 노출해, 아직 준비 중인 심화 과정을 갈색 테마로 분리해서 보여줄 수 있습니다.</p>
</article>
</div>
</div>
</section>
<section class="idea-grid">
<article class="idea-card">
<h3>모듈 중심 구조</h3>
<p><strong>부모 모듈은 항상 노출</strong>되고, 그 아래 실습만 접히기 때문에 학습 흐름이 끊기지 않습니다.</p>
</article>
<article class="idea-card">
<h3>테마만 분리</h3>
<p><strong>기본과 심화의 시각 톤을 분리</strong>해 같은 사이트 안에서도 다른 코스처럼 보이게 만들 수 있습니다.</p>
</article>
<article class="idea-card">
<h3>실제 적용 포인트</h3>
<p><strong>현재 페이지 자동 하이라이트</strong>와 모듈 하위 1단계 접힘만 붙이면 실제 사이트에도 무리 없이 옮길 수 있습니다.</p>
</article>
</section>
</main>
</div>
<script>
const menuModes = {
basic: {
chip: "기본 과정 · 1일차",
liveText: "현재 메뉴 관점: 기본",
title: "M00부터 M17까지 기본 과정",
tags: ["M00-M17", "네이비 테마", "모듈 하위 1단계 접힘"],
sectionTitle: "기본 과정 전체",
items: [
{ id: "m00", code: "M00", title: "오리엔테이션", badge: "모듈", summary: "오늘 만들 에이전트와 하루 흐름을 먼저 확인합니다." },
{ id: "m01", code: "M01", title: "코파일럿 동작원리", badge: "모듈", summary: "에이전트와 코파일럿이 어떻게 움직이는지 가장 먼저 익힙니다." },
{ id: "m02", code: "M02", title: "에이전트의 사용방식", badge: "모듈", summary: "몰입형과 인컨텍스트 사용방식을 비교합니다." },
{
id: "m03",
code: "M03",
title: "에이전트 만들기 시작",
badge: "모듈",
summary: "첫 번째 에이전트를 만들며 하위 실습들을 한 단계로 접습니다.",
children: [
{ id: "m03-1", code: "실습 1", title: "HR 도우미 만들기", badge: "실습", summary: "에이전트 빌더로 첫 HR 도우미를 만듭니다." },
{ id: "m03-2", code: "실습 2", title: "솔루션 만들기", badge: "실습", summary: "생성한 에이전트를 솔루션 구조 안에 정리합니다." },
{ id: "m03-3", code: "실습 3", title: "Copilot Studio로 가져오기", badge: "실습", summary: "생성한 결과를 Copilot Studio 환경으로 연결합니다." },