-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
894 lines (787 loc) · 25.2 KB
/
index.html
File metadata and controls
894 lines (787 loc) · 25.2 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
<!DOCTYPE html>
<html lang="ko">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>SKKUDING 연구소 — 연구원 DNA 분석</title>
<link href="https://fonts.googleapis.com/css2?family=Space+Mono:wght@400;700&family=Noto+Sans+KR:wght@300;400;500;700;900&display=swap" rel="stylesheet">
<style>
:root {
--bg: #0a0a0f;
--surface: #12121a;
--border: #1e1e2e;
--accent: #00ff88;
--accent2: #ff6b35;
--accent3: #7c6aff;
--text: #e8e8f0;
--muted: #6b6b8a;
--team-plan: #ff6b35;
--team-design: #ff3da6;
--team-front: #00c9ff;
--team-back: #7c6aff;
--team-infra: #00ff88;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
background: var(--bg);
color: var(--text);
font-family: 'Noto Sans KR', sans-serif;
min-height: 100vh;
overflow-x: hidden;
}
/* Grid background */
body::before {
content: '';
position: fixed;
inset: 0;
background-image:
linear-gradient(rgba(0,255,136,0.03) 1px, transparent 1px),
linear-gradient(90deg, rgba(0,255,136,0.03) 1px, transparent 1px);
background-size: 40px 40px;
pointer-events: none;
z-index: 0;
}
/* Glowing orb */
body::after {
content: '';
position: fixed;
top: -200px;
right: -200px;
width: 600px;
height: 600px;
background: radial-gradient(circle, rgba(124,106,255,0.12) 0%, transparent 70%);
pointer-events: none;
z-index: 0;
}
.container {
position: relative;
z-index: 1;
max-width: 680px;
margin: 0 auto;
padding: 40px 24px 80px;
}
/* Header */
.lab-header {
display: flex;
align-items: center;
gap: 12px;
margin-bottom: 60px;
font-family: 'Space Mono', monospace;
font-size: 11px;
color: var(--muted);
letter-spacing: 2px;
text-transform: uppercase;
}
.lab-header .dot {
width: 8px; height: 8px;
border-radius: 50%;
background: var(--accent);
animation: pulse 2s infinite;
}
@keyframes pulse {
0%, 100% { opacity: 1; transform: scale(1); }
50% { opacity: 0.4; transform: scale(0.8); }
}
/* Intro screen */
#screen-intro { animation: fadeIn 0.6s ease; }
.title-block {
margin-bottom: 48px;
}
.eyebrow {
font-family: 'Space Mono', monospace;
font-size: 11px;
color: var(--accent);
letter-spacing: 3px;
text-transform: uppercase;
margin-bottom: 16px;
}
h1 {
font-size: clamp(32px, 6vw, 52px);
font-weight: 900;
line-height: 1.1;
letter-spacing: -1px;
}
h1 .highlight {
position: relative;
display: inline-block;
color: var(--accent);
}
.subtitle {
margin-top: 20px;
font-size: 15px;
color: var(--muted);
line-height: 1.7;
font-weight: 300;
}
/* Team chips */
.team-chips {
display: flex;
flex-wrap: wrap;
gap: 8px;
margin: 32px 0 40px;
}
.chip {
padding: 6px 14px;
border-radius: 20px;
font-size: 12px;
font-weight: 700;
letter-spacing: 0.5px;
border: 1px solid;
font-family: 'Space Mono', monospace;
}
.chip-plan { color: var(--team-plan); border-color: var(--team-plan); background: rgba(255,107,53,0.08); }
.chip-design { color: var(--team-design); border-color: var(--team-design); background: rgba(255,61,166,0.08); }
.chip-front { color: var(--team-front); border-color: var(--team-front); background: rgba(0,201,255,0.08); }
.chip-back { color: var(--team-back); border-color: var(--team-back); background: rgba(124,106,255,0.08); }
.chip-infra { color: var(--team-infra); border-color: var(--team-infra); background: rgba(0,255,136,0.08); }
/* Start button */
.btn-start {
display: inline-flex;
align-items: center;
gap: 10px;
background: var(--accent);
color: #000;
border: none;
padding: 16px 32px;
font-family: 'Space Mono', monospace;
font-size: 13px;
font-weight: 700;
letter-spacing: 1px;
text-transform: uppercase;
cursor: pointer;
clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 12px 100%, 0 calc(100% - 12px));
transition: all 0.2s;
}
.btn-start:hover {
background: #00cc6a;
transform: translateY(-2px);
box-shadow: 0 8px 24px rgba(0,255,136,0.3);
}
.btn-start .arrow { font-size: 16px; }
/* Info cards */
.info-row {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 12px;
margin-bottom: 40px;
}
.info-card {
background: var(--surface);
border: 1px solid var(--border);
padding: 16px 20px;
font-size: 13px;
}
.info-card .label {
font-family: 'Space Mono', monospace;
font-size: 10px;
color: var(--muted);
letter-spacing: 1.5px;
text-transform: uppercase;
margin-bottom: 6px;
}
.info-card .value {
font-weight: 700;
font-size: 14px;
}
/* Quiz screen */
#screen-quiz { display: none; animation: fadeIn 0.5s ease; }
.progress-bar-wrap {
margin-bottom: 40px;
}
.progress-meta {
display: flex;
justify-content: space-between;
font-family: 'Space Mono', monospace;
font-size: 11px;
color: var(--muted);
margin-bottom: 8px;
letter-spacing: 1px;
}
.progress-bar {
height: 2px;
background: var(--border);
position: relative;
overflow: hidden;
}
.progress-fill {
height: 100%;
background: var(--accent);
transition: width 0.4s ease;
box-shadow: 0 0 8px var(--accent);
}
.q-number {
font-family: 'Space Mono', monospace;
font-size: 11px;
color: var(--accent);
letter-spacing: 2px;
text-transform: uppercase;
margin-bottom: 12px;
}
.q-text {
font-size: clamp(18px, 3vw, 24px);
font-weight: 700;
line-height: 1.4;
margin-bottom: 32px;
min-height: 70px;
}
.options {
display: flex;
flex-direction: column;
gap: 12px;
}
.option-btn {
background: var(--surface);
border: 1px solid var(--border);
color: var(--text);
padding: 20px 24px;
text-align: left;
cursor: pointer;
font-family: 'Noto Sans KR', sans-serif;
font-size: 14px;
font-weight: 400;
line-height: 1.5;
transition: all 0.2s;
position: relative;
overflow: hidden;
}
.option-btn::before {
content: '';
position: absolute;
left: 0; top: 0;
width: 3px; height: 100%;
background: var(--accent);
transform: scaleY(0);
transition: transform 0.2s;
}
.option-btn:hover {
border-color: var(--accent);
background: rgba(0,255,136,0.05);
transform: translateX(4px);
}
.option-btn:hover::before {
transform: scaleY(1);
}
.option-btn.selected {
border-color: var(--accent);
background: rgba(0,255,136,0.1);
}
.option-btn.selected::before {
transform: scaleY(1);
}
.option-label {
font-family: 'Space Mono', monospace;
font-size: 10px;
color: var(--muted);
letter-spacing: 1px;
margin-bottom: 6px;
display: block;
}
/* Result screen */
#screen-result { display: none; animation: fadeIn 0.8s ease; }
.result-header {
font-family: 'Space Mono', monospace;
font-size: 11px;
color: var(--muted);
letter-spacing: 2px;
text-transform: uppercase;
margin-bottom: 24px;
}
.result-team-badge {
display: inline-block;
font-family: 'Space Mono', monospace;
font-size: 10px;
font-weight: 700;
letter-spacing: 2px;
text-transform: uppercase;
padding: 6px 14px;
border: 1px solid;
margin-bottom: 20px;
}
.result-title {
font-size: clamp(28px, 5vw, 44px);
font-weight: 900;
line-height: 1.1;
margin-bottom: 8px;
letter-spacing: -0.5px;
}
.result-subtitle {
font-family: 'Space Mono', monospace;
font-size: 13px;
margin-bottom: 32px;
}
.result-desc-box {
border: 1px solid var(--border);
background: var(--surface);
padding: 28px;
margin-bottom: 28px;
position: relative;
}
.result-desc-box .quote-mark {
font-size: 48px;
line-height: 1;
opacity: 0.15;
position: absolute;
top: 16px;
left: 20px;
font-family: Georgia, serif;
}
.result-desc {
font-size: 15px;
line-height: 1.8;
font-weight: 300;
padding-left: 24px;
}
.result-traits {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 10px;
margin-bottom: 28px;
}
.trait {
background: var(--surface);
border: 1px solid var(--border);
padding: 14px 16px;
font-size: 13px;
display: flex;
align-items: center;
gap: 10px;
}
.trait-icon { font-size: 18px; }
.score-bar-section {
margin-bottom: 32px;
}
.score-bar-section .label {
font-family: 'Space Mono', monospace;
font-size: 10px;
color: var(--muted);
letter-spacing: 1.5px;
text-transform: uppercase;
margin-bottom: 12px;
}
.score-row {
display: flex;
align-items: center;
gap: 12px;
margin-bottom: 8px;
font-size: 12px;
}
.score-team-name {
font-family: 'Space Mono', monospace;
font-size: 10px;
width: 56px;
flex-shrink: 0;
letter-spacing: 0.5px;
}
.score-track {
flex: 1;
height: 6px;
background: var(--border);
border-radius: 0;
overflow: hidden;
}
.score-fill {
height: 100%;
border-radius: 0;
transition: width 1s ease 0.3s;
}
.score-num {
font-family: 'Space Mono', monospace;
font-size: 10px;
color: var(--muted);
width: 16px;
text-align: right;
}
.result-cta {
background: var(--surface);
border: 1px solid var(--border);
padding: 24px;
margin-bottom: 24px;
display: flex;
align-items: center;
gap: 16px;
}
.result-cta .cta-icon { font-size: 28px; }
.result-cta .cta-text { font-size: 13px; line-height: 1.6; }
.result-cta .cta-text strong { display: block; margin-bottom: 4px; }
.btn-retry {
background: transparent;
border: 1px solid var(--muted);
color: var(--muted);
padding: 12px 24px;
font-family: 'Space Mono', monospace;
font-size: 11px;
letter-spacing: 1.5px;
text-transform: uppercase;
cursor: pointer;
transition: all 0.2s;
margin-right: 12px;
}
.btn-retry:hover {
border-color: var(--text);
color: var(--text);
}
.btn-stage2 {
background: var(--accent);
border: none;
color: #000;
padding: 12px 24px;
font-family: 'Space Mono', monospace;
font-size: 11px;
letter-spacing: 1.5px;
text-transform: uppercase;
cursor: pointer;
font-weight: 700;
transition: all 0.2s;
}
.btn-stage2:hover {
background: #00cc6a;
box-shadow: 0 4px 16px rgba(0,255,136,0.3);
}
.divider {
border: none;
border-top: 1px solid var(--border);
margin: 32px 0;
}
@keyframes fadeIn {
from { opacity: 0; transform: translateY(16px); }
to { opacity: 1; transform: translateY(0); }
}
/* Scan line animation on result */
.scan-anim {
position: relative;
overflow: hidden;
}
.scan-anim::after {
content: '';
position: absolute;
left: 0; top: -100%;
width: 100%;
height: 100%;
background: linear-gradient(transparent 0%, rgba(0,255,136,0.04) 50%, transparent 100%);
animation: scan 2s linear infinite;
}
@keyframes scan {
from { top: -100%; }
to { top: 100%; }
}
@media (max-width: 480px) {
.info-row { grid-template-columns: 1fr; }
.result-traits { grid-template-columns: 1fr; }
h1 { font-size: 28px; }
}
</style>
</head>
<body>
<div class="container">
<div class="lab-header">
<div class="dot"></div>
<span>SKKUDING Research Lab</span>
<span style="margin-left:auto; font-size:10px;">SYSTEM ACTIVE</span>
</div>
<!-- INTRO SCREEN -->
<div id="screen-intro">
<div class="title-block">
<div class="eyebrow">// Researcher DNA Analysis v1.0</div>
<h1>당신의 숨겨진<br><span class="highlight">개발 DNA</span>를<br>분석합니다</h1>
<p class="subtitle">SKKUDING 연구소의 정밀 진단 시스템이<br>당신이 속할 팀을 찾아드립니다.</p>
</div>
<div class="info-row">
<div class="info-card">
<div class="label">Questions</div>
<div class="value">8문항</div>
</div>
<div class="info-card">
<div class="label">Time Required</div>
<div class="value">약 2분</div>
</div>
</div>
<div class="team-chips">
<span class="chip chip-plan">기획</span>
<span class="chip chip-design">디자인</span>
<span class="chip chip-front">프론트엔드</span>
<span class="chip chip-back">백엔드</span>
<span class="chip chip-infra">인프라</span>
</div>
<button class="btn-start" onclick="startQuiz()">
<span>분석 시작</span>
<span class="arrow">→</span>
</button>
</div>
<!-- QUIZ SCREEN -->
<div id="screen-quiz">
<div class="progress-bar-wrap">
<div class="progress-meta">
<span id="q-progress-text">01 / 06</span>
<span id="q-category-text">ANALYSIS</span>
</div>
<div class="progress-bar">
<div class="progress-fill" id="progress-fill" style="width:0%"></div>
</div>
</div>
<div class="q-number" id="q-number">QUESTION 01</div>
<div class="q-text" id="q-text"></div>
<div class="options" id="options-container"></div>
</div>
<!-- RESULT SCREEN -->
<div id="screen-result">
<div class="result-header">// Analysis Complete</div>
<div id="result-badge" class="result-team-badge"></div>
<div class="result-title" id="result-title"></div>
<div class="result-subtitle" id="result-subtitle"></div>
<div class="result-desc-box scan-anim">
<span class="quote-mark">"</span>
<div class="result-desc" id="result-desc"></div>
</div>
<div class="result-traits" id="result-traits"></div>
<hr class="divider">
<div class="score-bar-section">
<div class="label">// Team Compatibility Score</div>
<div id="score-bars"></div>
</div>
<hr class="divider">
<div class="result-cta">
<div class="cta-icon">🔬</div>
<div class="cta-text">
<strong>스테이지 2로 이동하세요!</strong>
SKKUDING 연구소에서 최종 연구원 인증을 완료하세요.
</div>
</div>
<div>
<button class="btn-retry" onclick="restartQuiz()">다시하기</button>
</div>
</div>
</div>
<script>
const QUESTIONS = [
{
text: "팀 프로젝트 킥오프 미팅. 나는 자연스럽게...",
category: "BEHAVIOR",
a: { text: "전체 로드맵과 우선순위를 먼저 정리한다", scores: { plan:3, design:1, front:0, back:1, infra:1 } },
b: { text: "일단 만들고 싶은 기능 아이디어를 쏟아낸다", scores: { plan:1, design:2, front:2, back:0, infra:1 } }
},
{
text: "새로운 앱을 처음 열었을 때, 가장 먼저 눈에 들어오는 건?",
category: "PERCEPTION",
a: { text: "버튼 배치, 색감, 전체적인 분위기", scores: { plan:1, design:3, front:1, back:1, infra:0 } },
b: { text: "로딩 속도, 화면 전환, 반응 속도", scores: { plan:1, design:1, front:1, back:0, infra:3 } }
},
{
text: "길을 걷다 갑자기 길을 잃었다. 나는?",
category: "THINKING",
a: { text: "지도 앱으로 전체 경로를 먼저 파악한 뒤 움직인다", scores: { plan:3, design:1, front:1, back:0, infra:1 } },
b: { text: "일단 걷다가 표지판 보고, 안 되면 물어본다", scores: { plan:0, design:1, front:1, back:3, infra:1 } }
},
{
text: "서비스에 버그가 터졌다는 연락이 왔다! 나의 반응은?",
category: "SCENARIO",
a: { text: "로그 열고 에러 메시지부터 추적한다", scores: { plan:1, design:1, front:1, back:3, infra:1 } },
b: { text: "어느 화면에서 어떻게 보이는지 먼저 확인한다", scores: { plan:1, design:1, front:3, back:0, infra:1 } }
},
{
text: "내가 가장 뿌듯함을 느끼는 순간은?",
category: "VALUES",
a: { text: "내가 만든 게 화면에 예쁘게 보일 때", scores: { plan:1, design:3, front:2, back:0, infra:0 } },
b: { text: "내가 짠 구조가 문제없이 돌아가고 있을 때", scores: { plan:2, design:0, front:0, back:2, infra:2 } }
},
{
text: "새로운 프로젝트를 맡았을 때, 나는 어디서부터 시작하나?",
category: "APPROACH",
a: { text: "\"왜 만드는가\"와 \"누가 쓰는가\"부터 정의한다", scores: { plan:3, design:1, front:1, back:1, infra:0 } },
b: { text: "\"어떻게 구현할까\"와 \"뭘 써야 하나\"부터 고민한다", scores: { plan:0, design:1, front:1, back:1, infra:3 } }
},
{
text: "똑같은 정보를 전달할 때, 나는?",
category: "VALUES",
a: { text: "같은 내용이라도 어떻게 보여주느냐가 중요하다", scores: { plan:1, design:3, front:2, back:0, infra:0 } },
b: { text: "내용이 정확하면 형식은 나중 문제다", scores: { plan:1, design:0, front:1, back:3, infra:1 } }
},
{
text: "팀에서 내가 맡은 역할에 대해 나는?",
category: "MINDSET",
a: { text: "잘 돌아가고 있을 때 아무도 몰라도 괜찮다", scores: { plan:1, design:1, front:1, back:1, infra:3 } },
b: { text: "내가 만든 게 사람들 눈에 띄어야 보람 있다", scores: { plan:1, design:1, front:3, back:0, infra:0 } }
}
];
const RESULTS = {
plan: {
badge: "PLANNER",
title: "기획 연구원",
subtitle: "전략형 설계자",
color: "#ff6b35",
desc: "당신은 '왜'와 '어떻게'를 가장 먼저 생각하는 사람입니다. 큰 그림을 그리고 목표를 향해 체계적으로 접근하는 능력이 탁월해요. SKKUDING에서는 서비스의 방향을 설계하고 사용자 경험을 정의하는 핵심 역할을 맡게 됩니다.",
traits: [
{ icon: "🗺️", text: "큰 그림을 먼저 본다" },
{ icon: "📊", text: "데이터 기반 의사결정" },
{ icon: "💬", text: "뛰어난 커뮤니케이션" },
{ icon: "🎯", text: "목표 지향적 사고" }
],
cta: "코드당의 기획·운영 방향을 함께 고민해요!"
},
design: {
badge: "DESIGNER",
title: "디자인 연구원",
subtitle: "감각형 창조자",
color: "#ff3da6",
desc: "당신의 눈은 아름다움과 사용성 사이의 균형을 본능적으로 찾아냅니다. 색감, 레이아웃, 타이포그래피에 감각이 있고, 사용자가 '편하다'고 느끼는 순간을 만들어내는 데 뛰어나요. SKKUDING에서는 코드당의 얼굴을 디자인합니다.",
traits: [
{ icon: "🎨", text: "탁월한 미적 감각" },
{ icon: "👁️", text: "디테일에 강하다" },
{ icon: "🖌️", text: "창의적 문제 해결" },
{ icon: "💡", text: "사용자 공감 능력" }
],
cta: "코드당의 UI/UX를 함께 만들어가요!"
},
front: {
badge: "FRONTEND",
title: "프론트엔드 연구원",
subtitle: "구현형 인터페이서",
color: "#00c9ff",
desc: "당신은 '눈에 보이는 것'에 진심인 개발자 타입입니다. 디자인을 살아 움직이게 만들고, 사용자가 직접 상호작용하는 경험을 코드로 구현하는 데 흥미를 느껴요. SKKUDING에서는 코드당 플랫폼의 화면을 직접 만들어냅니다.",
traits: [
{ icon: "⚡", text: "빠른 프로토타이핑" },
{ icon: "🖥️", text: "인터랙션에 진심" },
{ icon: "🔧", text: "실용적 접근 방식" },
{ icon: "✨", text: "디테일한 마감" }
],
cta: "코드당 플랫폼의 화면을 함께 만들어요!"
},
back: {
badge: "BACKEND",
title: "백엔드 연구원",
subtitle: "논리형 엔진 개발자",
color: "#7c6aff",
desc: "당신은 겉보다 속이 탄탄해야 한다고 믿는 타입입니다. 데이터가 어디서 오고 어떻게 흐르는지, 시스템이 왜 그렇게 동작하는지를 파고드는 걸 좋아해요. SKKUDING에서는 코드당의 핵심 로직과 API를 설계합니다.",
traits: [
{ icon: "🧩", text: "구조적 사고" },
{ icon: "🔍", text: "근본 원인 탐구" },
{ icon: "📐", text: "체계적 설계 능력" },
{ icon: "💪", text: "완성도에 집착" }
],
cta: "코드당의 핵심 서버를 함께 만들어요!"
},
infra: {
badge: "INFRA",
title: "인프라 연구원",
subtitle: "안정형 시스템 수호자",
color: "#00ff88",
desc: "당신은 보이지 않는 곳에서 모든 것이 돌아가도록 만드는 사람입니다. 속도, 안정성, 확장성에 집착하고, 시스템 전체를 조망하는 시각을 가졌어요. SKKUDING에서는 코드당이 언제나 빠르고 안정적으로 운영될 수 있도록 지킵니다.",
traits: [
{ icon: "🏗️", text: "시스템 전체를 본다" },
{ icon: "🛡️", text: "안정성 최우선" },
{ icon: "⚙️", text: "자동화를 좋아함" },
{ icon: "📡", text: "문제 예방 능력" }
],
cta: "코드당의 인프라를 함께 지켜요!"
}
};
let currentQ = 0;
let scores = { plan:0, design:0, front:0, back:0, infra:0 };
function startQuiz() {
document.getElementById('screen-intro').style.display = 'none';
document.getElementById('screen-quiz').style.display = 'block';
currentQ = 0;
scores = { plan:0, design:0, front:0, back:0, infra:0 };
renderQuestion();
}
function renderQuestion() {
const q = QUESTIONS[currentQ];
const total = QUESTIONS.length;
document.getElementById('q-progress-text').textContent =
String(currentQ+1).padStart(2,'0') + ' / ' + String(total).padStart(2,'0');
document.getElementById('q-category-text').textContent = q.category;
document.getElementById('q-number').textContent = 'QUESTION ' + String(currentQ+1).padStart(2,'0');
document.getElementById('q-text').textContent = q.text;
document.getElementById('progress-fill').style.width = (currentQ / total * 100) + '%';
const container = document.getElementById('options-container');
container.innerHTML = '';
['a','b'].forEach(key => {
const btn = document.createElement('button');
btn.className = 'option-btn';
btn.innerHTML = `<span class="option-label">${key.toUpperCase()}</span>${q[key].text}`;
btn.onclick = () => selectOption(key);
container.appendChild(btn);
});
}
function selectOption(key) {
const q = QUESTIONS[currentQ];
const chosen = q[key];
// add scores
for (let team in chosen.scores) {
scores[team] += chosen.scores[team];
}
// highlight briefly
const btns = document.querySelectorAll('.option-btn');
btns[key === 'a' ? 0 : 1].classList.add('selected');
setTimeout(() => {
currentQ++;
if (currentQ < QUESTIONS.length) {
document.getElementById('screen-quiz').style.animation = 'none';
document.getElementById('screen-quiz').offsetHeight;
document.getElementById('screen-quiz').style.animation = 'fadeIn 0.4s ease';
renderQuestion();
if (document.activeElement) document.activeElement.blur();
} else {
showResult();
}
}, 350);
}
function showResult() {
// Find winning team
let maxScore = -1;
let winner = 'plan';
for (let team in scores) {
if (scores[team] > maxScore) {
maxScore = scores[team];
winner = team;
}
}
const r = RESULTS[winner];
document.getElementById('screen-quiz').style.display = 'none';
document.getElementById('screen-result').style.display = 'block';
const badge = document.getElementById('result-badge');
badge.textContent = r.badge;
badge.style.color = r.color;
badge.style.borderColor = r.color;
badge.style.background = r.color + '18';
document.getElementById('result-title').textContent = r.title;
document.getElementById('result-title').style.color = r.color;
document.getElementById('result-subtitle').textContent = '// ' + r.subtitle;
document.getElementById('result-subtitle').style.color = r.color;
document.getElementById('result-desc').textContent = r.desc;
// Traits
const traitsEl = document.getElementById('result-traits');
traitsEl.innerHTML = r.traits.map(t =>
`<div class="trait"><span class="trait-icon">${t.icon}</span><span>${t.text}</span></div>`
).join('');
// Score bars
const teamNames = { plan:'기획', design:'디자인', front:'프론트', back:'백엔드', infra:'인프라' };
const teamColors = { plan:'#ff6b35', design:'#ff3da6', front:'#00c9ff', back:'#7c6aff', infra:'#00ff88' };
const maxVal = Math.max(...Object.values(scores)) || 1;
const barsEl = document.getElementById('score-bars');
barsEl.innerHTML = Object.entries(scores)
.sort((a,b) => b[1]-a[1])
.map(([team, val]) =>
`<div class="score-row">
<span class="score-team-name" style="color:${teamColors[team]}">${teamNames[team]}</span>
<div class="score-track">
<div class="score-fill" style="width:0%;background:${teamColors[team]}" data-pct="${val/maxVal*100}"></div>
</div>
<span class="score-num">${val}</span>
</div>`
).join('');
// Animate bars after paint
setTimeout(() => {
document.querySelectorAll('.score-fill').forEach(el => {
el.style.width = el.dataset.pct + '%';
});
}, 100);
}
function restartQuiz() {
document.getElementById('screen-result').style.display = 'none';
document.getElementById('screen-intro').style.display = 'block';
currentQ = 0;
scores = { plan:0, design:0, front:0, back:0, infra:0 };
}
</script>
</body>
</html>