haepada commited on
Commit
2aa50fa
·
verified ·
1 Parent(s): 2b97308

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +41 -11
app.py CHANGED
@@ -588,17 +588,22 @@ def create_interface():
588
  }
589
 
590
  css = """
 
591
  @media (max-width: 600px) {
592
- .container { padding: 10px !important; }
593
- .gradio-row {
594
- flex-direction: column !important;
595
- gap: 10px !important;
596
  }
597
- .gradio-button {
598
- width: 100% !important;
599
- margin: 5px 0 !important;
600
- min-height: 44px !important; /* 모바일 터치 영역 개선 */
 
 
 
601
  }
 
 
602
  .gradio-textbox { width: 100% !important; }
603
  .gradio-audio { width: 100% !important; }
604
  .gradio-image { width: 100% !important; }
@@ -609,20 +614,45 @@ def create_interface():
609
  max-width: 100% !important;
610
  }
611
  }
612
-
613
- /* 전반적인 UI 개선 */
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
614
  .gradio-button {
615
  transition: all 0.3s ease;
616
  }
617
  .gradio-button:active {
618
  transform: scale(0.98);
619
  }
 
 
 
 
620
  """
621
 
622
  with gr.Blocks(theme=gr.themes.Soft(), css=css) as app:
623
  state = gr.State(value=initial_state)
624
 
625
- gr.Markdown("# 디지털 굿판")
 
 
 
 
 
626
  gr.Markdown("""
627
  1. 입장 → 2. 청신 → 3. 기원 → 4. 송신
628
  순서대로 진행해주세요.
 
588
  }
589
 
590
  css = """
591
+ /* 모바일 뷰 */
592
  @media (max-width: 600px) {
593
+ #logo-container {
594
+ padding: 20px 10px !important;
595
+ width: 100% !important;
 
596
  }
597
+ #logo-image {
598
+ content: url('/static/DIGITAL_GUTPAN_LOGO_m.png') !important;
599
+ width: 100% !important;
600
+ height: auto !important;
601
+ max-width: 300px !important;
602
+ margin: 0 auto !important;
603
+ display: block !important;
604
  }
605
+ .container { padding: 10px !important; }
606
+ .gradio-button { width: 100% !important; }
607
  .gradio-textbox { width: 100% !important; }
608
  .gradio-audio { width: 100% !important; }
609
  .gradio-image { width: 100% !important; }
 
614
  max-width: 100% !important;
615
  }
616
  }
617
+
618
+ /* 데스크톱 */
619
+ @media (min-width: 601px) {
620
+ #logo-container {
621
+ padding: 20px 0;
622
+ width: 100%;
623
+ }
624
+ #logo-image {
625
+ content: url('/static/DIGITAL_GUTPAN_LOGO_w.png');
626
+ width: 100%;
627
+ height: auto;
628
+ max-width: 600px;
629
+ margin: 0 auto;
630
+ display: block;
631
+ }
632
+ }
633
+
634
+ /* 공통 스타일 */
635
  .gradio-button {
636
  transition: all 0.3s ease;
637
  }
638
  .gradio-button:active {
639
  transform: scale(0.98);
640
  }
641
+ #logo-container {
642
+ background: transparent !important;
643
+ text-align: center;
644
+ }
645
  """
646
 
647
  with gr.Blocks(theme=gr.themes.Soft(), css=css) as app:
648
  state = gr.State(value=initial_state)
649
 
650
+ with gr.Row(elem_id="logo-container"):
651
+ gr.Image(value="/static/DIGITAL_GUTPAN_LOGO_w.png",
652
+ show_label=False,
653
+ interactive=False,
654
+ elem_id="logo-image")
655
+
656
  gr.Markdown("""
657
  1. 입장 → 2. 청신 → 3. 기원 → 4. 송신
658
  순서대로 진행해주세요.