tad bit mobile responsive
Browse files
app.py
CHANGED
|
@@ -27,8 +27,13 @@ css = """
|
|
| 27 |
footer {visibility: hidden}
|
| 28 |
.gradio-container {
|
| 29 |
max-width: 100% !important;
|
| 30 |
-
padding
|
| 31 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 32 |
}
|
| 33 |
.header-section {
|
| 34 |
text-align: left;
|
|
@@ -37,24 +42,37 @@ footer {visibility: hidden}
|
|
| 37 |
.main-title {
|
| 38 |
color: #10b981;
|
| 39 |
font-weight: 800;
|
| 40 |
-
font-size:
|
| 41 |
margin: 5px 0;
|
| 42 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 43 |
.logo-container {
|
| 44 |
display: flex;
|
| 45 |
justify-content: flex-start;
|
| 46 |
align-items: center;
|
| 47 |
-
gap:
|
| 48 |
margin-bottom: 10px;
|
| 49 |
}
|
| 50 |
.logo-img {
|
| 51 |
-
height:
|
| 52 |
border-radius: 8px;
|
| 53 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 54 |
.description {
|
| 55 |
max-width: 900px;
|
| 56 |
margin: 10px 0;
|
| 57 |
-
font-size:
|
| 58 |
line-height: 1.5;
|
| 59 |
color: #4b5563;
|
| 60 |
}
|
|
@@ -62,9 +80,15 @@ footer {visibility: hidden}
|
|
| 62 |
display: flex;
|
| 63 |
flex-wrap: wrap;
|
| 64 |
justify-content: flex-start;
|
| 65 |
-
gap:
|
| 66 |
margin: 10px 0;
|
| 67 |
-
font-size: 0.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 68 |
}
|
| 69 |
.links-row a {
|
| 70 |
color: #10b981;
|
|
@@ -73,6 +97,7 @@ footer {visibility: hidden}
|
|
| 73 |
border: 1px solid #10b981;
|
| 74 |
border-radius: 15px;
|
| 75 |
transition: all 0.2s;
|
|
|
|
| 76 |
}
|
| 77 |
.links-row a:hover {
|
| 78 |
background-color: #10b981;
|
|
@@ -96,10 +121,16 @@ footer {visibility: hidden}
|
|
| 96 |
text-align: center;
|
| 97 |
font-size: 0.8rem;
|
| 98 |
color: #9ca3af;
|
| 99 |
-
margin-top:
|
| 100 |
-
padding:
|
| 101 |
border-top: 1px solid #f3f4f6;
|
| 102 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 103 |
"""
|
| 104 |
|
| 105 |
with gr.Blocks() as demo:
|
|
@@ -148,7 +179,7 @@ with gr.Blocks() as demo:
|
|
| 148 |
)
|
| 149 |
with gr.Row():
|
| 150 |
clear_btn = gr.Button("🗑️ Clear", variant="secondary")
|
| 151 |
-
generate_btn = gr.Button("⚡ Generate
|
| 152 |
|
| 153 |
with gr.Column(scale=1):
|
| 154 |
audio_output = gr.Audio(
|
|
|
|
| 27 |
footer {visibility: hidden}
|
| 28 |
.gradio-container {
|
| 29 |
max-width: 100% !important;
|
| 30 |
+
padding: 0 !important;
|
| 31 |
+
}
|
| 32 |
+
@media (min-width: 768px) {
|
| 33 |
+
.gradio-container {
|
| 34 |
+
padding-left: 2% !important;
|
| 35 |
+
padding-right: 2% !important;
|
| 36 |
+
}
|
| 37 |
}
|
| 38 |
.header-section {
|
| 39 |
text-align: left;
|
|
|
|
| 42 |
.main-title {
|
| 43 |
color: #10b981;
|
| 44 |
font-weight: 800;
|
| 45 |
+
font-size: 1.8rem;
|
| 46 |
margin: 5px 0;
|
| 47 |
}
|
| 48 |
+
@media (min-width: 768px) {
|
| 49 |
+
.main-title {
|
| 50 |
+
font-size: 2.2rem;
|
| 51 |
+
}
|
| 52 |
+
}
|
| 53 |
.logo-container {
|
| 54 |
display: flex;
|
| 55 |
justify-content: flex-start;
|
| 56 |
align-items: center;
|
| 57 |
+
gap: 10px;
|
| 58 |
margin-bottom: 10px;
|
| 59 |
}
|
| 60 |
.logo-img {
|
| 61 |
+
height: 40px;
|
| 62 |
border-radius: 8px;
|
| 63 |
}
|
| 64 |
+
@media (min-width: 768px) {
|
| 65 |
+
.logo-img {
|
| 66 |
+
height: 50px;
|
| 67 |
+
}
|
| 68 |
+
.logo-container {
|
| 69 |
+
gap: 15px;
|
| 70 |
+
}
|
| 71 |
+
}
|
| 72 |
.description {
|
| 73 |
max-width: 900px;
|
| 74 |
margin: 10px 0;
|
| 75 |
+
font-size: 0.95rem;
|
| 76 |
line-height: 1.5;
|
| 77 |
color: #4b5563;
|
| 78 |
}
|
|
|
|
| 80 |
display: flex;
|
| 81 |
flex-wrap: wrap;
|
| 82 |
justify-content: flex-start;
|
| 83 |
+
gap: 8px;
|
| 84 |
margin: 10px 0;
|
| 85 |
+
font-size: 0.85rem;
|
| 86 |
+
}
|
| 87 |
+
@media (min-width: 768px) {
|
| 88 |
+
.links-row {
|
| 89 |
+
gap: 10px;
|
| 90 |
+
font-size: 0.9rem;
|
| 91 |
+
}
|
| 92 |
}
|
| 93 |
.links-row a {
|
| 94 |
color: #10b981;
|
|
|
|
| 97 |
border: 1px solid #10b981;
|
| 98 |
border-radius: 15px;
|
| 99 |
transition: all 0.2s;
|
| 100 |
+
white-space: nowrap;
|
| 101 |
}
|
| 102 |
.links-row a:hover {
|
| 103 |
background-color: #10b981;
|
|
|
|
| 121 |
text-align: center;
|
| 122 |
font-size: 0.8rem;
|
| 123 |
color: #9ca3af;
|
| 124 |
+
margin-top: 30px;
|
| 125 |
+
padding: 15px;
|
| 126 |
border-top: 1px solid #f3f4f6;
|
| 127 |
}
|
| 128 |
+
@media (min-width: 768px) {
|
| 129 |
+
.disclaimer {
|
| 130 |
+
margin-top: 40px;
|
| 131 |
+
padding: 20px;
|
| 132 |
+
}
|
| 133 |
+
}
|
| 134 |
"""
|
| 135 |
|
| 136 |
with gr.Blocks() as demo:
|
|
|
|
| 179 |
)
|
| 180 |
with gr.Row():
|
| 181 |
clear_btn = gr.Button("🗑️ Clear", variant="secondary")
|
| 182 |
+
generate_btn = gr.Button("⚡ Generate", variant="primary")
|
| 183 |
|
| 184 |
with gr.Column(scale=1):
|
| 185 |
audio_output = gr.Audio(
|