Update app.py
Browse files
app.py
CHANGED
@@ -588,17 +588,22 @@ def create_interface():
|
|
588 |
}
|
589 |
|
590 |
css = """
|
|
|
591 |
@media (max-width: 600px) {
|
592 |
-
|
593 |
-
|
594 |
-
|
595 |
-
gap: 10px !important;
|
596 |
}
|
597 |
-
|
598 |
-
|
599 |
-
|
600 |
-
|
|
|
|
|
|
|
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 |
-
/*
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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.
|
|
|
|
|
|
|
|
|
|
|
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 |
순서대로 진행해주세요.
|