-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.py
More file actions
2283 lines (2098 loc) · 114 KB
/
main.py
File metadata and controls
2283 lines (2098 loc) · 114 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
import streamlit as st
# 페이지 설정
st.set_page_config(page_title="성향에 맞는 공부법 찾기", page_icon=":books:", layout="wide")
def main() :
# 상단 헤더 섹션
st.markdown("<h1 style='text-align: center; font-size: 20px; border-bottom: 1px solid #9b6cc3; color: #9b6cc3;'>성향에 맞는 공부법 찾기</h1>", unsafe_allow_html=True)
st.markdown("<h2 style='text-align: center; font-size: 20px; padding-top: 50px; padding-bottom: 0; padding-left: 10vw; opacity: 0.6; color: #9b6cc3;'>feat MBTI</h2>", unsafe_allow_html=True)
st.markdown("<h1 style='text-align: center; line-height: 0; font-size: 48px;'>성공법</h1>", unsafe_allow_html=True)
# MBTI 버튼 섹션
col1, col2, col3 = st.columns([1, 3, 1])
with col1:
if st.button("MBTI 검사"):
st.session_state['page'] = 'start'
st.experimental_rerun()
with col3:
if st.button("공부법") :
st.session_state['page'] = 'study'
st.experimental_rerun()
# MBTI 타입 섹션
st.subheader("특징 및 성향")
mbti_types = [
["ESFP", "ENFP", "ISFP", "INFP"],
["ESFJ", "ENFJ", "ISFJ", "INFJ"],
["ESTP", "ENTP", "ISTP", "INTP"],
["ESTJ", "ENTJ", "ISTJ", "INTJ"]
]
for row in mbti_types:
cols = st.columns(4)
for i, col in enumerate(cols):
if col.button(row[i]):
st.session_state['mbti_result'] = row[i]
st.session_state['page'] = 'details'
st.experimental_rerun()
def mbti_start() :
# 중앙에 텍스트와 버튼 배치
st.markdown("<h2 style='text-align: center; padding-top: 200px;'>MBTI 검사를 시작합니다</h2>", unsafe_allow_html=True)
# 버튼을 중앙에 배치
col1, col2, col3 = st.columns([1, 2, 1])
with col2:
if st.button('START'):
st.session_state['page'] = 'test'
st.experimental_rerun()
# 버튼 스타일
st.markdown(
"""
<style>
div.stButton > button {
background-color: #9b6cc3;
color: white;
width: 100%;
height: 50px;
font-size: 20px;
border-radius: 5px;
}
</style>
""",
unsafe_allow_html=True
)
# 페이지 이동 처리
if 'page' in st.session_state and st.session_state['page'] == 'test':
st.experimental_rerun()
def show_mbti_test():
# 상단 헤더 섹션
st.markdown("<h1 style='text-align: center; color: #9b6cc3;'>MBTI 검사</h1>", unsafe_allow_html=True)
# 홈 버튼
if st.button('홈'):
st.session_state['page'] = 'home'
st.experimental_rerun()
# 폼 섹션
with st.form(key='mbti_form'):
st.markdown("##### 쉬는 시간이 생겼을 때")
score1 = st.radio("", ("집에 혼자 있는 걸 좋아한다.", "나가서 사람들과 어울리는 걸 좋아한다."), index=0, key='question1')
st.markdown("##### 엘리베이터를 탔을 때")
score2 = st.radio("", ("엘리베이터는 이동수단일 뿐, 중간에 서지 않고 빨리만 올라갔으면 좋겠다.", "사고가 나면 어떻게 탈출을 해야 하지?"), index=0, key='question2')
st.markdown("##### 친구가 차사고가 났다고 연락이 왔을 때")
score3 = st.radio("", ("보험은 들었어?", "어떡해! 다친 데는 없어?"), index=0, key='question3')
st.markdown("##### 친구들과 함께 간 여행, 숙소에서 짐을 풀고 나가자! 했을 때")
score4 = st.radio("", ("어디 가게?", "일단 나가서 생각하자!!"), index=0, key='question4')
submit_button = st.form_submit_button(label='제출')
if submit_button:
submit_mbti(score1, score2, score3, score4)
st.session_state['page'] = 'result'
st.experimental_rerun()
def submit_mbti(score1, score2, score3, score4):
result = ""
if (score1 == '집에 혼자 있는 걸 좋아한다.') :
result += "I"
else:
result += "E"
if (score2 == '엘리베이터는 이동수단일 뿐, 중간에 서지 않고 빨리만 올라갔으면 좋겠다.') :
result += "S"
else:
result += "N"
if (score3 == '보험은 들었어?') :
result += "T"
else:
result += "F"
if (score4 == '어디 가게?') :
result += "J"
else:
result += "P"
# 결과를 세션 상태에 저장
st.session_state['mbti_result'] = result
def show_result():
# 상단 헤더 섹션
st.markdown("<h1 style='text-align: center; color: #9b6cc3;'>MBTI 결과</h1>", unsafe_allow_html=True)
# 저장된 결과 불러오기
if 'mbti_result' in st.session_state:
result_html = f"""
<div style='text-align: center; font-size: 35px;'>
당신의 MBTI 유형은: <br> <span style='font-size: 70px; font-weight: bold;'>{st.session_state['mbti_result']}</span>
</div>
"""
st.markdown(result_html, unsafe_allow_html=True)
else:
st.write("아직 결과가 저장되지 않았습니다. 먼저 MBTI 검사를 완료하세요.")
# 두 버튼을 가로로 배치하고 스타일 적용
col1, col2 = st.columns([1, 1])
with col1:
if st.button('다시 검사하기', key='reset'):
st.session_state['page'] = 'test'
st.experimental_rerun()
with col2:
if st.button(f"{st.session_state['mbti_result']}의 특징 및 성향 확인하기", key='details'):
st.session_state['page'] = 'details'
st.experimental_rerun()
# 스타일 적용을 위한 CSS 추가
st.markdown(
"""
<style>
div.stButton > button {
width: 100%;
height: 50px;
font-size: 20px;
border-radius: 5px;
background-color: #9b6cc3;
color: white;
margin-top: 30px
}
</style>
""",
unsafe_allow_html=True
)
# 홈 버튼
if st.button('홈'):
st.session_state['page'] = 'home'
st.experimental_rerun()
def show_details_ESFP():
st.markdown("<h1 style='text-align: center; color: #FFD700;'>특징 및 성향 확인하기</h1>", unsafe_allow_html=True)
# 텍스트와 스타일 섹션
st.markdown(
"""
<div style='text-align: center; margin-top: 20px;'>
<h2 style='width:100px; height:60px; background-color: #FFD700; color: black; padding: 10px; border-radius: 5px;'>ESFP</h2>
</div>
<div style='margin-top: 30px; font-size: 18px;'>
<ul>
<li>사교적이고 외향적
<ul>
<li>사람들과의 상호 작용을 즐기며, 새로운 사람을 만나고 관계를 형성하는 것을 좋아합니다.</li>
<li>파티나 사회적 모임에서 에너지를 얻고, 주목받는 것을 즐깁니다.</li>
</ul>
</li>
<li>현실적이고 실용적
<ul>
<li>현재 순간에 집중하며, 현실적이고 실용적인 접근 방식을 선호합니다.</li>
<li>구체적이고 실질적인 정보를 다루는 것을 좋아하며, 세부 사항에 주의를 기울입니다.</li>
</ul>
</li>
<li>감정적이며 따뜻한
<ul>
<li>다른 사람들의 감정과 필요에 민감하며, 이를 이해하고 도우려는 성향이 강합니다.</li>
<li>공감 능력이 뛰어나며, 다른 사람들과의 관계에서 따뜻함과 이해를 보여줍니다.</li>
</ul>
</li>
<li>즉흥적이고 유연한
<ul>
<li>계획을 세우기보다는 즉흥적으로 행동하며, 변화에 유연하게 대처할 수 있습니다.</li>
<li>새로운 경험과 모험을 즐기며, 단조로운 일상보다는 다양한 활동을 선호합니다.</li>
</ul>
</li>
<li>즐거움을 추구하는 성향
<ul>
<li>재미와 즐거움을 중시하며, 삶을 즐기고 긍정적으로 살아가려는 태도를 가집니다.</li>
<li>엔터테인먼트, 예술, 스포츠 등 다양한 활동에서 즐거움을 찾습니다.</li>
</ul>
</li>
<li>강한 대인 관계 기술
<ul>
<li>훌륭한 대인 관계 기술을 가지고 있으며, 다른 사람들과의 상호 작용에서 능숙함을 보입니다.</li>
<li>협동적이고 팀 플레이어로서의 역할을 잘 수행합니다.</li>
</ul>
</li>
<li>리스크 테이커
<ul>
<li>새로운 도전과 리스크를 두려워하지 않고, 이를 통해 성장하고 배우는 것을 좋아합니다.</li>
<li>때로는 충동적인 결정을 내리기도 하지만, 이를 통해 다양한 경험을 쌓습니다.</li>
</ul>
</li>
</ul>
</div>
""",
unsafe_allow_html=True
)
# 두 버튼을 가로로 배치하고 스타일 적용
col1, col2 = st.columns([1, 1])
with col1:
if st.button('홈'):
st.session_state['page'] = 'home'
st.experimental_rerun()
with col2:
if st.button('ESFP에게 맞는 공부법 확인하기'):
st.session_state['page'] = 'study'
st.experimental_rerun()
# 스타일 적용을 위한 CSS 추가
st.markdown(
"""
<style>
div.stButton > button {
width: 100%;
height: 50px;
font-size: 20px;
border-radius: 5px;
background-color: #FFD700;
color: black;
margin-top: 30px
}
</style>
""",
unsafe_allow_html=True
)
def show_details_ESFJ():
st.markdown("<h1 style='text-align: center; color: #87CEEB;'>특징 및 성향 확인하기</h1>", unsafe_allow_html=True)
# 텍스트와 스타일 섹션
st.markdown(
"""
<div style='text-align: center; margin-top: 20px;'>
<h2 style='width:100px; height:60px; background-color: #87CEEB; color: black; padding: 10px; border-radius: 5px;'>ESFJ</h2>
</div>
<div style='margin-top: 30px; font-size: 18px;'>
<ul>
<li>사교적이고 외향적
<ul>
<li>사람들과의 상호 작용을 즐기며, 새로운 사람을 만나고 관계를 형성하는 것을 좋아합니다.</li>
<li>사회적 모임에서 에너지를 얻고, 다른 사람들과 함께하는 시간을 소중히 여깁니다.</li>
</ul>
</li>
<li>현실적이고 실용적
<ul>
<li>현재 순간에 집중하며, 구체적이고 실질적인 정보를 다루는 것을 선호합니다.</li>
<li>세부 사항에 주의를 기울이며, 현실적이고 실용적인 접근 방식을 중시합니다.</li>
</ul>
</li>
<li>감정적이며 따뜻한
<ul>
<li>다른 사람들의 감정과 필요에 민감하며, 이를 이해하고 도우려는 성향이 강합니다.</li>
<li>공감 능력이 뛰어나며, 다른 사람들과의 관계에서 따뜻함과 이해를 보여줍니다.</li>
</ul>
</li>
<li>조직적이고 계획적
<ul>
<li>체계적이고 조직적인 생활을 선호하며, 계획을 세워 이를 실행하는 데 능숙합니다.</li>
<li>규칙과 절차를 중시하며, 안정적이고 예측 가능한 환경을 좋아합니다.</li>
</ul>
</li>
<li>책임감 있고 신뢰할 수 있음
<ul>
<li>맡은 일에 책임감을 가지고 성실하게 임하며, 신뢰할 수 있는 사람으로 평가받습니다.</li>
<li>다른 사람들을 돕고 지원하는 데 적극적이며, 사회적 책임을 중요시합니다.</li>
</ul>
</li>
<li>조화와 협력을 중시
<ul>
<li>갈등을 피하고 조화를 유지하려 하며, 협력적인 관계를 중시합니다.</li>
<li>다른 사람들과의 협력을 통해 공동의 목표를 달성하는 것을 중요하게 생각합니다.</li>
</ul>
</li>
<li>전통과 규범을 중시
<ul>
<li>전통적 가치와 사회적 규범을 존중하며, 이를 지키려는 성향이 있습니다.</li>
<li>기존의 방식과 절차를 따르는 것을 선호하며, 변화를 두려워하기도 합니다.</li>
</ul>
</li>
</ul>
</div>
""",
unsafe_allow_html=True
)
# 두 버튼을 가로로 배치하고 스타일 적용
col1, col2 = st.columns([1, 1])
with col1:
if st.button('홈'):
st.session_state['page'] = 'home'
st.experimental_rerun()
with col2:
if st.button('ESFJ에게 맞는 공부법 확인하기'):
st.session_state['page'] = 'study'
st.experimental_rerun()
# 스타일 적용을 위한 CSS 추가
st.markdown(
"""
<style>
div.stButton > button {
width: 100%;
height: 50px;
font-size: 20px;
border-radius: 5px;
background-color: #87CEEB;
color: black;
margin-top: 30px
}
</style>
""",
unsafe_allow_html=True
)
def show_details_ESTP():
st.markdown("<h1 style='text-align: center; color: #FFD700;'>특징 및 성향 확인하기</h1>", unsafe_allow_html=True)
# 텍스트와 스타일 섹션
st.markdown(
"""
<div style='text-align: center; margin-top: 20px;'>
<h2 style='width:100px; height:60px; background-color: #FFD700; color: black; padding: 10px; border-radius: 5px;'>ESTP</h2>
</div>
<div style='margin-top: 30px; font-size: 18px;'>
<ul>
<li>사교적이고 외향적
<ul>
<li>사람들과의 상호 작용을 즐기며, 새로운 사람을 만나고 관계를 형성하는 것을 좋아합니다.</li>
<li>사회적 모임에서 에너지를 얻고, 다른 사람들과 함께하는 시간을 소중히 여깁니다.</li>
</ul>
</li>
<li>현실적이고 실용적
<ul>
<li>현재 순간에 집중하며, 구체적이고 실질적인 정보를 다루는 것을 선호합니다.</li>
<li>세부 사항에 주의를 기울이며, 현실적이고 실용적인 접근 방식을 중시합니다.</li>
</ul>
</li>
<li>문제 해결 능력
<ul>
<li>상황을 빠르게 분석하고 결정을 내리는 능력이 뛰어납니다.</li>
<li>긴박한 상황에서도 침착하게 대처하고 문제를 해결하는 데 능숙합니다.</li>
</ul>
</li>
<li>즉흥적이고 유연한
<ul>
<li>계획을 세우기보다는 즉흥적으로 행동하며, 변화에 유연하게 대처할 수 있습니다.</li>
<li>새로운 경험과 모험을 즐기며, 단조로운 일상보다는 다양한 활동을 선호합니다.</li>
</ul>
</li>
<li>논리적이고 분석적
<ul>
<li>문제를 논리적으로 분석하고, 객관적인 관점에서 판단을 내립니다.</li>
<li>상황을 비판적으로 바라보며, 효율적인 해결책을 찾기 위해 노력합니다.</li>
</ul>
</li>
<li>위험 감수 성향
<ul>
<li>새로운 도전과 리스크를 두려워하지 않고, 이를 통해 성장하고 배우는 것을 좋아합니다.</li>
<li>모험을 즐기며, 이를 통해 삶을 더 흥미롭게 만듭니다.</li>
</ul>
</li>
<li>대인 관계 기술
<ul>
<li>훌륭한 대인 관계 기술을 가지고 있으며, 다른 사람들과의 상호 작용에서 능숙함을 보입니다.</li>
<li>협력적이고 팀 플레이어로서의 역할을 잘 수행합니다.</li>
</ul>
</li>
</ul>
</div>
""",
unsafe_allow_html=True
)
# 두 버튼을 가로로 배치하고 스타일 적용
col1, col2 = st.columns([1, 1])
with col1:
if st.button('홈'):
st.session_state['page'] = 'home'
st.experimental_rerun()
with col2:
if st.button('ESTP에게 맞는 공부법 확인하기'):
st.session_state['page'] = 'study'
st.experimental_rerun()
# 스타일 적용을 위한 CSS 추가
st.markdown(
"""
<style>
div.stButton > button {
width: 100%;
height: 50px;
font-size: 20px;
border-radius: 5px;
background-color: #FFD700;
color: black;
margin-top: 30px
}
</style>
""",
unsafe_allow_html=True
)
def show_details_ESTJ():
st.markdown("<h1 style='text-align: center; color: #87CEEB;'>특징 및 성향 확인하기</h1>", unsafe_allow_html=True)
# 텍스트와 스타일 섹션
st.markdown(
"""
<div style='text-align: center; margin-top: 20px;'>
<h2 style='width:100px; height:60px; background-color: #87CEEB; color: black; padding: 10px; border-radius: 5px;'>ESTJ</h2>
</div>
<div style='margin-top: 30px; font-size: 18px;'>
<ul>
<li>사교적이고 외향적
<ul>
<li>사람들과의 상호 작용을 즐기며, 명확한 규칙과 질서를 중시합니다.</li>
<li>조직 내에서 지도자 역할을 맡는 것을 좋아합니다.</li>
</ul>
</li>
<li>현실적이고 실용적
<ul>
<li>구체적이고 실질적인 정보를 다루는 것을 선호합니다.</li>
<li>현실적인 접근 방식을 중시하며, 효율성과 생산성을 중요시합니다.</li>
</ul>
</li>
<li>조직적이고 계획적
<ul>
<li>체계적이고 조직적인 생활을 선호하며, 계획을 세워 이를 실행하는 데 능숙합니다.</li>
<li>규칙과 절차를 중시하며, 안정적이고 예측 가능한 환경을 좋아합니다.</li>
</ul>
</li>
<li>책임감 있고 신뢰할 수 있음
<ul>
<li>맡은 일에 책임감을 가지고 성실하게 임하며, 신뢰할 수 있는 사람으로 평가받습니다.</li>
<li>다른 사람들을 돕고 지원하는 데 적극적이며, 사회적 책임을 중요시합니다.</li>
</ul>
</li>
<li>리더십 발휘
<ul>
<li>지도자로서의 역할을 즐기며, 조직을 이끄는 데 능숙합니다.</li>
<li>목표 달성을 위해 전략을 세우고, 이를 추진하는 데 능숙합니다.</li>
</ul>
</li>
<li>결단력 있음
<ul>
<li>빠르고 단호한 결정을 내리는 능력이 있습니다.</li>
<li>위기 상황에서도 침착하게 결정을 내립니다.</li>
</ul>
</li>
<li>사회적 책임
<ul>
<li>사회적 규범과 책임을 중시하며, 이를 준수하려고 노력합니다.</li>
<li>사회적 문제에 관심을 가지고, 해결 방안을 찾기 위해 노력합니다.</li>
</ul>
</li>
</ul>
</div>
""",
unsafe_allow_html=True
)
# 두 버튼을 가로로 배치하고 스타일 적용
col1, col2 = st.columns([1, 1])
with col1:
if st.button('홈'):
st.session_state['page'] = 'home'
st.experimental_rerun()
with col2:
if st.button('ESTJ에게 맞는 공부법 확인하기'):
st.session_state['page'] = 'study'
st.experimental_rerun()
# 스타일 적용을 위한 CSS 추가
st.markdown(
"""
<style>
div.stButton > button {
width: 100%;
height: 50px;
font-size: 20px;
border-radius: 5px;
background-color: #87CEEB;
color: black;
margin-top: 30px
}
</style>
""",
unsafe_allow_html=True
)
def show_details_ENFP():
st.markdown("<h1 style='text-align: center; color: #3CB371;'>특징 및 성향 확인하기</h1>", unsafe_allow_html=True)
# 텍스트와 스타일 섹션
st.markdown(
"""
<div style='text-align: center; margin-top: 20px;'>
<h2 style='width:100px; height:60px; background-color: #3CB371; color: black; padding: 10px; border-radius: 5px;'>ENFP</h2>
</div>
<div style='margin-top: 30px; font-size: 18px;'>
<ul>
<li>사교적이고 외향적
<ul>
<li>사람들과의 상호 작용을 즐기며, 새로운 아이디어와 가능성을 탐구하는 것을 좋아합니다.</li>
<li>다양한 사회적 활동에서 에너지를 얻습니다.</li>
</ul>
</li>
<li>창의적이고 개방적
<ul>
<li>창의적이고 개방적인 사고를 가지고 있으며, 새로운 경험을 좋아합니다.</li>
<li>기존의 틀을 벗어나 자유롭게 사고하며, 미래지향적인 생각을 합니다.</li>
</ul>
</li>
<li>감정적이며 따뜻한
<ul>
<li>다른 사람들의 감정과 필요에 민감하며, 이를 이해하고 도우려는 성향이 강합니다.</li>
<li>공감 능력이 뛰어나며, 다른 사람들과의 관계에서 따뜻함과 이해를 보여줍니다.</li>
</ul>
</li>
<li>유연하고 즉흥적
<ul>
<li>변화에 유연하게 대처하며, 즉흥적으로 행동하는 것을 좋아합니다.</li>
<li>계획보다는 순간의 기회를 포착하는 것을 선호합니다.</li>
</ul>
</li>
<li>열정적이고 에너지가 넘침
<ul>
<li>자신의 열정을 다른 사람들과 공유하며, 활기차게 활동합니다.</li>
<li>새로운 아이디어와 프로젝트에 열정적으로 참여합니다.</li>
</ul>
</li>
<li>융통성 있음
<ul>
<li>변화에 유연하게 대처하며, 다양한 상황에 적응하는 능력이 뛰어납니다.</li>
<li>갑작스러운 변화에도 쉽게 적응하며, 문제를 해결합니다.</li>
</ul>
</li>
<li>미래 지향적
<ul>
<li>장기적인 목표와 비전에 대해 생각하며, 이를 달성하기 위해 노력합니다.</li>
<li>현재의 행동이 미래에 미칠 영향을 고려하여 계획을 세웁니다.</li>
</ul>
</li>
</ul>
</div>
""",
unsafe_allow_html=True
)
# 두 버튼을 가로로 배치하고 스타일 적용
col1, col2 = st.columns([1, 1])
with col1:
if st.button('홈'):
st.session_state['page'] = 'home'
st.experimental_rerun()
with col2:
if st.button('ENFP에게 맞는 공부법 확인하기'):
st.session_state['page'] = 'study'
st.experimental_rerun()
# 스타일 적용을 위한 CSS 추가
st.markdown(
"""
<style>
div.stButton > button {
width: 100%;
height: 50px;
font-size: 20px;
border-radius: 5px;
background-color: #3CB371;
color: black;
margin-top: 30px
}
</style>
""",
unsafe_allow_html=True
)
def show_details_ENFJ():
st.markdown("<h1 style='text-align: center; color: #3CB371;'>특징 및 성향 확인하기</h1>", unsafe_allow_html=True)
# 텍스트와 스타일 섹션
st.markdown(
"""
<div style='text-align: center; margin-top: 20px;'>
<h2 style='width:100px; height:60px; background-color: #3CB371; color: black; padding: 10px; border-radius: 5px;'>ENFJ</h2>
</div>
<div style='margin-top: 30px; font-size: 18px;'>
<ul>
<li>사교적이고 외향적
<ul>
<li>사람들과의 상호 작용을 즐기며, 다른 사람들에게 영감을 주고자 합니다.</li>
<li>파티나 사회적 모임에서 에너지를 얻고, 주목받는 것을 즐깁니다.</li>
</ul>
</li>
<li>높은 도덕적 기준
<ul>
<li>도덕적 가치와 윤리를 중시하며, 이를 바탕으로 행동합니다.</li>
<li>공정하고 정직한 태도로 사람들과의 관계를 유지합니다.</li>
</ul>
</li>
<li>감정적이며 따뜻한
<ul>
<li>다른 사람들의 감정과 필요에 민감하며, 이를 이해하고 도우려는 성향이 강합니다.</li>
<li>공감 능력이 뛰어나며, 다른 사람들과의 관계에서 따뜻함과 이해를 보여줍니다.</li>
</ul>
</li>
<li>조직적이고 계획적
<ul>
<li>체계적이고 조직적인 생활을 선호하며, 계획을 세워 이를 실행하는 데 능숙합니다.</li>
<li>규칙과 절차를 중시하며, 안정적이고 예측 가능한 환경을 좋아합니다.</li>
</ul>
</li>
<li>책임감 있고 신뢰할 수 있음
<ul>
<li>맡은 일에 책임감을 가지고 성실하게 임하며, 신뢰할 수 있는 사람으로 평가받습니다.</li>
<li>다른 사람들을 돕고 지원하는 데 적극적이며, 사회적 책임을 중요시합니다.</li>
</ul>
</li>
<li>팀워크 중시
<ul>
<li>협력적인 환경에서 팀을 이끌고, 팀원들과 함께 일하는 것을 선호합니다.</li>
<li>팀의 목표를 달성하기 위해 협력과 조화를 중시합니다.</li>
</ul>
</li>
<li>영감과 동기 부여
<ul>
<li>다른 사람들에게 영감을 주고, 동기를 부여하는 능력이 뛰어납니다.</li>
<li>자신의 열정과 비전을 통해 주변 사람들에게 긍정적인 영향을 미칩니다.</li>
</ul>
</li>
</ul>
</div>
""",
unsafe_allow_html=True
)
# 두 버튼을 가로로 배치하고 스타일 적용
col1, col2 = st.columns([1, 1])
with col1:
if st.button('홈'):
st.session_state['page'] = 'home'
st.experimental_rerun()
with col2:
if st.button('ENFJ에게 맞는 공부법 확인하기'):
st.session_state['page'] = 'study'
st.experimental_rerun()
# 스타일 적용을 위한 CSS 추가
st.markdown(
"""
<style>
div.stButton > button {
width: 100%;
height: 50px;
font-size: 20px;
border-radius: 5px;
background-color: #3CB371;
color: black;
margin-top: 30px
}
</style>
""",
unsafe_allow_html=True
)
def show_details_ENTP():
st.markdown("<h1 style='text-align: center; color: #9b6cc3;'>특징 및 성향 확인하기</h1>", unsafe_allow_html=True)
# 텍스트와 스타일 섹션
st.markdown(
"""
<div style='text-align: center; margin-top: 20px;'>
<h2 style='width:100px; height:60px; background-color: #9b6cc3; color: black; padding: 10px; border-radius: 5px;'>ENTP</h2>
</div>
<div style='margin-top: 30px; font-size: 18px;'>
<ul>
<li>사교적이고 외향적
<ul>
<li>사람들과의 상호 작용을 즐기며, 새로운 아이디어와 도전을 좋아합니다.</li>
<li>토론과 논쟁을 통해 에너지를 얻고, 지적 자극을 추구합니다.</li>
</ul>
</li>
<li>창의적이고 혁신적
<ul>
<li>창의적이고 혁신적인 사고를 가지고 있으며, 기존의 틀을 벗어나 자유롭게 사고합니다.</li>
<li>다양한 아이디어를 탐구하며, 문제 해결을 위한 새로운 접근 방식을 찾습니다.</li>
</ul>
</li>
<li>논리적이고 분석적
<ul>
<li>문제를 논리적으로 분석하고, 객관적인 관점에서 판단을 내립니다.</li>
<li>상황을 비판적으로 바라보며, 효율적인 해결책을 찾기 위해 노력합니다.</li>
</ul>
</li>
<li>즉흥적이고 유연한
<ul>
<li>변화에 유연하게 대처하며, 즉흥적으로 행동하는 것을 좋아합니다.</li>
<li>계획보다는 순간의 기회를 포착하는 것을 선호합니다.</li>
</ul>
</li>
<li>도전적 성향
<ul>
<li>어려운 문제나 도전에 맞서 싸우는 것을 즐깁니다.</li>
<li>새로운 기회와 도전을 통해 자신의 능력을 시험하는 것을 좋아합니다.</li>
</ul>
</li>
<li>창의적인 문제 해결
<ul>
<li>독창적인 아이디어를 통해 문제를 해결하는 능력이 뛰어납니다.</li>
<li>복잡한 문제를 창의적인 접근 방식으로 해결합니다.</li>
</ul>
</li>
<li>지적 호기심
<ul>
<li>다양한 주제에 대해 호기심이 많으며, 새로운 지식을 탐구하는 것을 좋아합니다.</li>
<li>책, 논문, 강연 등을 통해 지속적으로 학습하고 성장합니다.</li>
</ul>
</li>
</ul>
</div>
""",
unsafe_allow_html=True
)
# 두 버튼을 가로로 배치하고 스타일 적용
col1, col2 = st.columns([1, 1])
with col1:
if st.button('홈'):
st.session_state['page'] = 'home'
st.experimental_rerun()
with col2:
if st.button('ENTP에게 맞는 공부법 확인하기'):
st.session_state['page'] = 'study'
st.experimental_rerun()
# 스타일 적용을 위한 CSS 추가
st.markdown(
"""
<style>
div.stButton > button {
width: 100%;
height: 50px;
font-size: 20px;
border-radius: 5px;
background-color: #9b6cc3;
color: black;
margin-top: 30px
}
</style>
""",
unsafe_allow_html=True
)
def show_details_ENTJ():
st.markdown("<h1 style='text-align: center; color: #9b6cc3;'>특징 및 성향 확인하기</h1>", unsafe_allow_html=True)
# 텍스트와 스타일 섹션
st.markdown(
"""
<div style='text-align: center; margin-top: 20px;'>
<h2 style='width:100px; height:60px; background-color: #9b6cc3; color: black; padding: 10px; border-radius: 5px;'>ENTJ</h2>
</div>
<div style='margin-top: 30px; font-size: 18px;'>
<ul>
<li>사교적이고 외향적
<ul>
<li>사람들과의 상호 작용을 즐기며, 리더십을 발휘하는 것을 좋아합니다.</li>
<li>사회적 모임에서 에너지를 얻고, 다른 사람들과 함께하는 시간을 소중히 여깁니다.</li>
</ul>
</li>
<li>논리적이고 분석적
<ul>
<li>문제를 논리적으로 분석하고, 객관적인 관점에서 판단을 내립니다.</li>
<li>상황을 비판적으로 바라보며, 효율적인 해결책을 찾기 위해 노력합니다.</li>
</ul>
</li>
<li>조직적이고 계획적
<ul>
<li>체계적이고 조직적인 생활을 선호하며, 계획을 세워 이를 실행하는 데 능숙합니다.</li>
<li>규칙과 절차를 중시하며, 안정적이고 예측 가능한 환경을 좋아합니다.</li>
</ul>
</li>
<li>리더십과 통제력
<ul>
<li>강한 리더십을 발휘하며, 다른 사람들을 이끌고 조직을 통제하는 능력이 뛰어납니다.</li>
<li>목표 달성을 위해 전략을 세우고, 이를 추진하는 데 능숙합니다.</li>
</ul>
</li>
<li>전략적 사고
<ul>
<li>장기적인 목표를 설정하고, 이를 달성하기 위한 전략을 수립합니다.</li>
<li>복잡한 문제를 체계적으로 분석하고, 효과적인 해결책을 찾습니다.</li>
</ul>
</li>
<li>높은 자신감
<ul>
<li>자신의 능력과 판단에 대한 강한 자신감을 가지고 있습니다.</li>
<li>결정을 내릴 때 확신을 가지고 행동하며, 주저함이 없습니다.</li>
</ul>
</li>
<li>결과 지향적
<ul>
<li>목표 달성에 집중하며, 결과를 중시하는 성향이 있습니다.</li>
<li>효율성과 생산성을 중요하게 생각하며, 성과를 측정하고 평가합니다.</li>
</ul>
</li>
</ul>
</div>
""",
unsafe_allow_html=True
)
# 두 버튼을 가로로 배치하고 스타일 적용
col1, col2 = st.columns([1, 1])
with col1:
if st.button('홈'):
st.session_state['page'] = 'home'
st.experimental_rerun()
with col2:
if st.button('ENTJ에게 맞는 공부법 확인하기'):
st.session_state['page'] = 'study'
st.experimental_rerun()
# 스타일 적용을 위한 CSS 추가
st.markdown(
"""
<style>
div.stButton > button {
width: 100%;
height: 50px;
font-size: 20px;
border-radius: 5px;
background-color: #9b6cc3;
color: black;
margin-top: 30px
}
</style>
""",
unsafe_allow_html=True
)
def show_details_ISFP():
st.markdown("<h1 style='text-align: center; color: #FFD700;'>특징 및 성향 확인하기</h1>", unsafe_allow_html=True)
# 텍스트와 스타일 섹션
st.markdown(
"""
<div style='text-align: center; margin-top: 20px;'>
<h2 style='width:100px; height:60px; background-color: #FFD700; color: black; padding: 10px; border-radius: 5px;'>ISFP</h2>
</div>
<div style='margin-top: 30px; font-size: 18px;'>
<ul>
<li>내향적이고 조용한
<ul>
<li>내향적인 성향이 강하며, 혼자만의 시간을 즐깁니다.</li>
<li>사람들과의 상호 작용보다는 개인적인 공간에서 에너지를 얻습니다.</li>
</ul>
</li>
<li>예술적이고 감성적
<ul>
<li>예술적이고 감성적인 면이 강하며, 감각적인 경험을 중시합니다.</li>
<li>창의적인 표현을 통해 자신의 감정을 나타내고자 합니다.</li>
</ul>
</li>
<li>현실적이고 실용적
<ul>
<li>현재 순간에 집중하며, 구체적이고 실질적인 정보를 다루는 것을 선호합니다.</li>
<li>세부 사항에 주의를 기울이며, 현실적이고 실용적인 접근 방식을 중시합니다.</li>
</ul>
</li>
<li>유연하고 즉흥적
<ul>
<li>변화에 유연하게 대처하며, 즉흥적으로 행동하는 것을 좋아합니다.</li>
<li>계획보다는 순간의 기회를 포착하는 것을 선호합니다.</li>
</ul>
</li>
<li>조용한 혁신가
<ul>
<li>창의적이지만 겸손한 성격으로, 자신의 예술적 표현을 통해 혁신을 이끕니다.</li>
<li>새로운 아이디어와 접근 방식을 통해 변화를 만들어 냅니다.</li>
</ul>
</li>
<li>개인주의 성향
<ul>
<li>개인의 자유와 자율성을 중시하며, 독립적으로 행동하는 것을 좋아합니다.</li>
<li>자신의 가치관과 신념을 중요하게 생각하며, 이를 지키려 합니다.</li>
</ul>
</li>
<li>감정적으로 예민
<ul>
<li>감정적으로 예민하며, 자신의 감정을 깊이 이해하고 표현하는 능력이 있습니다.</li>
<li>다른 사람들의 감정에 공감하며, 이를 배려하는 태도를 보입니다.</li>
</ul>
</li>
</ul>
</div>
""",
unsafe_allow_html=True
)
# 두 버튼을 가로로 배치하고 스타일 적용
col1, col2 = st.columns([1, 1])
with col1:
if st.button('홈'):
st.session_state['page'] = 'home'
st.experimental_rerun()
with col2:
if st.button('ISFP에게 맞는 공부법 확인하기'):
st.session_state['page'] = 'study'
st.experimental_rerun()
# 스타일 적용을 위한 CSS 추가
st.markdown(
"""
<style>
div.stButton > button {
width: 100%;
height: 50px;
font-size: 20px;
border-radius: 5px;
background-color: #FFD700;
color: black;
margin-top: 30px
}
</style>
""",
unsafe_allow_html=True
)
def show_details_ISFJ():
st.markdown("<h1 style='text-align: center; color: #87CEEB;'>특징 및 성향 확인하기</h1>", unsafe_allow_html=True)
# 텍스트와 스타일 섹션
st.markdown(
"""
<div style='text-align: center; margin-top: 20px;'>
<h2 style='width:100px; height:60px; background-color: #87CEEB; color: black; padding: 10px; border-radius: 5px; padding-left:12px;'>ISFJ</h2>
</div>
<div style='margin-top: 30px; font-size: 18px;'>
<ul>
<li>내향적이고 조용한