Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -149,10 +149,22 @@ with gr.Blocks(
|
|
| 149 |
letter-spacing: 0.5px;
|
| 150 |
}
|
| 151 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 152 |
/* ====== 底部版權列(含淡灰分隔線) ====== */
|
| 153 |
#footer {
|
| 154 |
position: fixed;
|
| 155 |
-
bottom:
|
| 156 |
left: 0;
|
| 157 |
width: 100%;
|
| 158 |
text-align: center;
|
|
@@ -160,9 +172,8 @@ with gr.Blocks(
|
|
| 160 |
color: #999;
|
| 161 |
font-family: "Segoe UI", "Noto Sans TC", sans-serif;
|
| 162 |
letter-spacing: 0.3px;
|
| 163 |
-
border-top: 1px solid #ddd;
|
| 164 |
-
padding-top: 8px;
|
| 165 |
-
background-color: rgba(255,255,255,0.7);
|
| 166 |
}
|
| 167 |
|
| 168 |
/* ====== 手機版自適應 ====== */
|
|
@@ -183,6 +194,7 @@ with gr.Blocks(
|
|
| 183 |
}
|
| 184 |
"""
|
| 185 |
) as demo:
|
|
|
|
| 186 |
if logo_base64:
|
| 187 |
gr.HTML(f"""
|
| 188 |
<div id="logo-top">
|
|
@@ -190,13 +202,16 @@ with gr.Blocks(
|
|
| 190 |
</div>
|
| 191 |
""")
|
| 192 |
|
|
|
|
| 193 |
gr.HTML("""
|
| 194 |
<div id="main-title-wrapper">
|
| 195 |
-
<h1 id='main-title'>👨💼
|
| 196 |
<p id='sub-title'>Powered by Gemini & LangChain</p>
|
| 197 |
</div>
|
| 198 |
""")
|
| 199 |
|
|
|
|
|
|
|
| 200 |
gr.HTML("<div id='footer'>© Fintech Assistant — 僅方便業務使用,非官方授權</div>")
|
| 201 |
|
| 202 |
|
|
|
|
| 149 |
letter-spacing: 0.5px;
|
| 150 |
}
|
| 151 |
|
| 152 |
+
/* ====== 手機版:main-title 改為兩行顯示 ====== */
|
| 153 |
+
@media (max-width: 768px) {
|
| 154 |
+
#main-title br {
|
| 155 |
+
display: inline; /* 手機上顯示換行 */
|
| 156 |
+
}
|
| 157 |
+
}
|
| 158 |
+
@media (min-width: 769px) {
|
| 159 |
+
#main-title br {
|
| 160 |
+
display: none; /* 桌機上隱藏換行 */
|
| 161 |
+
}
|
| 162 |
+
}
|
| 163 |
+
|
| 164 |
/* ====== 底部版權列(含淡灰分隔線) ====== */
|
| 165 |
#footer {
|
| 166 |
position: fixed;
|
| 167 |
+
bottom: 40px; /* 往上移 */
|
| 168 |
left: 0;
|
| 169 |
width: 100%;
|
| 170 |
text-align: center;
|
|
|
|
| 172 |
color: #999;
|
| 173 |
font-family: "Segoe UI", "Noto Sans TC", sans-serif;
|
| 174 |
letter-spacing: 0.3px;
|
| 175 |
+
border-top: 1px solid #ddd; /* 上方淡灰細線 */
|
| 176 |
+
padding-top: 8px; /* 線與文字距離 */
|
|
|
|
| 177 |
}
|
| 178 |
|
| 179 |
/* ====== 手機版自適應 ====== */
|
|
|
|
| 194 |
}
|
| 195 |
"""
|
| 196 |
) as demo:
|
| 197 |
+
# 左上角 logo
|
| 198 |
if logo_base64:
|
| 199 |
gr.HTML(f"""
|
| 200 |
<div id="logo-top">
|
|
|
|
| 202 |
</div>
|
| 203 |
""")
|
| 204 |
|
| 205 |
+
# 主標題與副標題
|
| 206 |
gr.HTML("""
|
| 207 |
<div id="main-title-wrapper">
|
| 208 |
+
<h1 id='main-title'>👨💼 我是小智<br>您的金融好幫手 🫰</h1>
|
| 209 |
<p id='sub-title'>Powered by Gemini & LangChain</p>
|
| 210 |
</div>
|
| 211 |
""")
|
| 212 |
|
| 213 |
+
|
| 214 |
+
# 底部版權列
|
| 215 |
gr.HTML("<div id='footer'>© Fintech Assistant — 僅方便業務使用,非官方授權</div>")
|
| 216 |
|
| 217 |
|