Update app.py
Browse files
app.py
CHANGED
@@ -594,8 +594,7 @@ def create_interface():
|
|
594 |
padding: 20px 10px !important;
|
595 |
width: 100% !important;
|
596 |
}
|
597 |
-
|
598 |
-
content: url('/static/DIGITAL_GUTPAN_LOGO_m.png') !important;
|
599 |
width: 100% !important;
|
600 |
height: auto !important;
|
601 |
max-width: 300px !important;
|
@@ -618,8 +617,7 @@ def create_interface():
|
|
618 |
max-width: 800px;
|
619 |
margin: 0 auto;
|
620 |
}
|
621 |
-
|
622 |
-
content: url('/static/DIGITAL_GUTPAN_LOGO_w.png');
|
623 |
width: 100%;
|
624 |
height: auto;
|
625 |
max-width: 800px;
|
@@ -634,37 +632,17 @@ def create_interface():
|
|
634 |
text-align: center;
|
635 |
margin-bottom: 20px;
|
636 |
}
|
637 |
-
|
638 |
-
.logo-image img {
|
639 |
-
width: 100% !important;
|
640 |
-
height: auto !important;
|
641 |
-
object-fit: contain !important;
|
642 |
-
}
|
643 |
-
|
644 |
-
.gradio-container {
|
645 |
-
margin: 0 auto !important;
|
646 |
-
}
|
647 |
-
|
648 |
-
.gradio-button {
|
649 |
-
transition: all 0.3s ease;
|
650 |
-
}
|
651 |
-
.gradio-button:active {
|
652 |
-
transform: scale(0.98);
|
653 |
-
}
|
654 |
"""
|
655 |
|
656 |
with gr.Blocks(theme=gr.themes.Soft(), css=css) as app:
|
657 |
state = gr.State(value=initial_state)
|
658 |
|
|
|
659 |
with gr.Column(elem_classes="logo-container"):
|
660 |
-
|
661 |
-
|
662 |
-
|
663 |
-
|
664 |
-
elem_classes="logo-image",
|
665 |
-
scale=1,
|
666 |
-
width="100%"
|
667 |
-
)
|
668 |
|
669 |
gr.Markdown("""
|
670 |
1. 입장 → 2. 청신 → 3. 기원 → 4. 송신
|
|
|
594 |
padding: 20px 10px !important;
|
595 |
width: 100% !important;
|
596 |
}
|
597 |
+
#logo-image {
|
|
|
598 |
width: 100% !important;
|
599 |
height: auto !important;
|
600 |
max-width: 300px !important;
|
|
|
617 |
max-width: 800px;
|
618 |
margin: 0 auto;
|
619 |
}
|
620 |
+
#logo-image {
|
|
|
621 |
width: 100%;
|
622 |
height: auto;
|
623 |
max-width: 800px;
|
|
|
632 |
text-align: center;
|
633 |
margin-bottom: 20px;
|
634 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
635 |
"""
|
636 |
|
637 |
with gr.Blocks(theme=gr.themes.Soft(), css=css) as app:
|
638 |
state = gr.State(value=initial_state)
|
639 |
|
640 |
+
# 로고 컨테이너 수정
|
641 |
with gr.Column(elem_classes="logo-container"):
|
642 |
+
# HTML로 직접 이미지 삽입
|
643 |
+
gr.HTML("""
|
644 |
+
<img id="logo-image" src="file/static/DIGITAL_GUTPAN_LOGO_w.png" alt="디지털 굿판 로고">
|
645 |
+
""")
|
|
|
|
|
|
|
|
|
646 |
|
647 |
gr.Markdown("""
|
648 |
1. 입장 → 2. 청신 → 3. 기원 → 4. 송신
|